1 2008-11-22 Andreia Gaita <avidigal@novell.com>
3 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
5 2008-11-21 Andreia Gaita <avidigal@novell.com>
7 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
9 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12 * ScrollableControl.cs: Set manually the thumb size for the
13 ScrollableControl scrollbars, so any further changes to the underneath
14 scrollbars respect the original size.
15 Fixes part of #441546.
17 2008-11-21 Geoff Norton <gnorton@novell.com>
19 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
20 PlatformID.MacOSX now exists.
22 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
24 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
25 Having something internal abstract isn't very nice for people who want
26 to inherit from this class.
28 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
30 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
31 invalid value. Just return null for the Image, and use the ImageList's
32 ImageSize for calculations.
34 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
36 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
37 through DroppedDown so the proper events get called and state gets reset.
40 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
42 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
43 the collection is modified.
45 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
47 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
48 aren't always correct, and fixing them for every case is not worth the
49 negligible benefit they provide.
52 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
54 * DataGridView.cs: We should never add actual cells to the RowTemplate.
55 Internally, use RowTemplateFull to give us a new row with cells.
56 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
57 * DataGridViewRowCollection.cs: Use RowTemplateFull.
59 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
61 * XplatUIX11.cs: Forms without borders should be able to change its
62 size - specially they should be able to be maximized, adding the
63 respective MotifFunctions.Resize bit when setting window properties as
64 well as *not* marking the Hwnd as size fixed.
67 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
69 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
73 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
75 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
76 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
77 AutoSizeColumnModeChanged.
80 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
82 * DataGridViewRowCollection.cs: Guard against the user deleting the
83 NewRow. Add an internal delete so we can still delete it.
84 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
87 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
89 * TextControl.cs: Add some order of operation to our math so
90 we don't end up with a negative height for our invalidate rect.
93 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
95 * Control.cs: When our enabled changes, notify our implicit children
96 controls as well as our regular controls.
99 2008-11-08 Andreia Gaita <shana@jitted.com>
101 * HtmlElement.cs: Small code cleanup
103 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
105 * BindingNavigator.cs: MoveFirstItem should be enabled only if
106 position is larger than 0, not only different than 0. Also Position
107 and Count items should be enabled if the BindingSource is non null and
111 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
113 * TabControl.cs: Don't raise SelectedIndexChanged until we have
114 actually modified the tab collection, so TabCount will be correct.
117 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
119 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
120 NonSerialized to fix serialization of ListViewItem.
122 2008-11-04 Mike Gorse <mgorse@novell.com>
124 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
125 focus change, and always call in SetFocusedItem.
126 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
128 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
130 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
131 mode. Based on a patch by John Mortlock.
134 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
136 * ListView.cs: Use the UsingGroups property where needed, instead of
137 duplicating the check in other places.
139 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
141 * ListView.cs: When calculating layout, refresh the count of items
142 belonging to the default item, insteas of doing it only one time. This
143 was already working fine for icon views, not not for details.
146 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
150 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
151 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
155 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
157 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
159 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
161 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
162 #441280, patch by Mike Gorse <mgorse@novell.com>.
164 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
166 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
167 if there is no scrollbar.
170 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
172 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
173 patch from Andy Hume that fixes many issues with ProgressBar.
176 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
178 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
181 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
185 * NumericUpDown.cs: Internal events added to UpDownBase:
186 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
189 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
191 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
193 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
196 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
197 Application.EnableVisualStyles hasn't been called.
198 Fixes part of #437933.
200 2008-10-31 Andreia Gaita <shana@jitted.com>
202 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
203 if the container is not focused already, we need to specifically set
204 focus to the first available control, or to the form itself if there
207 2008-10-31 Andreia Gaita <shana@jitted.com>
209 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
210 WM_ACTIVATE have been processed before returning, so it is guaranteed that
211 once it returns and the form is visible, it is actually on the screen on X11
213 * ContainerControl.cs: Only send focus to the control if the top container
214 is already focused. This is so that, when a form is first shown, all
215 the enter/leave events are done first before any focus stuff comes in.
216 If a control has no top container, there's an extra check on Control.Focus
217 to make sure it gets focused in this particular case.
219 * Control.cs: Force focus if the control is active but did not receive
220 focus after being set as active.
222 * MdiClient.cs: Dispose the form when closing
224 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
225 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
226 if the window is a top Form.
227 Reset all hwnd properties when the window has been destroyed so that
228 we don't land in any codepaths that might try to do something with it.
229 Added a bunch of debugging messages. If TRACE is defined, all X calls
230 are logged through DebugHelper. Set a few missing EntryPoint attributes.
232 2008-10-29 Mario Carrion <mcarrion@novell.com>
234 * ListViewItem.cs: Control enabled to support Accessibility:
235 - Internal events: UIATextChanged, UIASubItemTextChanged.
236 - Internal event UIATextChanged in ListViewSubItem that triggers
237 UIASubItemTextChanged.
238 * ListView.cs: Control enabled to support Accessibility:
239 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
240 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
241 - Internal event UIACollectionChanged in ColumnHeaderCollection.
242 - Internal event UIACollectionChanged in ListViewItemCollection.
243 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
244 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
245 - Internal methods: UIAGetHeaderBounds.
247 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
249 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
250 the event from the respective scrollbars.
253 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
255 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
256 textbox to know whether any navigation key will be handled or not. If
257 not, don't pass the message to the textbox, and use it here instead.
258 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
259 is more precise- than the previous AutoCompleteMatches one.
260 This should the keyboard navigation in ComboBox when using auto
263 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
265 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
268 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
270 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
271 overridden methods will get called.
272 * ToolStripItem.cs: Raise Click before MouseUp.
273 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
274 the item's location into account.
277 2008-10-24 Neville Gao <nevillegao@gmail.com>
279 * NumericUpDown.cs: Control enabled to support accessibility.
282 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
284 * TextBox.cs: Check that we actually have items no navigate, select
285 text when pressing enter, as well as handle direction keys only if
286 mode is different to Suggest or the suggest listbox is visible.
288 2008-10-23 Andreia Gaita <shana@jitted.com>
290 * WebBrowser.cs: Use the new ContentStream property to retrieve
291 a stream encoded from the document content
293 2008-10-23 Andreia Gaita <shana@jitted.com>
297 HtmlWindow.cs: Fix GetHashcode for null objects
299 2008-10-22 Andreia Gaita <shana@jitted.com>
303 HtmlWindow.cs: Fix equality operators (fixes #428173)
305 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
307 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
308 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
311 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
313 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
314 same item with the mouse as was already selected.
317 2008-10-21 Brad Taylor <brad@getcoded.net>
319 * TextControl.cs: Break out code to get the visible range into
320 GetVisibleLineIndexes to be used in UIA code.
324 * TextBoxBase.cs: Add comments indicating that the method or property
325 is used via reflection from UIA code.
327 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
329 * ListViewItem.cs: Match .net serialization.
330 Fixes remaining part of #417520.
332 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
334 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
336 2008-10-20 Mario Carrion <mcarrion@novell.com>
338 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
339 added: UIAToolTipRectangle.
341 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
343 * ListViewItem.cs: When deserializing enumerate over the data, instead
344 of accessing the data directly. This way we handle much better the
345 cases were we lack information.
348 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
350 * ListView.cs: When removing an item from a main ListView.Items
351 collection (and not a ListViewGroupCollection.Items one), remove it
352 also from the group, as .net does. Patch by Mario Carrion (mario at
356 2008-10-19 Andreia Gaita <avidigal@novell.com>
358 * Form.cs: Forms that get closed without a handle being created are
359 disposed in 2.0. Fixes failing FormTest.FormClose and
360 FormTest.FormClose2 on windows.
362 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
364 * ListView.cs: If both scrollbars are visible, the vertical one
365 shouldn't extend too far down.
368 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
370 * DataGridView.cs: Add the ability to resize columns and rows with
371 the mouse. Also support double-clicking to autoresize.
372 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
373 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
374 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
375 isn't shown on autoresize.
378 2008-10-17 Mario Carrion <mcarrion@novell.com>
380 * ComboBox.cs: Remove UIAListbox.
382 2008-10-17 Mario Carrion <mcarrion@novell.com>
384 * ComboBox.cs, ListBox.cs: Using added/removed item in
385 OnUIACollectionChangedEvent instead of index.
387 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
389 * ComboBox.cs: When we are sorting the items, if the item's type
390 doesn't support IComparer, use a default one that compares based
391 off the item's visible text.
394 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
396 * ColumnHeader.cs: Invalidate ListView.header_control when setting
398 * ThemeWin32Classic.cs: When drawing the column header, draw a image
399 for the column if available, and make the required adjustments to the
403 2008-10-17 Neville Gao <nevillegao@gmail.com>
405 * StatusBarPanel.cs: Control enabled to support accessibility.
408 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
410 * DataGridView.cs: When a user begins an edit in the 'new row',
411 make that a real row, and add a new 'new row'. If the user
412 cancels the edit, remove the new 'new row' and reset everything.
413 Also, ensure UserAddedRow and UserRemovedRow events are raised.
416 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
418 * TableLayoutSettings.cs: Fix NREs when deserializing and
419 panel is not yet set.
422 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
424 * DataGridView.cs: Invalidate after deleting a row.
426 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
428 * DataGridView.cs: Handle Enter and Escape keys.
429 - Move call to EndEdit to MoveCurrentCell.
430 - Remove call to EndEdit from navigation key routines.
431 - Fire CellLeave and CellEnter.
433 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
435 * DataGridViewCell.cs: Some fixes to the new cell border
438 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
440 * ThemeEngine.cs: Enable visualstyles rendering by default
441 (on platforms that support it).
443 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
445 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
446 MainForm.OnLoad has completed unless DoEvents is forced.
449 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
451 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
453 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
455 * Control.cs: Make our implementation of DrawToBitmap better
456 match WmPaint. [Fixes bug #435579]
458 2008-10-14 Andreia Gaita <avidigal@novell.com>
460 * WebBrowser.cs: Use DocumentElement as the document's root for the
461 whole content. Should fix DocumentText and DocumentStream problems.
463 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
465 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
466 these will get called in DGV.OnCollectionChanged. Make sure
467 OnCollectionChanged always gets called.
468 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
469 from every row. Call this in OnCollectionChanged.
472 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
474 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
475 textbox if auto complete is used, since we need to navigate over it.
476 And in this case don't pass this messages to the base impl. Also hide
477 the auto complete list box when displaying the drop down listbox.
478 * TextBox.cs: new internal members to expose some of the auto complete
479 functionality to combobox.
481 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
483 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
484 MainForm.OnLoad has completed.
487 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
489 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
490 Append support to this controls. We need it to apply new patches.
492 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
494 * Control.cs: When updating z order in child controls, send to back
495 the implicit controls. Also, do it explicitly, instead of making
496 GetAllControls return the implicit controls in a specific order, and
497 thus avoid depending on that, which could change in the future.
500 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
502 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
503 call to StartDrag, since we must fire DragDrop/DragLeave *before*
504 that, as .net does - instead of firing DragDrop/DragLeave *after* the
505 call to Control.DoDragDrop has completed. This is needed since at the
506 point of returning, we have sent related dnd ClientMessages, but we
507 need to wait for them to fire the wmf respective ones.
510 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
512 * LinkLabel.cs: Recreate link pieces when change Padding.
514 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
516 * LinkLabel.cs: Take Padding into account when recreate link pieces.
519 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
521 * Control.cs: Implement internal property PaddingClientRectangle, it will be
522 useful for drawing controls that must take care about Padding property.
524 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
526 * BindingSource.cs: Make item_type internal so we can access it in DGV.
527 * DataGridView.cs: Add support for autogenerating columns from a
530 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
532 * DataGridView.cs: Comment out an exception that is getting thrown
535 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
537 * DataGridView.cs: Always rebind to the datasource, as things may
538 have changed in it that we aren't capturing yet.
540 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
542 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
543 drawing mode. If we are top aligned, give ourselves some top padding.
545 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
547 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
548 events on the control under the mouse pointer, instead of firing them
549 on the window generating the dnd operation. To achieve this re-use the
550 code used to get the window under the pointer when getting MouseMove
554 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
556 * X11Dnd.cs: Don't check that that the window sending the dnd events
557 is the owner of the selection. Although Gtk+ sets it that way, it's
558 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
559 So, just as Gtk+ does, we set our window sending the dnd events as the
560 owner of the selection, but don't check it when receiving them. This
561 should fix interoperability with Qt/Kde.
564 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
566 * DataGridView.cs: Make sure we take the vertical scrollbar into
567 account when autosizing columns.
569 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
571 * DataGridView.cs: Handle sorting datetimes.
573 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
575 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
576 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
577 compilation warnings.
579 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
581 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
582 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
583 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
584 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
585 compilation warnings.
587 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
589 * DataGridView.cs, DataGridViewCell.cs,
590 DataGridViewCellValidatingEventArgs.cs,
591 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
592 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
593 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
595 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
597 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
598 Cleanup compilation warnings.
600 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
602 * XplatUIWin32.cs: Cleanup compilation warnings.
604 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
606 * PropertyGrid.cs: Cleanup compilation warnings.
608 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
610 * DataGridViewRow.cs: Only clear the row background if we
611 are going to paint a new background.
613 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
615 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
616 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
617 use PaintBorder instead.
619 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
621 * DataGridView.cs: When CellBorderStyle is set, update the
622 AdvancedCellBorderStyle to match.
624 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
626 * DataGridViewCell.cs: Add helper methods to convert Alignment
627 to TextFormatFlags and align rectangles.
628 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
629 * DataGridViewImageCell.cs: Use Alignment when painting the image.
631 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
633 * ToolTip.cs: Display tooltips only for controls on the active form.
636 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
638 * DataGridView.cs: Make OnCellValueNeeded internal.
639 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
640 user can supply their own value if they choose.
642 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
644 * DataGridViewColumnHeaderCell.cs: Create a new style object
645 so the DefaultCellStyle doesn't get changed.
647 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
649 * ToolStripItem.cs: Check to make sure the owner is actually
650 changing in InternalOwner before doing any work. Fixes some
653 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
655 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
656 * DataGridView.cs: Use a column header's inherited style instead
657 of just using the default.
659 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
661 * SplitContainer.cs: Raise SplitterMoved when the splitter is
664 2008-10-01 Mario Carrion <mcarrion@novell.com>
666 * ScrollBar.cs: Internal property added: UIAThumbPosition.
668 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
670 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
672 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
674 * ToolStripItem.cs: When the user sets Owner, we need to remove
675 it from its previous owner and then add it to the new owner's
676 item collection. Also, create InternalOwner, so we can set the owner
677 that doesn't do this new stuff.
678 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
680 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
682 * ToolStripItem.cs: When our parent changes, recalculate our text
683 size, since we may be getting our Font from our parent. When our
684 owner's Font changes, recalculate ourselves as we may be using
687 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
689 * MenuAPI.cs: Select the first option of a popup when opening the popup via
690 return key. [Fixes bug #413792].
692 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
694 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
695 ambient properties. (Get their value from their parents if
696 values haven't been set.)
698 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
700 * ToolStripSystemRenderer.cs: Call overridden methods' bases
701 after our logic, so users can do painting by handling the events.
702 Currently, we draw over any user painting.
704 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
706 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
707 after our logic, so users can do painting by handling the events.
708 Currently, we draw over any user painting.
710 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
712 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
714 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
716 * TreeNode.cs, TreeView.cs: Move logic that determines the node
717 image to draw to TreeNode. Give Index/Keys put on the node
718 precedence over the global one for the TreeView.
720 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
722 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
724 2008-09-29 Mario Carrion <mcarrion@novell.com>
726 * ListBox.cs: Index fixed.
728 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
730 * TabControl.cs: When expanding the tab -because it's selected now-,
731 using Right alignment, instead of adding some selected delta value to
732 the X origin, substract it, so it gets a location adjacent to the panel,
733 instead of be more separated.
736 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
738 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
741 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
743 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
744 as well as the other static fields, to avoid using their previous
745 values my mistake when handling the dnd events. This should avoid
746 handling any status event after the drop has been finalized/cancelled.
748 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
750 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
751 operation, instead of waiting until we get any movement - this will
752 help us to have the data available in case no movement was detected
753 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
754 Finally add a windows.forms-only fallback to fire the mentioned events
755 if no movement at all was detected, just like .net does.
758 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
760 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
761 return early if the text is empty because the icon doesn't get
762 drawn then. [Fixes bug #428113]
764 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
766 * FileDialog.cs: Implement basic support for sorting by columns in
767 Details view. Patch by Eric Petit.
770 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
772 * ThemeWin32Classis.cs: When drawing gridlines take into account the
773 case where ListView.ItemSize hasn't been computed, and provide a
774 fallback as well. This prevents a division by 0.
776 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
778 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
779 correctly draw tooltip backgrounds.
781 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
783 * ImageList.cs: Change CopyTo implementation to ensure clones are
784 created of our images.
787 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
789 * Control.cs: When setting fonts, we need to ensure we change our
790 reference to the new font object, even if it represents the same
791 font as before. If we don't, the original font can get disposed
792 and we will still try to use it.
795 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
797 * FileDialog.cs: Take into account Tile view when selecting the view
800 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
802 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
803 the item bounds, since we can't iterate over them in virtual mode.
804 Also fix wrong calculation of the gridlines when using scrolling.
807 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
809 * XplatUIX11.cs: When handling EnterNotify events, take into account
810 both the public and implicit controls when trying to detect the
811 grab/ungrab process. This should fix ListView selection in Details
814 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
816 * TreeView.cs: Redraw the whole node area when the selected node changes.
817 Things like state images were not getting redrawn because the invalid
818 rectangle was too small.
821 2008-09-23 Mario Carrion <mcarrion@novell.com>
823 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
826 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
828 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
831 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
833 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
836 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
838 * StatusBar.cs: Add tooltip support.
841 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
843 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
844 alignments of sub items in Details view. Patch by John Mortlock (johnm at
848 2008-09-23 Neville Gao <nevillegao@gmail.com>
850 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
853 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
855 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
858 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
860 * ListView.cs: Don't do anything when EnsureVisible is called inside a
861 BeginUpdate/EndUpdate block.
864 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
866 * ListViewItem.cs: The semantics for the public .ctor of
867 ListViewSubItemCollection need us to already have a Text value for the
868 item, which in our implementation have as available *after* adding the
869 first sub item. So create an internal .ctor that satisfies our needs
870 and let the public .ctor have the same semantics as .net.
873 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
875 * ListControl.cs: Changes in Formatting related values should call
876 RefreshItems, as .net does.
878 * ListBox.cs: In the respective overrides of RefreshItems calculate
879 layout as well as refreshing - again, this is what .net does.
882 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
884 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
885 since we are already doing that when we change the value of the
886 scrollbar or force the call to ScrollWindow in the same method. This
887 way we don't cause a Invalidate call for all the listbox bounds for
888 methods calling UpdateTopItem with an already updated top item. This
889 was happening specially calling EnsureVisible with already visible
892 2008-09-18 Mike Gorse <mgorse@novell.com>
894 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
895 XplatUIStructs.cs: Added KeyFilter
898 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
900 * RelatedPropertyManager.cs: The properties returned by
901 GetItemProperties should be that ones of the *actual* object returned
902 by the property, not the property type - this is very special when the
903 property exposes a type, but the returned object actually is a child
904 class and implements more functionality and properties.
906 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
908 * Binding.cs: Don't look for the property in the data source if the
909 passed string is empty.
911 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
913 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
914 fix unused variable warnings.
916 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
918 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
921 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
924 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
925 leads to the window manager overriding our border style and zorder.
926 - Allow the activation of non-modal forms, which are children of a
930 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
932 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
933 ask the window manager to do the work instead of changing the property
937 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
939 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
940 AddNew to fix some navigation for empty datasets. [Fixes #323053]
942 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
944 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
945 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
946 border and fixes some drawing issues when resize form.
948 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
950 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
952 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
955 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
957 * TextBoxBase.cs: For standard textbox the scrollbars are always
958 visible if Multiline is true.
961 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
963 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
966 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
968 [Fixes most od DBNull and HeadersVisible problems]
971 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
972 returns the value that we need.
973 - Fixed FromPixelToColumn method that return zero for first column and for
974 row header cell, now it returns -1 for row header cell.
975 - Fixed HitTest to check row header cell in column header area, it now
976 returns HitTestType.None. [Fixes #322864]
977 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
978 checks for RowHeadersVisible and other things.
979 - If an exception occurs when setting CurrentCell and user type 'yes' in
980 message dialog, invalidade current and new cell and set setting_current_cell
981 to false to prevent future errors. [Partially fixes #323050]
983 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
984 value (SetColumnValueAtRow), it must be done by grid to properly show
985 messages. [Fixes #323050]
987 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
988 better draw column and row header. Also dont draw anything when column
989 headers is not visible.
991 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
993 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
996 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
998 * TreeView.cs: Don't start editing a node on right click, only
1001 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1003 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1004 disabled over a year ago.
1005 * Form.cs: Wrap calling Load in a try/catch because it can happen
1006 before the catch-all one in NativeWindow.
1009 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1011 * ToolStripDropDownMenu.cs: Calculate the connected area better
1012 to take into account when the drop down is not directly under the
1014 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1016 2008-09-16 Mario Carrion <mcarrion@novell.com>
1018 * ScrollBar.cs: New event added: UIAValueChanged, generated when
1019 LargeChange, SmallChange, Maximum or Minimum values are changed.
1022 2008-09-16 Mario Carrion <mcarrion@novell.com>
1024 * ErrorProvider.cs: Component enabled to support accessibility.
1025 * Application.cs: Updated to Initialize UIA in ErrorProvider.
1028 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1030 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1031 so we don't highlight on first focus.
1034 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1036 * TextControl.cs: Correctly calculate the height of the area we
1037 need to invalidate when we have started scrolling and viewport_y
1038 is used. [Fixes bug #387608]
1040 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1042 * TextControl.cs: When getting the SelectedText, don't add in
1043 NewLine characters, as they are already contained in the lines.
1046 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1048 * TextBoxBase.cs: Replace the buggy Lines setter with one that
1049 simply concats the lines and send it to the Text setter.
1050 [Fixes issue #2 and #3 of 388115]
1052 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1054 * Binding.cs: The default value of DataSourceNullValue should be
1055 Convert.DBNull actually. Also, the NullValue should only be used *if*
1056 itself is not null, and use the null/Convert.DBNull value instead.
1058 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1060 * TextControl.cs: Add a method to convert a string newline to the
1062 * TextBoxBase.cs: When the user hits enter, insert a native newline.
1063 [Fixes part 1 of bug #388115]
1065 2008-09-15 Mario Carrion <mcarrion@novell.com>
1067 * ToolTip.cs: UnPopup event set to internal to match public API.
1069 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1071 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1072 have to remove the Ctrl in order for the focus moving code to kick in.
1075 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1077 * CheckedListBox.cs: Return the real item index from Add. It may not be
1078 the last item if the list is sorted. The user can change the NewValue in
1079 the ItemCheck event, we need to use that value if so.
1080 * ListBox.cs: Return the real item index from a sorted Add.
1083 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
1085 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
1086 happen that the icons from the theme is missing or the particular size
1090 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1092 * Binding.cs: When assigning null or DBNull depending on value/ref type,
1093 use IsValueType instead to get the precise desired value.
1096 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1098 * TreeNodeCollection.cs: When adding a new node to an opened node,
1099 we have to invalidate everything below the parent node because
1100 every node scoots down and we have to repaint them.
1103 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1105 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1106 property into account when drawing.
1109 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1111 * ListBox.cs: When calling Items.Clear(), call
1112 SelectedIndexCollection.ClearCore instead of normal Clear method, to
1113 not fire any Selected*Changed event - this is done to match .net and
1114 don't have invalid values when changing the DataSourceProperty.
1117 2008-09-12 Mario Carrion <mcarrion@novell.com>
1119 * HelpProvider.cs: Control enabled to support accessibility.
1120 * Application.cs: Updated to Initialize UIA in HelpProvider.
1123 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1125 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1126 make the dialog TopMost as well.
1129 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1131 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1132 clipboard data better.
1135 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1137 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1138 TextChanged and SelectionChanged events fire in the same order as .Net.
1141 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1143 * DataGridView.cs: When sorting a column, if it only contains numbers,
1144 do a numeric sort instead of a string sort.
1147 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1149 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1150 against NRE's when the settings have a null panel.
1151 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1155 2008-09-11 Mario Carrion <mcarrion@novell.com>
1157 * ToolTip.cs: Control enabled to support accessibility.
1158 * Application.cs: Updated to Initialize UIA in ToolTip.
1161 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1163 * Control.cs: Make the custom Enumerator internal to fix build.
1165 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1167 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1168 already in edit mode, begin edit mode. Generally edit mode isn't
1169 started until the second click, but CheckBoxes are special.
1171 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1173 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1174 since that can be set to anything. Always add them to the Control's
1175 parent. [Fixes bug #416058]
1177 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1179 * ListView.cs: Use a custom enumerator for ListViewItemCollection
1180 so items can be deleted in a foreach.
1183 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1185 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1186 Store the user set explicit height so that the row can be AutoSized
1187 and then when AutoSize is turned off, it can get its original size back.
1188 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
1189 duplicating the logic. When setting AutoSizeRowsMode to None, reset
1190 rows' heights back to their explicit values.
1193 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1195 * DateTimePicker.cs: When getting focus, select the checkbox if we are
1196 already showing it. Also, don't change its value when pressing space
1197 if the checkbox is not visible (ShowCheckBox as false). Finally, the
1198 checkbox should remain selected as long as Checked is false, and the
1199 other parts are disabled.
1202 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1204 * MessageBox.cs: Handle shortcut keys to dialog buttons.
1207 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1209 * Binding.cs: When the value retrieved from the control property is
1210 null, don't return Convert.DBNull for Nullable instances, since they
1211 can *actually* get a null value.
1214 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1216 * Control.cs: Add an internal field to force doublebuffering regardless
1217 of what the public mechanisms are set to. This is because MS's native
1218 controls are doublebuffered even though their .Net bits are set to false.
1219 * ProgressBar.cs: Set force_double_buffer to true.
1222 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1224 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1226 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1227 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1228 without EditingControls, paint background selection for types without
1229 EditingControls, reset the EditingCellValueChanged flag when the
1230 cell's value is committed.
1231 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1232 have EditingControls, remove a double call to a cell's OnContentClickInternal,
1233 don't do cell changing logic in OnMouseDown if the cell didn't change.
1236 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1238 * DateTimePicker.cs: Fix the edition of am/pm specifier.
1240 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
1242 * TextControl.cs: Add "&" to the list of valid characters in a URL.
1244 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1246 * DateTimePicker.cs: Before incrementing or decrementing any part in
1247 the textbox, end any current edit. Also when ending the current edit
1248 use the editing_part_index field instead of the current selected
1249 value, since they can be out of synch, and we really need to work on
1250 the *real* current edit part. Finally when PartData.Selected changes,
1251 always try to end any ongoing edit.
1252 This should fix some small errors handling mouse navigation and
1253 increase/decrease operations.
1255 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1257 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1258 respectively) should handled different, since the 12 hours format
1259 needs the value typed by the user to be adjusted depending on the
1260 a.m/p.m value, so it is preserved, and only changed when the value
1261 reaches the 12 value (when it changes from a.m to p.m).
1262 Fixes part of #416555.
1264 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1266 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1267 * ToolStripDropDownItem.cs: Don't fire events and such again if
1268 ShowDropDown is called on an already dropped down item.
1269 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1270 subitems, the user may add some in the DropDownOpening event.
1273 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1275 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1278 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1280 * MdiClient.cs: When looking for menustrips on a child form to merge,
1281 look inside ToolStripContainers.
1284 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1286 * ErrorProvider.cs: Unbreak my previous commit.
1288 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1290 * ErrorProvider.cs: Icon should always be 16x16.
1293 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1295 * GridEntry.cs: Invalidate the child items cache when the property
1298 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1300 * GridEntry.cs, PropertyGridView.cs:
1301 - Update the ReadOnly detection and rendering to finally hopefully
1302 match the one of MSFT.
1303 - Niceify and move the debug CWLS.
1306 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1308 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1309 since we are already calling Invalidate for the entire control when
1310 needed - and call Redraw() when size changes, since we need to paint
1311 there by ourselved and not anymore from the mentioned method.
1312 This should improve the layout process. Also clean some not needed calls
1315 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1317 * MenuAPI.cs: Add a null check to the Alt-F4 code.
1320 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1322 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1325 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
1327 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
1328 PropertyGridView.sc: Implement lazy/delayed propertygrid population
1329 on item expansion. Improves performance and fixes bug #417955.
1332 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
1334 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1337 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1339 * TextControl.cs: Add "_" to the list of valid characters in a URL.
1342 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1344 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
1348 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1350 * FontDialog.cs: When storing our font size from the starting font,
1351 use SizeInPoints instead of Size in case Size is a different unit
1355 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1357 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1358 don't use it for anything else, check if a directory is highlighted.
1359 If it is, navigate into it.
1362 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1364 * Binding.cs: When acquiring a BindingManagerBase for the first time,
1365 check that the specified property actually exists in the data source,
1366 and throw an ArgumentException if that's not the case - this is only
1367 done for this scenario, since for later cases (such Position changes)
1368 we throw different exceptions (match .Net).
1370 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
1372 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
1373 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
1374 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
1375 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
1376 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
1377 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
1381 2008-09-03 Neville Gao <nevillegao@gmail.com>
1383 * StatusBar.cs: Control enabled to support accessibility.
1386 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1388 * Binding.cs: When connecting the event handler for the "Changed"
1389 event for the property, only do it for PropertyManager, and not for
1390 CurrencyManager - this is exactly what does .Net, totally ignoring any
1391 change in the property of the elements of a list.
1394 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
1396 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1397 to Windows when creating a window, as we fake MDI stuffs.
1400 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
1402 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
1403 change takes effect.
1405 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
1407 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
1410 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1412 * DataGridView.cs: Raise CellContentClick event.
1413 [Fixes part of bug #420351]
1415 2008-08-27 Mario Carrion <mcarrion@novell.com>
1417 * ScrollBar.cs: Control enabled to support accessibility.
1420 2008-08-27 Mario Carrion <mcarrion@novell.com>
1422 * ComboBox.cs: Control enabled to support accessibility.
1425 2008-08-27 Mario Carrion <mcarrion@novell.com>
1427 * ListBox.cs: Control enabled to support accessibility.
1430 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1432 * ComboBox.cs: Don't suppress the TextChanged event when changing
1434 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
1438 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
1440 * ErrorProvider.cs: Fix a regression NRE when setting properties
1441 for a control before it has a parent.
1444 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1446 * Binding.cs: Use the BindingManagerBase.Current value to obtain
1447 connect the property "Changed" event, instead of using the data
1448 sources - this is useful when the property specifies actually a
1449 multiple objects path.
1450 Fixes part of #417973.
1452 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1454 * RelatedPropertyManager.cs: PropertyManager instances associated to a
1455 nested properties should return not the properties of the data source
1456 itself, but the properties of the type of a specific property in the
1457 data source - match .net.
1459 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
1461 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
1462 AddRange overloads into AddItems method, and added missing NULL check.
1463 Added extra argument check to RemoveAt for compatibility with MS.
1464 Modified IList implementation of Add, Contains, IndexOf and Remove to
1465 throw an ArgumentException if item is not an int. Modified IList.Insert
1466 to throw a NotSupportException instead of an Exception. Implemented
1468 (ObjectCollection): To avoid duplication, use AddItems method from
1469 AddRange overloads. On 1.0 profile, first perform NULL check on items
1472 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
1474 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
1477 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1479 * X11Keyboard.cs : comment out some Console.WriteLine().
1481 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1483 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
1484 even if premises are not filled. Also XLookupString() was not
1485 receiving correct input, which blocked precise input handling
1488 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1490 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
1491 type of delegate, instead of EventHandler - this was causing a type
1492 cast exception in all apps handling this event.
1495 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
1497 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
1498 ShowDropDown to give the user a chance to dynamically add
1499 drop down items. [Step 1 of fixing bug #417877]
1501 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1503 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
1504 had any mouse motion since the call to StartDrag, to match the dnd
1506 Fixes part of #381876.
1508 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1510 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
1511 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
1512 Also, if we are actually moving into a different window after
1513 grabbing, generate a LeaveNotify event for the previous window, since
1514 we need to fire the leave events until the grab ends, not when
1515 actually moving outside of the control.
1517 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1519 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
1520 events only for client windows was wrong - we need to compare the
1521 client window against the window receiving the EnterNotify event, not
1522 against zero (since client window is never Zero, btw).
1523 This prevents having unnecessary handling of EnterNotify events for
1524 non-client windows when a gran begins.
1526 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1528 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
1529 MouseMove/MotionNotify events at all (which should only happen after
1530 MouseUp/ButtonRelease, as .Net does).
1531 This avoids firing an extra and unnecessary MouseMove event just after
1532 every MouseDown event.
1534 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1536 * LinkLabel.cs: Always clear any previous links when LinkArea
1537 is set. [Fixes bug #410709]
1539 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1541 * ToolStripProfessionalRenderer.cs: Revert last change.
1542 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
1543 for ToolStripDropDownBackground.
1545 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1547 * ToolStripProfessionalRenderer.cs: Use Window color for the
1548 background of dropdowns to match .Net when the user is not
1549 using the default white. [Fixes bug #418108]
1551 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
1553 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
1554 it caused timer registration twice. Fixed bug #418107.
1556 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1558 [Correction: This is the actual change to X11Dnd issue, not the
1559 previous one, which was actually a different issue.]
1561 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
1562 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1563 when the pointer is actually in motion, but only when the pointer
1564 seems to stop (as .net does).
1565 Fixes part of #381876.
1568 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
1570 * ListBox.cs: Fix CopyTo implementation.
1573 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
1575 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
1576 drawing a ComboBox's background. Fixes bad disabled rendering when
1577 the control is not at 0,0.
1580 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
1582 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
1583 ComponentModel layer, which will properly prioritize the attributes.
1584 Avoids wrong prioritization of duplicate attributes when retrieving
1585 the converter and editor.
1588 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1590 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
1591 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1592 when the pointer is actually in motion, but only when the pointer
1593 seems to stop (as .net does).
1594 Fixes part of #381876.
1596 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
1598 * GridEntry.cs: Perform stricter check for the ParentEntry's
1599 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
1603 2008-08-14 Geoff Norton <gnorton@novell.com>
1605 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
1606 Fixes #396983. Properly fix ActiveWindow trackin and do not
1607 prematurely show POPUP windows.
1609 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1611 * XplatUIX11.cs: Handle the obscured regions while scrolling using
1612 GraphicsExpose event, processing it just after we copy the scrolled
1613 area. This ensures that the next calls to ScrollWindow will copy
1614 regions already updated, and the scrolling will be smooth. Also remove
1615 the code that was trying to detect the obscured regions, since we are
1616 not using it anymore (too slow).
1618 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1620 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
1621 MultiExtended mode, by separating some logic between the ctrl/shift
1622 handling. Also ignore any MouseMove events generated together with
1623 MouseDown events - we are only interested in the real motion event.
1624 Fixes part of #414963.
1626 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
1628 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
1629 is selected. [Fixes bug #414143]
1631 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
1633 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
1634 and not the parent one (the propertyowner). Fixes the behavior of
1635 GetConverter/GetEditor.
1638 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
1640 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
1641 [Fixes part of bug #415452]
1643 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
1645 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
1646 GridEntry, not the current.
1649 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
1651 * TextBoxBase.cs: De-internalize max_length field.
1652 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
1653 share the same logic.
1656 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1658 * ListBox.cs: Selection changes made in the MouseDown handler should
1659 use the *Core versions of selection in SelectedIndices collection,
1660 since the SelectedIndexChanged/SelectedValueChanged events are fired
1661 until we get a MouseUp event, and thus we need to separate the logic
1662 from the events, as done in the keyboard navigation. Also, fire those
1663 selection events from keyboard navigation in SelectionMode.None, even
1664 if we don't have a selection, as .Net does.
1666 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
1668 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
1669 last change introduced when an item is clicked but isn't on a toolstrip.
1671 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1673 * ListBindingHelper.cs: When looking for an object's properties, check
1674 if it implements ICustomTypeDescriptor, in which case we should
1675 resolve the propertu based on its GetProperties method, not in its
1676 actual properties. This is what .Net seems to do.
1677 Fixes a UsingWebBrowser problem during initialization.
1679 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1681 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
1682 sitting on a MenuStrip.
1684 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1686 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
1687 no children with the keyboard, we need to release the keyboard capture.
1690 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1692 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
1693 no children with the keyboard, we need to release the keyboard capture.
1696 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
1698 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
1699 the GTK+-based implementation of VisualStyles.
1700 * ThemeWin32Classic.cs: Exposed various layout values for use in the
1701 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
1702 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
1703 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
1704 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
1705 TrackBarHorizontalTrackHeight.
1707 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
1709 * TabControl.cs: Added hot style handling for the scroll buttons.
1710 right_slider_state, left_slider_state are now of type PushButtonState to
1711 allow for a hot state. Added tracking of the mouse button being held down
1712 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
1713 LeftScrollButtonArea.
1714 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
1715 TabControlGetRightScrollRect.
1717 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1719 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
1722 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
1724 * Form.cs: Ensure that we reset the shown_raised flag after
1725 the form is closed, so that we raise the show events the next
1726 time the form is shown.
1729 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
1731 * Form.cs: Ensure closing events are raised only once.
1734 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
1736 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
1737 so that we can successfully generate the LParam in-place instead of
1738 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
1739 navigation for menus.
1741 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1743 * MenuAPI.cs: When montion don't set the keyboard navigation state to
1744 'navigating'. Fixes bug #411356.
1746 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1748 [Fixed remaining issues of #406773 (#1)]
1749 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
1751 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
1752 MainMenu (already done) and ContextMenu creation.
1754 * ContextMenu.cs: Create tracker on construction.
1756 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1758 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
1759 possible to instantiate MenuTracker without GrabControl.
1761 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1763 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
1765 * MainMenu.cs: Set GrabControl on SetForm using current form.
1767 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1769 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
1771 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1773 * MenuAPI.cs: Check if menu is activated before deactivate it in
1776 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
1778 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
1780 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
1781 - One style instance can only participate in a single style collection.
1782 - Styles can request their owner to layout whenever their properties
1784 [Fixes bugs #412583 and #412582]
1786 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
1788 * X11Keyboard.cs: Implement the generation of the LParam for
1789 all keyboard messages.
1792 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
1794 * ListBox.cs: Don't let the user set TopIndex so high that it
1795 scrolls up far enough to show empty items.
1798 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1800 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
1801 (I'm an idiot and forgot to commit the actual changes, as well as
1802 specify the right file, which is this one, not ListView.cs).
1804 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1806 * ListView.cs: Don't draw ListViewSubItem instances from
1807 DrawListViewItem - we need to reuse the main item's drawing for the
1808 first sub item in case owner draw is true, but wants the system to
1809 do the default draw for the first sub item, without incurring in a
1813 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
1815 * ToolStripButton.cs: Update Checked for CheckOnClick before
1816 raising the Click event. [Fixes bug #412505]
1818 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
1820 * Form.cs: Remove some seems leftover code for non-TopLevel's
1821 CreateParams, which is breaking ClientSize sizing, because it
1822 removes the border window styles.
1824 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
1826 * PropertyGrid.cs: Invalidate the View when the PropertyTab
1829 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
1831 * WebBrowser.cs: Removed debug output.
1833 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
1835 * FileDialog.cs: Apply patch from Ernesto to clean up some
1838 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1840 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
1841 that the change has an immediate effect.
1843 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1845 * ScrollableControl.cs: Update PerformLayout calls to include
1846 provide the name of the property that changed.
1848 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1850 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
1851 location. Fixes drawing of border and cell borders if scrollable.
1853 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1855 * ScrollableControl.cs: Perform layouting after the AutoScroll
1856 properties have changed, so that the changes have immediate
1860 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1862 * XplatUIX11.cs: Non Client area is actually Client such in the
1863 case of NotifyIcon, so double check WholeWindow == ClientWindow
1864 when adding an expose.
1865 [Fixes bugs #324237 and #357022]
1867 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1869 * TableLayoutPanel.cs: Invalidate after layouting, so that we
1870 repaint the cell borders.
1872 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1874 * PropertyGridTextBox.cs: Stop filtering messages prior to our
1875 disposal to avoid unexpected ObjectDisposedExceptions.
1877 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
1879 * TableLayoutPanel.cs: Layout on Row/Column count change.
1881 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
1883 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
1885 * PictureBox.cs: When ImageLocation is set to null or an empty string,
1886 only set image to null if it was previously initialized from an url
1887 (or using ImageLocation). In ImageLocation, load specified image
1888 asynchronously if WaitOnLoad is false. Added support for local file
1889 paths to LoadAsync, and added missing argument check.
1891 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1893 * DateTimePicker.cs:
1894 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
1895 order to set the value as required (which means: when selection
1896 changes for a part being edited, and not before that if not needed).
1897 Also use an enum to describe which part are we using, and use the
1898 selection as a property in PartData, in order to notify the
1899 DateTimePicker owner that we need to end the current edit.
1902 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
1904 * PropertyGridTextBox.cs: Validation should be performed only if we
1905 are focused. We can lose focus for example if the Return key is used
1906 to set the entry and there is an error. When the message box is
1907 displayed we would have validate on click in the message box.
1909 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
1911 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
1912 in order to determine that we are expandable is wrong. There was a bug,
1913 now fixed, in TypeDescriptor that was causing the wrong converter to be
1914 returned which caused GetPropertiesSupported == false in most cases.
1917 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
1919 * ImageList.cs: Fix ICollection.CopyTo implementation for
1920 ImageListCollection. [Fixes bug #409169]
1922 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1924 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
1925 WorkingArea so that menus can appear on the second monitor
1926 when one has dual monitors.
1928 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1930 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
1933 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1935 * TextBox.cs: Implement navigation support for auto complete in
1936 TextBox, as well as refactor the code to show the auto complete window
1937 when receiving a WM_CHAR message, instead of TextChanged, since
1938 autocomplete itself should be able to set the Text a lot of times and
1939 finally only typing should show it, not changes from code.
1941 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1943 * TabControl.cs: When expanding the selected tab, don't adjust the
1944 width if alignment is Right, since it has a different offset than 0,
1945 as opposed to the other alignments.
1946 Fixes the selected tab not being painted at all with alignment = Right
1947 and using FillToRight size mode.
1949 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1951 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
1953 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1955 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
1956 values from the textbox to the boundary values. [Fixes bug #409026]
1958 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1960 * TreeNodeCollection.cs: We were copying one too many elements when
1961 doing our array copy. Fixes a crash when RemoveAt is called.
1964 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1966 * TabControl.cs: When doing the layout and need to call FillRow -using
1967 FillToRight size mode-, use the overload receiving a bool param
1968 indicating whether we need to do a vertical or horizontal calculation.
1969 Fixes part of #399583.
1971 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1973 * TextBox.cs: When painting, use the value returned by
1974 GetLastVisibleItem instead of using the cached last_item field, since
1975 there could be a desynchronization between the layout and the
1976 painting. Fixes a AOOR exception in auto complete mode.
1978 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
1980 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
1981 NonClientAreaEnabled until our VisualStyles is modified to allow it.
1983 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
1985 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
1987 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1989 * TextBox.cs: When focus is lost, if the auto complete listbox is
1992 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
1994 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
1995 tracking size for tool windows.
1996 * Theme.cs, ThemeWin32Classic.cs : Extracted
1997 ManagedWindowSpacingAfterLastTitleButton.
1999 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2001 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2002 They are bit-rotted and have always been listed as "unsupported".
2004 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2006 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2008 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2010 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2012 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2014 * ListBox.cs: Make sure last_item_visible gets reset before we try
2015 to do a layout due to scrollbars appearing or disappearing.
2018 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2020 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2021 for different window themes. [Fixes bug #339140]
2023 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2025 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2026 in ManagedWindowBorderWidth.
2028 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2030 * InternalWindowManager.cs: Change MouseMove to take a point, so
2031 we can use the same point later on.
2032 * MdiWindowManager.cs: Store point sent to MouseMove so we can
2033 later reset to it. On Windows, the Cursor.Position had already
2034 changed by the time we were resetting to it.
2037 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2039 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2041 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2045 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2047 * MdiWindowManager.cs: Double-clicking on the title bar should not
2048 maximize a MDI form if MaximizeBox = false.
2050 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2052 * ThemeVisualStyles.cs: Fixed a warning.
2054 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2056 * ThemeVisualStyles.cs: Fixed warnings and formatted.
2058 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2060 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2061 implementation produces a better result.
2063 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2065 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2068 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2070 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2071 cannot be used from the ThemeEngine constructor.
2072 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2073 Application.VisualStylesEnabled because it does not work on X11.
2075 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
2077 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2078 that we did not always check for, as well as fixes to the IList
2079 implementations. [Fixes bug #402703]
2081 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2083 * IDeviceContext.cs: Added Dispose.
2085 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2087 * Control.cs: Added OnSizeInitializedOrChanged.
2088 * Form.cs: OnLoadInternal: Added a call to
2089 Control.OnSizeInitializedOrChanged.
2090 * InternalWindowManager.cs:
2091 * HandleTitleBarMouseMove: No longer invalidates the parent window.
2092 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2093 * TitleButton: Added Entered.
2094 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2095 * MdiWindowManager.cs:
2096 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2097 move over the maximized title buttons causes a change.
2098 * IsActive: Can now be called before the window is added to a MDI parent.
2099 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2100 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2101 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2102 * ThemeWin32Classic.cs:
2103 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2104 * DrawTitleButton takes a new form parameter.
2105 * Added ManagedWindowTitleButtonHasHotElementStyle,
2106 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2108 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2110 * ThemeEngine.cs: ThemeVisualStyles is now selected if
2111 Application.EnableVisualStyles has been called, even if the current system
2112 configuration does not support rendering with Visual Styles.
2113 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2114 Styles should not be used.
2116 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
2118 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
2119 ComboBox in FormsTest.
2121 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
2123 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
2124 for fixed toolwindows.
2126 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
2128 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2130 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2132 * Control.cs: CreateControl just returns if the Control is diposed
2133 and doesn't throw ObjectDisposedException.
2136 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2138 * Control.cs: Do not create the control if the parent isn't created
2139 yet, e.g in the case of a parented form on which .Show is called.
2140 It will be created when the parent is made visible/created.
2143 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2145 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
2146 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2149 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2151 * Form.cs: When disposed set owner to null. Improves #402446.
2153 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2155 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
2156 use children's PreferredSize if in AutoSize mode and ExplicitBounds
2158 * Form.cs: Take the Padding into account for the PreferredSize.
2161 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2163 * TabControl.cs: Since we don't support more than one direction in
2164 TabControl rows alignment (this is, the row becomes the
2165 bottom row when selected), make Direction return always 1. This way
2166 the layout doesn't get confused about a bad calculation.
2169 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2171 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
2172 so that the wparam is properly set.
2173 Fixes form moving in the test case in bug 402446.
2175 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
2177 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2178 the full tree instead of nothing. [Improves bug #406584]
2180 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2182 * ThemeWin32Classic.cs: Adjusted minimized window painting.
2184 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2186 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2189 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
2191 * TreeView.cs: Add a null check when using CollapseAll on an
2192 empty tree. [Fixes bug #406449]
2194 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2196 * Form.cs: Make OnMenuComplete internal so we can call it.
2197 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2200 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2202 * TabControl.cs: Handle Up and Down keys when TabControl is in
2206 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2208 * TabControl.cs: Invalidate when we remove a tab. Guard against
2209 an AOORE when trying to remove a tabpage that is not owned by the
2213 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2215 * ScrollBar.cs: Change the LargeChange calculation to be correct.
2216 Ensure we are using LargeChange instead of large_change so we our
2217 calculations are correct.
2220 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2222 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2223 we need to ensure the ColumnCount/RowCount gets set.
2226 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2228 * ListBox.cs: When handling item navigation, if selection mode is
2229 None, call EnsureVisible, since scrolling is normally handled by
2230 selection, that we are not calling in this case.
2233 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2235 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2236 a null check to our focus walking code. [Fixes bug #394332]
2238 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
2240 * ComboBox.cs: Case missed in bug 379596 "Support item
2241 navigation by entering text": On _close_ drop-down select
2242 the first item matching the text in the textbox. [Fixes bug #397265]
2244 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2246 * DataGridView.cs: Fix a crash when sorting by column headers,
2247 mentioned in bug #404841. Remove some dead switch cases.
2249 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2252 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2253 uses the AutoComplete support in the internal TextBox. Also TextBox
2254 can store a reference to ComboBox, in case AutoCompleteSource is set
2255 to ListItems (this is, ComboBox's items, and we don't want to pass an
2256 additional collection).
2258 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2260 * ListViewItem.cs: Restore the initial value of bounds rect to
2261 Rectangle.Empty, and is this value for Layout detection in virtual
2262 mode. Fixes the tests.
2264 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
2266 * XPlatUI.cs: Remove references to "new" X11 backend.
2268 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2270 * Control.cs: Add an internal virtual OnDragDropEnd method
2271 to allow controls such as ListBox, which depend on a sequence
2272 of MouseDown+Move+End events, to handle the lack of a MouseUp
2273 when a DnD operation is started in MouseDown.
2274 * ListBox.cs: If a DnD operation is started in MouseDown we won't
2275 get a MouseUp, so reset our state whenever a DnD operation ends.
2277 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2279 * PropertyGrid.cs: Clear the root griditem first thing when
2280 new object/s is/are selected. Fixes some rare cases where
2281 the View will get a paint request and won't know that the
2282 grid is in the process of repopulating.
2284 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2286 * XplatUIX11.cs, InternalWindowManager.cs:
2287 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
2288 doesn't automagically update the FormBorderStyle, so we must
2289 double check the CreateParams explicitly to determine if the
2290 window is a toolwindow.
2291 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
2292 instead of doing custom checks.
2294 Fixes toolwindows for the test case in bug #402446
2296 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2298 * Control.cs: Visibility of the control should be false
2299 when the handle is destroyed in WmDestroy and not immediately
2300 in Dispose(). This is effectively where the disposing process
2301 ends even though the control is marked as Disposed immediately
2302 after calling Dispose().
2305 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2307 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
2308 when the textbox gets focus.
2311 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2313 * PropertyGridTextBox.cs, PropertyGridView.cs:
2314 - Alt + Down should show the drop down editor.
2315 - Focus the editor when showing it
2318 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
2320 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2321 that are not the first panel.
2322 * StatusBar.cs: Ensure that the X coordinate of panels is always
2323 stored. Fix IList implementation of StatusBarPanelCollection to
2324 call the regular methods.
2325 [Fixes bug #403599, #402165]
2327 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
2329 * ThemeWin32Classic.cs: Fix position calculation for centered
2330 text on status bar panels. [Fixes bug #402165]
2332 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2334 * Splitter.cs: Fix Splitter to:
2335 - Work for arbitrary splitter size
2336 - Handle MinSize and MinExtra properly
2337 - Get rid of absolute positioning during drag and use relative
2338 - Multiple other fixes
2341 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2343 * Cursor.cs: Show shouldn't hide the cursor.
2345 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2347 * ListViewItem.cs: When invalidating, add some extra space to bounds,
2348 since focus rectangle and selection can add some space and need to
2349 take into account those small offsets - specially in Details view.
2350 * ListView.cs: Instead of invalidate using item Bounds directly, call
2351 item.Invalidate, to have the code centralized.
2352 Fixes focused/selection garbage when selecting and deselecting items
2355 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2357 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2358 mode we can check whether we have to force a Layout or not, and can
2359 cache based on this, instead of avoiding caching all the the time. Do
2360 this check in GetBounds and TextBounds.
2361 Fixes selection in Details view.
2363 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2365 * ListView.cs: Make HeaderControl internal, thus the theme engine can
2366 get its *real* height instead of trying to infere it.
2367 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2368 get the position of them, since it's in general a bad idea in general,
2369 and because we can't do that in virtual mode. Instead get the first
2370 visible item as well as item height, and draw them.
2373 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
2375 * ToolStripSplitButton.cs: We can't add in extra width if
2376 the button is not AutoSize. [Fixes bug #401279]
2378 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
2380 * PaddingConverter.cs:
2381 - Implement conversion to InstanceDescriptor
2382 - Handle "All" in CreateInstance by using the supplied
2383 ITypeDescriptorContext.
2384 [Fixes bugs #396076 and #396078]
2386 Patch by Andy Hume <andyhume32@yahoo.co.uk>
2387 Code contributed under MIT/X11 license.
2389 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
2391 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
2393 Add Category attributes.
2394 Code is contributed under the MIT/X11 license.
2396 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
2399 - Fix a NRE when unparenting a form.
2400 - Do not recreate or destroy a parented form when
2403 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2405 * TextBox.cs: Implement basic support for AutComplete with custom
2408 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
2410 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
2411 DropDownButtonBounds should be from the origin of the button, not the
2412 ToolStrip. [Fixes bug #401279]
2414 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
2416 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
2417 running gtk_init_check. This prevents GAIL from loading
2418 unnecessarily, which was breaking UIA support. Initial fix for bug
2420 * Application.cs: Add UIA support to Winforms. New static constructor
2421 uses reflection to initialize UIAutomationWinforms assembly. Added
2422 PreRun event so UIA can initialize before the mainloop starts, and
2423 FormAdded event so UIA can provide a11y support for new Forms in an
2426 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
2428 * DataGridView.cs: When binding to a dataset, subscribe to table
2429 and column change events. Unsubscribe to these when we clear bindings.
2432 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
2434 [DataGrid drawing refactory]
2436 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
2438 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
2439 must be handle by Theme, now it call DataGridPaintColumnHeader.
2441 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
2442 test cases must be also fixed because it checks for wrong size.
2444 * ThemeWin32Classic.cs:
2445 - Draw the bottom line of grid caption.
2446 - Prevent to draw caption text when it is empty.
2447 - Use CPDrawBorder3D for 3D efects to simplify code.
2448 - Uses 3D (when not flat) to paint corner shared between row and column
2450 - Fix header drawing issues on win32, now borders are drawing.
2451 - Fix column header paint issues to mimic win32.
2452 - Adjust header drawing for last column, like first one it must be draw
2454 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
2456 - DataGridPaintColumnHeader created to draw column headers, it also
2457 paint stuff right on Win32.
2458 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
2462 - DataGridPaintRowHeaderStar method added.
2463 - DataGridPaintColumnHeader method added.
2465 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
2467 * Control.cs: Don't reset to Dock style layout if DockStyle is
2468 set to none. [Fixes bug #399316]
2470 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
2472 * Win32DnD.cs: Fix the check for control not equal null.
2473 Fixes bug #341420 and #381886.
2475 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2477 * DataGridViewRowCollection.cs: Update the indexes of rows after
2478 one has been removed.
2479 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
2480 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
2481 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
2482 rows for the Rows collection, or deleting rows from the bound DataSet.
2484 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2486 * DataGridView.cs: Listen to a DataSet's changed event even
2487 when autogeneratecolumns is false. Refactor the changed event's
2488 add row code to use the same as the existing add row code.
2491 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2493 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
2494 much any time the caret moves and there is text, not just when
2495 the selection changes as one would think.
2496 * RichTextBox.cs: Override RaiseSelectionChanged and fire
2500 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2502 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
2503 instead of trying to duplicate the code.
2504 * ListBox.cs: Make method internal so we can send keyboard events.
2507 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2509 * TextBoxBase.cs: When pasting and checking the max length,
2510 subtract the selected text length (the text we will be replacing) from
2511 the document length.
2512 * TextControl.cs: Ensure every character insertion is reflected in
2513 charcount, so max length will work properly.
2516 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2518 * ListBox.cs: Ensure scrollbars are updated when a single
2519 column listbox with an already set top-index is created.
2522 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2524 * FontDialog.cs: Typing in the font/style textboxes should search
2525 the list boxes case-insensitively. [Fixes bug #398343]
2527 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
2529 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
2530 widths of icon and buttons instead of hard coded values.
2532 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2534 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
2535 as well as generating a SelectedIndexChanged event, just like .Net does
2539 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2541 * ListBox.cs: When navigating items visually, use FocusedItem as the
2542 reference point instead of SelectedIndex, since even in
2543 SelectionMode.None we need to support navigation, and in that case we
2544 just can't use SelectedIndex.
2545 Fixes part of #398345.
2547 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
2549 * Control.cs: Make a SetBoundsInternal that avoids the new
2551 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
2552 SetBoundsInternal instead of SetBoundsCoreInternal.
2554 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
2556 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
2557 SetBounds for the scrollbars.
2559 2008-06-10 Andreia Gaita <avidigal@novell.com>
2561 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
2562 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
2563 OnMouseMove, OnMouseOver, OnMouseUp
2564 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
2565 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
2566 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
2567 to the WebControl object to pass to new collection objects
2568 * HtmlHistory.cs: Implement support for individual window histories.
2569 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
2570 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
2571 GotFocus, LostFocus, OnLoad, OnUnload
2572 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
2574 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
2575 security level changes and context menu event support.
2577 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2579 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
2580 as happens with Esc, patch my Andy Hume.
2583 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2585 * MdiWindowManager.cs: DrawMaximizedButtons now uses
2586 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
2587 * Theme.cs: Made MenuButtonSize platform dependent. Added
2588 ManagedWindowButtonSize.
2589 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
2590 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
2592 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2594 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
2595 Added support for rendering with VisualStyles.
2597 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2599 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2600 support for rendering the border with VisualStyles.
2602 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2604 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
2605 the icon is not shown.
2606 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
2609 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2611 * InternalWindowManager.cs: Draw minimized windows even if they don't have
2614 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
2616 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
2618 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
2620 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
2623 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2625 * ComboBox.cs: When snaping height -because of IntegralHeight set to
2626 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
2627 if the requested height leaves the listbox area with *less* than the
2628 required are to see one item. We were setting it to PreferredHeight
2629 even for values matching the height for a single item.
2632 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
2634 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
2636 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
2638 * DataGridViewCell.cs: Use property instead of field.
2640 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2642 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
2645 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2647 * Theme.cs: Added #region around the managed window code. Made the managed
2648 window methods abstract.
2649 * ThemeWin32Classic.cs: Added #region around the managed window code.
2651 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2653 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
2655 * ThemeWin32Classic.cs: Removed HasBorders checks in
2656 DrawManagedWindowDecorations.
2658 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2660 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2661 Extracted ManagedWindowGetTitleBarIconArea.
2663 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2665 * DataGridViewCellStyle.cs: Don't clone the font.
2667 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2669 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
2671 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2673 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
2674 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
2677 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2679 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
2680 Use Format/FormatProvider before trying converters.
2681 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
2682 are 'set'. Change constructor to not use ApplyStyle since it wants
2683 everything applied. Clone the Font.
2684 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
2685 ApplyStyle the rest.
2687 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2689 * ListView.cs: We need to calculate the scrollbars even if the handle
2690 hasn't been created - this is needed when methods using scrollbars
2691 info, such EnsureVisible, are called before control has been created.
2694 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
2696 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
2697 only if the elements are defined.
2699 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2701 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
2702 section. Also, when setting bounds, snap height as well as save the
2703 requested height if Dock has any value affecting the height: Left,
2704 Right and Bottom - important if using IntegralHeight as true.
2706 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2708 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
2709 passed to SetBounds to reflect the new adjusted height (Integral-wise),
2710 instead of doing that only in our SetBoundsCore override, since the
2711 bounds cached can be the same as saved one and we could not get the
2715 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2717 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
2718 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
2719 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
2720 ToolWindowCaptionButtonSize.
2721 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
2723 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2725 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
2727 * Theme.cs: Made DoubleClickTime plaform dependent.
2729 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2731 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
2732 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
2733 ToolWindowCaptionHeight.
2735 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2737 * InternalWindowManager.cs: The adjustment to ensure positive client area
2738 sizes is now platform dependent (disabled on Windows).
2739 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
2740 RequiresPositiveClientAreaSize.
2742 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2744 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
2746 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2748 * InternalWindowManager.cs: Changed IconicSize to use
2749 SystemInformation.MinimizedWindowSize.
2750 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
2751 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
2753 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2755 * ComboBox.cs: If the combobox is anchored both on top and bottom,
2756 adjust height if IntegralHeight is true when calling SetBoundsCore (as
2757 likely the height was modified even if Height wasn't specified in
2758 BoundsSpecified parameter).
2759 Fixes part of #396297.
2761 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2763 * InternalWindowsManager.cs: Changed minimum window size while resizing to
2764 SystemInformation.MinWindowTrackSize.
2765 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
2766 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
2768 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
2770 * MenuItem.cs: Fixed Dispose.
2772 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
2774 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
2775 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
2776 EnteredHeaderCell, PressedHeaderCell: Added.
2777 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
2778 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
2779 theme a chance to override default painting.
2780 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
2781 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
2782 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
2783 ListView and DataGridView header rendering.
2785 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
2787 * RichTextBox.cs: GetPositionFromCharIndex should return the
2788 visual position of the character relative to the viewport.
2789 [Fixes part of bug #396664]
2791 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
2793 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
2794 and not just for the existance of an UITypeEditor. In some cases
2795 there is an editor associated just to do PaintValue, but which
2796 doesn't actually support editing.
2799 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2801 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
2802 if needed, instead of 0 - this should help us in the corner case where
2803 we have more than one item but we are only partially showing 1 item.
2804 Fixes part of #374713.
2806 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2808 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
2809 control, return immediately if the any parent control's handle hasn't
2810 been created or isn't visible, as well as avoiding creating the parent
2811 Form if the handle hasn't been previously created.
2814 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
2816 * TableLayoutPanel.cs: Use border sizes when calculating the
2817 panel's preferred size. [Fixes part of bug #396433]
2819 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
2821 * SplitContainer.cs:
2822 - Fix SplitterDistance to update only if needed.
2823 - Make it force min and max validation.
2824 - Handle properly mouse moves outside the resizeable area.
2827 2008-06-02 Andreia Gaita <avidigal@novell.com>
2829 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
2830 (which also suppresses all popup dialogs). Throw NotSupported
2831 exceptions for activex getters/setters.
2832 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
2833 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
2834 StatusText, Version, GoSearch
2835 * HtmlDocument.cs: Add DocType support
2837 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
2839 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
2842 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
2844 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
2846 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
2848 * TableLayoutPanel.cs: When calculating preferred size, use the
2849 actual number of columns and rows, not what the user set them to.
2852 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
2854 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
2857 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2859 * XplatUIX11.cs: When detecting areas obscured in a control by other
2860 toplevel windows while scrolling, return if the control hasn't a
2864 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2866 * XplatUIX11.cs: Properly detect the visible area of a control being
2867 scrolled (obscured by other winforms controls and any X toplevel
2868 windows), to mark as invalid the requested area to be scrolled that
2869 isn't visible and thus can't be copied.
2872 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2874 * ListBox.cs: Compute the precise amount to vertically scroll when
2875 using DrawMode.OwnerDrawVariable.
2876 Patch by jkeymer (j.keymer@gmx.net).
2878 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2880 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
2881 to avoid setting an invalid value for the verticall scrollbar
2882 when navigating items. And, duh, also remove my silly debug messages
2883 from previous commits.
2886 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
2888 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
2889 make it MS compatible.
2891 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
2893 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
2894 - Allow the editing of entries even if their parent is read-only.
2895 - Do not render expandable properties read-only.
2896 - Refactor expansion checks form PropertyGrid into PropertyGrid.
2898 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
2900 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2901 support for the hover style.
2903 2008-05-29 Andreia Gaita <avidigal@novell.com>
2905 * ContainerControl.cs: Check for null dead-end when traversing the tree
2908 [Fixes #394332, patch by Ernesto Carrea]
2910 2008-05-29 Geoff Norton <gnorton@novell.com>
2912 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
2913 constant that it is. Fixes #393981
2915 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
2917 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
2918 that the user probably doesn't want to set this.
2920 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
2922 * ThemeWin32Classic.cs: Don't let the text size be bigger than
2923 the control size for CheckBox/RadioBox.
2924 [Fixes part of bug #394645]
2926 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2928 * PropertyGrid.cs: Update the state of the sorting buttons in
2929 the toolbar if PropertySort is set programatically.
2931 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2933 * GridItemCollection.cs: Add multiple items with conflicting names
2934 support and also preserve name ordering.
2937 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2939 * GridItemCollection.cs: Revert my multiple items with same
2942 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2944 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
2946 Fixes part of #393908.
2948 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
2950 * ToolStripDrowDown.cs: When using the Show () methods that have a
2951 Control parameter, set the menu owner to that Control.
2954 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
2956 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
2959 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2961 * GridItemCollection.cs: Refactor to support multiple items with the
2965 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
2967 * Control.cs: The 2.0 check for illegal cross thread calls in
2968 Control.Handle were throwing an exception when we were getting
2969 the Handle in order to invoke correctly. Created a private
2970 version that does not contain this check.
2973 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2975 * PropertyGrid.cs: Respect DefaultTabType.
2977 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2979 * ListView.cs: SPACE selects an item.
2982 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2984 * ListView.cs: Reset the search string whenever the items are
2988 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2990 * ListControl.cs: For the first added item PositionChanged is fired
2991 _before_ ItemChanged, which leave us in a temporary invalid state - so
2992 we need to set the selected index from ItemChanged handler *if* we
2993 know that the first item has just been added *and* the items have been
2994 actually added to the ListControl.
2997 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2999 * TabControl.cs: Only clicks with the left button should be
3003 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3007 * TextBox.cs: Expose an internal method in TextBox to restore the
3008 original context menu, and call it from ComboBox to re-use it in the
3009 combobox containing the file name in FileDialog.cs.
3010 Fixes part of #393775.
3012 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3014 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3017 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3019 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3022 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3024 * ComboBox.cs: Minor correction to previous patch: PageDown should
3025 also *try* to move by one item if the computed offset is negative,
3026 just like the PageUp case.
3028 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3030 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3031 should be done for at least 1 item, and not stay at the same item.
3032 Fixes part of #374713.
3034 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
3036 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3037 directories. [Fixes bug #393931]
3039 2008-05-22 Andreia Gaita <avidigal@novell.com>
3041 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3042 Don't fire events until the initial about:blank page has finished
3043 loading. Clean up events.
3045 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3047 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3048 FocusIn() too. This should fix the issue on switching
3051 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3053 * X11Keyboard.cs : set XIM font size to somewhat reasonable
3054 number (ideally the input textbox size, but that could be
3057 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
3059 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3060 the ToolStripItem's TextChanged. [Fixes bug #393597]
3062 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3064 * TabControl.cs: When invalidating in SelectedIndex and we need to
3065 inflate to take into account the border of the tabs, make sure that
3066 the invalidated rect doesn't overflow the control bounds, since that
3067 would avoid updating at all.
3069 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3071 * TabControl.cs: Don't substract scroller width from the row width,
3072 since we need to take into account the total width of the control when
3073 calculating the position of the tabs. This avoids showing scroller
3074 when it is actually not needed.
3075 Fixes part of #322325.
3077 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3079 * ThemeVisualStyles.cs: Added support for TextBoxBase.
3081 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3083 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3084 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3086 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3088 * DataGridView.cs: Only paint the top left header cell if there
3091 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3093 * DataGridView.cs: When binding to a BindingSource, get the underlying
3094 list to bind to. [Fixes bug #345483]
3096 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3098 * DataGridView.cs: Do not bind to collection properties.
3101 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3103 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3105 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3107 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3110 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3112 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3114 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3116 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3119 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3121 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3123 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3125 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3128 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3130 * TabControl.cs: Extended to handle the hot style.
3132 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3134 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3135 Extended UpDownBase code to handle hot and disabled styles.
3137 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3139 * DataGridView.cs: Handle databinding to generic list type things.
3142 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3144 * DataGridViewCellCollection.cs: Add a method to find the cell
3145 with the given DataPropertyName.
3146 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3147 * DataGridViewColumnCollection.cs: Add a method to clear all
3148 autogenerated columns.
3149 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3153 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3155 * DataGridView.cs: Don't try to update the RowTemplate with
3156 a null CellTemplate.
3158 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3160 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3161 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3162 * DataGridView.cs: Lots of fixes/enhancements to databinding to
3165 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3167 * Control.cs: Remove invalidating implicit child controls when
3168 control is invalidated. It was causing too many redraws on
3169 controls with implicit scrollbars.
3170 * ListView.cs: Listen to the Invalidated event and invalidate
3173 2008-05-20 Andreia Gaita <avidigal@novell.com>
3175 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3176 * HtmlDocument.cs: Check for nulls
3178 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3180 * Control.cs: In ControlCollection.RemoveInternal, remove the
3181 internal control before calling PerformLayout and OnControlRemoved,
3182 which was leaving us in an invalid state and causing a X error (bad
3183 match). Observe that Remove () call has the same order.
3184 Fixes an X error changing ComboBoxStyle.DropDownStyle.
3186 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3188 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3189 being fired if ControlStyles.UserPaint style is activated.
3192 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3194 * GridEntry.cs: Don't be so strict when setting the value -
3195 do not check if what we set is what we get.
3198 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3200 * XplatUIX11.cs: If there are no timers timeout should be 0
3203 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3205 * Control.cs: As a followup to invalidating implicit children when
3206 a control is invalidated, only invalidate them if they are in the
3209 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3211 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3213 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3215 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3217 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3219 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3220 * XplatUIWin32.cs: Made Win32DeleteObject public.
3222 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3224 * GridEntry.cs: Determine HasDefaultValue more strictly by using
3225 PropertyDescriptor.ShouldSerializeValue.
3228 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3230 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3231 in the classic theme.
3233 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3235 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3237 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3238 ScrollBarHasPressedThumbStyle.
3240 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3242 * TextRenderer.cs: Included some methods in the 1.1 profile.
3244 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3246 * Control.cs: When we make a control visible, it may have been
3247 previously visible and while it wasn't visible, the z-order of
3248 things may have been shuffled, so the control needs to have its
3249 z-order updated just in case. [Fixes bug #391518]
3251 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3253 * ThemeVisualStyles.cs: Added support for GroupBox.
3255 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3257 * GroupBoxRenderer.cs: Included in the 1.1 profile.
3259 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
3261 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3262 bug #389996; XSelectInput() behaved as mouse handler robber,
3263 so remove extra call to it.
3265 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3267 * Control.cs: Simplify ControlCollection.Contains method.
3269 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3271 * DataGridViewRow.cs: Implement GetPreferredSize.
3273 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3275 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
3277 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3279 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3280 painting and edit control fixes.
3282 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3284 * DataGridView.cs, DataGridViewCell.cs: Work around some external
3285 checks to make sure we are in an actual row/col for top left header cell.
3286 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3288 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3290 * Control.cs: Use long instead of int when handling WParam from
3291 mousewheel scrolling. Int was overflowing on Win64.
3293 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3295 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3296 flow panel without scrolling first, and then calculate the
3297 scrolling based on the new layout. [Fixes bug #390149]
3299 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3301 * ListBox.cs: Invalidate after scrolling up when selected index
3302 changes. [Fixes bug #390151]
3304 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3306 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3307 set, default height to 150. I tried first with DefaultSize, but this
3308 is not generating a SetBoundsCore call before handle creation time, so
3309 we can take it into account. This is just what .net does.
3311 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3313 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3314 as it broke some stuff. Calberto is filing a bug for eno to
3317 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3319 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3320 to 0 is the current value is -1, and if style is not Simple, just
3321 return, like .net does.
3322 Fixes part of #374713.
3324 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3326 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3327 progress bar stuffs, use doubles instead of ints to prevent
3328 overflow. [Fixes bug #389798]
3330 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3332 * XplatUIX11.cs, X11Keyboard.cs :
3333 Significant refactoring on XIM support. Now IM engine UI
3334 should show up, at mostly-correct preedit position.
3335 - Eliminated use of FocusWindow, as it is never mapped
3336 and hence blocks correct preedit position. XIC is now
3337 created per window, and it must be destroyed too when
3338 the window is destroyed.
3339 - WM_QUIT messages should not be filtered even when hwnd
3340 is zombie. Filtering it could cause endless loop.
3341 - Preedit position must move only when the window is alive.
3342 - Make it IDisposable and make sure to release XIM/XICs.
3344 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3346 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3347 XplatUIX11.cs, XplatUIWin32.cs :
3348 fix for bug #325033 and #387693;
3349 - WM_QUIT should not be sent when no running application
3351 - SetTimer/KillTimer (especially on win32) should be
3352 invoked for the window that the timer is/will_be attached.
3353 - There could be unattached timers to a window when it's
3354 started. For those timers, hold pending timers and when
3355 a window is mapped, attach them to it.
3356 - WaitForHwndMessage() could run into loop when
3357 WM_SHOWWINDOW is handled before this method is called.
3358 So, strictly check wm_showwindow state.
3359 - Tick handler should not be invoked while one Tick handler
3360 call is still running (introduced Busy state).
3362 2008-05-13 Andreia Gaita <avidigal@novell.com>
3364 * WebBrowserBase.cs: Override Internal alternative methods for
3365 SetBoundsCore and OnResize instead of the protected ones.
3366 * Control.cs: Move SetBoundsCore and OnResize implementations to
3367 SetBoundsCoreInternal and OnResizeInternal, so they can be
3368 overriden internally (WebBrowserBase needs to catch them but can't
3369 override the protected methods without api compat problems)
3371 2008-05-13 Andreia Gaita <avidigal@novell.com>
3373 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3375 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3378 * ListView.cs: Remove debug messages.
3380 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3382 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3383 area is empty. Also calculate scrollbars in Simple mode based in area
3384 height and total number of items, not in MaxDropDownItems.
3385 Fixes part of #371991.
3387 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3389 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
3391 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3393 * BindingSource.cs: GetListSortDescription is not public.
3395 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3397 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3399 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3401 * HtmlElement.cs: Fix parameter names to match MS.
3402 * HtmlWindowCollection.cs: Should not be sealed.
3404 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3406 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
3407 button, because the thumb button will not get drawn if the scrollbar
3408 is disabled. [Fixes bug #389262]
3410 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3412 * ListBox.cs: Handle End key for multi-column listboxen.
3415 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3417 * ListBox.cs: Fix algorithm to determine which column our item is in.
3420 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3422 * ListBox.cs: Invalidate when the listbox is resized.
3425 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3427 * ListBox.cs: There is always at least one row in the ListBox (if
3428 we are doing these calculations.) [Fixes bug #389253]
3430 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3432 * ListBox.cs: There is always at least one column in the ListBox.
3435 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3437 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
3438 ensure in Simple mode that the height is exactly the requested one.
3439 Also add the ComboBoxListControl to the controls collection in Simple
3440 mode even if handle hasn't been created.
3441 Fixes part of #371991.
3443 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3445 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
3446 our ComboBox owner instead of giving it back to the previous control (
3447 as done in other controls). Also remove the empty override of Select
3448 method, since we want to be selected *and* give focus to our owner.
3449 This should let the user do keys-navigation in Simple mode.
3451 2008-05-10 Geoff Norton <gnorton@novell.com>
3453 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
3454 problems with rapid scrolling of treeviews. Fixes #381084
3456 2008-05-10 Geoff Norton <gnorton@novell.com>
3458 * XplatUICarbon.cs: Deactivate the active window before
3459 activating the desired window. Completes fixing #386504
3461 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3463 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
3464 SmallChange to the item size width plus the padding, to match .net.
3466 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3468 * FileDialog.cs: Apply the custom filter typed by the user in the file
3469 name combobox as much as possible while navigating in the file dialog.
3472 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3474 * Binding.cs: Actually use NullValue if the retrieved value of
3475 data source is null or DBNull. Makes a test pass.
3477 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
3479 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
3480 * MimeIcon.cs: Provide a way to get icons from resources.
3482 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3484 * Binding.cs: When the value retrieved from the control to be assigned
3485 to the data source is null, actually use the 2.0 DataSourceNullValue
3486 value. Make pass a data binding test.
3488 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3490 * Control.cs: We need to invalidate implicit children even when
3491 invalidate is called with invalidatechildren = false. (Implicit
3492 children are really part of the parent.)
3493 * ListView.cs: Double-buffer internal child controls for less
3495 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
3496 owner ListView subitems for greatly increased performance.
3499 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
3501 * FileDialog.cs: When the user types a wildcard character in the
3502 filename combobox, update the contents of the folder using the text as
3504 Fixes part of #385261.
3506 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3508 * ListBox.cs: Various fixes for MultiColumn listboxen.
3511 2008-05-08 Andreia Gaita <avidigal@novell.com>
3513 * HtmlElement.cs: Implement Style property
3515 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3517 * ListBox.cs: Respect checkboxes when measuring item size.
3518 * ThemeWin32Classis.cs: When drawing list items, don't draw
3519 text outside of the item's bounds to prevent overlapping.
3520 (.Net actually overlaps, but that's just silly.)
3523 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
3525 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
3526 Gert Driesen. Fixes bug #324830.
3528 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
3530 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
3533 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3535 * BindingSource.cs: When calling IsSynchronized, return the value of
3536 the related IList list.
3538 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3540 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
3543 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
3545 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
3546 navigation to scroll the grid if the current cell is not visible.
3548 2008-05-07 Andreia Gaita <avidigal@novell.com>
3550 * HtmlElement.cs: Implement TabIndex
3552 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
3554 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
3555 properties, even when there are no items.
3558 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
3560 * NativeWindow.cs: Add support for multiple handles per window.
3561 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
3562 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
3563 directly - use FromHandle instead.
3566 2008-05-07 Andreia Gaita <avidigal@novell.com>
3568 * HtmlElement.cs: Implement InnerHTML setter
3570 2008-05-07 Andreia Gaita <avidigal@novell.com>
3572 * HtmlDocument.cs: Implement Focused
3574 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3576 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
3577 methods, as well as add messages to the exceptions.
3579 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3581 * BindingSource.cs: Setting DataSource should only reset DataMember if
3582 the previous value was null (make pass a not working test).
3584 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3586 * BindingSource.cs: When EndInit call is postponed and is called until
3587 DataSource.EndInit is called, remove the handler for data source.
3589 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3591 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
3593 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3595 * ToolStripManager.cs: Store references to toolstrips as
3596 weak references so they do not prevent forms from getting collected.
3599 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3601 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
3602 on .Net. So do the same thing in WndProc.
3604 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3606 * TrackBar.cs: Commit patch from Andy Hume that corrects
3607 the clickable areas to better match .Net.
3610 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3612 * TrackBar.cs: Commit patch from Andy Hume that adds the
3613 ResizeRedraw control flag so the track bar repaints itself
3614 when it is resized. [Fixes bug #387072]
3616 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3618 * TrackBar.cs: Commit patch from Andy Hume that adds better
3619 support for keyboard navigation when the TrackBar is vertical.
3622 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3624 * BindingSource.cs: Implement ISupportInitializeNotification support.
3626 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
3628 * ThemeVisualStyles.cs: Added support for ToolBar.
3630 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
3632 * ToolBar.cs: Made the Vertical property internal.
3634 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3636 * ThemeVisualStyles.cs: Added support for TrackBar.
3638 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3640 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
3641 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
3642 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
3643 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
3644 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
3645 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
3647 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3649 * ThemeVisualStyles.cs: Added support for UpDownBase.
3651 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3653 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
3654 Extracted Theme.UpDownBaseDrawButton.
3656 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
3658 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
3659 removed from the static toolstrips collection in ToolStripManager
3660 when they are disposed. Provides a workaround for bug #386483.
3662 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
3664 * GridEntry.cs: Read-only properties with Editor with
3665 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
3668 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
3670 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
3671 the menu key and there are no items on the menu.
3674 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
3676 * Control.cs: Avoid calling ToString on a string.
3677 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
3678 * GroupBox.cs: In FlatStyle property throw, not just create, the
3679 exception. Avoid calling ToString on a string.
3680 * ProgressBar.cs: Avoid calling ToString on a string.
3681 * ScrollBar.cs: Avoid calling ToString on a string.
3682 [All issues were found using Gendarme]
3684 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
3686 * NotifyIcon.cs: Prevent click events to be trigger after double click
3687 events. Fixes remaining issues of bug #324832.
3689 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
3691 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
3692 to mimic win32 behavior. Partially fixes bug #324832.
3694 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3696 * BindingSource.cs: Implement Find methods.
3698 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3700 * BindingSource.cs: Implement Sort, ApplySort overloads, and
3703 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3705 * ListBindingHelper.cs: When calling GetListItemProperties and the
3706 passed object is ITypedList, return the result of
3707 ITypedList.GetItemProperties instead.
3709 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3711 * LinkLabel.cs: Set default value of name on constructor of Link class
3712 only for 2.0 profile.
3714 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3716 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
3717 Fixes remaining issues of bug #346154.
3719 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3721 * LinkLabel.cs: Set a default value for name on internal contructor of
3722 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
3724 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3726 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
3727 and refer all instances to owner.links. Partially fixes #346154.
3729 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3731 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
3732 length equal zero. Also called CreateLinkPieces in constructor. It fixes
3733 the LinkLabel test 'TestLinkArea'.
3735 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3737 * Form.cs: Remove menu before close form to prevent form to be not gaced.
3740 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3742 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
3745 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3747 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
3750 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3752 * MenuAPI.cs: Remove unused ProcessCmdKey method.
3754 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3756 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
3759 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3761 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
3764 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3766 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
3767 sometimes we open a conext menu on mouse down of some controls and the mouse
3768 up is dispatched to menu and dont need to. It fix remaining issues of
3769 #363711 and other problems related to menu mouse click events.
3771 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
3773 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
3774 some var names to better fit changes, now we have month_menu and today_menu
3775 vars. Fixes bug #363711.
3777 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
3779 * MonthCalendar.cs: Handle every right mouse click to open context menu,
3780 right now the default month menu but it will be change to have "Go to today"
3783 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3785 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
3787 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
3789 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
3791 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3793 * ThemeVisualStyles.cs: Added support for TreeView.
3795 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3797 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
3798 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
3800 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3802 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
3804 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3806 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
3807 Implement 2.0 SP1 stuffs.
3809 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3811 * FileDialog.cs: Implement 2.0 SP1 stuffs.
3813 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3815 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
3816 Implement CanEnableIme property. (2.0 SP1)
3818 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3820 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
3823 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3825 * Control.cs: Provide an internal way for a control to override
3826 the setting of Height.
3827 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
3828 set height using new method.
3830 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3832 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
3834 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3836 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3837 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
3839 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3841 * ThemeVisualStyles.cs: Added support for StatusBar.
3843 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3845 * DataObject.cs: Add the other IDataObject interface.
3847 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3849 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
3850 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
3852 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3854 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
3855 * ListView.cs: Hide non-public API.
3856 * MaskedTextBox.cs: Remove extra attribute.
3858 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3860 * DataGridViewImageCell.cs: Use formatted value instead of value
3861 to calculate preferred size.
3863 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3865 * ListBox.cs: Move some initialization around so that selected_indices
3866 is not accessed before it is created.
3868 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3870 * InputLanguageCollection.cs: Implement the collection better.
3873 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3875 * ToolStripDropDownItem.cs: Get the correct event object for
3876 DropDownItemClicked.
3877 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
3880 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3882 * DataGridViewRowCollection.cs: We don't currently support shared
3883 rows. Should fix test failures caused by previous commit.
3885 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
3887 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
3888 datagridview gets set. Only paint cells in visible columns.
3889 * DataGridViewCell.cs: Draw border after cell content.
3890 * DataGridView.cs: Invalidate after setting some properties. Only
3891 use visible columns. Fit hit test bug with areas in the col/row header
3892 area but not in a row or col. Implement UpdateCell/Row methods.
3894 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
3896 * DataGridViewElement.cs: Don't throw NIEX.
3897 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
3898 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
3899 * DataGridViewCheckBoxColumn.cs: Implement ToString.
3900 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
3901 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
3902 if the user filled in the formatting Value, use it.
3904 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
3906 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
3909 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3911 * BindingSource.cs: Some corrections to Filter property, as well as
3912 setting it for our list when resetting it.
3914 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
3916 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
3917 than the maximum. Fixes reopened bug #384182.
3919 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3921 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
3922 Fixes remaining issues of #367490.
3924 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3926 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
3927 SystemInformation.WorkingArea to get max_screen value.
3929 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3931 * BindingSource.cs: Implement Filter and RemoveFilter.
3933 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3935 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
3937 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3939 * X11Dnd.cs: When trying to convert data and we know we started the
3940 dnd loop, don't try to use the cached data if the loop is not running,
3941 which means that the data has been resetted.
3944 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3946 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
3949 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3951 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
3952 it to drawn off screen edge. Fixes bug #367490.
3954 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3956 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
3957 menu position to have only one assignment of Location var.
3959 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3961 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
3962 for this patch. Fixes bug #384115.
3964 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3966 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
3967 the same. If LargeChange is zero, set a minimum size for the scroll
3968 thumb grip. [Fixes bug #384182]
3970 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3972 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
3975 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3977 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
3979 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3981 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
3982 patch from Ernesto).
3984 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3986 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
3988 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3990 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
3992 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3994 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
3996 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3998 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4000 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
4002 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4004 2008-04-27 Andreia Gaita <avidigal@novell.com>
4006 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4007 supposed to return a reference to an mshtml interface, which we
4009 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4010 reference to an mshtml interface, which we don't support). Code
4012 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4013 DomDocument getter (it's supposed to return a reference to an
4014 mshtml interface, which we don't support). Code formatting cleanup.
4016 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4018 * ListView.cs: Ouch, forgot to commit.
4020 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4023 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4025 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4027 * ListView.cs: When calculating box selection for virtual mode, don't
4028 look for intersection with item's text, but item bounds, since that
4029 would mean read ListViewItem's text for _every_ item, and that's
4030 something we just can't do in virtual mode (items are only requested
4033 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
4035 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4036 partial support for managed windows (based on the patch from Ernesto).
4038 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4040 * ListView.cs: When doing a key search use FindItemWithText method
4041 instead of doing the search by ourselves, this way we avoid
4042 duplicating the code and also we handle the special case for virtual
4043 mode. To achieve that make our private overload of FindItemWithText
4044 internal and also have a 'roundtrip' parameter.
4046 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4048 * ListView.cs: When doing the layout don't request the
4049 ListViewItem instance if we are in virtual mode (since we can't request it
4050 until the item is actully drawn).
4052 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4054 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
4057 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4059 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
4060 the patch from Ernesto).
4062 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4064 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4065 * ThemeVisualStyles.cs: Added.
4067 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4069 * IDeviceContext.cs: Added a missing using.
4071 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4073 * ButtonBase.cs: Made IsDefault protected internal.
4074 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4076 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4078 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4079 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4080 RadioButtonRenderer.cs: Included in the 1.1 profile.
4081 * IDeviceContext.cs: Added.
4082 * TextRenderer.cs: Included a member in the 1.1 profile.
4084 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4086 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4088 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4090 * ErrorProvider.cs: Make the error icons come after the control
4091 they refer to. It isn't the way the MS does it, but its better
4092 than what we were doing. See bug #368587.
4094 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4096 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4097 from Eric Albright that lazy loads the input language as ensures
4098 everything gets properly initialized. Fixes bug #373871.
4100 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4102 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4103 implicit mnemonics. [Fixes bug #383000]
4105 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4107 * X11Dnd.cs: When canceling the operation, automatically restore the
4108 default cursor - normally the default cursor is restored when the
4109 mouse buttons are released, but we should be able to restore it even
4110 if the buttons are still pressed (for example, when pressing ESC to
4114 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4116 * X11Dnd.cs: When starting a new drad and drop operation, set control
4117 field to null, just as the other fields, to avoid calling any
4118 operation on a previous control. Also, when calling DndLeave on a
4119 control, set it to null, thus we don't fire that event multiple times
4123 2008-04-23 Geoff Norton <gnorton@novell.com>
4125 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4126 the whole_window object. Fixes #377084.
4128 2008-04-23 Andreia Gaita <avidigal@novell.com>
4130 * HtmlElement.cs: Implement RaiseEvent (event injection into the
4133 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
4135 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4137 2008-04-23 Andreia Gaita <avidigal@novell.com>
4139 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4142 2008-04-23 Andreia Gaita <avidigal@novell.com>
4144 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4147 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4149 * X11Dnd.cs: When the drop was cancelled, or could just not be
4150 performed, return DragDropEffect.None always (match .net).
4152 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4154 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4156 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4158 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4160 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4162 * DataGridView.cs: Add support for error icon tool tips.
4163 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4164 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4166 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
4168 * X11Structs.cs: Add mouse button masks enum.
4169 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
4170 WM_EXITSIZEMOVE only once at the beginning and at the end of the
4171 form resize/move operation instead of for each step of it.
4172 [Fixes bug #346529 for the x11 backend]
4174 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4176 * DataGridView*: Implement support for drawing error icons.
4178 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4180 * TreeView.cs: Make vbar and hbar internal.
4181 * TreeNode.cs: If collapsing the node removes one of the TreeView's
4182 scrollbars, invalidate the whole thing.
4185 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4187 * TreeView.cs: Calling Sort() sets Sorted = true.
4188 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4189 if the nodes need to be sorted.
4192 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
4194 * Form.cs: Fire SizeChanged for both when the form is minimized and
4196 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
4197 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4199 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4201 * ComboBox.cs: If the combobox is disabled, draw a disabled
4202 background before painting anything else.
4205 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4207 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4208 forget to send a Leave event to the target window - just as .net does
4209 when cancelling dnd operations.
4211 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4213 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4214 soon as possible - this happens when we send the drop message to the
4215 target window. This way we avoid firing any DragOver _after_ drop finished.
4218 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4220 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4221 * Form.cs: Handle form minimization as a special state, where size doesn't
4222 change, but we have to fire SizeChanged.
4223 [Fixes bug #325122 for the win32 and x11 backends]
4225 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4227 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
4228 if the handle is disabled.
4231 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4233 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
4234 for forms with FormBorderStyle.None.
4237 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4239 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
4241 [Fixes bug #346529 for the X11 backend]
4243 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4246 - Send a mouse Enter message after say dragging the mouse with a
4247 button down and then release it in another client.
4248 - Reset the cursor to prevent X11 from remembering it and setting it
4249 before the control gets WM_SETCURSOR.
4250 - Qeueue a mouse move after a mouse enter like win32.
4253 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4255 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
4256 It's sent when the form gets moved, resized, closed.
4257 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4258 [Fixes bug #359193 for X11]
4260 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4262 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
4265 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4267 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
4268 group. Fixes the 1.1 build.
4270 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4272 * ListView.cs: Use display indexes for selection in Details view, as
4273 well as do the proper layout based on display indexes for that view
4276 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4278 * ListView.cs: Focused item information is now stored as a display
4279 index, and display indexes are used all over the place for selection,
4280 instead of ListViewItem.Index values, which doesn't give us enough
4281 information to modify the selection in groups mode, and was broken.
4283 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
4285 * Control.cs: Do not fire MouseDown if validation of the control has
4287 * Form.cs: Validate the form before closing.
4288 [Fixes bugs #330501 and #353310]
4290 2008-04-18 Andreia Gaita <avidigal@novell.com>
4292 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4293 CreateWebBrowserSiteBase implementations
4294 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4295 Style and TabIndex setters
4297 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4299 * ListViewGroup.cs: When returning the actual item count, return the
4300 proper count for default group.
4303 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4306 * ListViewGroup.cs: When calculating groups layout, get the actual
4307 number of items per group, since groups added to the group BUT not
4308 added to the ListView are just ignored, and can cause some nasty
4309 exceptions because of the lack of synchronization. Also for
4310 ListViewGroup don't use lazy initialization for items, since we
4311 the common scenario is to use it always - and it helps us to refactor
4312 and clean the .ctor overloads.
4314 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4316 * ListView.cs: When adding an item to a ListViewItemCollection
4317 belonging to a group (ListViewGroup.Items), don't generate a redraw if
4318 the added item hasn't beeen previously added to the ListView instance
4319 refered by the group, since it will be ignored. This should avoid some
4320 really nasty flickering.
4322 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4324 * ListView.cs: When accessing an item in a specific display
4325 position, use the helper method GetItemAtDisplayIndex, instead of
4326 direct access to the reordered_items_indices array. When doing layout
4327 for groups set the correct Items index for the display position (since
4328 in groups mode items don't have the same position as in Items
4330 * ListViewGroup.cs: Add a field to store the starting item number,
4331 which is later used when calculating the layout.
4335 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
4337 * Application.cs: Fixed ProductVersion to fallback to the assembly
4338 version. Fixes regression for bug #325413.
4340 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4342 * ListView.cs: New helper method to retrieve an item in a _specific
4343 display_ position (the items can be displayed in a different order
4344 than one of Items collection).
4345 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4346 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4347 specific display position (again remember that items can be sorted
4348 different than Items).
4350 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4352 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4353 list and update it when the collection changes. We were recreating
4354 this several times per row paint and for every pixel the mouse moved
4356 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4359 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4361 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4362 list to use generics.
4363 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4364 and remove unneccessay casts.
4366 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4368 * DataGridViewBand.cs: Add internal way to set displayed variable.
4369 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4370 * DataGridView.cs: Make sure we always keep track of Displayed
4371 rows and columns, and only draw things that are displayed.
4373 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
4375 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4376 whether the key events are filtered or not. Introduced
4377 PreFilter() process for this purpose. This fixes atokx3/iiimx
4380 2008-04-16 Andreia Gaita <avidigal@novell.com>
4382 * HtmlHistory.cs: Implement Length property
4384 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
4386 * DataGridView.cs: Call EndEdit when a sort is performed so we take
4387 away the edit textbox. Refactor to reuse column sort code.
4389 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
4391 * MenuAPI.cs: Remove the code that save and restore capture status of
4392 grab_control, this fixes some Menu and Context menu bugs but maybe it can
4393 cause some others, I cant figure the possible problems of this patch but
4394 right now remove the code looks to be better than keep it. This patch fixes
4395 bugs #357638, #378721 and #379570.
4397 2008-04-12 Andreia Gaita <avidigal@novell.com>
4399 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4400 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
4401 add missing properties and event handlers.
4403 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
4405 * ListBox.cs: Make sure the LargeChange we are setting is at least
4406 zero, to prevent an IOORE. [Fixes bug #379531]
4408 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
4410 * ComboBox.cs: Support item navigation by entering text. Firstly,
4411 in DropDownList mode, for each key-press select the next item
4412 starting with that letter.
4413 For other modes, when no item selected, on arrow-up/-down and open
4414 drop-down select the first item matching the text in the textbox.
4416 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
4418 * X11Keyboard.cs : Control.FromHandle() could return null
4419 in MoveCurrentCaretPos().
4421 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4423 * ListView.cs: When changing the size in VirtualMode, also Reset the
4425 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
4426 changing selection info for VirtualMode.
4429 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4431 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
4432 view, don't use LineLimit for the first item - use NoWrap *always*
4433 instead, since ListView.LabelWrap is not used for this view.
4436 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4438 * Binding.cs: Call UpdateIsBinding when setting control - probably
4439 Binding is already usable and we don't need to wait to check the
4440 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
4441 Created, just like 2.0 does.
4442 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
4444 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4446 * Binding.cs: Just realized we don't need to have a handler for
4447 BindingContextChanged, since this info should be now consumed directly
4448 in the BindingManagerBase. And also, the manager.IsBindingSuspended
4449 state info is checked directly, instead of caching it.
4451 * CurrencyManager.cs: IsSuspended should return always false if Count
4454 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4456 * Binding.cs: When calling PushData, return if manager.Count == 0,
4457 since we just don't have data to be read. Also, when setting the
4458 Control for binding, hook up some events to refresh the IsBinding
4459 state when BindingContext change or control gets created; use
4460 Control.IsHandleCreated instead of Control.Created check to set
4461 IsBinding state - we *actually* need to modify IsBinding when control
4462 is created, but we don't have any Created event, only HandleCreated.
4463 Fixes part of #349364.
4465 2008-04-11 Geoff Norton <gnorton@novell.com>
4467 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
4468 warping a null Caret.
4470 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4472 * DataGridView.cs: Implement row/column autosizing methods. Implement
4474 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
4475 * DataGridViewRowCollection.cs: Add an internal sorting method.
4477 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4479 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
4480 value in ListView drawing code.
4482 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4484 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
4485 is clicked. Respect the user setting Cancel in FileOk.
4487 2008-04-11 Geoff Norton <gnorton@novell.com>
4489 * ListView.cs: Avoid setting and resetting control Width/Heights and
4490 calculate the final value and set it once. Prevents a feedback loop
4493 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4495 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
4498 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
4500 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
4501 Add some on-the-spot code, but it seems we don't need it.
4503 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4505 * Form.cs: Add method for DataGridView to trigger focus cues
4506 even when it handles the tab keypress.
4508 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4510 * DataGridView.cs: More keyboard handling, tab, esc.
4511 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
4512 when at the beginning or end of the text in the text box.
4514 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4516 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
4518 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4520 * DataGridView.cs: Some fixups for showing and adding the edit control.
4521 * DataGridViewButtonColumn.cs: Implement ToString.
4522 * DataGridViewCell.cs: Size and position the control simultaneously.
4523 * DataGridViewTextBoxCell.cs: Use base to position control.
4525 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4527 * DataGridViewCell.cs: Fix up some formatting and painting code.
4528 * DataGridViewImageCell.cs: Implement some NIEX methods.
4530 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4532 * ToolStripItemCollection.cs: What moving an item from one owner
4533 to another, remove from source owner before adding to destination.
4536 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4538 * PictureBox.cs: Call Load when ImageLocation is set.
4541 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
4543 * X11Keyboard.cs, XplatUIX11.cs :
4544 Implement over-the-spot mode (with some odd offsets).
4545 - set preedit position when caret is set.
4546 - Wrap XMoveResizeWindow() to move preedit position.
4548 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4550 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
4553 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4555 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
4556 and ScanTableIndex public, it fix compilations errors when compiling
4557 WinForms to generate keyboard layout resources.
4559 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4561 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
4562 different element count than scan table. It prevents some errors in non
4565 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
4567 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
4569 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
4571 * DataGridView.cs: Call OnContentClick.
4572 * DataGridViewCell.cs: Do a null check on ValueType instead
4574 * DataGridViewCheckBoxCell.cs: Implement.
4576 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
4578 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
4580 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
4582 * X11Keyboard.cs : Check XGetIMValues() return value in
4583 case it does not return input styles in some environment.
4585 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
4587 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
4589 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4591 * BindingContext.cs: Stub UpdateBinding method.
4593 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
4595 * X11Structs.cs : added couple of structs for XIM support.
4597 Release XIM in case it failed to create XIC.
4598 Use consts for XNblah string.
4599 Add support for IM style customization and XIC creation
4600 for preedit-position and preedit-callback.
4601 Right now use MONO_WINFORMS_XIM_STYLE environment variable
4602 (list of: over-the-spot | on-the-spot | root). Only root
4605 (redoing r99172 with fix.)
4607 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
4609 * TreeView.cs: Center the checkbox a little better.
4611 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
4613 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
4614 Apply very nice patch from Ernesto Carrea that simplifies our
4615 scrollbar drawing. [From bug #376146]
4617 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
4619 * TreeView.cs: Correct the location of the root node checkbox when
4620 ShowRootLines = false. Don't draw the root lines for the root node
4621 when ShowRootLines = false. [Fixes bug #377535]
4623 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
4625 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
4627 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
4629 * MaskedTextBox.cs: Added missing attribute. Code formatting.
4630 * PageSetupDialog.cs: Added missing attribute. Code formatting.
4631 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
4632 * ImeMode.cs: Added missing field.
4633 * HtmlWindow.cs: Code formatting. Fixed line endings.
4634 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
4636 * HtmlHistory.cs: Code formatting. Fixed line endings.
4637 * HtmlDocument.cs: Code formatting. Fixed line endings.
4638 * ToolStripPanel.cs: Added missing IList implementation.
4639 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
4641 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
4643 * BindingContext.cs: Changed argument names to fix corcompare errors.
4644 * DataGridView.cs: Removed extra explicit interface implementation
4645 of IDropTarget. Code formatting.
4646 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
4647 * ComboBox.cs: Changed argument names to fix corcompare errors.
4648 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
4650 * GridColumnStylesCollection.cs: Changed argument names to fix
4651 corcompare errors. Removed extra tabs.
4652 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
4654 * Control.cs: Changed argument names to fix corcompare errors. Code
4655 formatting. Removed extra explicit IList implementation.
4656 * TextBox.cs: Changed argument names to fix corcompare errors. Code
4657 formatting. Use string.Empty instead of "".
4658 * GridItemCollection.cs: Changed argument names to fix corcompare
4659 errors. Code formatting.
4660 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
4661 corcompare errors. Code formatting.
4662 * ImageList.cs: Changed argument names to fix corcompare errors.
4663 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
4664 * DataGridViewRowCollection.cs: Changed argument names to fix
4665 corcompare errors. Code formatting.
4666 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
4667 * DataGridViewSelectedCellCollection.cs: Changed argument names to
4668 fix corcompare errors. Code formatting.
4669 * DataGridViewComboBoxCell.cs: Changed argument names to fix
4670 corcompare errors. Code formatting.
4671 * LinkLabel.cs: Changed argument names to fix corcompare errors.
4672 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
4674 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
4676 * BindingSource.cs: Changed argument names to fix corcompare errors.
4677 Removed extra explicit interface implementations.
4678 * DataGridViewSelectedRowCollection.cs: Changed argument names to
4679 fix corcompare errors. Code formatting.
4680 * ToolStripItemCollection.cs: Removed extra explicit interface
4681 implementation of IList.ReadOnly.
4682 * DataGridViewColumnCollection.cs: Changed argument names to fix
4683 corcompare errors. Code formatting.
4684 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
4685 * ListView.cs: Changed argument names to fix corcompare errors.
4686 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
4688 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
4690 * ListBindingHelper.cs: Changed argument names to fix corcompare
4692 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
4693 fix corcompare errors. Code formatting.
4694 * ToolStripPanel.cs: Removed extra explicit implementation of
4695 IDropTarget interface.
4696 * ListBox.cs: Changed argument names to fix corcompare errors. Code
4697 formatting. Removed extra tabs and spaces.
4698 * DataGridViewCellCollection.cs: Changed argument names to fix
4700 * Help.cs: Changed argument names to fix corcompare errors. Code
4702 * TabControl.cs: Changed argument names to fix corcompare errors.
4703 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
4705 * TableLayoutSettings.cs: Changed argument names to fix corcompare
4708 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4710 * ListBindingHelper.cs: When returning properties, only return those
4711 that are browsable. Also, don't do a linear search of the properties,
4712 but use the indexer of the PropertyDescriptorCollection class.
4714 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4716 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
4717 Dictionary containing the related (child) currency managers. Also,
4718 when setting DataSource, add datasource to our List if it is not a list.
4720 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
4722 * PropertyGridTextBox.cs: Fix background color of the buttons.
4723 * PropertyGridView.cs: Make the entry less jumpy.
4725 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
4727 * PropertyGrid.cs: Fix unused variable warnings.
4729 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
4731 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
4732 double-click. It expanded it once in the mouse down and then
4733 again in the double-click handler.
4735 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
4737 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
4738 TypeConverter and UITypeEditors.
4740 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
4742 * Control.cs: Visibility should be set synchronously,
4743 so we must also redraw once it is and not rely on layouting or
4744 other code to repaint.
4747 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
4749 * DataGridViewCell.cs: Respect DataGridView.GridColor.
4751 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
4753 * Control.cs: Invalidate when the alpha channel is less than 255,
4754 not only when control is transparent.
4756 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
4758 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
4759 Implement some painting convenience methods that threw NIEX.
4761 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
4763 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
4764 * DataGridViewLinkCell.cs: Implement.
4766 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
4768 * GridEntry.cs: Report the conversion exception error description.
4771 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
4773 * PropertyGridView.cs: Do not scroll to item on resize.
4776 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4778 * BindingContext.cs: When retrieving a BindingManagerBase, if the
4779 dataSource parameter is ICurrencyManagerProvider, then return
4780 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
4781 instead of creating a new one.
4783 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4785 * BindingSource.cs: Implement support for Type instances as
4788 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
4790 * DataGridView.cs: Minor cleanups and call CellMouseUp.
4791 * DataGridViewCell.cs: Make some painting routines internally virtual.
4792 * DataGridViewButtonCell.cs: Implement.
4794 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
4796 * Control.cs: We always need to invalidate our children with
4797 transparent backgrounds when we are invalidated.
4800 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4802 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
4803 and CancelCurrentEdit on CurrencyManager respectively. Implement
4804 support for ICancelAddNew too.
4806 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4808 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
4809 call EndNew/CancelNew if list is ICancelAddNew.
4811 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
4813 * DataGridView.cs: Guard against an exception while painting
4814 if there are no rows.
4816 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
4818 * DataGridView.cs: Implement a bunch of keyboard commands.
4820 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
4822 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
4823 isn't set, don't call OnPaint. [Fixes bug #375300]
4825 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4827 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
4828 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
4829 hookup the remaining events related to CurrencyManager, and fire
4830 OnListChanged also for the Clear () method.
4832 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4834 * BindingSource.cs: Use Current and Position implementations in
4835 CurrencyManager instead of using our own routines, since we need
4836 to be in synch with it. Count should NEVER return a -1 value, and
4837 also report ListChanged events for both simple IList data
4838 sources (manually) as well for IBindingList ones (by hooking up an
4839 event handler for it).
4841 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4843 * BindingSource.cs: Make one .ctor call the another, to avoid
4844 duplicate code. Add the CurrencyManager property, and also for AddNew
4845 throw the proper exceptions and show better error messages.
4847 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4849 * ComboBox.cs: Only adjust selectedindex if Handle has been
4850 created. Fixes failing test.
4852 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4854 * ComboBox.cs: Adjust selectedindex if we insert a new item
4855 above the current selectedindex in a sorted ComboBox.
4858 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4860 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
4863 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4865 * DataGridViewTextBoxCell.cs: Implement stuffs.
4867 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4869 * TreeView.cs: Create the scrollbars even earlier to be
4870 double dog certain they are created before they are accessed.
4872 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4874 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
4876 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4878 * ScrollBar.cs: Create an internal safe Value setter so we
4879 won't crash if we try to set a value outside the min and max.
4880 * TextBoxBase.cs: Use safe value setter to guard against a
4881 potential NRE that is being reported by Reflector.
4883 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4885 * TreeView.cs: Create the scrollbars earlier in the constructor
4886 to attempt to guard against an NRE in SetTop in Reflector.
4888 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4890 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
4891 DataGridViewRowCollection.cs: Do not scroll column and row headers,
4892 show messagebox on data format error, use column display index
4893 correctly, make sure HitTest supports new layout stuff,
4894 make sure scrollbars support new layout stuff.
4896 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
4898 * XplatUIX11.cs : Patch by Doug Rintoul.
4899 For some IM engines, keypress events need to delay call
4900 to XPending() and XNextEvent() in the loop so that it
4901 does not mess the orders in XIM commit callback.
4902 Some KeyRelease events such as shift keys need to be
4903 processed both in the IM engine and winforms driver
4904 itself since winforms holds its own state check.
4906 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
4908 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
4910 * X11Keyboard.cs, XplatUIX11.cs :
4911 add primitive support for XIM input support (preedit-
4912 nothing and status-nothing). It requires precise event
4913 capturing (XSelectInput/"filterEvents") and different
4914 call to XFilterEvent against root window.
4915 Get composed string and send dummy WM_IME_COMPOSITION.
4916 Free XIM and XIC instances in finalizer.
4918 (This first patch does not include suggested changes
4919 by Doug Rintoul. It will follow.)
4921 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
4923 * DataGridView.cs: When binding to a property, if the property
4924 doesn't have a setter, set the column to readonly.
4927 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
4929 * ComboBox.cs: Guard against NRE if an arrow key is hit while
4930 we aren't dropped down. Support Home/End in DropDownList mode.
4933 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
4935 * TreeNodeCollection.cs: Don't increment count until we've
4936 saved our index to return.
4939 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4941 * Label.cs: Add padding to the label's AutoSize calculation.
4944 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4946 * ListBindingHelper.cs: Actually implement GetListName method.
4948 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4950 * BindingSource.cs: Throw the propert expceptions for some methods, as
4951 well as detect the list item type for Add method if DataSource is null.
4953 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4955 * DataGridViewCell.cs: I don't know why I commented this out,
4956 putting it back for now.
4958 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4960 * DataGridViewCell.cs: Remove storage for owning column, just
4962 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
4963 * DataGridViewColumnHeaderCell.cs: If the header text has been
4964 explicitly set, return it.
4967 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4969 * DataGridViewRowCollection.cs: Disable row sharing when
4970 using data binding. Its a great feature, but lets work on
4971 getting DGV usable first before we worry about optimizations.
4973 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4975 * BindingSource.cs: When resetting our internal list, compute list
4976 item type information to be used for indirect list access. Also
4977 implement/tune some properties and methods related to the list access
4979 * ListBindingHelper.cs: Add a stub for GetListName method, used from
4982 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4984 * DataGridView.cs: If RowCount is increased while ColumnCount
4985 is zero, add a column. [Fixes bug #331649]
4987 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4989 * DataGridViewRowCollection.cs: When adding new rows for
4990 databinding, make sure they are place before the add row.
4993 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4995 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
4996 instead of Index order.
4998 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5000 * DataGridView.cs: If columns are added by increasing ColumnCount,
5001 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5004 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5006 * DataGridView.cs: Turn off and on the "new row" when
5007 AllowUserToAddRows is toggled. When the handle is created,
5008 set current cell and selected cell/row/col.
5010 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5012 * ComboBox.cs: When navigating the drop down by keyboard, we
5013 need to scroll the list box if our selection moves out of the
5014 currently shown items. [Fixes bug #371990]
5016 2008-03-24 Luke Page <luke.a.page@gmail.com>
5018 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5019 on the control. Also now handles unicode compatibility characters and
5020 stores the unicode compatibility length on the stack. Fixes Bugs
5021 #355198 and #366436.
5023 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5025 * BindingSource..cs: Take into account DataMember when re-creating the
5026 List property, and also create a specific kind of list as needed.
5028 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5030 * ListBindingHelper.cs: Add a new case for GetList () method - when we
5031 get an empty IEnumerable, try to detect whether the datamember is
5032 valid or not for that type, if true, return null, and throw exception
5035 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
5037 * ComboBox.cs: Alt-Down should drop down the list, Esc should
5038 retract it. [Fixes bug #371989]
5040 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5042 * PropertyGrid.cs: Initialize the sorting button as pushed.
5044 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5047 - Visually select the PropertyTab.
5048 - Filter Properties by Attributes properly.
5050 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5052 * MenuItem.cs: Remove menu item from parent when disposed.
5055 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5057 * ToolBar.cs: Don't reset layout_type if Dock = None.
5059 2008-03-21 Andreia Gaita <avidigal@novell.com>
5061 * UserControl.cs: Select the first available control when we get focus.
5064 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5066 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5067 the content if we are in edit mode. [Fixes bug #343964]
5069 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5071 * DataGridViewCell.cs: Fix border painting for column headers.
5073 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5075 * BindingSource.cs: When setting or resetting data source,
5076 use ListBindingHelper.GetList () method, since it will get the list in
5077 case datasource is IListSource.
5079 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5081 * DataGridViewCell.cs: Implement lots more stuffs.
5083 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5085 * PropertyGridView.cs, GridEntry.cs: Implement support for
5086 UITypeEditor.IsDropDownResizable.
5088 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5090 * DataGridViewCell.cs: Remove unused variables, improve how
5091 several of the property getters work.
5092 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5093 get its size from the parent row/col.
5095 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5097 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
5098 user alters manually the PropertyTabs collection via the
5099 PropertyTabs property.
5101 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5103 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5104 new tests for them to be sure to be compatible with .net.
5106 2008-03-20 Andreia Gaita <avidigal@novell.com>
5108 * WebBrowserBase.cs: Fix attributes, add events
5109 * WebBrowser.cs: Fix Padding signature
5111 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5113 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5115 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
5117 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5118 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5119 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5120 passes the new suite of tests for it.
5122 2008-03-18 Andreia Gaita <avidigal@novell.com>
5124 * WebBrowser.cs: Add missing attributes, missing Padding and
5125 DefaultSize properties, remove extraneous getters
5127 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5129 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5132 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5134 * ComboBox.cs: Move resetting the selected index to keypress
5135 instead of textchanged. Changing the text programmatically
5136 should not trigger resetting the selected index. Fixes test.
5138 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5140 * ComboBox.cs: When the user types into the textbox, reset
5141 the selected index to -1. [Fixes bug #371672]
5143 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5145 * FileDialog.cs: Support Control-A for selecting everything
5146 in an OpenFileDialog. [Fixes bug #371564]
5148 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
5150 * DataGridView.cs: When row/column visible/height properties
5151 change, invalidate. Take the NIEX out of InvalidateRow/Column
5152 etc. We don't support them yet, but we can just invalidate
5153 everything until we do support them. (Added MonoTODO). Set
5154 proper control styles.
5155 * DataGridViewRow.cs: Don't call PaintHeader if row headers
5158 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5160 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5162 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5164 * DataGridViewRow.cs: Only paint the white background in
5165 cell bounds, the row bounds extends past the cells if the
5166 grid width isn't as wide as the DGV.
5168 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5170 * DataGridView*: Completely revamp the drawing to match the
5171 public API. Our grids now look better, and call all the
5172 appropriate methods and event to allow users to override
5173 the painting and do their own.
5175 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5177 * ListBindingHelper.cs: Implement 2.0 GetList methods.
5179 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5181 * DataGridView.cs: Implement BorderStyle.
5183 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5185 * FileDialog.cs: Apply patch from Andy Hume: Any time we
5186 are comparing attributes, make sure we only look at the
5187 one we are interested. These calls were failing if there
5188 were more than one attribute.
5191 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5193 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5195 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5197 * PageSetupDialog.cs: Stub EnableMetric.
5198 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5199 * PrintPreviewDialog.cs: Add ProcessDialogKey,
5202 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5204 * MonthCalendar.cs: Remove unused variable.
5206 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5208 * DataGridView*.cs: corcompare stuffs.
5210 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5212 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5213 The savings aren't worth the extra code to fix the optimization.
5216 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5218 * ToolBar.cs: Always call base.Dock in the Dock override so that
5219 Control's layout_type gets reset correctly.
5222 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
5224 * X11Dnd.cs: End DnD operation also for the middle mouse button.
5226 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5228 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5229 at the same time we do explicit ones, because we have to give all
5230 other controls on the container a chance to handle explicit ones
5231 first. If no one has an explicit mnemonic, then we can let the
5232 MenuStrip have a shot at implicit mnemonics.
5233 * MenuStrip.cs: Create an implicit mnemonic function.
5234 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5235 mnemonics for MenuStrips.
5238 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5240 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5241 DataGridColumnStyle.cs: corcompare stuffs.
5243 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5245 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5246 Details - This is needed after we added the bits to use any available
5247 column also for List and SmallIcon view.
5249 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5251 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5252 at the proper place, not only when changing SelectedIndex and changing
5253 the selection using keys/mouse, as .net does.
5255 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5257 * ControlBindingsCollection.cs: Implement last 2.0
5258 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5259 in the new 2.0 Add methods.
5261 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5263 * ListBox.cs: When calling SelectedIndexCollection.Clear,
5264 return if no items are previously selected - this is done to avoid
5265 firing OnSelectedIndexChanged without need to do so. Also,
5266 when creating handle ensure that the focused item is visible (as
5269 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5271 * ListBox.cs: Rewrote/refactored most of selection code. We require
5272 the following things in selection: a) keep selection sorted (both
5273 indices and items), b) SelectedIndices automatically detect the
5274 selection mode, c) SelectedIndex should be the first selected item
5275 index, d) Need to Focus/adjust scroll bar when selecting a new item,
5276 not only for SelectedIndex, which is specially important in Multi*
5277 selection modes. To achieve this we are moving the selection core to
5278 SelectedIndexCollection and make depend all selection modifications on
5282 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5284 * ToolStrip.cs: Enable implicit mnemonics for drop down
5285 menu strips. [Fixes part of bug #367692]
5287 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5289 corcompare - fix parameter names [stragglers].
5290 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5291 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5294 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5296 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5297 was a mnemonic pressed as well as Alt. Also, if nothing handles a
5298 mnemonic, let the ToolStripManager have it even if it doesn't
5299 have a matching mnemonic.
5302 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5304 corcompare - fix warning about implicit implementation
5305 * ToolStrip.cs: Add IToolStripData interface.
5306 * IToolStripData.cs: Add.
5308 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5310 corcompare - fix warning about implicit implementation
5311 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5314 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5316 corcompare - fix parameter names [N-Z].
5317 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5318 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5319 PropertyManager.cs, RichTextBox.cs,
5320 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5321 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5322 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5323 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5324 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5325 ToolStripContentPanel.cs, ToolStripDropDown.cs,
5326 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5327 ToolStripPanel.cs, ToolStripSeparator.cs,
5328 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5329 UICuesEventHandler.cs, UpDownBase.cs.
5331 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5333 corcompare - fix parameter names [G-M].
5334 GridColumnStylesCollection.cs, GridItemCollection.cs,
5335 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5336 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5337 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5338 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5339 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5341 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5343 corcompare - fix parameter names [A-F].
5344 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5345 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5346 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5347 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5348 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5349 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5350 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5352 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5354 * GridEntry.cs: Do not convert not only if the types match,
5355 but also if the property type is assigneable from the value's
5359 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5361 * PropertyGridView.cs:
5362 - Subscribe to the listbox only once and not everytime.
5363 - Update the textbox even if SetValue fails.
5364 - Close the listbox before calling TrySetValue just in case.
5367 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
5369 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5371 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5373 * ListView.cs: Implement support for custom column width based on
5374 Columns collection (we were previously using this collection only
5378 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5380 * ListViewItem.cs: For Tile view, always set bounds for the first
5381 subitem (which is the main one), and also don't let Width be larger
5382 than ListView.TileSize.Width. Improve code readibility also.
5383 * ThemeWin32Classic.cs: When painting the ListViewItem instances
5384 in Tile view, _always_ use the NoWrap flag.
5387 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
5389 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
5391 * GridEntry.cs: For MS compitability make all child properties
5392 readonly if the parent is readonly. Ugh.
5393 [Fixes bug #365945 and #365944]
5395 2008-02-29 Andreia Gaita <avidigal@novell.com>
5397 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5398 relative to the history
5400 2008-02-29 Andreia Gaita <avidigal@novell.com>
5402 * HtmlElement.cs: More handlers for mouse and key events
5404 2008-02-28 Andreia Gaita <avidigal@novell.com>
5406 * WebBrowserBase.cs: MouseClick sig changed.
5407 * HtmlHistory.cs: Implement history navigation
5408 * HtmlElement.cs: Add event handlers, and connect them.
5410 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
5413 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
5414 so that DisplayNameAttribute doesn't get ignored.
5415 - Check for ParenthesizeNameAttribute and parenthesize the Label.
5416 - Add support for PasswordPropertyTextAttribute
5417 * PropertyGridView.cs: Check if an entry is a password.
5418 [Fixes bugs #365589, #365586, #365588]
5420 2008-02-28 Andreia Gaita <avidigal@novell.com>
5422 * PropertyGridView.cs: Revert the message filtering change, as we
5423 need it to block after all. Remove block parameter, unnecessary.
5425 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
5427 * UserControl.cs: Better implementation of GetPreferredSize.
5428 First step to fixing bug #361441.
5430 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5432 * Binding.cs: Actually implement data binding support for
5433 classes implementing IBindableComponent.
5434 * ControlBindingsCollection.cs: Likewise.
5436 2008-02-26 Andreia Gaita <avidigal@novell.com>
5438 * PropertyGridView.cs: Use a message filter to check when to
5441 2008-02-26 Andreia Gaita <avidigal@novell.com>
5443 * Application.cs: Change the message_filters loop so a filter
5444 can be removed while looping.
5446 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
5448 * GridEntry.cs: Optimization in ToggleValue so that it caches
5450 * PropertyGridView.cs: An optimization so that the property isn't
5451 re-read twice for each StandardValue added to the drop-down menu.
5452 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
5456 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
5458 * Application.cs: Apply patch from Justin Cherniak to match
5459 MS better for ProductName, ProductVersion, and CompanyName.
5462 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5464 * Binding.cs: Actually implement 2.0 NullValue property. Also
5465 when changing the formatting related properties, only update the state
5466 if formatting_enabled is true (we don't mind otherwise).
5468 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
5470 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
5473 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5475 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
5476 of GetType on the current value as it uses reflection to
5477 determine the type. This fixes the case where the new value is
5480 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5482 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
5485 2008-02-24 Luke Page <luke.a.page@gmail.com>
5487 * Line.cs, TextControl.cs: Implement offset x and y so that a
5488 document doesn't have to begin at (0,0) on the viewpoint.
5489 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
5490 bars and switches the text alignment (and therefore is now
5491 implemented for textbox). Fixes #321383.
5493 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5495 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
5496 properties. Also when changing FormattingEnabled update the control
5497 property -as .Net does-.
5499 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
5501 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
5502 * Binding.cs: Add stubs for the overloads of the Add method in
5505 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5507 * Binding.cs: PullData () returns a false value if we got an exception.
5508 Also when validating the control and we get an error, instead of
5509 setting the value of the previous one, cancel the event (tested in 1.1
5512 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
5514 * TreeView.cs: Make selected_node and highlighted_node internal.
5515 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
5516 to null when Nodes.Clear is called.
5519 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5521 * FontDialog.cs: Ensure that when the Font is set in code,
5522 all the gui pieces are updated accordingly.
5525 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5527 * TextRenderer.cs: Respect proposed size for MeasureString.
5528 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
5529 autosize, use a proposed width to force wrapping for long text.
5532 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5534 * TreeView.cs: Factor in checkboxes = false and state images in
5535 to HitTest. [Fixes bug #363360]
5537 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5539 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
5540 when drawing the selected range.
5543 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5545 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
5546 ResizeRedraw control styles.
5549 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5551 * TreeView.cs: StateImages are basically custom checkboxes, so
5552 factor their size the same as real checkboxes when determining
5556 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5558 * MessageBox.cs: Make the message box wider if the form caption
5559 is longer than the text in the form.
5562 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
5564 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
5566 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5568 * TreeNode.cs: Guard against an NRE when the parent's
5569 StateImageList hasn't been set.
5572 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5574 * SplitContainer.cs: Add SupportsTransparentBackColor and
5575 OptimizedDoubleBuffering control styles.
5578 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5580 * Application.cs: For the app data paths and the registry key paths,
5581 ensure they are created before returning them to the user.
5584 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5586 * Application.cs: Guard against an NRE in CompanyName and
5589 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5591 * Application.cs: For CompanyName, ProductName, and ProductVersion,
5592 make sure we handle all three cases correctly: attribute is present,
5593 attribute is present but is an empty string, and attribute is not
5596 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
5598 * PropertyGridView.cs:
5599 - Fix a NRE that caused a test failure
5600 - Another performance improvement - cache the standard values
5603 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
5605 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
5608 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
5610 * PropertyGridView.cs: Fix a big performance bug.
5612 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
5614 * SelectionRange.cs: Apply patch from Andy Hume to make
5615 constructor behavior more accurate. [Fixes bug #362117]
5617 2008-02-19 Andreia Gaita <avidigal@novell.com>
5619 * Control.cs: Added a new flag is_disposing to track if the
5620 window is currently in the process of being disposed of.
5621 This is used so that, when firing visibility changes triggered
5622 by unparenting controls during Dispose, the control doesn't
5625 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
5627 * ComboBox.cs: Set height to preferred height when the handle
5628 is created. [Fixes bug #360862]
5630 2008-02-18 Andreia Gaita <avidigal@novell.com>
5632 * XplatUIX11.cs: Create FosterParent with border width at 0.
5633 With the previous value of 4, everytime a control got reparented
5634 from parent = null, it's location would be shifted right and
5635 down by 4, since these coordinates would be offset by the
5636 FosterParent's border width.
5638 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
5640 * Control.cs: During diposing firstly remove ourselfes from
5641 the parent and *then* destroy our handle, because removing
5642 ourselfes from the parent controls collection causes
5643 VisibilityChange, etc events, which require a handle and end
5644 up recreating the control.
5646 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
5648 * GridEntry.cs: Set expanded state before notifying that the
5649 expansion has taken place.
5650 * PropertyGridView.cs:
5651 - Set the propertygridtextbox text to the selected
5652 StandardValue before proceeding to setting it.
5653 - Scrolling bugfixes.
5655 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5658 - Fix ValueText to not return null.
5659 - Fix conversion error reporting to actually happen.
5660 * PropertyGridView.cs: Set entry only if the text has changed.
5663 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5666 - Fix handling of a null current value.
5667 - Swallow editor exceptions.
5670 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5672 * PropertyGrid.cs: Clear current items first thing before
5673 repopulating subitems.
5675 - Handle null StandardValuesCollection.
5676 - Mark as not editable if there is no PropertyDescriptor and
5677 if the Converter cannot convert from string.
5678 [Part of fix for bugs #360666 and #358332]
5680 2008-02-15 Luke Page <luke.a.page@gmail.com>
5681 * MaskedTextBox.cs: Now skips non editable characters after a
5682 character has been entered and we are progressing to the next
5683 position in the MaskedTextBox.
5685 2008-02-15 Luke Page <luke.a.page@gmail.com>
5686 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
5687 that it changes the selection rather than just repositioning the
5688 cursor. Fixes Bug #360873.
5690 2008-02-15 Luke Page <luke.a.page@gmail.com>
5691 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
5692 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
5693 correctly. See #359330
5695 2008-02-15 Andreia Gaita <avidigal@novell.com>
5697 * XplatUIX11.cs: If the handle is null when posting a message, use the
5698 current thread queue to post instead. Fixes #332409
5700 * SendKeys.cs: Slight optimization
5702 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
5704 * PropertyGrid.cs, PropertyGridView.cs:
5705 Fix multiple scrolling and sizing issues.
5708 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
5710 * PropertyGridView.cs: Ensure that drop down editors are shown
5711 in the WorkingArea of the screen.
5714 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
5716 * GridEntry.cs: Fail silently when UITypeEditor is missing.
5719 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5721 * Binding.cs: Implement 2.0 DataSourceNullValue property.
5723 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
5725 * PropertyGridView.cs:
5726 - Clear the controls in the drop down form after it is hidden.
5727 - Fix Width sizing of the dropdown editors to match MSFT.
5729 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
5731 * PropertyGridView.cs:
5732 - Fix height for drawing the grid entry
5733 text value, so that it clips multiline text properly.
5734 - Fix unfocusing to match MSFT.
5736 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
5738 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
5739 Fixes a bug where on repopulation after value changed items become
5742 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5744 * Binding.cs: For the 2.0 profile, look for a
5745 'PropertyChanged' event in the target control, and add checks for
5746 DataSourceUpdateMode property to change -or not- the data source
5747 from validation/control property change.
5749 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
5751 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
5752 not compare struct with null in 2.0).
5754 2008-02-10 Luke Page <luke.a.page@gmail.com>
5756 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
5757 updates the provider and if not using a provider, uses the internal document
5758 class implementation of password char. Also when showing text, uses display string
5759 from the provider, instead of the actual text.
5761 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5763 * Binding.cs: Ooooops, forgot to take into account the data_source
5764 and binding_member_info null case (it was breaking the Binding tests).
5766 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5768 * Binding.cs: Implement support for data source changes exposed by
5769 'PropertyNameChanged' events, and update the control property as
5772 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5774 * Binding.cs: Implement 2.0 WriteValue method.
5776 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
5778 Commit patch from James Purcell for better AutoScale implementation:
5780 * ScaleControl should call GetScaledBounds with the control's total size rather
5781 than client size. GetScaledBounds should handle ignoring the borders in its
5782 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
5783 (for the most part they just call the base code now since that is fixed).
5784 * Added ScaleChildrenInternal to allow controls to disable scaling of children
5785 without having to override ScaleChildren (since none of .NET's controls do).
5786 This is required for most controls in Mono that have scrollbars to prevent the
5787 scrollbars from being moved/resized.
5788 * Nested ContainerControls can have a different scale mode than their parent.
5789 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
5790 designer produce different results both of which look incorrect).
5791 * Default AutoScaleMode for ContainerControl should be Inherit.
5792 * Simplified workaround for ComboBox scaling issue.
5793 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
5794 1.0 style auto scaling should scale the whole control's size instead of
5795 ignoring the borders (except for Form) and the rounding is done differently to
5796 preserve control alignment.
5797 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
5799 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
5800 * CurrentAutoScaleDimensions should round the estimated character width instead
5802 * ListBox's GetScaledBounds should always use the height it was set to instead
5803 of the height that was passed in. This prevents rounding errors from
5804 accumulating quickly with IntegralHeight.
5807 2008-02-08 Andreia Gaita <avidigal@novell.com>
5809 * Form.cs: Add a null check (darn it).
5811 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
5813 * MdiClient.cs: Make sure the requesting form actually owns the
5814 control menu items before removing them. Also, use
5815 Suspend/ResumeLayout when adding or removing items so we only
5819 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
5821 * Control.cs: Guard against an NRE in ShowFocusCues.
5824 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5826 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
5827 property, as well as stubbing DataSourceUpdateMode.
5829 2008-02-08 Andreia Gaita <avidigal@novell.com>
5831 * Form.cs: When closing forms, get focus back to the active control of the
5832 active form. [Fixes #341314, corner case]
5834 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5836 * MdiClient.cs: After we move the scrollbars, invalidate the NC
5837 area, so any old scrollbar artifacts are cleaned up.
5840 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5842 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
5843 for our menus, display that control box menu instead of the 1.1
5846 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5848 * MdiControlStrip.cs: Add property to access the mdi form tied to
5850 * MdiClient.cs: Be smarter about removing and adding toolstripitems
5851 to the implicitly merged menu. Every time we clicked the form, items
5852 were getting removed and the re-added, causing the form to jump around
5853 as the menu resized.
5855 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5857 * MdiClient.cs: Make sure the NormalBounds always gets set. It
5858 was being reset by the implicit menu merge for menustrips.
5861 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5863 * Form.cs: Don't do the previous change when WindowState = Normal,
5864 or it messes up where the window is placed. Fixes test failure.
5866 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5868 * Form.cs: When becoming visible, if we are an MDI child, call
5869 SetWindowState with a dummy old_state so that changes will actually
5871 [Fixes the 2nd part of bug #325473]
5873 2008-02-07 Andreia Gaita <avidigal@novell.com>
5875 * Control.cs: Reset properties to their pre parent-change values in case
5876 the new parent == null (in which case we're basically removing the control,
5877 and don't want any events fired due to fake property changes)
5880 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
5882 * PropertyGridView.cs:
5883 - Refactor SetValue to allow setting the value
5884 when a custom editor is used, but the entry is not editable.
5885 - Remove the custom editor control on CloseDropDown.
5888 2008-02-06 Andreia Gaita <avidigal@novell.com>
5890 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
5891 reflection only on 1.1, this property is public on system.drawing on 2.0.
5894 2008-02-06 Andreia Gaita <avidigal@novell.com>
5896 * WebBrowser.cs: Do a normal page refresh by default.
5898 2008-02-05 Andreia Gaita <avidigal@novell.com>
5900 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
5901 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
5902 platforms. Fixes #359036
5904 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
5905 platform-specific flags.
5907 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5909 * Binding.cs: Add 2.0 BindableComponent property - just return control
5912 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
5914 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
5915 Jonathan for this patch. Fixes #358442.
5917 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
5919 * Form.cs: If we change the active MDI child form, let the others
5920 know they need to repaint their title bar so it will appear inactive.
5921 [Fixes part 1 of bug #325473]
5923 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
5925 * PropertyGridView.cs: Do not trucate custom editors' width
5926 and align them to the left.
5927 [Fixes #358353 and #358349]
5929 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5931 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
5932 Also fix the arguments passed to CollectionChangeEventArgs in the
5935 2008-02-04 Geoff Norton <gnorton@novell.com>
5937 * Hwnd.cs: The conversion to Quartz coordinates happens in
5938 System.Drawing. Removing this translation from here.
5940 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
5942 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
5943 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
5944 GridItemCollection.cs:
5945 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
5947 2008-02-04 Geoff Norton <gnorton@novell.com>
5949 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
5950 SYSKEYUP if any other key has been pressed in the mean time.
5953 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5955 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
5956 when the item in current position is different than 0. Also, save the
5957 item index in the beginning of the operation, instead of getting the
5958 index of the item when the event is actually performed. Lastly clean
5959 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
5963 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5965 * Form.cs: Alt-Minus for MDI children system menu should work
5966 with both the minus keys on the keyboard.
5969 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5971 * Control.cs: Don't invalidate on region change. The WM should
5972 take care of this automagically. Keeps us out of an infinite
5973 paint loop if someone changes the Region in the OnPaint.
5976 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
5978 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
5980 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5982 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
5983 down the MonthCalendar only on F4, not Alt+F4.
5984 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
5987 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5989 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
5990 if its part of a DateTimePicker, else, use the back color.
5993 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5995 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
5998 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6000 * CurrencyManager.cs: When we get a ListChanged event from our source,
6001 always fire our own ListChanged event, as .Net does.
6003 2008-02-03 Luke Page <luke.a.page@gmail.com>
6005 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6008 2008-02-03 Luke Page <luke.a.page@gmail.com>
6010 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6011 property. Removed if for richtext property that was always true.
6012 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6014 2008-02-03 Luke Page <luke.a.page@gmail.com>
6016 * TextBoxBase.cs - commited patch from James Purcell that
6017 correctly sets the FixedHeight control style when the MultiLine
6018 property is changed on a TextBox control. Fixes bug 358229.
6020 2008-02-02 Luke Page <luke.a.page@gmail.com>
6022 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6023 Fixes bug 351938 - caret is positioned correctly when drawn
6024 and when calculating textual position of caret, no longer
6025 has a NRE in certain situations.
6027 2008-02-01 Geoff Norton <gnorton@novell.com>
6029 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6030 get that region removed from the paint event.
6031 * XplatUICarbon.cs: Remove the window mapping after disposing of
6032 window. Prevents a crash with handle reuse. Optimize exposes
6033 only onto visible windows (rare; but possible).
6035 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6037 * UpDownBase.cs: Make sure the internal textbox calls the base's
6038 OnMouseDown and OnMouseUp so the textbox will function correctly.
6039 There were notes saying it doesn't chain up, but its an internal
6040 class, so our implementation may differ.
6043 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6045 * ListBox.cs: Fix a logic error and don't process MouseDown
6046 for mouse buttons other than Left.
6048 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6050 * Control.cs: Remove HeightInternal.
6051 * ListBox.cs: Commit patch from James Purcell that correctly
6052 calculates heights for ListBoxen.
6055 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6057 * Label.cs: Apply patch from James Purcell that corrects the
6058 signature of the AutoSize property.
6061 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6063 * ListBox.cs: Don't throw [Mouse]Click events for buttons
6064 other than the left mouse button.
6066 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
6068 * Control.cs: Remove my awesome optimization as it caused some
6069 regressions with control ordering. :(
6072 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
6074 * PropertyGridView.cs: Fix a NRE on double click when there is no
6077 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6079 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6081 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
6083 * ListBox.cs: Call MouseClick and MouseDoubleClick.
6086 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6088 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6089 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6090 instead of Hwnd.bmp_g.
6092 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6094 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6095 Use the Hwnd one instead.
6097 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6099 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6101 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6103 * Form.cs: corcompare for RestoreBounds.
6105 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6107 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6109 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6111 * Form.cs: Handle Alt-Minus for MDI children forms.
6112 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6113 Add mnemonics to the control menu.
6116 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6118 * Binding.cs: Initial implementation bits of FormattingEnabled
6119 property and BindingComplete event (2.0).
6120 * BindingCompleteEventArgs.cs: Internal methods for setting error text
6123 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6125 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6126 table.Location. [Fixes bug #354672]
6128 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6130 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6131 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
6133 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6135 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6136 of doing all the re-bound work, just invalidate and call SetControlText
6137 to set the updated text of selected item to our textbox.
6140 2008-01-28 Andreia Gaita <avidigal@novell.com>
6142 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
6143 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6144 missing properties and methods. Add Load, Unload, Error, GotFocus,
6145 LostFocus, Resize, Scroll events (only load and unload are connected)
6147 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
6149 * AccessibleObject.cs: Modified argument names to match MS.
6150 * Button.cs: Modified argument names to match MS.
6151 * BindingContext.cs: Modified argument names to match MS.
6152 * BindingMemberInfo.cs: Modified argument names to match MS.
6153 * ButtonBase.cs: Modified argument names to match MS.
6154 * ComboBox.cs: Modified argument names to match MS.
6155 * Control.cs: Modified argument names to match MS.
6156 * CheckedListBox.cs: Modified argument names to match MS.
6157 * CommonDialog.cs: Modified argument names to match MS.
6158 * DataGrid.cs: Modified argument names to match MS.
6159 * CursorConverter.cs: Modified argument names to match MS.
6160 * ControlPaint.cs: Modified argument names to match MS.
6161 * CheckBox.cs: Modified argument names to match MS.
6162 * ControlBindingsCollection.cs: Modified argument names to match MS.
6163 * BindingSource.cs: Modified argument names to match MS.
6164 * DataFormats.cs: Modified argument names to match MS.
6165 * ContainerControl.cs: Modified argument names to match MS.
6166 * CurrencyManager.cs: Modified argument names to match MS.
6167 * Application.cs: Modified argument names to match MS.
6168 * ContextMenuStrip.cs: Modified argument names to match MS.
6169 * ContextMenu.cs: Modified argument names to match MS.
6170 * BindingManagerBase.cs: Modified argument names to match MS.
6171 * WindowsFormsSection.cs: Fixed line ending.
6173 2008-01-27 Andreia Gaita <avidigal@novell.com>
6175 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6176 detecting that the dropdown toolwindow is hidden. EndLoop outside the
6179 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
6181 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6182 MS. Code formatting.
6184 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6186 * Binding.cs: Don't avoid the Format event if the control
6187 property type is object. Also, if the value retrieved by
6188 the data source is null _and_ the control proeprty type
6189 is object, return Convert.DBNull (match .Net).
6190 Fixes part of #324286.
6192 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6194 * ListControl.cs: Since we are getting two BinginContextChanged events
6195 for the same binding context instance (when the control is added to
6196 form, and when the form is actually shown), take it into account only the
6197 first time for a given binding context instance.
6198 Fixes part of #324286.
6200 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6202 * PropertryGridView.cs: Ops.
6204 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6206 * PropertyGridView.cs: Close dropdown form if the owner form is
6210 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
6212 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
6213 RootGridEntry.cs, CategoryGridEntry.cs:
6214 PropertyGrid rewrite.
6215 - Rewrite all of the control logic in PropertyGrid.
6216 - Rewrite all of the ComponentModel logic in GridEntry.
6217 - Rewrite all UI work in PropertyGridView.
6218 - Many bugfixes, etc.
6220 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
6222 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6223 when all contained controls are autosize or dock-fill. Also take into
6224 account when the total percentage of column/row sizes is not 100%.
6227 2008-01-24 Andreia Gaita <avidigal@novell.com>
6230 - Save a reference to the IDocument in the instance and
6231 use that one instead of going to WebHost.Document; the document that the
6232 WebHost returns might not be the right one (in case of frames).
6233 - Use the hashcode returned from the IDocument interface.
6234 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
6235 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
6236 LinkColor, Url, VisitedColor, Window
6239 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
6240 set_Attribute, NextSibling, Parent, TagName, AppendChild,
6241 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6242 SetAttribute, Equals, equality operators.
6243 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
6244 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
6246 * HtmlElementCollection.cs: Change implementation to use a generic
6247 collection. Implemented Enumerator and CopyTo
6249 * HtmlHistory.cs: Add constructor, no implementation yet.
6251 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6252 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
6253 Equals, equality operators.
6255 * HtmlWindowCollection.cs: Implemented.
6257 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6258 has been deprecated).
6260 * WebBrowserBase.cs: Use Completed event to track document loading
6261 (Navigated has been deprecated)
6263 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
6265 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
6266 level MenuItems do not respect tabs.
6269 2008-01-23 Geoff Norton <gnorton@novell.com>
6271 * XplatUICarbon.cs: Ensure that windows are created in their initial
6272 FormWindowState. Finished fixing Fullscreen windows on Carbon
6274 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6276 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6277 be used as grab_control. Also save status of capture before show ContextMenu
6278 and restore it after close.
6280 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6282 * Control.cs: Internal FindRootParent method added to return high control
6285 2008-01-23 Geoff Norton <gnorton@novell.com>
6287 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6288 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6289 it work again. Handle HITTEST events.
6291 2008-01-23 Geoff Norton <gnorton@novell.com>
6293 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
6294 a crash in certain cases. Support for fullscreen windows in certain cases.
6296 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
6298 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6301 2008-01-23 Geoff Norton <gnorton@novell.com>
6303 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6305 2008-01-23 Geoff Norton <gnorton@novell.com>
6307 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
6309 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6311 * SplitContainer.cs: Remove unused declarations.
6312 * Binding.cs: Remove unused declarations.
6314 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6316 * Form.cs: Remove unused declaration of 'active' in Activate method.
6317 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
6318 prevent compilation warnings.
6319 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6320 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6321 * Bindings.cs: Remove unused formatting_enabled declaration.
6322 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6324 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6326 * PropertyGridView.cs: Remove usused 'ex' declaration.
6327 * DataGridView.cs: Remove unused declarations.
6329 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6331 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6333 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
6334 to Control class, it makes possible to grab menu to controls that can't
6335 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6336 WmMouseMove removed since it was used only to track menu events.
6339 - Moved all active_tracker stuff from Form.
6340 - ProcessActiveTracker added to prevent code duplicity, now mouse events
6341 can call this method instead of reimplement all necessary code handle for
6343 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6347 - Remove special handle to ToolStripOverflow, now we can grab menu to
6348 controls that can't reach Form using parent tree.
6349 - Change type of grab_control from Form to Control.
6351 2008-01-22 Geoff Norton <gnorton@novell.com>
6353 * TextBoxBase.cs: Split up the sizing of controls and placing of
6354 controls. Fixes a bug where scrollbars in Reflector could be sized
6355 wrong and have non-working thumbers.
6357 2008-01-23 Geoff Norton <gnorton@novell.com>
6359 * XplatUI.cs: Refactor environment variables to default support to the
6360 Carbon driver on the Mac.
6362 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6364 * Label.cs: Uses new LabelPainter for drawing operations.
6365 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6366 * Theme.cs: DrawLabel and LabelDefaultSize removed.
6368 2008-01-22 Geoff Norton <gnorton@novell.com>
6370 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6372 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6374 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6375 through the normal flat button code and don't draw the checkbox glyph.
6376 * Theme.cs: Button->ButtonBase signature change.
6379 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6381 * LinkLabel.cs: Uses new class LinkLabelPainter.
6383 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6385 * MessageBox.cs: Adjust right border space, we don't need to add
6386 "space_border*2" two times.
6388 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6390 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6391 becomes a wrapper around Padding.
6392 [Fixes a part of bug #354676]
6394 2008-01-22 Geoff Norton <gnorton@novell.com>
6396 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
6397 acquired. Also ensure the buffer is large enough to grab the header
6398 we need on linux boxes.
6400 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6402 * Control.cs: Implement a custom enumerator so people can delete
6403 from the Controls collection while in a foreach.
6406 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6408 * PropertyGridView.cs: Fix focusing behavior:
6409 - Tab should focus the grid text box.
6410 - Clicking on the labels shouldn't focus the grid text box.
6412 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6414 * PropertyGridView.cs: IsValueTypeGridItem should return true
6417 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6419 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
6420 - Renamed GridEntry.SelectedObjects to TargetObjects to better
6421 reflect the property name role.
6422 - PropertyGrid.GetTarget is not required as the target is known
6424 - Setting values will handle value types as a special case now and
6425 populate them up in the chain.
6428 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
6430 * Hwnd.cs: Create a public property for the Graphics we keep around.
6432 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6434 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
6435 when the current object selection changes.
6436 Fixes failing test SelectedObject_Null2.B5.
6438 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6440 * PropertyGrid.cs: Process Browsable properties with
6441 DesignerSerializationVisibilityAttribute.Content as being expandable.
6442 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
6443 will not be expandable. We should be nested components-friendly now.
6445 2008-01-21 Andreia Gaita <avidigal@novell.com>
6447 * WebBrowserBase.cs: Check if control was loaded properly,
6448 don't bind if it wasn't.
6450 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
6451 GetElementFromPoint, equality operators, OpenNew, Write.
6452 Remove extra set_Body
6454 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6456 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
6457 that makes our AutoScale* stuff more tolerant to different orders
6458 of being set. [Fixes bug #354669]
6460 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6462 * PropertyGridView.cs, PropertyGridTextBox.cs:
6463 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
6464 [Fixes #339005 and #348209]
6466 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6468 * PropertyGridView.cs: Hide the grid text box before adjusting it
6469 for the newly selected GridItem.
6472 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6474 * Form.cs: Give MDI children the opportunity to cancel the parent form
6475 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
6476 properly for both the parent and child.
6477 * Application.cs: Signature of internal method changed, pass the previous
6481 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6483 * PropertyGridView.cs: Set the property value only if it has changed.
6486 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6488 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
6489 If the mouse hasn't actually moved, ignore these messages so the currently
6490 highlighted menuitem isn't reset to the one under the mouse.
6493 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6495 * PropertyGridView.cs: When the property changes Invalidate the GridItem
6496 in order for the properties with UITypeEditor.GetPaintValueSupported == true
6497 to reflect the change visually.
6500 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6502 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
6503 to 2.0 button drawing.
6504 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
6505 the button text is tall enough for one line. LineLimit says it will
6506 always draw at least one line, but it is a lie.
6509 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
6511 * XplatUIStructs.cs, X11Keyboard.cs :
6512 added some more VK_* keys to be handled.
6514 2008-01-16 Andreia Gaita <avidigal@novell.com>
6516 * Control.cs: Check if there is a container before setting or getting
6517 the validation flag.
6519 2008-01-16 Andreia Gaita <avidigal@novell.com>
6521 * ContainerControl.cs: Add flag to track if a control cancels validation,
6522 so we don't fire click events.
6525 - (HandleClick) Check if validation was cancelled before firing the click
6526 events (doubleclicks are fired, but not clicks)
6527 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
6528 ContainerControl.set_ActiveControl, but in the case of non-selectable
6529 controls, like a Label, activecontrol is not set.
6531 * ButtonBase.cs: Only fire clicks if validation passes.
6535 2008-01-16 Geoff Norton <gnorton@novell.com>
6537 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
6540 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
6542 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
6543 SelectedPath, just display the default dialog instead of crashing.
6546 2008-01-16 Geoff Norton <gnorton@novell.com>
6548 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
6549 AddExpose instead of trusting apples compositing manager which doesn't
6550 work for our use case. Remove some dead code causing warnings and
6551 redecorate some other code to prevent warnings.
6553 2008-01-16 Geoff Norton <gnorton@novell.com>
6555 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
6556 carbon signals us to redraw. Fixes another portion of the flickering bug
6558 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6560 * Form.cs: Prevent the MdiParent property to be set when value is the same
6561 as value already set. Fixes bug #328019.
6563 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6565 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
6566 it prevents NRE when closing mdi child windows. Fixes bug #325211.
6568 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6570 * InternalWindowManager.cs: Invalidade close button after mouse up when
6571 mdi form is prevented to close.
6573 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6575 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
6576 thanks to Andy Hume. Fixes bug #325433.
6578 2008-01-16 Andreia Gaita <avidigal@novell.com>
6580 * LinkLabel.cs: Reset focused_index when resellecting the control.
6583 2008-01-15 Geoff Norton <gnorton@novell.com>
6585 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
6588 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
6590 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
6593 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
6595 * ContainerControl.cs: Setting AutoScaleMode to anything should set
6596 Form.AutoScale to false.
6597 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
6598 AutoScaleBaseSize should be changed on Font change unless it has been
6602 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
6604 * MenuAPI.cs: On instance of MenuTracker check if source control is
6605 ToolStripOverflow and use properly method to find form.
6608 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
6610 [Fixes bug #323241 Transparent toolbar support]
6612 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
6615 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
6616 defined in control style to mimic win32 behavior.
6618 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
6619 it will be transparent.
6621 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
6623 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
6624 CreateParams for ToolBar controls.
6626 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6628 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
6629 FixedToolWindow, SizeableToolWindow, or None for border styles have
6630 different minimum sizes than regular forms. Implemented to fix
6631 regression in PDN with toolbox being too wide.
6633 2008-01-14 Andreia Gaita <avidigal@novell.com>
6635 * HtmlElementCollection.cs: Implemented
6637 * HtmlElement.cs: Implemented:
6645 * HtmlDocument.cs: Implemented GetElementsByTagName.
6647 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6649 * Screen.cs: Stub BitsPerPixel to always return 32.
6651 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6653 * Form.cs: Implement RestoreBounds.
6655 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6657 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
6658 Sebastien and his fabulous magical problem-finding machine:
6659 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
6660 respect the value set.
6662 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
6664 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
6665 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
6667 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6669 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
6670 messages (to match .Net), we need to remove the capture ourselves.
6672 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
6674 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
6675 will process the message and close our window.
6678 2008-01-10 Geoff Norton <gnorton@novell.com>
6680 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
6681 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
6684 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6686 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
6689 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6691 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
6692 Linux doesn't care, having a minimum matches MS and keeps the window
6693 from becoming too small to use window decorations.
6696 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6698 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
6699 ShowFocusCues. Make focus rectangles fit the text instead of the whole
6700 control. [Fixes bug #325419]
6702 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6704 * ComboBox.cs: Guard against an NRE if the user open a new form from a
6705 SelectedIndexChanged event. This closes the combobox dropdown, and we
6706 were trying to dispose it. [Fixes bug #352830]
6708 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
6710 * Control.cs, Form.cs: Implement the necessary semantics for
6711 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
6712 to determine if a focus rectangle should be drawn.
6713 * PropertyGrid.cs: Fix property visibility to match override.
6714 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
6716 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
6718 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
6721 2008-01-09 Geoff Norton <gnorton@novell.com>
6723 * XplatUICarbon.cs: Scroll windows in the correct direction.
6725 2008-01-09 Geoff Norton <gnorton@novell.com>
6727 * XplatUICarbon.cs: Track all created utility windows so we can hide them
6728 when the app is deactivated or spaces is enabled.
6730 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6732 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
6733 extra separation pixel for the label rect origin if SmallImageList is
6734 null, and thus we don't need that separation between icon and label
6736 Patch by Ernesto Carrea.
6739 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
6741 * StatusStrip.cs: Invalidate after completing a layout. The base
6742 OnLayout does this, but we don't call the base.
6743 * ToolStripItem.cs: Revert the previous change to invalidate after
6745 [Fixes bug #351341 better.]
6747 2008-01-07 Geoff Norton <gnorton@novell.com>
6749 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
6750 not a notification to exit the application. Listen for WM_QUIT
6753 2008-01-07 Andreia Gaita <avidigal@novell.com>
6755 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
6757 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
6759 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
6760 so it can repaint at the correct location.
6763 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6765 * ListControl.cs: SelectedValue should return a null value if
6766 SelectedIndex is -1. Also, when setting it, it should throw an
6767 ArgumentNullException if the value is null, as well as taking
6768 into account the String.Empty value, instead of ignoring it (we have
6769 tests for that now).
6770 Fixes part of #324286.
6772 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
6774 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
6775 SelectionStart is updated after pressing enter. Fixes bug #351918.
6777 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6779 * TextControl.cs: Revert a piece r92316 that prevented the fix
6780 from working when there were multiple tags in the text box.
6783 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6785 * TextControl.cs: Apply patch from Luke Page that prevents an
6786 NRE when determining the beginning of a paragraph.
6789 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6791 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
6792 caret gets moved with clicking away from a selected block of
6793 text. Fixes bug #351885.
6795 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6797 * TextControl.cs: Apply patch from Luke Page that takes line
6798 alignment into account for mouse selection, so that center and
6799 right aligned text can be selected.
6802 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6804 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
6805 issues after loading an RTF file by using the correct line feeds.
6808 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6810 * TextControl.cs: When deleting multiple line selections, we need
6811 to invalidate every line beginning at the first line of the selection.
6812 Patch from Luke Page fixes bug #351791.
6814 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6816 * ListControl.cs: When getting a CurrencyManager.PositionChanged
6817 event, don't set SelectedIndex if the number of items is 1. This is
6818 because, for the first item, PositionChanged is fired _before_
6819 ItemChanged (the place where we actually populate the items), and
6820 leave us in a temporary invalid state (since items collection is
6824 2008-01-04 Geoff Norton <gnorton@novell.com>
6826 * XplatUICarbon.cs: Create native toolwindows instead of
6827 the managed drawing ones.
6829 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6831 * LineTag.cs: If the line doesn't have any characters, return
6832 0 for GetCharIndex. Fixes an AOORE exception after certain
6833 caret movements. Fixes bug #351683. Patch by Luke Page.
6835 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6837 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
6838 is hit when there is selected text, only the selected text gets
6839 deleted, not the character in front of the selection as well.
6842 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6844 * ComboBox.cs: When the values are displayed, calculate the
6845 ComboListBox scrollbar's LargeChange based on the visible area's
6846 height and the actuall ItemHeight, instead of calculating it
6847 based on MaxDropItems value, since it's not used by our _current_
6851 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6853 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
6854 Patch from Luke Page that fixes issues with font colors and styles
6855 not showing up in a readonly RichTextBox. Fixes bug #324354.
6857 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6859 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
6860 from Luke Page. This one fixes bug #349926.
6862 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6864 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
6865 an item in the IBindingList source changes with
6866 ListChangedType.ItemAdded. Ignore for now firing the event for other
6867 changes, since we want to have tests for those cases as well.
6869 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6871 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
6874 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6876 * TextBoxTextRenderer.cs: Implement a cache for measuring each
6877 character. This is effective because the typical usage of a
6878 TextBox is with a limited amount of fonts and characters, and
6879 the current implementation of TextBox measures everything one
6880 character at a time. Another second or two speedup for bug #347238.
6882 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6884 * Control.cs: Rewrite the Font getter to only query the parent's
6885 Font property once instead of twice. Since this operation is
6886 recursive, the queries were growing exponentially as the control
6887 tree got deeper. Another second or two speedup for bug #347238.
6889 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6891 * Control.cs: Avoid setting a parent (and more importantly, updating
6892 the zorder of all its children) if the parent is already correct in
6893 WmShowWindow. Decreases the startup time of the test case on bug
6894 #347238 from 35 seconds to 11 seconds.
6896 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6898 * X11Dnd.cs: When the dnd operation has started and we are
6899 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
6900 This is done to match .Net, which doesn't send those messages after
6901 dnd operation was completed/cancelled.
6904 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
6906 * ToolStrip.cs: Previous change should be != null, not == null.
6909 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
6911 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
6912 user may have moved the mouse off the current item during the event.
6914 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6916 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
6917 calling GetItemAt for every MouseMove event by also taking into
6918 account whether any mouse button is pressed (probably dragging);
6919 if so, we can call GetItemAt, and if not, try to not call it
6920 (GetItemAt can be quite expensive when used with a large number of items).
6922 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6924 * ListView.cs: Implement -finally- support for dnd, by calling
6925 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
6927 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
6928 simple calculation of distances for all the items in the owner
6931 2007-12-21 Geoff Norton <gnorton@novell.com>
6933 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
6934 for windows that are originally created as invisible. Fixes missing
6935 main window in paint-mono.
6937 2007-12-21 Geoff Norton <gnorton@novell.com>
6939 * XplatUICarbon.cs: Register our D&D handler. Register our custom
6940 subclass handler for com.novell.mwfview subclassing HIView. Implement
6941 Pasteboard and Dnd methods.
6943 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6945 * ListBox.cs: When we got focus, give focus to first item if there
6946 wasn't any pervious focused item. Also update navigation to depend on
6947 SelectedIndex rather than FocusedItem, just as .Net does.
6950 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6952 * ListBox.cs: Both FindString and FindStringExact methods must do an
6953 case insensitive search, should allow the last valid index to be
6954 passed in the overload taking an initial index, and should also
6955 continue searching from the top back to the specified index when it
6958 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6960 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
6961 redraw issue, and allows RichTextBox to draw colored text even while
6962 disabled or readonly.
6964 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6966 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
6967 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
6968 and doesn't grey text in a disabled RichTextBox.
6970 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6972 * RichTextBox.cs: Apply patch from Luke Page that adds better support
6973 for many RTF commands: quad alignment, separate formatting for blocks
6974 inside groups, and ParDef support. Makes the test case from bug #324589
6977 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6979 * LineTag.cs: Fix an error in the new Draw method that caused
6980 a crash when rendering the document on bug #324589.
6982 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6984 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
6985 TextControl.cs: Apply patch from Luke Page that adds support
6986 for URL links in RichTextBox.
6987 [Fixes enhancement #342516]
6989 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
6991 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
6992 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
6994 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6996 * ListBox.cs: When a key gets pressed, try to find a string
6997 if the key is a character or a digit.
7000 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7002 * TableLayoutPanel.cs: Remove some unused variables.
7004 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7006 * DateTimePicker.cs: Commit patch from Luke Page that ensures
7007 we don't end up at an invalid date when we click the up/down
7008 spinner to change the month or year. Fixes bug #348682.
7010 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7012 * Application.cs: Calling Exit in 2.0 should chain to the
7013 Exit (CancelEventArgs) version so it can be cancelled.
7014 * Form.cs: Create a flag to allow raising the Closing
7015 events to be skipped. We raise them once in Application.Exit
7016 and don't want to raise them again when the Form is actually
7017 closed. [Fixes bug #349073]
7019 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
7021 * ToolStripDropDown.cs: Guard against an NRE when there
7022 hasn't been a mainform set in the application context.
7025 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7027 * ListBox.cs: When SetBoundsCore gets called, besides
7028 calling UpdateScrollBars, update the value of
7029 last_visible_index, since we could need to show more items
7030 than before, and we need to let the paint routines know that.
7033 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7035 * ListView.cs: Add DesignerSerializationVisibility attribute to
7036 InsertionMark property.
7037 * ListViewItem.cs: Add same attribute to Position property.
7039 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7041 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7044 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
7046 * ThemeWin32Classic.cs: Don't draw the background on a
7047 flat button if there is a background image.
7050 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7052 * ListBox.cs: If we remove the item currently selected,
7053 remove it not only from SelectedItems, but also
7054 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
7055 the items count decreased and focused_item has bigger value than that.
7057 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7059 * Control.cs: Perform our layout after we resize ourselves
7060 if we had to adjust our AutoSize. Missed commit for bug
7063 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7065 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7066 we can provide an implementation of AutoSize.
7069 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7071 * ListBox.cs: Add the internal overload Sort (bool paint),
7072 to indicate whether we actually need a paint or we will
7073 call Refresh ourselves. This way we don't request a paint
7074 _before_ having an updated and valid layout.
7077 2007-12-12 Andreia Gaita <avidigal@novell.com>
7079 * XPlatUIX11.cs: Send paint messages when updating a systray icon
7080 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7081 properly invalidated.
7084 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7086 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7087 don't simply assign it to our internal group field, but instead
7088 use our Group property, which should do all the neccessary work
7089 required to support groups. Fixes an issue reported to me (mail) by a
7090 guy using this new feature.
7092 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
7094 * Control.cs: Use Scale instead of ScaleControl to ensure the
7095 whole hierarchy gets scaled.
7098 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7100 * DateTimePicker.cs: Don't set the internal MonthCalendar's
7101 Parent property. Doing this causes the control to be hosted by
7102 the Form instead of being a popup window.
7105 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7107 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7108 at an index higher than Count, just use Add instead of Insert.
7111 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7113 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7114 DrawPictureBox, this is handled by Control.PaintBackground.
7117 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
7119 * MenuAPI.cs: When process menu keys return true by default only if menu is
7120 active. Fixes bug #342892.
7122 2007-12-09 Andreia Gaita <avidigal@novell.com>
7124 * Control.cs: check if windows are actually mapped before
7125 trying to zorder. Fixes #342509, #346955
7127 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7130 * ListViewInsertionMark.cs:
7131 * ThemeWin32Classic.cs: Implement the drawing side of the
7132 new 2.0 ListView.InsertionMark property.
7134 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
7136 * CurrencyManager.cs: Silence some debug spew.
7138 2007-12-07 Geoff Norton <gnorton@novell.com>
7140 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7141 masks for our children as well as siblings to avoid having to query
7142 Quartz for this information.
7143 * XplatUICarbon.cs: Implement a delegate based system to pass
7144 information to System.Drawing. Implement Async methods. Remove
7145 the hack for the resize thumb and imlpement a transparent Grow Box.
7146 Rework the messaging system to proplery create window's and messages,
7149 2007-12-06 Andreia Gaita <avidigal@novell.com>
7151 * X11Keyboard.cs: Use Xutf8LookupString to support international
7152 characters under alternate codepages. Patch from #340878
7154 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7156 * ListView.cs: When doing layout computations, set position in the
7157 ListView instances (we cache the position just as .Net does).
7158 * ListViewItem.cs: New internal setter method for Position. Also set
7159 position field as also available in 1.1, since we are going to use it
7160 now in the common case.
7162 2007-12-06 Andreia Gaita <avidigal@novell.com>
7164 * Control.cs: When removing controls, get the actual container
7165 to notify about active control changes. Fixes 341314.
7167 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7169 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7171 2007-12-05 Andreia Gaita <avidigal@novell.com>
7173 * Control.cs: When updating the zorder, ignore windows that are not
7174 mapped. Fixes #342509
7176 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7178 * ListViewItem.cs: Actually implement serialization on this class.
7180 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
7182 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7183 LinkCollection. Spaces to tabs, and removed extra tabs.
7185 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7187 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7188 tests to fail (hopefully).
7190 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7192 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7193 the image margin so custom renderers can correctly place it.
7195 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7197 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7198 so custom renderers can correctly place it.
7200 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7202 * Application.cs: Let WM_CHAR messages flow through to controls
7203 hosted in Strips. [Fixes bug #343972]
7205 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7207 * ToolStripManager.cs: Guard against an NRE I ran into.
7209 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7211 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
7212 a Link is manually added to the Links collection, we need to set
7213 its owner, so it can invalidate properly.
7216 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7218 * ListView.cs: When changing ListViewItem.Position (which calls
7219 ListView.ChangeItemLocation), invalidate not only the area
7220 corresponding to the main item, but also to the area occupied
7221 by the items being moved.
7223 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7225 * ListView.cs: When changing the position of a given item,
7226 don't use item bounds, but item areas (which includes the item spacing
7227 between them). Also, use first/last position if the requested
7228 position is outside bounds (as .Net does). Invalidate the previous and
7229 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7230 in a specific position, instead of directly accessing Items collection
7231 (this is done to get the right item - remember an Item can have a
7232 different position in the grid than in the Items collection).
7234 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7236 * MessageBox.cs: Calculate text area instead of just top left, this rect
7237 area will be used in DrawString. Fixes bug #343364.
7239 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7241 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7242 screen width. Partially fixes bug #343364.
7244 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7246 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7247 code inside recalculate, it makes code more simple.
7249 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
7251 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7252 between update or add icon. Fixes bug #324344.
7254 2007-11-21 Andreia Gaita <avidigal@novell.com>
7256 * XPlatUIX11.cs: Do not treat tool windows as if they have no
7257 window manager, since that stretches the drawing area to include
7258 the window decorations, and they get hidden. Reverts r84444 and fixes
7259 #335849 and #342790 (mdi and pdn3 regression)
7261 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7263 * ListView.cs: When setting focused item, try to give focus to the
7264 previous one _only_ if the previous one remains valid.
7267 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
7269 * Application.cs: Revert r89650, as it broke a common case to fix
7270 an obscure case. Fixes bug #342606.
7272 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7274 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7276 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7278 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
7279 alignment. [Fixes #324228]
7281 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7283 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7286 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
7288 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7289 it prevent problems when empty captions. [Fixes #342141]
7291 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7293 * Label.cs: Use Size instead of None. Fixes bug #342077.
7295 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7297 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7299 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7301 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7302 but there isn't a MdiContainer.
7305 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7307 * TextControl.cs: Don't recalculate document if the recalc_start and
7308 recalc_end hasn't changed.
7311 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
7313 * DataGridViewTextBoxCell.cs: Removed CWL.
7315 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7317 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7319 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7321 * TextControl.cs: Missed some code for bug 341534 to trigger a
7322 recalculation when the font changes.
7324 2007-11-16 Andreia Gaita <avidigal@novell.com>
7326 * Control.cs: When updating the zorder, check if the child to update is
7327 the same control that is set to always be on top (i.e., scrollbars), and
7328 just put it on top directly. Fixes BadMatch error on pdn3
7330 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7332 * ListView.cs: Throw the needed exceptions for FindNearestItem.
7334 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7336 * Control.cs: Don't perform a new layout when a label changes its text,
7337 cause label handles its own autosizing.
7340 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7342 * ListView.cs: Implement 2.0 FindNearestItem methods.
7344 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7346 * ToolStripPanel.cs: Make Join at least add the control to the panel,
7347 even if the rest of what Join does isn't supported. Add some more
7348 support for vertical toolbars.
7349 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7350 [Fixes the application breaking parts of bug #341998]
7352 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7354 * ToolStripItem.cs: When determining if we have a check/image margin,
7355 we need to look at ShowCheckMargin as well as ShowImageMargin.
7357 2007-11-15 Geoff Norton <gnorton@novell.com>
7359 * XplatUIOSX.cs: Rename to...
7360 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7361 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
7363 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7365 * KeysConverter.cs: The default values should be an array of Keys, not
7366 strings. Also, the array has more values for 2.0.
7369 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7371 * Application.cs: Change ExecutablePath to use
7372 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7375 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7377 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7378 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7379 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7380 be ignored. Create a new GetLineEnding that can specify which types of
7381 line endings to look for. On Insert, only create new lines for \n and \r\n.
7384 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7386 * TextBoxBase.cs: As we loop through each line changing the font, tell
7387 the document that the line needs to be recalculated. Fixes bug #341534.
7389 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
7390 [Another round of refactoring]
7391 * Line.cs: Add DeleteCharacters.
7392 * LineTag.cs: Add Delete.
7393 * TextBoxBase.cs: Update to use new methods.
7394 * TextControl.cs: Refactor the Delete* methods.
7396 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
7398 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7399 the patch. [Fixes #324856]
7401 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7404 * ListViewItem.cs: Add an initial implementation of
7405 2.0 ListViewItem.Position getter.
7407 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7409 * ListView.cs: Add a reordered_items_indices array, to allow us
7410 to have a different sorting than that of Items (the sorting in Items
7411 could not match the actual sorting in screen). This is needed to
7412 implement a pair of 2.0 features.
7413 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
7414 actual position in the ListView grid, since it could have a position
7415 different than its Index (position in ListViewItemCollection).
7417 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7419 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
7420 not draw partial lines.
7421 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
7422 LineLimit flag from the base is preserved.
7423 Fixes the windows part of bug #338965.
7425 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7427 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
7428 so that it can be canceled in KeyPress.
7431 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7433 * ListView.cs: In ItemControl, reset mouse-handling related
7434 fields even if we dont' have items (we still should reset them when
7435 we had items but then called Items.Clear). Partially based in a patch
7439 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
7441 * Application.cs: In ProductVersion first try AssemblyFileVersion
7442 before falling back to assembly version. Fixes bug #339787.
7444 2007-11-08 Andreia Gaita <avidigal@novell.com>
7446 * HtmlElement.cs: Implement InnerText setter.
7447 * WebBrowserBase.cs: Implement Navigated event support.
7448 Add flag to track when the browser "document" is ready to be retrieved.
7449 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
7450 Make sure browser document is ready before retrieving it.
7451 Clean up cached objects (document) when moving to a new page through
7452 any of the navigation methods.
7453 Use the new Mono.WebBrowser.INavigation interface to control navigation.
7454 Implement OnNavigated event.
7456 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
7458 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
7459 DrawLinkLabel, this is handled by OnPaintBackground.
7460 Fixes bug #339565, part II.
7462 2007-11-07 Andreia Gaita <avidigal@novell.com>
7464 * Control.cs: Revert r88915. Selecting text on a textbox depends on
7465 getting a Select call on click, so this call needs to be here for now.
7468 2007-11-07 Geoff Norton <gnorton@novell.com>
7470 * OSXStructs.cs: Add the kEventClassApplication constants.
7471 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
7472 application is deactivated otherwise Menu overlays linger on top of
7473 other application windows.
7475 2007-11-07 Geoff Norton <gnorton@novell.com>
7477 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
7478 dont support cursors yet anyways. This allows Reflector to run.
7480 2007-11-07 Geoff Norton <gnorton@novell.com>
7482 * XplatUIOSX.cs: Implement DragSize.
7484 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7486 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
7487 ItemControl, request the focus, as .Net does. This is needed after
7488 Control does not request focus anymore when it receives a
7491 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
7493 * Label.cs: Make DrawImage internal so it can be called from Theme code.
7494 Remove the DrawImage call from OnPaint.
7495 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
7496 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
7497 but before we draw the text for DrawLabel and DrawLinkLabel.
7500 2007-11-05 Andreia Gaita <avidigal@novell.com>
7502 * Control.cs: Remove select call on click. Fixes #325809
7504 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7506 * ListViewItem.cs: Add 2.0 Position property getter.
7508 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7510 * ListView.cs: Add 2.0 BackgroundImageTiled property.
7511 Also, to make it work properly, change item's BackColor and
7512 BackgroundImageLayout as needed.
7513 * ThemeWin32Classic.cs: Don't fill any background rectangle
7514 in ListView.ItemControl when drawing items; just let the Control
7515 base implementation fill it.
7517 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7519 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
7520 as well as adding a custom 'dummy' Converter, as .net does.
7522 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7524 * PropertyGridView.cs: When clicking drop-down button,
7525 select an index in the listbox only if our standard values collection
7526 has one or more items.
7528 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7530 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
7533 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
7535 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
7536 the value is not changed. This ensure a pushed button remains in that
7537 state when clicked again. When switching the value of PropertySort
7538 between Categorized and CategorizedAlphabetical, do not update the
7539 grid items and do not fire a PropertyChangedEvent. When clicking the
7540 sorting buttons, do not modify the PropertySort value when switching
7541 between Categorized and CategorizedAlphabetical but only update the
7544 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
7546 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
7548 * PropertyGrid.cs: Also put Categorized button in pushed state when
7549 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
7550 for help description label.
7552 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7554 * ListView.cs: When calculating the biggest item for a given column,
7555 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
7558 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
7560 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
7561 value for PropertySort on 1.0 profile. PropertySortChanged event
7562 should only be fired on 2.0 profile. Fixed NullReferenceException
7563 in UpdateSortLayout when PropertyGrid contains no items.
7565 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
7567 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
7570 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7572 * ListViewItem.cs: Implement 2.0 IndentCount property.
7574 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7576 * X11Dnd.cs: When sending status in a dnd operation, compare current
7577 effect with the 'allowed' field instead of 'drag_data.Allowed', since
7578 the later is only created when a Winforms application is both the
7579 source and the target, but not when we are the target only.
7580 Fixes part of #324251.
7582 2007-11-01 Geoff Norton <gnorton@novell.com>
7584 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
7586 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
7587 children out of the drawing view on mac.
7588 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
7589 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
7591 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
7593 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
7594 on the non-hosted-control part of it shouldn't do anything.
7595 Fixes part of bug #327498.
7597 2007-11-01 Andreia Gaita <avidigal@novell.com>
7599 * WebBrowserBase.cs: revert previous change, resize can be called anytime
7601 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
7603 * Application.cs: When a toolstrip has the keyboard input loop, let messages
7604 it does not use flow through to controls that are hosted in menus.
7605 Same with mouse clicks.
7606 * Form.cs: Don't close all menus on click if the click is on a
7607 control hosted in a menu.
7608 Fixes part of bug #327498, and part of bug #325969.
7610 2007-10-31 Andreia Gaita <avidigal@novell.com>
7612 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
7614 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
7616 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
7617 Addresses an issue raised in bug #336218.
7619 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
7621 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
7622 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
7624 2007-10-30 Andreia Gaita <avidigal@novell.com>
7626 * ContainerControl.cs: Check if the active control is a
7627 child of a removed control and update active_control accordingly.
7630 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7632 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
7633 or the MaxDate. Fixed bug #337693.
7635 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7637 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
7638 after calling SetWindowLong for a form, to force an immediate NC refresh.
7639 Fixes first part of bug #325150.
7641 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7643 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
7644 simple. Fixes the last part of bug #322668.
7646 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7648 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
7649 needs to be TopMost as well, or else the MessageBox is under the form.
7650 Patch by George fixes bug #325300.
7652 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7654 * X11Dnd.cs: When starting a new drag operation, reset the static
7655 'dropped' field to false (previously the implementation didn't reset
7656 it and got confused after the first drag).
7659 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7661 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
7662 items instead of re-creating them all. For this purpose we now cache
7663 both CategoryGridEntry items and the GridEntries for the main object's
7665 * GridItem.cs: Make SetParent method abstract.
7666 * GridEntry.cs: Override the SetParent method (already there, but now
7670 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7672 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
7673 depending on its depth (as .Net does). Update the needed values in
7674 MouseDown handler. Also draw the plus/minus rect after the label,
7675 so we don't draw on top of it.
7677 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
7679 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
7680 processed by forms or controls when menu is active. [Fixes #333548]
7682 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7684 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
7685 parent doesn't have focus. This was causing ToolStripTextBoxes to take
7686 focus on mouse over.
7688 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7690 * TextControl.cs: Code cleaning, simplifying.
7692 2007-10-24 Geoff Norton <gnorton@novell.com>
7694 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
7695 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
7697 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7699 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
7700 the cap is maxvalue, not actually 0. [Fixes bug #336218]
7702 2007-10-24 Andreia Gaita <avidigal@novell.com>
7704 * SendKeys.cs: apply jpobst's patch to bug #332409
7706 2007-10-23 Andreia Gaita <avidigal@novell.com>
7708 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
7709 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
7712 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7714 * PropertyGridView.cs: If a property has an UIEditor available,
7715 make the drop-down/editor button available only if the property
7718 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7720 * PropertyGridView.cs: Don't make the grid item textbox
7721 editable when a drop-down control is available, but
7722 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
7723 true. The same bur the color of the grid item value's label.
7725 2007-10-22 Geoff Norton <gnorton@novell.com>
7727 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
7728 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
7729 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
7730 driver. Padd the bottom of all real windows so the resize thumb doesn't
7731 obscure scroll/status bars.
7733 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
7735 * WindowsFormsSection.cs: Implement.
7737 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
7739 * MdiClient.cs: Maximize new active mdi child when a maximized child is
7740 closed see #325434 patch.
7742 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
7744 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
7747 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7749 * PropertyGridView.cs: When showing the textbox for a grid item,
7750 have two local variables to store the read-only and non-editable
7751 status of a grid item (we were previously using just one variable
7752 to do this, when actually they are slightly different).
7753 Fixes part of #325023.
7755 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7757 * PropertyGridView.cs: When showing a drop-down list, try to get the
7758 values using TypeConverter.ConvertTo (to convert to a string). Fixes
7761 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7763 * PropertyGrid.cs: When updating a property and populating sub grid
7764 items, remove the previous ones, and invalidate the specific area.
7765 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
7766 area behind a grid item.
7767 * GridItemCollection.cs: Add an internal Clear method, to allow us to
7768 clean the items if needed (specially for controls implementing
7769 ICustomTypeDescriptor and returning a variable number of properties).
7772 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
7774 * TextControl.cs: Clean up and document the Insert function.
7776 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
7778 * TextControl.cs: Make sure we know our start point for updating the view
7779 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
7782 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
7784 * ListView: Couple of corcompare fixes.
7786 2007-10-17 Geoff Norton <gnorton@novell.com>
7788 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
7789 the title caption of real window.
7791 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
7793 * ErrorProvider.cs: Add the error provider's internal window to a
7794 containercontrol when the parent changes. [Fixes bug #329714]
7796 2007-10-17 Geoff Norton <gnorton@novell.com>
7798 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
7799 When we make a new window; restore the old active window - fixes dialogs.
7801 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7803 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
7804 when modifying a property, and if found then invalidate as
7806 Fixes part of #324865.
7808 2007-10-17 Geoff Norton <gnorton@novell.com>
7810 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
7811 highly experimental. Fixed coordinate translation. Fixed window locations.
7812 Initial support for clipping. Implemented NC areas and menus. Support for
7813 launching from command line from Will Johansson (wjohansson@atacomm.com).
7814 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
7815 wjohansson@atacomm.com)
7816 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
7817 Hwnds now track the existence of all of their children for Mac clipping.
7818 * XplatUI.cs: Re-enabled the native driver on the Mac.
7820 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
7822 * Line.cs: Move the InsertString function to here.
7823 * TextControl.cs: Cleanup some duplicate code, move some InsertString
7824 functionality to Line.
7826 2007-10-17 Geoff Norton <gnorton@novell.com>
7828 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
7830 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
7832 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
7833 always setting value to true.
7834 * Form.cs: When changing AcceptButton, notify new and original button.
7836 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
7838 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
7839 a custom control that implements IButtonControl instead of an actual
7840 button. [Fixes bug #334244]
7842 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
7844 * Form.cs: Change SelectActiveControl to internal, we need to call it in
7847 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
7848 active control when activate a new mdi window.
7852 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
7854 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
7858 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
7860 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
7861 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
7862 so we always recalculate the whole document instead of just the new part.
7865 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
7867 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
7868 when the mouse was to the left of the first character in the line.
7870 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
7872 * TextBox.cs, TextBoxBase.cs: When setting the document's password
7873 character, use the property instead of the variable so that the
7874 UseSystemPasswordChar property is taken into account.
7877 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7879 * FolderBrowserDialog.cs: When a node is right clicked and the "New
7880 folder" contex menu appears, actually add the new folder to it, even
7881 if the node is not currently selected. Still use SelectedNode in case
7882 there wasn't found a node under the pointer.
7885 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7887 * ListViewItem.cs: When retrieving the focused state, the index check
7888 should be done only when ListView is in virtualmode, as it is an
7889 expensive check for normal mode.
7891 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7893 * ListViewItem.cs: Make the focus state information be stored
7894 in the ListView, not in the items. This is done to match the MS
7895 behaviour for items that are not yet part of a ListView control;
7896 besides that, since just one item can be focused at the same time,
7897 we save a little space in our items.
7898 Fixes part of #331643.
7900 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7902 * ComboBox.cs: When focus is lost, deselect the text. When setting
7903 text of control, select all text. Do not hide selection when control
7904 does not have focus. Fixes bug #333663.
7906 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7908 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
7909 instead of ArgumentException when SelectionLength is set to negative
7910 value. Added same check to SelectionStart. Code formatting.
7912 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7914 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
7915 or SelectionStart. Code formatting.
7917 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7919 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
7920 indicating that there was not a previous drag-and-drop operation going
7922 Fixes part of #325071.
7924 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7926 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
7927 AllowedEffect, don't let the drop operation happen.
7930 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7932 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
7934 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7936 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
7939 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7941 * Line.cs: Add a method that finds the tag that contains an x-coord.
7942 * LineTag.cs: Add a method that finds the character at an x-coord using
7943 a binary search, the old way was a linear search.
7944 * TextControl.cs: Change FindCursor to use the above new methods.
7946 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7948 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
7949 value different than AllowedEffect). This should be possible to
7950 indicate that dragging is not possible in some control/area.
7952 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
7954 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
7955 descent internally when font changes instead of outside code being responsible
7957 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
7958 instead of accessing internal variables.
7960 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
7962 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
7963 remove special treatment for ArrangeIcons since it is already arranged.
7965 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7967 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
7968 the Win32 backend uses Color.
7969 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7970 Refactor to store a Color instead of a Brush for Color.
7972 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7974 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
7975 away. I didn't realize I needed this when I refactored these earlier.
7977 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7979 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
7980 store a Color structure and use the ResPool for back color instead of
7981 holding onto brushes.
7983 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7985 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
7988 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7990 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
7991 to recalculate its size. Fixes a part of bug #331052.
7993 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7995 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
7996 button. Fixes a part of bug #331052.
7998 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8000 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8002 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8006 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8008 * TextBoxTextRenderer.cs: Don't make this a static class, as static
8009 doesn't exist in 1.1. (Thanks jb!)
8011 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8013 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8014 class to allow us to use different backends on different platforms.
8015 Linux uses the current [Draw|Measure]String backend. Windows uses
8016 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8017 of GDI+. This leads to better looking text and more accurate measurements
8018 on Windows, fixing many of the reported issues.
8019 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8021 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8023 * FolderBrowserDialog.cs: When running on Windows,
8024 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8025 since we must match both "C:" and "C:\" forms. A little hackish, but
8029 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8031 * ListView.cs: When calling EndEdit (after editing an item),
8032 create a new instance of LabelEditEventArgs to keep clean the fields
8033 in case we get a new call to BeginEdit; also do Application.DoEvents
8034 to have focus in synch. This is a fix similar to TreeView's #325244.
8036 2007-10-07 Andreia Gaita <avidigal@novell.com>
8038 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8039 * WebBrowserBase.cs: Added dialog support, calling the
8040 WebBrowserDialogs classes for each specific dialog type.
8042 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8044 * ListView.cs: When the last item is focused and is removed,
8045 move the focus to the previous item (in Items order). This is what MS
8049 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8051 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8052 instead of the opposite (RemoveAt call Remove). This is a better
8053 approach since we don't need to to a pair of traversals when using
8056 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8058 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8059 check that the node actually has nodes, and if not, move to the
8060 parent node instead.
8063 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8065 * TreeView.cs: Move the previous change to the general case (to
8066 call Application.DoEvents in cases where the method was called by
8069 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8071 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8072 call Application.DoEvents. This is neccessary when we get a call to
8073 BeginEdit from an AfterLabelEdit handler, because the focus always
8074 goes to the TreeView, even if we try to give it to our
8075 LabelEditTextBox. The call do Application.DoEvents seems to
8076 synchronize the focus, basically.
8079 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8081 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8082 should be false. This also removes some nasty recursive paths. Fixes
8085 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
8087 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8088 state to normal. Also resize window when cascading. Fixes #325433.
8090 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8092 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8093 DefaultForeColor, as drawing empty colored lines isn't very useful.
8094 [Fixes the not drawn lines part of bug #324358]
8096 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8098 * TextControl.cs: Move Line and LineTag classes into separate files to
8099 make things easier to find.
8100 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8101 * RichTextBox.cs: Capitalize LineTag.Length property access.
8102 - This is purely an organizational/formatting change, no logic changed. -
8104 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8106 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8109 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8111 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8114 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8116 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8117 prevent calling of OnBackColorChanged. Fixes #325321.
8119 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8121 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8122 because control can be disabled because owner is disabled.
8124 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8126 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8127 string.Empty, test failed from previous change.
8129 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8131 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8132 is null, not String.Empty. See bug #323038.
8134 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
8136 * TextControl.cs: Change the margins to match MS a little better.
8137 Still not perfect for X11 due to some DrawString differences, but
8138 is still an improvement over the old stuff.
8139 Partially fixes #324467.
8141 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8143 * FolderBrowserDialog.cs: When using MyComputer as
8144 RootFolder, let absolute paths be considered as valid ones. Also, use
8145 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8146 for Windows compatibility.
8147 Partially fixes #325247.
8149 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8151 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8152 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8153 method, since it causes the dialog to not select folders directly
8154 under the root path (when setting SelectedPath property).
8156 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8158 * TreeNode.cs: When calling Expand/Collapse and need to call
8159 ExpandBelow/CollapseBelow respectively, take into account
8160 partially visible nodes (previously Expanding/Collapsing
8161 a partially visible node in the bottom was not updating its +- sign).
8163 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8165 * TreeView.cs: When calling Expand on a TreeNode, and we need to
8166 expand nodes below (ExpandBelow), scroll the entire Viewport
8167 area if the node is above it and not visible (instead of scrolling
8168 the area from node's Bottom, which applies only when the node is
8172 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8174 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8175 node in the bottom area (as .Net does). This is done to preserve the
8176 scroll position when ExpandAll is called before handle is created for
8177 the 1.1 profile (bottom area, as opposed to top area in 2.0).
8180 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8182 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
8183 bottom area if we are in fact not using the vertical scroll bar.
8186 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8188 * Control.cs: Comment out a double buffering optimization that doesn't
8189 take into account invalidates created in OnPaint, causing the control
8190 to never be redrawn. It would take quite a bit of work to work around
8191 this, but I left it commented with an explanation for later possible
8195 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8197 * Control.cs: Ask parent to perform a layout if control is AutoSize and
8199 * RadioButton.cs: Implement GetPreferredSizeCore.
8202 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8204 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8207 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8209 * Application.cs: Move the sync context stuff to Run instead of RunLoop
8210 so that it doesn't get uninstalled on modal forms.
8211 * Control.cs: Install a sync context when a control is created.
8212 * WindowsFormsSyncronizationContext.cs: Create a private static control
8213 to invoke on. This is easier than trying to find a created control we
8217 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
8219 * Application.cs: Install a WindowsFormsSynchronizationContext in the
8220 run loop, and uninstall it when done.
8221 * WindowsFormsSynchronizationContext.cs: Implement.
8222 [Fixes the common case in bug #327608]
8224 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
8226 * DataGridViewCellCollection.cs: Added argument checks for indexers.
8227 Use case-insensitive lookup of column name in indexer. Code
8230 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8232 * TreeNode.cs: When collapsing or expanding a node, check whether its
8233 change will affect the visible area (we were previously doing a
8234 IsVisible check, but that check is not enough since children nodes
8235 could be still visible). Fixes part of #325266.
8237 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8239 * TreeView.cs: Always select the first node when the TreeView gets
8240 focus if there is no currently selected node.
8243 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8245 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8246 node being selected is null.
8247 [Patch from Yves Bastide fixes bug #326858]
8249 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8251 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8252 whether all the parent nodes are expanded.
8253 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8254 call RecalculateVisibleOrder if all previous nodes are expanded.
8255 Before that we were doing a IsVisible check, but sometimes the node
8256 is not in the visible area, but _should_already be ready, because of
8257 all previous nodes are expanded. Fixes #325259.
8259 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8261 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8262 portion of the item is clicked.
8264 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8266 * TextControl.cs: Do not tell the system to move the cursor if the
8267 textbox isn't focused. Fixes part of bug #322668.
8269 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8271 * ComboBox.cs: When there are no items, do not show the dropdown if
8272 the down arrow is clicked. Fixes part of bug #322668.
8274 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8276 * ToolStripComboBox.cs: Manually set the size of this control in the
8277 constructor, as it doesn't seem to be the same as DefaultSize.
8278 Fixes a failing monobuild test.
8280 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8282 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8283 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
8285 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8287 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8288 Desktop. This lets it work for people who have moved their desktops
8289 from the default location on windows. For people who have not, both
8290 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
8292 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8294 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8295 but when the base constructor sets this, the control is null. Set it
8296 again in the constructor. Fixes a failing monobuild test.
8298 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8300 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8302 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8305 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8307 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8308 will handle it themselves.
8309 * ToolStripItem.cs: When deciding what the text of a tooltip should
8310 be, use the Text property instead of the text field.
8311 * ToolStripTextBox.cs: Handle tooltips.
8312 [Fixes bugs #325417 and #325973]
8314 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8316 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8317 left click. Fixes the easy part of bug #325969.
8319 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8321 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8322 bug #325406, but set a minimum for StatusStrip to 22 to keep
8323 bug #325390 fixed. I think this minimum would have been figured
8324 up automatically if the grip was actually a ToolStripItem, but it
8327 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8329 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8330 as this is apparently the actual value used by .Net. Also apply
8331 ItemPadding in Details view only, and decrease the general width padding,
8332 to have only the needed. This should fix #324340 in Windows too.
8334 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8336 * ListViewItem.cs: Don't Invalidate item if parent is inside
8337 a BeginUpdate/EndUpdate block. This prevents to have differences
8338 between the ListView and items state, as well as avoid some exceptions
8340 * ListView.cs: Make 'updating' field internal.
8342 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8344 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8345 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8346 size if appropriate.
8347 Fixes reopened bug #325414.
8349 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8351 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8352 * ToolStripItem.cs: Invalidate before and after our new autosize when
8354 Fixes reopened bug #325390.
8356 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8358 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8359 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
8362 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8364 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
8366 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8368 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8369 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8372 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8374 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
8375 item to select when the ToolStrip is selected.
8376 * ToolStripControlHost: Realign the control when the bounds or visibility
8378 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8379 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8381 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8382 base.OnPaint. Was causing text not to be drawn.
8384 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8386 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8388 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8390 * TreeView.cs: When creating the label edit text box,
8391 set is initially to Visible = false. This is done to
8392 prevent a confusion in the layout which makes it to lose
8393 focus when shown the first time. Fixes part of #82592.
8395 2007-09-13 Andreia Gaita <avidigal@novell.com>
8397 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8399 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8401 * ToolStrip.cs: Take Margin into account when calculating preferred
8402 size. Also, allow preferred size to get smaller than the explicit
8404 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
8405 First step towards fixing bug #82747.
8407 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8409 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
8410 full row select background over the plus/minus glyph. Also, turn
8411 off the focus rectangle for full row select since MS doesn't seem
8412 to ever paint it. [Fixes bug #81839]
8414 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8416 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
8417 This was causing keyboard opened dropdowns to lose focus.
8420 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8422 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
8423 ClientRectangle instead. [Fixes bug #82838]
8425 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8427 * SplitContainer.cs: We can't reset Visible on every layout because
8428 someone may have set Visible = false explicitly on a SplitterPanel.
8429 Make sure when we switch orientation the SplitterDistance does not
8430 change. Fixes two failing tests.
8432 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8434 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
8435 TextRenderer, since the latter is only available in 2.0.
8437 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
8439 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
8440 * SplitContainer.cs: Implement FixedPanel layouting.
8442 2007-09-12 Andreia Gaita <avidigal@novell.com>
8444 * WebBrowserBase.cs: setup shutdown routine
8446 2007-09-12 Andreia Gaita <avidigal@novell.com>
8448 * Application.cs: Let keyboard events that are targetted
8449 to non-mwf windows hosted inside mwf (as in, webbrowser),
8450 propagate properly. Fixes keyboard handling on the webbrowser.
8452 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8454 * ListView.cs: When handling MouseUp event and we are
8455 highligting a node with the mouse right button, don't trigger
8456 Before/AfterSelecting event, since we are not actually selecting
8459 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8461 * TreeView.cs: When editing a node, modify the edit text box
8462 depending on the text length (as you are typing), like MS does.
8464 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8466 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
8467 Override GetPreferredSizeCore to perform calculations. Remove custom
8468 autosize logic. [Fixes bug #82739]
8470 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8472 * TextBoxBase.cs: Modified should default to false.
8474 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8476 * Control.cs: Update the anchoring distances even when layout is supspended.
8477 Patch provided by George fixes bug #82805.
8479 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8481 * Control.cs: Provide a setter for ExplicitHeight.
8482 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
8483 remove the hacks in here for requested_height.
8486 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8488 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
8489 Maximum to lower that its current Value caused an ArgumentException by setting
8490 the Value to the new Maximum.
8492 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8494 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
8495 handle moves to the closest tick when it is being dragged.
8498 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8500 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
8501 can't let them count as real items when calculating where to merge in the
8502 user's items. [Fixed bug #82786]
8504 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8506 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
8507 who want to add a menu item directly onto a toolstrip.
8508 [Fixes bug #82775, part II]
8510 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8512 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
8513 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
8514 don't set it to available.
8515 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
8516 [Fixes bug #82727, part II]
8518 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8520 * StatusStrip.cs: Change item placement to None if not visible.
8521 * ToolStripItem.cs: Invalidate when InternalVisible changes.
8522 These should have been committed to fix 82723, but I missed them.
8524 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8526 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
8527 Click, and that it is only called once.
8528 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
8529 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
8533 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8535 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
8537 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
8538 instead of 8, just like above. Partially fixes #82734.
8540 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8542 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
8545 * ListView.cs: Remove extra space between rows in Details view (match
8547 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
8550 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
8552 * Application.cs: Modified ProductVersion to return value of
8553 AssemblyInformationVersion if available, and fallback to assembly
8554 version. Fixes bug #82746. Code formatting.
8555 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
8558 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8560 * Control.cs: When updating ZOrder for a child control,
8561 take into account the implicit ones (we need it in our controls
8562 using them). Fixes #82642.
8564 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
8566 * ToolStripItem.cs: Add support for animated images.
8569 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
8571 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
8572 visible. [Fixes bug #82727]
8574 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8576 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
8577 so we repaint using the new size. [Fixes bug #82723]
8579 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8581 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
8582 option. [Fixes bug #81779]
8584 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8586 * TreeView.cs: Override HandleClick because the StandardClick style is
8587 set to false. According to MSDN (and testing), the click events should
8588 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
8590 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8592 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
8593 the border will disappear. Fixes reopened #82653.
8595 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8597 * Control.cs: If the control is autosize, and its preferred size changes
8598 when it lays out its children, tell its parent so it can be re-layed out.
8599 Fixing some of the fallout from r85433.
8601 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8603 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
8604 and CheckBox share some code.
8606 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8608 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
8609 the TrackBar, not every mouse move. [Fixed bug #82718]
8611 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8613 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
8614 under 2.0 rendering. [Fixes bug #82657]
8616 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8618 * TreeView.cs: If we found a TreeNode to display a context menu, but
8619 it doesn't have one to show, let the TreeView display its menu
8620 instead. [Fixes bug #82680]
8622 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8624 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
8625 OnPaintInternal instead. Give the internal TextBox a Border property
8626 so it can draw itself more correctly. [Fixes bug #82653]
8628 2007-09-06 Zoltan Varga <vargaz@gmail.com>
8630 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
8632 2007-09-05 Everaldo Canuto <everaldo@simios.org>
8634 * ComboBox.cs: Adjust combobox button state to reflect current state when
8635 back to enabled = true. Fixes first issue of #82654.
8637 2007-09-05 Everaldo Canuto <everaldo@simios.org>
8639 * Control.cs: Fix last patch regression, prevent forms to update zorder when
8640 setting visible property.
8642 2007-09-05 Everaldo Canuto <everaldo@simios.org>
8644 * Control.cs: Update zorder after control creation in SetVisibleCore, it
8645 fix zorder for controls initially created as non visible. Fixes #82667.
8647 2007-09-04 Everaldo Canuto <everaldo@simios.org>
8649 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
8650 mimic win32 look. Fixes #82656.
8652 2007-09-01 Zoltan Varga <vargaz@gmail.com>
8654 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
8655 Stubs for new net 3.5 classes.
8657 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8659 * ListViewItem.cs: In ListViewItemCollection operations calculate
8660 Layout for owner as well as invalidate it. Fixes part of #82642.
8662 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
8664 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
8665 when returning Enabled. [Fixes bug #82651]
8667 2007-08-30 Everaldo Canuto <everaldo@simios.org>
8669 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
8671 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8673 * ListView.cs: Put item padding info in a single place
8674 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
8676 * ThemeWin32Classic.cs:
8677 * Theme.cs: Likewise.
8679 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8681 * ListView.cs: When a ListViewSubItem instance is invalidated,
8682 invoke Invalidate on parent ListViewItem, not parent ListView.
8685 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8687 * ListView.cs, ListViewItem.cs: corcompare stuffs.
8689 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8691 * BindingMemberInfo.cs: Implement == and != operators.
8693 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8695 * HtmlElementEventArgs.cs: Implement properties.
8697 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8699 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
8701 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8703 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
8704 Add (string,string,string) to implement the imagekey. It turns out, we
8705 use the requested imagekey whereas .Net does not. So I broke ours to match
8708 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8710 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
8712 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8714 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
8716 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
8718 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
8719 up-to-date. Fixes bug #82618.
8721 2007-08-29 Everaldo Canuto <everaldo@simios.org>
8723 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
8724 reflect document changes. Fixes #82367.
8726 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8728 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
8729 as well as add new ones. This should make work the BackgroundImage
8730 property for ListView again.
8732 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
8734 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
8735 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
8736 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
8738 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
8740 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
8743 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
8745 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
8746 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
8748 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
8750 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
8751 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
8753 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
8755 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
8757 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
8759 * GridEntry.cs: Implement GetService.
8761 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
8763 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
8764 for label editting, make sure we focus back on the TreeView.
8767 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8769 * ListView.cs: Add some 2.0 overrides.
8771 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
8773 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
8774 because getter dont returns right value before handle creation. Thanks
8775 to George. Fixes #82569.
8777 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
8779 * Theme.cs: Revert last patch, it causes error under win32.
8781 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
8783 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
8784 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
8785 logical Desktop rather than the physical file system location. Fixes #82603.
8787 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
8789 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
8790 for the patch. Fixes #82568.
8792 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8794 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
8797 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8799 * ListViewInsertionMark.cs: New stubbed class.
8801 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
8803 * FolderBrowserDialog.cs: When adding folder, immediately create the
8804 directory with temporary name and rename the directory when editing
8805 finishes. This matches MS. Ensure the node for the new folder is
8806 selected and LabelEdit is disabled, when editing is either finished
8809 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
8811 * TreeView.cs: When editing label of node, ensure node is visible.
8813 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
8815 * PropertyGridView.cs: Set the value only if it has changed.
8817 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8819 * ListView.cs: Some more code refactoring to add support sorting
8820 with groups (now for Details view). Remove unused code also.
8822 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8824 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
8825 Not a big fan of reacting immediately to a field in an EventArg, but that's
8826 the way it's done. (This is part of the previous commit that got left out.)
8828 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
8830 * FolderBrowserDialog.cs: Removed need for separate description field.
8831 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
8832 has focus when dialog box is displayed again, regardless of what
8833 button was pressed the previous time. Set RootFolder and SelectedPath
8834 each time dialog box is displayed. This ensures the treeview is
8835 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
8836 when it does not have focus. Added support for more special folders.
8838 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8840 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
8841 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
8842 it resets the edit_args.
8843 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
8846 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
8848 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
8849 button to match MS. Provide more meaningful exception message for
8850 invalid RootFolder value. Use zero-length string when SelectedPath
8851 is set to null. Allow non-rooted paths in SelectedPath, but ignore
8852 them in FolderBrowserTreeView. Allow folders to be created in
8853 RootFolder. Fixes bug #82576.
8855 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8857 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
8858 since we need to take into account the group headers and the margin
8860 * ListViewGroup.cs: Add a rows field to store the number of rows per
8863 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8865 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
8866 Anyways, let's just follow the lead.
8868 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8870 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
8871 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
8872 controls in GetPreferredSizeCore.
8873 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
8876 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8878 * PrintDialog.cs: Need to instantiate the form variable here too.
8880 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8882 * ListView.cs: Do some reorganization to support sorting in groups,
8883 by doing the layout sequentially in ListView.Items. Also add support
8884 for the Default Group, which should be available for items with no
8886 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
8887 for storing layout info also.
8888 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
8889 collection, as well as providing internal members to do a traversal
8890 including the default group (needed when doing layout/drawing).
8891 * ThemeWin32Classic.cs: When drawing group headers use internal
8892 ListViewGroupCollection members to take into account the default
8895 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
8897 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
8899 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8901 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
8902 been created. If handle is created, we want arror keys. If we are editing
8903 a node, we want things like enter, esc, home, end, page up, page down.
8904 Allows Esc to work for FolderBrowserDialog.
8906 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8908 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
8909 they close when ESC is pressed. Thanks Andy!
8911 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8913 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
8914 This way we can tell if this is a CommonDialog provided with mono, or one
8915 that is being implemented outside by a developer. If it is an external one,
8916 the developer is responsible for showing their own form. We were showing
8917 our blank form after the developer showed his.
8918 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
8919 PageSetupDialog.cs: Instantiate form variable in our constructor.
8922 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8924 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
8925 and always return true. [Fixes bug #81616]
8927 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8929 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
8930 TextBox. [Fixes bug #82549]
8932 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
8934 * FileDialog.cs: When Save/Open is clicked and no filename is selected
8935 or entered then do not close the dialog. Fixes bug #82539. Removed
8938 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
8940 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
8941 code to this method. It is calling every time filter changes. This method
8942 will help to fix the bug #80887.
8944 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
8946 * CheckBox.cs: Implement AutoSize calculation.
8948 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
8950 * CheckBox.cs: Use new 2.0 rendering for 2.0.
8951 * Theme.cs: Method declarations for 2.0 rendering path.
8952 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
8954 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8956 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
8958 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8960 * ListViewGroupCollection.cs: Implement AddRange the right way, to
8961 only call Redraw on the parent one time.
8963 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8965 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
8966 GetClipboardContent.
8967 * DataGridViewCell.cs: Implemented GetClipboardContent,
8968 GetEditedFormattedValue, GetFormattedValue.
8969 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
8971 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
8973 * TableLayoutStyleCollection.cs: corcompare fix.
8975 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8977 * DataObject.cs: Implemented retrieval of convertible / not convertible
8980 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
8982 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
8983 ourselves. This ensures the entire old bounds are repainted, in case our new
8984 size is smaller. [Fixes bug #82518]
8986 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
8988 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
8989 flag to make fast handle of mouse events, without this the mouse move is
8990 handled in some manner, whether it is a mouse move or not. Fixes #81588.
8992 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8994 * ListView.cs: When doing layout calculations don't use a ref
8995 param to keep the current item; instead use its Index value (this
8996 is specially important when doing the layout with Groups
8997 and Items being sparse). Also don't take into account items added to
8998 the Group but not yet added to the main ListView.Items collection.
9000 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9002 * ListViewGroupCollection.cs: Forgot to mimic an issue
9003 in the indexer (don't assign the ListView owner for new values).
9005 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9007 * ListViewGroupCollection.cs: Make the string indexer use
9008 the int based indexer to re-use code, instead of duplicate the code.
9009 Also Redraw as needed and take into account null values.
9011 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9013 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9016 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9018 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9019 when other buttons are clicked or navigated to.
9021 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9023 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9024 it's XplatUIX11 that attaches them.
9026 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9028 * DataGridView.cs: If a column has been added, recreate the editing row.
9031 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9033 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9034 of the tag to draw. Makes disappearing text show up again.
9036 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9038 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9039 Contents. Fixes #82487.
9041 2007-08-19 Andreia Gaita <avidigal@novell.com>
9043 * Added HtmlElement.cs, HtmlElementCollection.cs,
9044 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9046 2007-08-19 Andreia Gaita <avidigal@novell.com>
9048 * BindingSource.cs: Implement this, dispose and getenumerator.
9049 * DataGridViewRowCollection.cs: Move the InvalidOperationException
9050 out of AddInternal, throw it only on public Add calls. The
9051 UsingWebBrowser sample was blowing up with this when setting the
9052 DataSource after adding DataBindings, so it's likely that .net
9053 only throws this exception when Add is called directly.
9055 * ToolStripControlHost.cs: Return the hosted control's text
9056 property, and not the ToolStripItem one (it would always return
9059 * HtmlDocument.cs: Implement GetElementById and All
9060 * WebBrowser.cs: Remove exception on set_DocumentStream.
9062 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9064 * Form.cs: Fix the max and min value for opacity (0~1).
9066 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9069 * DataGridTableStyle.cs: Default header font is now null, on getter it
9070 returns datagrid font when is null. On setter permits null.
9073 - When ResetHeaderFont set header font to null.
9074 - On EndInit set grid_style.DataGrid.
9076 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9078 * TabControl.cs: Fix regression in default padding x.
9080 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9082 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9084 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9086 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9087 not 2. Fixes #82229.
9089 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9091 * TabControl.cs: Fix tab size when image height is less than text height.
9092 Partially fixes #81837.
9094 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9096 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
9097 "alt + tab". It works only for Win32, for X11 theres no way to remove window
9098 from taskbar and keep it on "alt_tab". Fixes #81722.
9100 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9102 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9103 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
9104 Fixes #80877 and #79418.
9106 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9108 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
9109 between position and one of the screen borders. Fixes #82349.
9111 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9113 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9114 the MessageBox in the taskbar. Fixes #82457.
9116 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9118 * MessageBox.cs: Fix form size when icon is set and text height is bigger
9119 than icon. Fixes #82468.
9121 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9123 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9124 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9125 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9126 Refactored HandleNCCalcSize somewhat to avoid code duplication.
9127 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9128 FormBorderStyle to decide if we're calculating a new size from the
9129 client size or not. CreateParams: Don't fake tool windows, only the X11
9130 backend manages toolwindows manually.
9132 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9134 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9135 ObjectDisposedException.
9137 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9139 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
9140 in OnLoad should not have any effect. [Fixes bug #82470]
9142 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9144 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9145 paint for controls that create their own ToolTipWindow instead of
9146 going through ToolTip.
9148 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9150 * ToolTip.cs: Make Hide internal instead of public to match MS API.
9152 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9154 * ListViewGroupCollection.cs: Use generic List instead of an
9155 ArrayList, since this collection is 2.0 only.
9157 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
9159 * ToolTip.cs (Hide): Made public to make the build work (should
9160 this not be public?).
9162 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9164 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9166 * ToolTip.cs: Add an internal Visible property to facilitate transition.
9168 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9170 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9171 PopupEventHandler.cs: Make these internal for 1.1.
9172 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9173 use ToolTipWindow internals.
9174 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
9175 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9177 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9179 * X11Dnd.cs: Add a null check.
9181 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9183 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9184 nothing else succeeds. Fixes #82453.
9186 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9188 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9189 rectangle if we're painting to another window than the one the paint
9190 message was generated on. Simplify the code somewhat, which makes
9191 PaintEventEnd also simpler.
9193 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9195 * Control.cs: When changing parent of a form, let the form decide whether
9196 XplatUI.SetParent should be called or not.
9197 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9198 recreating the handle. If the new parent's handle isn't created, don't
9199 recreate our handle, just destroy it. CreateParams: Check if the
9200 parent's handle is created before fetching it.
9202 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9204 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9205 Update calls to PaintEventStart/End to take a Message argument.
9206 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9207 take a Message argument.
9208 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9209 Message argument, and handle the case where we don't paint to the window
9210 for which the paint message was generated.
9212 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9214 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9215 Marshal.GetLastWin32Error. Plug nasty memory leak in
9216 PaintEventStart/End, we were creating a DC we weren't releasing.
9218 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9220 * ListView.cs: Add Groups support in Details view. Also have a small
9221 method to do the layout of the group header. Don't use a separate
9222 method to do the groups calculation in Icons view, since our methods
9223 are now a little simpler.
9224 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9226 * ThemeWin32Classic.cs: Likewise.
9228 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9230 * Application.cs: Add FilterMessage method and rework our message loop
9233 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9235 * Application.cs: Add some methods and stub a few methods that are
9236 pretty much never used.
9238 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
9240 * TreeNode.cs: Add some serialization methods.
9242 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9244 * ListView.cs: In ListViewItemCollection have a
9245 'is_main_collection' field to not modify ListViewItem.ListView
9246 when using it as ListViewGroup.Items (and not ListView.Items)
9247 and also don't modify selection state (.Net behaviour).
9248 Instead, set group for items contained in a ListViewGroup.Items collection.
9249 * ListViewItem.cs: Simplify some code in Group setter.
9250 * ListViewGroup.cs: use the new .ctor to pass the current instance
9251 to the ItemsCollection.
9252 * ListViewGroup.cs: Set the ListView property for ListViewGroup
9253 instances when adding/removing. Also make Remove use RemoveAt, which
9254 should perform better.
9256 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9258 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9259 that crept into the 1.1 profile.
9261 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9263 * ToolBarButton.cs: Implement ImageKey.
9265 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9267 * ToolBar.cs: Implement ScaleControl/ScaleCore.
9269 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9271 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9272 created, it might have gotten destroyed since we last checked. Fixes
9275 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
9277 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9278 tooltip will hide when mouse is moved off the control.
9281 2007-08-11 Andreia Gaita <avidigal@novell.com>
9283 * WebBrowserBase.cs, WebBrowser.cs: add implementation
9284 using Mono.Mozilla for loading and navigating webcontrol
9286 The initial implementation was done on
9287 /trunk/mozembed/tests/browser , and copied here.
9289 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
9291 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9292 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9294 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9296 * DataGridView.cs: Add support for an editing row. Fixes #82226.
9297 RowTemplateFull: throw an exception if a column doesn't have a template.
9298 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9299 add the row just before it.
9300 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9302 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9303 DataGridView field to be able to reach the grid's editing row.
9305 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9307 * ToolTip.cs: If the control's handle hasn't been created when it has a
9308 tooltip set on it, don't check to see if we need to show the tooltip. This
9309 check was causing the control's handle to be created.
9312 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9314 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9316 Handle Not Created -1 0
9320 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9322 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9325 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9327 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9328 * ToolTip.cs: Implement some properties and owner draw.
9330 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9332 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9333 show them again, since setting visibility causes a paint, causing an
9334 endless loop (instead use a temporary and set it all when it's known if
9335 they should be shown or not). Fixes #79265.
9337 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9339 * DataGridView.cs: Only do a full column/row selection if a header was
9340 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9341 isn't pressed, deselect everything before selecting something.
9343 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9345 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9346 behaviour according to bug #81075 - they are returned in the order they
9347 are selected. Fix HitTest to check if the point is within any of the
9348 headers. Allow for row/column selection when in ColumnHeader or
9349 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9350 the row and column to call when their selected state changes, and
9351 updated selected_[rows|columns] whenever SetSelected* is called.
9352 * DataGridViewBand.cs: Initialize isRow correctly. Call
9353 SetSelected[Row|Column]CoreInternal when the selected state changes, and
9354 add a SelectedInternal to avoid StackOverflows.
9355 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9356 ReadOnly no matter what.
9357 * DataGridViewSelectedColumnCollection.cs,
9358 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9359 the items in reverse order (just as MS does...)
9361 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9363 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9364 itself, not part of a mnemonic. [Fixes bug #82378]
9366 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9368 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9369 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9370 the DGV, the column, the row, or the cell itself is readonly.
9372 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9374 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9376 * FileDialog.cs: Same.
9377 * TextRendered.cs: Same.
9378 * FolderBrowserDialog.cs: Same.
9379 * TextBoxBase.cs: Same.
9380 * Application.cs: Same.
9382 * ThemeClearLooks.cs: Same.
9384 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9386 * XplatUI.cs: Added RunningOnUnix property to be used by controls
9387 instead of duplicating these checks everywhere.
9388 * FileDialog.cs: Use case-insensitive comparison for populating the
9389 DirComboBox when not running on unix. Fixes bug #82385.
9390 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
9393 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9395 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9396 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9397 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9398 cell and column selection with ctrl and shift pressed. Call the correct
9399 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9400 the corresponding virtual method (PaintBackground to paint background,
9402 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
9403 either the column, row or the cell itself is selected.
9404 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
9406 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
9407 here. When the row is selected, don't select all cells. Each cell now
9408 queries the row to see if the row is selected.
9410 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9412 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
9415 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9417 * ListView.cs: In ListViewItemsCollection check that owner is
9418 not null before trying to access it (this happens quite often
9419 using Groups). Also don't duplicate calls by calling CollectionChanged
9422 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9424 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
9425 when we are dismissed to clear keyboard mnemonics.
9426 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
9427 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
9428 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
9429 was activated by keyboard or the OS tells us to always draw them.
9430 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
9431 [Fixes bugs #82376, #82377]
9433 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9435 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
9436 shot at having it because Alt was pressed.
9437 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
9438 the first real menu item.
9439 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
9440 a mnemonic if Text is null.
9443 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9445 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
9446 search do check whether the item is already contained in the
9447 collection or not; instead check if the owner of the item is the same
9448 as ours. Also, remove a redundant check in the same method.
9450 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9452 * Control.cs: Allow the clip region to be set back to null.
9453 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
9454 [Fixes button still showing up in bug #82370 when Show Through is turned off]
9456 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9458 * GridEntry.cs: Add a null check.
9459 * PropertyGrid.cs: When checking for existing grid entries, ignore category
9460 entries. Fixes #82297.
9462 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9464 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
9467 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9469 * ListBox.cs: Implement ScaleControl.
9471 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9473 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
9475 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
9476 parent has a menu strip. Fixes #81689.
9478 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9480 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
9481 moments, so apply some fuzzy logic to determine if the mouse is still
9482 inside a control or not. Fixes #82288 (for the third time).
9484 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9486 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
9487 Don't create the child if it has been disposed already (may happen if
9488 the user closes the form the Load event).
9490 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9492 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
9495 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9497 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
9498 might call us after we've been destroyed, in which case our own private
9499 parent field is null. Fixes #82326.
9501 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9503 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
9504 check for setting the dropdown's owner.
9506 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9508 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
9509 before removing system menu items.
9511 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
9513 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
9515 * MdiControlStrip.cs: Added. These are the menu items used in mdi
9517 * ToolStrip.cs: Add a null check to mnemonics.
9518 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
9520 [Fixes most of bug #81689]
9522 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9524 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
9526 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9528 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
9530 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9532 * DataGridViewCell.cs: EditType: returns
9533 DataGridViewTextBoxEditingControl always.
9535 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
9537 * TextRenderer.cs: Remove the LineLimit string format flag from the
9538 DrawString fallback method so that things like buttons that aren't
9539 tall enough to draw a full line will still draw part of the text.
9540 [Fixes part of bug #82272]
9542 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9544 * DataGridView.cs: Implemented AutoResizeColumn(s).
9545 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
9546 according to the Alignment.
9547 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
9548 Implement alignment and padding when painting.
9549 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
9551 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
9553 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
9556 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9558 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
9561 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9563 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
9564 hide GetPreferredSize from public API.
9565 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
9566 * ToolStripItem.cs: Stub out drag and drop methods and events.
9567 * ToolStripManager.cs: Stub out Save/LoadSettings.
9568 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
9569 * ToolStripPanel.cs: Fix corcompare error.
9570 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
9571 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
9572 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
9574 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9576 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
9577 bounds height instead of PreferredHeight. Puts things back the way
9578 they were for height while still fixing the width. Fixes broken unit
9581 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9583 * Binding.cs: Implement 2.0 constructors and add a null check.
9585 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9587 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
9588 and fix row index (off by one).
9590 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9592 * PropertyGridView.cs: Remove debug output.
9594 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9596 * Control.cs: We need to reset the is_created flags when the handle is
9597 destroyed. Fixes #82187.
9598 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
9599 client coordinates if the window doesn't have a parent.
9600 Win32GetParent returns the parent or the owner, and for top-level
9601 windows with no parent (but with an owner) we were calculating the
9602 location from the location of the owner.
9603 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
9604 form has been disposed.
9605 * MdiClient.cs: Add a null-check.
9607 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
9609 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
9610 actually do auto-sizing. Override the internal GetPreferredSizeCore
9611 so we can provide an implementation that returns the current width
9612 and preferred height. Allows anchor = right to work with TextBox 2.0.
9615 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9617 * ListView.cs: Add support for navigating items in Groups mode, by
9618 creating a big matrix containing all rows and cols of all groups. When
9619 are in other mode than Details, pressing Up should have a similar
9620 behaviour as that one of Down (moving to the next available column if
9621 current one doesn't have an item in the requested row). Also, don't
9622 proceed to use groups if ShowGroups is false.
9623 * ListViewGroup.cs: Add an internal int field to store the starting
9624 row of the group (used by the big matrix used for navigating the
9626 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
9629 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
9631 * ToolStripDropDown.cs: When we do Show, start with the
9632 DefaultDropDownDirection, but if our popup menu is going to off-screen,
9633 modify the direction to keep it on screen. [Fixes bug #82210]
9635 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
9637 * FileDialog.cs: Accept any FilterIndex value, and store it
9638 unmodified. When FilterIndex is less than 1, or greater than number
9639 of filters, then default to first filter. Only add filter extension to
9640 file if user did not specifiy an extension. When type of dialog is
9641 OpenFileDialog and DefaultExt is set, then only use filter extension
9642 if: CheckFileExists is true and no file wih the default extension
9643 exists, or CheckFileExists is false, and user specified file does not
9644 exist. When CheckFileExists is true, then add first extension of
9645 selected filter that matches existing file. Perform checks for
9646 existing file, overwrite and create after extension has been added to
9647 file name. When CheckFileExists is true and type is SaveFileDialog,
9648 then only consider first filter extension if DefaultExt is set.
9649 When CheckFileExists is true, then ignore DefaultExt if file with that
9650 extension does not exist. Also perform check for existing file when
9651 type is SaveFileDialog. Changed some field to constants.
9653 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9655 * ListView.cs: Take into account the region used by header
9656 control when doing the vertical scroll (this way we invalidate
9657 the precise area, and don't get any dirty one).
9659 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
9661 * FileDialog.cs: Check for valid filterIndex on button open/save.
9664 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9666 * ListView.cs: Update some layout calculations in details view
9667 and clean the code in a pair of assignations.
9669 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9671 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
9672 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
9673 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
9674 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
9676 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9678 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
9679 performance of thread-safe Graphic methods. (Thanks rolf!)
9681 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9683 * ListView.cs: When doing the layout calculations, don't calculate
9684 scroll bars before handle is created. This is unnecessary and also
9685 calculating them before handle creation item causes a number of random
9686 bugs (which begin to appear after Chris' big patch for handle creation
9689 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9691 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
9692 for things that don't have a Graphics object. Currently, things just use
9693 the static Hwnd.bmp_g which is not thread safe.
9695 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9697 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
9698 dialog. Fixes #82187.
9700 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9702 * DataGridViewElement.cs: Initialize state.
9703 * DataGridView.cs: Forward a few Mouse events to cells. Add
9704 GetRowInternal and GetCellInternal that doesn't unshare rows.
9705 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
9706 don't use the index, but look it up. Add
9707 DataGridViewControlCollection.RemoveInternal to remove controls
9708 that Remove won't remove (scrollbars, edit control).
9709 * DataGridViewColumn.cs: Initialize State correctly.
9710 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
9711 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
9713 * DataGridViewRowCollection.cs: Implemented shared rows.
9714 * DataGridViewRow.cs: Throw exceptions as MS do.
9715 * DataGridViewCell.cs: A few properties are implemented by a
9716 Get<Property> method, so move implementation there and remove the
9717 NIEX in the method. Add a bunch of OnXInternal that DataGridView
9718 calls when necessary.
9719 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
9720 complicates matters.
9721 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
9724 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
9726 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
9727 the children controls. Instead, we will just set up the proper docking for the
9728 children controls so we don't have to worry about it. [Fixes bug #82188]
9730 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
9732 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
9733 canceling and correct Before/AfterLabelEdit properties as layed out in bug
9734 81847. [Fixes bug #81847]
9736 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
9738 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
9739 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
9740 an explicit size based on the design-time size of the text. Since our fonts
9741 may not match this explicit size, we tend to cut off the ends of people's labels.
9743 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
9745 * Menu.cs: Add some missing methods to MenuItemCollection.
9747 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9749 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
9750 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
9751 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
9752 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
9753 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
9754 * DataGridViewElement.cs: State defaults to Visible.
9755 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
9756 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
9758 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9760 * Control.cs: Minor 1.1 corcompare fix.
9762 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
9764 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
9765 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
9767 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9769 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
9770 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
9771 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
9772 DataGridViewSelectedColumnCollection.cs,
9773 DataGridViewSelectedRowCollection.cs: Corcompare work.
9775 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
9777 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
9778 it is autoset by VS2005 designer and the effect is barely noticeable.
9780 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
9782 * TreeView.cs: Implement HitTest.
9784 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9786 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
9787 manually adding and removing the control from the Controls
9789 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
9790 EditingControlInternal property that tracks the editing control.
9791 Always keeping the scrollbars in the Controls collection, as MS
9792 testing confirms is the right behaviour.
9794 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9796 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
9797 according to MSDN and new test.
9799 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
9801 * TreeNode.cs: Implement ToolTipText.
9802 * TreeView.cs: Implement tooltips, NodeMouse* events.
9804 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
9806 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
9808 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
9810 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
9811 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
9813 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
9815 * Control.cs, Form.cs, ContainerControl.cs,
9816 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
9817 for misc properties.
9819 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
9821 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
9822 * TreeView.cs: Implement StateImageList.
9824 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9826 * Form.cs: Don't check if the current form is the active form before
9827 activating it. Fixes #81904.
9829 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9831 * Form.cs: Don't check if the current form is the active form before
9832 activating it. Fixes #81904.
9834 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9836 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
9838 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9840 * Form.cs: Don't try to position the form after loading if the form was
9841 disposed. Fixes #81969.
9843 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9845 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
9846 properties. Had to change ToolBar into ToolStrip, which required a
9849 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9851 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
9852 resized, fixes part of #79829 (vertical lines in toolbar).
9853 PropertyGrid: Refactored Populate* to something that's easier to
9854 follow at least for me, as well as splitting it up into several new
9855 methods, required to update only subitems when something has
9856 changed by a popup editor or listbox. Don't use events to check
9857 when any values are changed, since the events are unreliable (we're
9858 changing the objects the events are registered with, and if the
9859 event handling requires the objects to be immutable (objects stored
9860 in hashtables for instance), the events will never be raised).
9861 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
9862 everytime we change a value, since events are unreliable.
9863 DropDownButtonClicked: For the same reason don't compare objects to
9864 check if it has changed or not, it would require all objects to
9865 derive Equals. Fix dialog location on windows, MS is doing weird
9866 things when creating parented forms.
9867 * GridEntry.cs: Add a SelectedObject setter.
9869 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
9871 * TreeNode.cs: Add some corcompare attributes.
9872 * TreeNodeCollection.cs: Implement 2.0 stuffs.
9873 * TreeView.cs: Implement some 2.0 stuffs.
9875 2007-07-18 Andreia Gaita <avidigal@novell.com>
9877 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
9880 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
9882 * ListBox.cs: Implement custom tab offsets.
9884 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9886 * ToolStripContentPanel.cs: Support System renderer.
9887 * ToolStripControlHost.cs: Set RightToLeft to default to No.
9889 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9891 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
9893 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9895 * CheckBox.cs: Chain TextAlign to base implementation instead of
9896 maintaining another one.
9898 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9900 * ButtonBase.cs: Fix an incorrect string constant.
9902 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9904 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
9905 of creating one for measuring strings.
9907 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9909 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
9910 Implement MaxItemSize.
9912 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
9914 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
9915 for DeviceContext. Instead, use the static one available in Hwnd.
9916 Informal tests show this saves about 500k on formtest.exe.
9918 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
9920 * ContainerControl.cs: Implement 2.0 AutoScaling.
9922 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9924 * ComboBox.cs: Work around bug #82120 (bug in mcs).
9926 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
9928 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
9929 Darken the focus color.
9931 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
9933 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
9935 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
9936 X, Y instead of a rect for drawing text.
9937 - For ControlPaint.DrawCheckBox, center the check a little better when the
9938 checkbox is odd width. When drawing a flat checkbox, use a white background
9939 when state != inactive.
9940 [Fixes bugs #82097, 82100]
9942 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
9944 * ListControl.cs: When changing CurrencyManager, disconnect event
9945 handlers from previous one. Fixes bug #81771. Code formatting.
9947 2007-07-15 Andreia Gaita <avidigal@novell.com>
9949 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
9950 full preview invalidation from layout invalidation, and only invalidate
9951 the layout when setting zoom or other properties. Invalidation should
9952 always be done even when resetting properties with the same values as
9953 what is there. Fixes #81744 and #79830.
9955 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9957 * ListView.cs: Implement initial support for Groups. Split some of the
9958 LayoutIcons code to render a partial list of the items (needed by
9959 items contained in ListViewGroup instances). Let the
9960 ListViewItemsCollection.ListView property be modifiable (needed when
9962 * ListViewGroup.cs: Use a Bounds property rather than a Location
9963 one. Also invalidate the bounds when they get changed.
9964 * ThemeWin32Classic.cs: When drawing items, also draw the group header
9965 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
9968 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9970 * ListView.cs: When space gets pressed and CheckBoxes is true,
9971 don't invoke the Begin and EndUpdate methods. We are generating
9972 a redraw of the entire control without need to do so.
9974 2007-07-13 William Holmes <billholmes54@gmail.com>
9976 * Control.cs: Changing logic in FindFlatForward and
9977 FindFlatBackward to handle multiple Controls with
9979 This fixes bug 81687.
9981 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
9983 * OSFeature.cs: Enable IsPresent.
9985 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9987 * Control.cs: Don't do anything in WmShowWindow if the control has been
9988 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
9989 control is created, put on a form, the control is disposed (the
9990 form is never shown), and then we get a MapNotify, triggering a
9992 * Form.cs: Exclude the current form when sending Deactivate to all
9994 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
9995 there was a race condition because assigning the handle raises
9996 events, we can get more messages, therefore trying to assign the
9997 handle again, which would fail if any of those event handlers
9998 closed/disposed the control.
10000 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10002 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10004 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10006 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10007 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10009 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10011 * DateTimePicker.cs: If there's no part format specifier, return an
10014 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10016 * FlatButtonAppearance.cs: Throw NotSupportedException for a
10017 Transparent BorderColor.
10019 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10021 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10022 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10023 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10024 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10025 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10026 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10027 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10029 * X11Structs.cs: Remove warnings, add ToString implementations.
10031 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10033 * XplatUIX11.cs: Translate min/max size according to the actual min/max
10034 size, and not the current size. Fixes #81798.
10036 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10038 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10039 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10040 to the control yet).
10042 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10044 * PropertyGridTextBox.cs: Add a method that sends any forwarded
10045 mousedowns to the contained textbox.
10046 * X11Structs.cs: More ToString implementation.
10047 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10050 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10052 * PropertyGridView.cs: Add a null-check, fixes a few tests.
10054 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10056 * TableLayoutPanelCellPosition.cs: TypeConverter.
10058 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10062 * PropertyGridTextBox.cs: Propagate any color changes to all contained
10064 * PropertyGridView.cs: A few color fixes.
10066 2007-07-10 Jackson Harper <jackson@ximian.com>
10068 * TextControl.cs: Remove some old unused text formatting stuff.
10070 2007-07-10 Jackson Harper <jackson@ximian.com>
10072 * TreeView.cs: Update full row select invalidation to match the
10073 newer DrawSelection... method.
10074 - Make sure to invalidate the entire width when selecting a new
10075 node, if we have full row selection enabled.
10077 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10079 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10080 display of properties again.
10082 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10084 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10085 to existing collections.
10087 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10089 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10090 that changed between 1.1 and 2.0.
10092 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10094 * PowerStatus.cs: Added. This is just a data class, it is filled
10095 in by SystemInformation.
10097 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10099 * Message.cs: Add op_Equality and op_Inequality.
10101 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10103 * MenuStrip.cs: Finish corcompare work.
10105 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10107 * LinkArea.cs: Add op_Equality and op_Inequality.
10109 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10111 * Application.cs: Add MessageLoopCallback delegate.
10113 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10115 * ListBox.cs: First set of 2.0 stuffs.
10117 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10119 * Control.cs: Make an internal Height property we can override
10120 without messing up the public API.
10121 * ListBox.cs: Override HeightInternal to always return the size
10122 the user set. [Fixes bug #80466]
10124 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
10126 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10127 paint cell borders if we haven't calculated where they go yet.
10128 [Fixes bugs #82040 and #82041]
10130 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10132 * ListView.cs: In Details view, set the location of item_control
10133 in the (0,0) position (and the header_control is thus on the
10134 item_control). This way the Bounds of the Items are relative to the
10135 ListView control (before this, they had a Bounds value without the
10136 header_control offset, which wasn't matching .Net). Fixes #82004.
10138 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10140 * ListControl.cs: When DataSource is set to null, pass an empty
10141 array of object to SetItemsCore. This is done to clean the items
10142 in the ListContol children. Fixes #81788.
10144 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10146 * ListControl.cs: Add 2.0 stuffs.
10148 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10150 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
10151 Refresh is overkill for just about every repaint request.
10153 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10155 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10156 so remove my custom Get method and fix the property getter.
10158 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10160 * Label.cs: DefaultMargin for 2.0.
10162 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10164 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
10165 reported issue where other controls with mnemonics would steal strokes
10166 from a selected ComboBox.
10168 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10170 * ScrollOrientation.cs: Make internal for 1.1.
10171 * ScrollEventArgs.cs: Add 2.0 stuffs.
10173 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
10175 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10176 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10177 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10179 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10181 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10183 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10185 * ListView.cs: Implement the so-incredibly broken 2.0
10186 VirtualItemsSelectionRangeChanged event.
10188 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10190 * ListView.cs: When enter is pressed and selection is non empty,
10191 an OnItemActivate event must be fired.
10193 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10195 * ListView.cs: Store the FocusedItem information as an
10196 int instead of a ListViewItem (needed by VirtualMode).
10197 Update the calls to SetFocusedItem to pass an index instead of
10199 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10200 the Focused state from the owner ListView.
10202 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10204 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10205 property. Also, invalidate previous focused item in the mentioned
10206 property (match .Net).
10208 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10210 * ListView.cs: Implement 2.0 FocusedItem property setter.
10212 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10214 * ListView.cs: Implement 2.0 TopItem property setter.
10216 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
10218 * StatusStrip.cs: The default renderer is System.
10219 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
10220 if the user specifies it.
10221 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10222 if we are ManagerRenderMode.
10223 * ToolStripMenuItem.cs: Calculate our text color better.
10224 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10225 from Professional to the base class based off working with the System renderer.
10226 * ToolStripSystemRenderer.cs: Added.
10228 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10230 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10232 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
10234 * ToolTip.cs: Implement 2.0 Tag property.
10236 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10238 * ListView.cs: Implement 2.0 HitTest methods.
10240 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10242 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10243 item is under the pointer or not (sugar). Also remove the TODO
10244 regarding to the cursor changes in OneClick activation.
10245 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10246 the subitems use the parent's HotFont if UseItemStyleForSubItems is
10247 true; otherwise don't show the underline style.
10249 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10251 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10252 the code to retrieve the item at position only one time. Also
10253 change cursor when Activation is ItemActivation.OneClick as well
10254 as invalidate the item if HotTracking is true (to show/hide the
10255 underline style). Add an internal HotItemIndex property to retrieve
10256 the current hot item's index.
10257 * ListViewItem.cs: Add an internal HotFont property to cache the
10258 font used when HotTracking is true and the pointer moves within the
10260 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10261 HotFont depending on the hot state of the item.
10263 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10265 * ListView.cs: Implement 2.0 HotTracking property.
10267 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10269 * ToolStripControlHost.cs: If our hosted control never got created,
10270 don't try to dispose it. [Fixes bug #81909]
10272 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10274 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10276 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10278 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
10280 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10282 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
10284 * DrawListViewColumnHeaderEventArgs.cs:
10285 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10286 using the DrawText () methods.
10288 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
10290 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10291 background which got erased in my changes yesterday.
10293 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10295 * ListViewItem.cs: Actually set bounds for subitems in Details view
10297 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10298 can invoke from the owner draw routines if we need it. Also, add
10299 support for Owner draw in Details view.
10301 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10303 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10304 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10305 ShowImageMargin setting, properly align text in a ToolStripLabel
10306 hosted on a ToolStripDropDown.
10308 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10310 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10311 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10313 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10315 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10317 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10319 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10320 location to match ToolStripMenuItems.
10322 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10324 * DrawListViewColumnHeaderEventArgs.cs:
10325 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10326 column headers in ListView.
10328 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10330 * UserControl.cs: Implement AutoSize.
10332 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10334 * DrawListViewItemEventArgs.cs:
10336 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10339 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10341 * ToolStripDropDownItemAccessibleObject.cs: Added.
10342 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10343 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10344 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10345 ToolStripTextBox.cs: corcompare work.
10347 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10349 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10350 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10351 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10354 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10356 * OSFeature.cs: Add IsPresent.
10357 * PrintPreviewControl.cs: Add RightToLeft.
10358 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10359 * SplitterPanel.cs: Add AutoSizeMode.
10361 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10363 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10364 * MdiClient.cs: Add 2.0 ScaleControl.
10365 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10366 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10368 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10370 * Form.cs: Implement some scaling methods, stub some RTL methods,
10373 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10375 * Control.cs: corcompare work.
10376 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10378 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10380 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10381 ControlPaint 2.0 stuffs.
10383 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10385 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10387 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10389 * UpDownBase.cs: Add 2.0 stuffs.
10391 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10393 * NumericUpDown.cs: Add 2.0 stuffs.
10395 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10397 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10399 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10401 * ErrorProvider.cs: Implement 2.0 stuffs.
10403 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10405 * DomainUpDown.cs: Implement 2.0 stuffs.
10407 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10409 * CheckedListBox.cs: Fix RefreshItems signature.
10411 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10413 * PictureBox.cs: Implement 2.0 stuffs.
10415 2007-06-12 Andreia Gaita <avidigal@novell.com>
10417 * TabControl.cs: Check if there are tabpages before checking
10418 the selected index - fix #81802 (font changes raise a ResizeTabs
10419 call on controls.add, which blew up nicely with no tabpages)
10421 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10424 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
10426 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10429 * ListViewItem.cs: In VirtualMode the selection information
10430 resides in the ListView, rather than in the Items. Also, throw
10431 InvalidOperationExceptions when VirtualMode is being used and
10432 CheckedItemCollection is accessed.
10434 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10436 * ComboBox.cs: Add ScaleControl.
10438 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10440 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
10442 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10444 * GroupBox.cs: Add 2.0 stuffs.
10446 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10448 * Panel.cs: Add autosize properties/event.
10450 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10453 - When we remove a control, remove it from the collection before performing the layout.
10454 - Setup an internal property for explicit_bounds.
10455 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
10456 - Perform a layout when we set a new AutoSizeMode.
10458 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10460 * ScrollableControl.cs: Add 2.0 stuffs.
10462 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10464 * ScrollBar.cs: Add 2.0 stuffs.
10466 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10468 * Splitter.cs: Add 2.0 stuffs.
10470 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10472 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
10473 to have BindingContext simply use base implementation.
10475 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10477 * ColumnHeader.cs: corcompare fix.
10479 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10481 * Button.cs: corcompare fixes.
10482 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
10484 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10486 * Button.cs: Override GetPreferredSizeCore.
10487 * ButtonBase.cs: PerformLayout after changing properties that can affect
10488 AutoSize. Simplify some mouse/keyboard code.
10489 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
10490 * MouseEventArgs.cs: Make Location internal for 1.1.
10491 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
10492 * Theme.cs: Add CalculateButtonAutoSize.
10493 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
10495 2007-06-05 Miguel de Icaza <miguel@novell.com>
10497 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
10499 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10501 * ListViewItem.cs: We can't cache Bounds in VirtualMode
10502 since we can get different item instances every time we retrieve it.
10504 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10506 * ListView.cs: Work around for #81602, since an unkown an pretty
10507 infrequent condition appears only in some systems (old linux boxes, it
10510 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10512 * Button.cs: Completely reformat and a little refactor to bring
10513 this closer to Mono circa 2007.
10515 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10517 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
10518 to be ButtonBase.Invalidate.
10520 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10522 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
10524 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10526 * ButtonBase.cs: Completely reformat and a little refactor to bring
10527 this closer to Mono circa 2007.
10529 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
10531 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
10532 values for autosize. Fixes #80137.
10534 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10536 * Control.cs: Don't perform layout when AutoSize changes.
10537 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
10538 directly when autosizing, use SetBounds with BoundsSpecified.None.
10539 Fixes unit tests my last commit broke.
10541 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10543 * Control.cs: Perform layout when AutoSize changes.
10544 * Form.cs: Implement AutoSizing.
10546 2007-06-01 Chris Toshok <toshok@ximian.com>
10548 * DataGrid.cs: remove the XXX'ed check at the top of
10549 ProcessGridKey. fixes #80464.
10551 2007-06-01 Chris Toshok <toshok@ximian.com>
10553 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
10554 adding idempotent (add/remove in Edit()), and also make sure we
10555 don't add it until after we set the text, so it's not tripped in
10556 Edit(). Fixes unit test regression.
10558 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10560 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
10561 change is user explicit, not when the layout engine moves stuff. Fixes
10562 anchoring to bottom and right. [Fixes bug #81790]
10564 2007-06-01 Andreia Gaita <avidigal@novell.com>
10566 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
10568 2007-06-01 Andreia Gaita <avidigal@novell.com>
10570 * ContainerControl.cs:
10571 Fire enter event for common ancestor if it is not a ContainerControl.
10572 Send focus to the active_control and not the 'value', the active
10573 control might have been changed in one of the events fired.
10574 Definitely fixes #80159.
10576 2007-06-01 Andreia Gaita <avidigal@novell.com>
10578 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
10580 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10582 * PropertyGrid.cs: Anchor the help description to the bottom of the
10583 help panel and refactor SelectGridItem into a
10584 SelectGridItemInternal that can be set to null (and update it to
10585 clear the help texts when it is set to null). Set root item to null
10586 when there's no SelectedObject. Fixes #80438.
10587 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
10588 when we're recalculating after a resize (only).
10590 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10592 * ListView.cs: Implement 2.0 RedrawItems method.
10594 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10596 * ListControl.cs: Disconnect PositionChanged and ItemChanged
10597 handlers from previous data manager when DataSource is set to
10598 null. Fixes #81771.
10600 2007-05-31 Jackson Harper <jackson@ximian.com>
10602 * TextBoxBase.cs: These seem to be the correct values.
10604 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
10606 * FileDialog.cs: When close dialog with ok set filterindex using combobox
10607 value. Fixes #81784.
10609 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
10611 * Control.cs: Implement 2.0 scaling methods.
10613 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10615 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
10616 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
10619 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10621 * ProgressBar.cs: Implemented missing 2.0 members.
10623 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10625 * Control.cs: Corcompare issues.
10626 * MessageBox.cs: Implemented missing 2.0 functions.
10628 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10630 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
10631 Implemented more 2.0 members.
10633 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10635 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
10636 null (strange, but it seems to happen when running unit tests).
10638 2007-05-30 Andreia Gaita <avidigal@novell.com>
10640 * ContainerControl.cs: Set active_control even earlier, before
10641 firing any events, and undo it if validation returns false.
10643 2007-05-30 Andreia Gaita <avidigal@novell.com>
10645 * ContainerControl.cs: Raise Validation and Enter/Leave events
10646 even if there is no Form and set active_control earlier, just
10647 before firing Enter events (toshok's patches). Fixes #80647.
10649 2007-05-30 Jackson Harper <jackson@ximian.com>
10651 * TextControl.cs: Redid the pageup/pagedown a little to simplify
10652 things and fix bug #81311.
10654 2007-05-30 Jackson Harper <jackson@ximian.com>
10656 * X11Dnd.cs: Now that we have our own event loop, we need to
10657 cancel when we get a mouseup but it won't be accepted.
10659 2007-05-30 Chris Toshok <toshok@ximian.com>
10661 * DataGrid.cs (set_CurrentCell): guard against negative
10664 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
10665 array index syntax instead of looping over the property names.
10667 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
10668 and set IsInEditOrNavigateMode to false there.
10670 2007-05-30 Jackson Harper <jackson@ximian.com>
10672 * TreeView.cs: Make sure we don't get a bad visible order when
10673 setting to the top node. Fixes some misc crashing in
10676 2007-05-30 Andreia Gaita <avidigal@novell.com>
10678 * UserControl.cs: Add 2.0 AutoSizeMode
10680 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10682 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
10684 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10686 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
10687 lines. Fixes #80285.
10689 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10691 * DataGridColumnStyle.cs: Add char trimming column header text format.
10693 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10695 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
10698 2007-05-29 Jackson Harper <jackson@ximian.com>
10700 * TreeNode.cs: Fix off by one on calculating whether or not a node
10703 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
10705 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
10706 * ScrollableControl.cs: Force an UpdateDistances when we move the
10710 2007-05-29 Andreia Gaita <avidigal@novell.com>
10712 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
10713 update the page setup screen.
10715 2007-05-29 Andreia Gaita <avidigal@novell.com>
10717 * PageSetupDialog.cs: Fix landscape mode.
10719 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10721 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
10722 IconSizeHorizontalSpacing.
10724 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10726 * ListView.cs: The declaration of prev_tooltip_item should be inside
10727 a NET_2_0 conditional (avoid a warning).
10729 2007-05-28 Andreia Gaita <avidigal@novell.com>
10731 * PageSetupDialog.cs: Implement PrintPreview control to display
10732 the preview thumbnail. Change unit conversion to use
10733 PrinterUnitConvert methods.
10735 Note: there is a huge bug in ms.net where the default margins are
10736 interpreted as centimeters (?), when in fact they are set in inches. When
10737 loading the page setup dialog initially (ms.net), the default margins
10738 are set to 1 inch, and the dialog shows them with value 10, when in fact
10739 it should be 25 (properly converted). Our dialog doesn't have this bug.
10741 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
10743 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
10745 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10748 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
10751 2007-05-28 Andreia Gaita <avidigal@novell.com>
10753 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
10754 an IntPtr on csc (it builds fine on mcs, could it be a compiler
10755 bug?), convert the ptr to Int32 first.
10757 2007-05-28 Jackson Harper <jackson@ximian.com>
10759 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
10760 recieved, we will exit the dnd tracking loop.
10762 2007-05-28 Jackson Harper <jackson@ximian.com>
10764 * X11Dnd.cs: Keep tracking until the xdnd finished event is
10765 recieved. TODO: I should probably stick a timer on the dropped
10766 event, and finish the drag if the XDND Finished event never shows
10767 (because some apps don't seem to send it).
10769 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
10771 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
10774 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10776 * MonthCalendar.cs: Only mark the keypresses we actually handle as
10779 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10781 * MonthCalendar.cs: Set the size after initializing all the relevant
10782 variables. Fixes #81742.
10784 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10786 * KeyEventArgs.cs: Fix typo.
10788 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
10790 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
10791 to match MS. Fixed MinDate to only accept value less than or equal
10792 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
10793 Removed TODO's that are now verified by unit tests.
10795 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
10797 * TreeNodeCollection.cs: Minor corrections to exceptions to match
10800 2007-05-25 Jackson Harper <jackson@ximian.com>
10802 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
10803 it's own message loop.
10804 * XplatUIX11.cs: Remove some of the dnd hooks
10806 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
10808 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
10809 instead of MinimizedWindowSize.
10811 2007-05-25 Jackson Harper <jackson@ximian.com>
10813 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
10815 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10817 * KeyEventArgs.cs: Added SuppressKeyPress.
10818 * Control.cs: Added support for SuppressKeyPress.
10820 2007-05-24 Andreia Gaita <avidigal@novell.com>
10822 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
10823 problems with PieChart. suppress_validation should not be a counter,
10824 if there are several BeginInit calls, the first EndInit will
10825 activate validation. Fix exceptions thrown by set_Value.
10826 * UpDownBase.cs: ValidateText only if it's the user editing it.
10828 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10830 * ListControl.cs: FilterItemOnProperty should return the filtered
10831 item proeprty even if DataSource is null. The same applies for
10832 GetItemText. Fixes #80427.
10834 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
10836 * Control.cs: If a control doesn't have a parent when it's Dock is
10837 set, but it has children, it needs to do a layout. Fixes some nested
10838 controls issues. [Fixes bug #81199]
10840 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10842 * ComboBox.cs: If there are few items in the drop down list, make it
10843 the exact size the items need, no bigger. Fixes #81612.
10845 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
10847 * Application.cs: When we have captured the keyboard for a menu,
10848 check for mouse down events in case we need to close the menu.
10849 * Control.cs, Form.cs: Remove mouse down checks for menus.
10851 2007-05-24 Jackson Harper <jackson@ximian.com>
10853 * TextControl.cs: Handle tabs in non multiline mode a little
10856 2007-05-24 Jackson Harper <jackson@ximian.com>
10858 * TextControl.cs: We need to manually break apart tabbed text and
10859 move the tabs, since the system.drawing tabbing mechanism relies
10861 * TextBoxBase.cs: Move the caret properly when the user enters a
10864 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
10866 * ContainerControl.cs: Don't check CanSelect before calling
10868 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
10869 release a KeyboardActive on click if it's not ours.
10871 2007-05-23 Andreia Gaita <avidigal@novell.com>
10873 * ColumnHeader.cs: Add TypeConverter
10875 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10877 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
10879 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10881 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
10883 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10885 * LinkLabel.cs: Implement public Padding property.
10887 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10889 * LinkLabel.cs: Implement public FlatStyle.
10891 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
10893 * Control.cs: Apply patch from George to call parent.PerformLayout
10894 when Visible is changed. [Fixes bugs #81118, 81718]
10896 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10898 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
10900 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10902 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
10904 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10906 * ContextMenu.cs: Implement Collapse.
10908 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10910 * ToolBarButton.cs: Implement Name.
10912 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
10914 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
10915 use current_item, it prevents some NRE. Fixes #81675.
10917 2007-05-22 Andreia Gaita <avidigal@novell.com>
10919 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
10920 without updating the text.
10922 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
10924 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
10925 without calling DeleteObject. [Should fix bug #81709]
10927 2007-05-22 Jackson Harper <jackson@ximian.com>
10929 * RichTextBox.cs: Set the line endings correctly, when flushing
10932 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
10934 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
10935 {Width=0,Height=0}.
10937 2007-05-22 Jackson Harper <jackson@ximian.com>
10939 * TreeView.cs: Setting top with a null node should set to the very
10942 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10944 * Form.cs: ShowDialog: destroy the handle when message loop is
10945 finished, matches MS behaviour. Refactor parts of WmClose into
10946 RaiseCloseEvents, that only raises events if they haven't already
10947 been raised. Fixes #81688 and #81521.
10948 * Application.cs: Don't call close on the form when exiting a modal
10949 loop, it will raise all the (Form)Closed/Closing events again if
10950 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
10951 which doesn'r raise any events it they have been raised before.
10953 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
10955 * Control.cs: Add OnPrint.
10956 * ToolStrip.cs: Add GetChildAtPoint.
10957 * ToolStripContainer.cs: Add OnRightToLeftChanged.
10958 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
10960 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
10962 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
10964 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10966 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
10967 isn't visible anymore. Fixes #81651.
10969 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10971 * Control.cs: WmShowWindow: Update children's z-order after setting
10972 their parent. SetParent may show the window, thereby corrupting
10973 z-order, since the window will be shown on top.
10974 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
10975 multiple (and redundant) WM_SHOWWINDOW messages.
10976 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
10977 event has already been raised.
10978 * Form.cs: Change is_changing_visible_state to a counter, since
10979 SetVisibleCore can be called recursively. CreateHandle: when
10980 creating mdi children, send (De)Activated events.
10981 * MdiClient.cs: Update use of is_changing_visible_state.
10982 * Application.cs: OnThreadException: Surround exception handling with
10983 try/finally to ensure we always reset the error-handling state
10986 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10988 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
10991 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10993 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
10994 SmallIcon views, now that we have a standarized horizontal spacing.
10996 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
10997 4, just like the other views (Match .Net).
10999 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
11001 * Control.cs: Delay calculating anchor distances until we actually layout.
11002 Always query the WM for the actual size and location it put us at instead of
11003 only when we send negative values.
11004 [Fixes bugs #81694, 81695]
11006 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11008 * Application.cs: Avoid a possible stack overflow when trying to exit
11011 2007-05-19 Marek Safar <marek.safar@gmail.com>
11013 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11016 2007-05-19 Andreia Gaita <avidigal@novell.com>
11018 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11019 * NumericUpDownAcceleration.cs,
11020 NumericUpDownAccelerationCollection.cs: Added 2.0
11023 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
11025 * RichTextBox.cs: Recalculate the document after the ScrollBars
11026 property is changed. Fixes bug #81681.
11028 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11030 * DataObject.cs: Implement 2.0 methods.
11032 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11034 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11035 in the center of the checkbox, not in the left-top corner.
11038 2007-05-18 Jackson Harper <jackson@ximian.com>
11040 * RichTextBox.cs: Recalculate the document after the scrollbars
11041 property is changed.
11042 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11045 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11047 * CreateParams.cs: Make HasWindowManager marginally faster.
11048 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11049 into Hwnd so that other drivers can use it as well.
11050 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11051 the default location from Hwnd. Fixes MDI client windows always
11052 showing up at (0,0) in Windows (Win32 won't set the default
11053 location since the window styles aren't correct).
11055 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
11057 * TreeView.cs: Modified DoubleBuffered to just use the base
11060 2007-05-18 Jackson Harper <jackson@ximian.com>
11062 * TreeView.cs: Set the top node to the last child node when
11064 - When we get focus, if there is no selected node, use the top
11067 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11069 * KeysConverter.cs: Add CanConvertTo.
11070 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11071 * LinkConverter.cs: Added.
11073 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11075 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11076 it prevents error when file dont have write access. Fixes #81669 and #81667.
11078 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11080 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
11081 button text. Fixes #79640.
11083 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11085 * Control.cs: According to MSDN controls created in the designer theres
11086 keyboard accelerators visible by default. So included check for design
11087 in ShowKeyboardCuesInternal.
11089 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11091 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
11092 text. Fixes #81621.
11094 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11096 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11097 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
11099 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11101 * Control.cs: Finish implementation of UI State using WmChangeUIState
11102 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11103 in some controls to check for show_keyboard_cues to draw accell keys "_".
11105 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11107 * ListBox.cs: When calculating the horizontal scrollbar
11108 in single column mode, don't use values less than 0 for
11109 Maximum. Fixes #81474.
11111 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11113 * ListBox.cs: Throw the some missing exceptions in
11114 ListBox.ObjectCollection methods.
11116 2007-05-17 Jackson Harper <jackson@ximian.com>
11118 * TextBoxBase.cs: Recalculate the document when the word wrap
11119 value has changed. This fixes 81488.
11121 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11123 * Clipboard.cs: Implement missing GetText overload.
11125 2007-05-17 Chris Toshok <toshok@ximian.com>
11127 * Control.cs (CheckDataBindings): remove the binding_context arg
11130 * CurrencyManager.cs (OnItemChanged): fix this now that
11131 BindingManagerBase is fixed. also remove the comment telling where
11132 the fix should go. We set transfering_data to true/false around
11133 the call to PushData to keep UpdateIsBinding from being called.
11134 (ListChangedHandler): remove the extra OnMetaDataChanged call for
11135 PropertyDescriptorAdded in the 1.1 case. The extra call is
11136 actually generated by System.Data generating 2 metadata changed
11137 events of its own per column add. The fix should go there. Add a
11138 comment to that affect in our test's Assert.Ignore.
11140 * BindingManagerBase.cs: Rework PullData and PushData slightly.
11141 we keep a boolean flag (transfering_data) that keeps us from
11142 calling UpdateIsBinding multiple times if we re-enter either of
11145 * ControlBindingsCollection.cs (AddCore): remove the
11146 binding_context arg to binding.Check.
11148 * Binding.cs (IsBinding): don't check if we're binding here, just
11149 return our cached value. we update it in UpdateIsBinding.
11150 (Check): don't take the binding_context arg, we'll just use our
11151 control's. Also, for some reason MS doesn't use the data member
11152 field when getting the bindingmanager for this binding. it just
11153 uses the datasource. Make this method callable multiple times,
11154 and only do the is_null_desc stuff if manager.Position != -1 (so
11155 we don't get an exception accessing manager.Current).
11156 (UpdateIsBinding): move the code from IsBinding here.
11157 (PositionChangedHandler): call Check here to we can initialize
11158 things that require a non- -1 position.
11160 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11162 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11165 2007-05-17 Andreia Gaita <avidigal@novell.com>
11167 * TabControl.cs: Add 2.0 methods and events, including
11168 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11169 * TabPage.cs: Add 2.0 methods
11171 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11173 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11174 keyboard_cues is properly handled by message method.
11176 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11178 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11180 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11182 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11184 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
11187 - WmUpdateUIState added to handle state changes, it make call to
11188 OnChangeUICues event.
11189 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11192 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
11194 * ImageKeyConverter.cs: Added.
11195 * TreeViewImageKeyConverter.cs: Added.
11197 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11199 * ToolTips.cs: Update Text if SetToolTip is called for a control
11200 already showing the tooltip, as well as restarting its timer; show
11201 tooltip if we are inside the control bounds by the time of calling
11202 SetToolTip. Inside ShowTooltip remove the check to not show the
11203 tooltip again for the active control (it is allowed by .Net to
11204 show the tooltip on the same control multiple times).
11206 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11208 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11210 2007-05-16 Andreia Gaita <avidigal@novell.com>
11212 * ContainerControl.cs: only process tab key if there are no
11213 modifier keys present, otherwise the control does the
11214 tab processing, if it needs to. Fixes #81622
11215 * TabControl.cs: Fixes calculation for which tab to select on
11218 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11220 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11222 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
11224 * Control.cs: Make IsInputCharInternal to allow controls to
11225 override it and still match MS API.
11226 * TextBoxBase.cs: Override IsInputCharInternal and always
11230 2007-05-15 Jackson Harper <jackson@ximian.com>
11232 * TextBox.cs: Disable some of the menu options when using a
11235 2007-05-15 Jackson Harper <jackson@ximian.com>
11239 * RichTextBox.cs: Some new 2.0 methods
11241 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
11243 * FileDialog.cs: On 1.0 profile, do not support multidotted
11246 2007-05-14 Jackson Harper <jackson@ximian.com>
11248 * TextBoxBase.cs: Implement some of the new 2.0 methods.
11249 * RichTextBox.cs: We need to override these methods on 2.0.
11250 * MaskedTextBox.cs: These are implemented now
11251 * TextControl.cs: This was off by one.
11253 2007-05-14 Jackson Harper <jackson@ximian.com>
11255 * TextControl.cs: Because the line endings are including in the
11256 text, we don't need to add them in anymore.
11258 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11260 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11261 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11263 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11265 * ToolBar.cs: Adjust size to default size when button theres no text and
11266 image, it fixes remaining issues from #81524.
11268 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11271 - When not flat call redraw to recalculate sizes on creare handle to match
11273 - Revert 77220 because it causes some regressions in toobar
11276 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11278 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11279 now actually enters a usable state.
11281 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11283 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11284 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11287 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11289 * ToolBar.cs: Save default_size on create handle to use later for buttons
11290 without text, needed to mimic win32 behavior.
11292 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11294 * ToolBar.cs: Fix button layour to best fit width or height according to
11295 vertical or not. Fixes #81524.
11297 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11299 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11300 toolbar size info because different styles theres different sizes.
11303 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11305 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11306 if we are using checkboxes, checked is true, and we have less
11307 than two images in StateImageList; for the 1.1 in the same scenario
11308 draw the first image if we have at least one image in StateImageList.
11309 Fixes part of #81191.
11311 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11313 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11314 the owner's Items collection on merge.
11316 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11318 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11319 * ToolStripItemCollection.cs: Lots of fixes to when events get called
11320 and parent/owner gets changed based on gert's unit tests.
11322 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11324 * MaskedTextBox.cs: Started implementing parts of it.
11326 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11328 * ListView.cs: When clicking the checkbox on the items
11329 take into account the double clicks even if we have only
11330 one image in StateImageList (only for 1.0/1.1). Also
11331 generate an extra change of checked state when we receive
11332 the second click on checkbox (match .Net behaviour).
11333 Fixes part of #81191.
11335 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11337 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11339 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11341 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11342 even if OnLoad is overriden and base.OnLoad is not called.
11345 2007-05-10 Andreia Gaita <avidigal@novell.com>
11347 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
11348 shame. (I blame my ever-persisting and annoying cold)
11350 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11352 * ListView.cs: Don't eat navigation keys. Let them flow through to
11353 KeyDown/KeyPress routines. [Fixes bug #81569]
11355 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11357 * ListView.cs: When handling keys for selecting the item based off
11358 keyboard input, do not consider keys pressed with Alt or Control. Also,
11359 correctly handle keys when the Shift key is down. [Fixes bug #81578]
11361 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11363 * Control.cs: When using UseWaitCursor, we have to store the requested
11364 Cursor to use when UseWaitCursor is turned off.
11366 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11368 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
11370 * Application.cs: Use PreProcessControlMessage instead of
11372 * PreProcessControlMessage.cs: Make internal for 1.1.
11374 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11376 * Control.cs: Add InternalContains focus property, which hast the same
11377 functionality of ContainsFocus, but also including implicit controls.
11378 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11379 since we need to know if the focus is contained in our implicit
11380 ItemControl when calculating Layout. Fixes part of #80888.
11382 2007-05-08 Everaldo Canuto <everaldo@simios.org>
11384 * ToolTip.cs: Remove center form string alignment as it must be align to
11387 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
11389 * ToolStripItemCollection.cs: Set the new item's parent and owner
11390 in Insert like we do in Add. [Fixes bug #81568]
11392 2007-05-08 Jackson Harper <jackson@ximian.com>
11394 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11395 - Off by one error in SetTop
11396 - Disable DoubeBuffering
11398 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11400 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
11401 control as much as necessary in order to make it entirely visible,
11402 instead of centering the control in the container (matches MS
11403 behaviour). CalculateCanvasSize: we need to take the current scroll
11404 position into account when calculating the maximum canvas,
11405 otherwise the following scenario will fail: resize so that the
11406 scrollbars appear, use the scrollbars to scroll, resize again
11407 smaller, and now the canvas size is too small. Recalculate: when
11408 showing scrollbars make sure they start off at 0, and try to scroll
11409 the active control into view. Fixes #79540. HandleScrollBar: don't
11410 scroll anywhere if the scrollbar isn't visible.
11412 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11414 * ListView.cs: When focus changed, call Layout/Invalidate
11415 in the focused item to update the selected state (should show
11416 entire label when ListView is focused, and a part of it if is not).
11417 * ListViewItem.cs: When doing layout for LargeIcon, take into account
11418 for displaying the entire label not only the Focused state of the
11419 item, but also the Focused state of the ListView (match .Net
11422 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11424 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
11425 Implement UseWaitCursor.
11427 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11428 Applying contributed patch from Sergey Volk.
11430 * Clipboard.cs: Implement SetDataObject retry logic and new overload
11432 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
11434 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11436 * Control.cs: Implement DrawToBitmap.
11438 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11439 Applying contributed patch from Stefan Noack.
11441 * Control.cs: Add [Get|Set]AutoSizeMode.
11443 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11445 * MdiClient.cs: Unmerge menus when the last child is closed.
11447 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11449 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
11450 * ToolStripManager.cs: Call Merge on DropDowns.
11453 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11455 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
11457 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
11458 visibility. We can't create forms visible, since we have to set the
11459 owner before making the form visible (otherwise Win32 will do
11460 strange things with task bar icons). The problem is that we set the
11461 internal is_visible to true before creating the control, so
11462 is_changing_visible_state is the only way of determining if we're
11463 in the process of creating the form due to setting Visible=true -
11464 this works because SetVisibleCore explicitly makes the form
11465 visibile afterwards anyways. Fixes #80775.
11467 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11469 * ThemeWin32Classic.cs: When drawing ListViewItems,
11470 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
11471 or LargeIcon _and_ item is not focused (match .Net behaviour).
11473 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11475 * Control.cs, Form.cs: Fix some obsolete method warnings.
11477 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11479 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
11480 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
11482 2007-05-04 Andreia Gaita <avidigal@novell.com>
11484 * ContainerControl.cs: Fix active_control attribution when going
11485 up the parent chain so that the first parent container gets the control
11486 and the rest of the parent containers get the child containers (skips
11487 non-containers). Fixes #80729
11489 2007-05-04 Randolph Chung <tausq@debian.org>
11491 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
11494 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11496 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
11497 takes a size parameter, since the CreateParam's size isn't true for
11498 minimized forms. Fixes #81518,
11500 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11502 * Form.cs: Add OnDeactivateInternal.
11503 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
11505 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11507 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
11508 accessing the parent. Fixes #81508.
11510 2007-05-03 Chris Toshok <toshok@ximian.com>
11512 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
11513 2.0 block, pass listposition + 1 to ChangeRecordState when a row
11514 was added before the current listposition. Fixes the
11515 TestInsertRowBeforeCurrent unit test.
11517 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
11519 * Application.cs: Add RaiseIdle.
11520 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11521 XplatUIX11.cs: Implement RaiseIdle.
11523 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
11524 corcompare work: N - Z
11528 * ScrollableControl.cs
11529 * SplitContainer.cs
11532 * SystemInformation.cs
11534 * TableLayoutControlCollection.cs
11535 * TableLayoutPanel.cs
11540 * ToolStripComboBox.cs
11541 * ToolStripContainer.cs
11542 * ToolStripContentPanel.cs
11543 * ToolStripDropDown.cs
11544 * ToolStripDropDownItem.cs
11545 * ToolStripDropDownMenu.cs
11547 * ToolStripItemCollection.cs
11548 * ToolStripMenuItem.cs
11549 * ToolStripPanel.cs
11550 * ToolStripSplitButton.cs
11553 * TreeNodeCollection.cs
11554 * TreeNodeMouseHoverEventArgs.cs
11557 2007-05-01 Everaldo Canuto <everaldo@simios.org>
11559 * ContextMenu.cs: Add public method Show with alignment property to 2.0
11560 stuff. Thanks aatdark for the patch.
11562 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11564 * GridItem.cs: Implement 2.0 Tag property.
11566 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
11568 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
11569 count instead of Nodes.Length. [Fixes bug #81448]
11571 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11573 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
11576 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11577 corcompare work: A - M
11578 * BindingNavigator.cs
11583 * FlowLayoutPanel.cs
11589 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11591 * Application.cs: Give toolstrips a chance to process mnemonics.
11592 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
11593 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
11594 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
11596 2007-05-01 Jackson Harper <jackson@ximian.com>
11598 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
11600 - Don't set the BoundsSpecified
11602 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
11604 * Application.cs: When using the toolstrip shortcut mechanism, allow the
11605 message to pass through to a regular control if it hosted by a toolstrip.
11606 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11607 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
11609 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
11611 * TextRenderer.cs: Use the flags argument when using the MeasureString
11612 fallback algorithm.
11614 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
11616 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
11617 the MDI menu item. [Fixes bug #81483]
11619 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
11621 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
11622 string. When setting Name to null, use zero-length string instead.
11624 2007-04-29 Andreia Gaita <avidigal@novell.com>
11626 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
11627 DeselectTab). Implement missing 2.0 TabPageCollection methods
11628 (Add, ContainsKey, RemoveByKey, IndexOfKey)
11630 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
11632 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
11634 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
11636 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
11637 Fixes bug #81479. Include details of exception when LoadFile fails.
11639 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
11641 * DrawListViewSubItemEventArgs.cs: Added missing setter
11643 2007-04-27 Andreia Gaita <avidigal@novell.com>
11645 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
11646 Hide methods (not complete). Implement missing 2.0 OnPopup event.
11648 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11650 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
11651 removed in ly last commit (it was breaking the Label edit feature).
11653 * ThemeWin32Classic.cs: When drawing a ListViewItem use
11654 StringAlignment.Near for LineAlignment (match .Net).
11656 2007-04-27 Andreia Gaita <avidigal@novell.com>
11658 * TabControl.cs: Change SetTab so it adds the tabpage to the list
11659 of controls if it isn't already there - was blowing up when doing
11660 tabcontrol.TabPages[i]=new TabPage().
11661 SetTab now does a replace by removing the page at the index.
11662 Add a new InsertTab method that inserts a page in a given index
11663 instead of replacing.
11664 Implements TabPageCollection.Insert(int, TabPage).
11666 2007-04-27 Chris Toshok <toshok@ximian.com>
11668 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
11669 internal handler that can be invoked from our subclasses.) Also,
11670 add a comment to PushData about how we need to fix it.
11672 * CurrencyManager.cs: tons of changes here. trying to get things
11673 matching the behavior of .net wrt event orders (ItemChanged,
11674 CurrentChanged, PositionChanged.) I've implemented a private .net
11675 symbol (ChangeRecordState) that appears in stack traces because
11676 it's actually easier to do this than to effective inline all its
11677 various behaviors at every call site.
11679 * RelatedPropertyManager.cs: guard against an exception here by
11680 not using parent.Current if the position is set to -1 (if the
11681 parent datasource is cleared, for instance).
11683 * Binding.cs: don't parse data in PushData (this might be wrong,
11684 but it jives with MS's behavior.) Also, don't call PushData when
11685 we get a CurrentChanged event.
11687 2007-04-27 Andreia Gaita <avidigal@novell.com>
11691 WebBrowserSiteBase.cs,
11692 HtmlDocument.cs: Added stubbed out classes, no real implementations
11695 2007-04-27 Everaldo Canuto <everaldo@simios.org>
11697 * MainMenu.cs: In draw method without parameters call draw method with
11698 PaintEvent, another one (just rect) adjust rectangle and we dont need it
11699 as Rect property is already adjusted. Fixes #80694.
11701 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
11703 * Application.cs: Need to handle keyboard menu deselection here.
11704 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
11705 navigation, allowing keyboard to work on X11.
11706 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
11708 2007-04-27 Everaldo Canuto <everaldo@simios.org>
11710 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
11711 menu bar. It fixes some drawing issues in menu bar.
11713 2007-04-27 Everaldo Canuto <everaldo@simios.org>
11715 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
11716 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
11717 when <alt> key is pressed.
11719 2007-04-26 Everaldo Canuto <everaldo@simios.org>
11721 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
11722 example just set visible to false and make this prevent from other problems.
11723 In SystrayAdd always remove pending expose. Fixes #81072.
11725 2007-04-26 Marek Safar <marek.safar@gmail.com>
11727 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
11730 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
11732 * ListView.cs: Added three missing 2.0 events and corresponding
11733 EventHandlers. Added the OwnerDraw property.
11734 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
11736 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
11738 * DrawListViewItemEventArgs.cs
11739 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
11741 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
11743 * TextControl.cs: Fixed typo in constructor
11745 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
11747 * Application.cs: Create a shortcut path so that currently selected
11748 MenuStrips can intercept keyboard events without having focus.
11749 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
11750 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
11751 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
11752 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
11753 generate WM_SYSCOMMAND message in X11 for other platforms.
11754 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
11755 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
11756 * ToolStripSplitButton.cs: Add DefaultItem property.
11758 2007-04-26 Everaldo Canuto <everaldo@simios.org>
11760 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
11761 fixes some menu draw problem on Windows with border diferent from default
11762 it also fixes #81403.
11764 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11766 * Form.cs: Refactor WndProc into separate methods, just like Control is
11769 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11771 * Control.cs: set_Text: move the call to the driver into a seperate
11772 virtual method so that Form can override it.
11773 * MaskedTextBox.cs: Corcompare fixes.
11774 * Form.cs: Override UpdateWindowText and only update the styles if the
11775 form has been shown (fixes #81405).
11777 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
11779 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
11780 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
11781 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
11782 the form lost focus or another control was clicked.
11784 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
11786 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
11789 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11791 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
11792 DrawListViewItemEventHandler.cs,
11793 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
11795 * X11Structs.cs: More ToString implementation.
11797 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
11799 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
11800 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
11802 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11804 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
11806 * FormCollection.cs: Don't add a form if it's already in the
11808 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
11809 according to behaviour and MSDN. The ownerWin32 is the active
11810 window at the moment when we call ShowDialog, not the context's
11811 main form (the context's main form may open another form that opens
11812 a form with ShowDialog, the win32 owner is the second form). Add
11813 and remove forms to the Application.OpenForms in other places to
11814 better match MS behaviour. Add an IsActive property that raises
11815 On(de)Activated only if the active state has changed (we were
11816 raising OnDeactivated before OnActivated while creating forms).
11817 * Application.cs: Refactor Enabling/Disabling of windows for modal
11818 dialog loops out to separate methods, and restore the thread
11819 context when we quit the method. Fixes #81407.
11821 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11823 * ListView.cs: In ItemControl.HandleClicks, also fire
11824 2.0 MouseClick or MouseDoubleClick events on the parent,
11825 not only the Click/DoubleClick events.
11827 2007-04-24 Andreia Gaita <avidigal@novell.com>
11829 * TableLayoutSettings.cs:
11830 - Added a GetControls method and a support structure to help the
11831 TypeConverter to enumerate the controls for serialization.
11832 - Added a new serialization constructor.
11833 - Added a isSerialized flag initialized to true on the
11834 serialization constructor so that the TableLayoutPanel.LayoutSettings
11835 setter does not throw the designed NotSupportedOperation exception
11836 when the object is built through deserialization.
11837 - Implemented GetObjectData
11839 * TableLayoutPanel.cs: Added check on LayoutSettings.
11841 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11843 * ListView.cs: Report Click and DoubleClick events to the parent
11844 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
11845 from breaking the click count state when using dialog forms (Control
11846 reports the clicks in a similar fashion). In the previous behaviour
11847 the last WM_LBUTTONUP message in a double click was sent to the
11848 ListView's form, instead of the ListView, which was breaking the click
11849 count for it. Fixes #80387.
11851 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
11853 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
11855 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
11857 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
11858 us from created dropdowns for menu items that do not have subitems.
11859 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
11860 Check HasDropDownItems before calling DropDown so a dropdown will not be
11861 created if it isn't needed.
11863 2007-04-24 Jackson Harper <jackson@ximian.com>
11865 * TreeView.cs: Set the first node to the selected node when we get
11866 focus if there is no selected node.
11868 2007-04-24 Andreia Gaita <avidigal@novell.com>
11870 * MimeIcon.cs: remove using blocks so that image streams are
11871 not disposed of. Fixes #80151
11873 2007-04-24 Jackson Harper <jackson@ximian.com>
11875 * TextBoxBase.cs: Fixup the height of textboxes when the control
11878 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
11880 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
11881 for each ToolStripItem when the parent's RightToLeftChanged is called.
11883 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11885 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
11887 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
11888 property, so that the setter can be overriden too.
11889 * TextBox.cs: Change GetContextMenuInternal() to use
11890 ContextMenuInternal.
11892 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11894 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11897 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11899 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11902 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11904 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
11905 avoid duplicate work. Mostily skeleton code, it's not working at
11908 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
11910 * NotifyIcon.cs : stub for MouseClick event
11911 * Application.cs: stub for SetUnhandledExceptionMode
11913 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
11915 * BindingNavigator.cs : Initial (partial) implementation
11917 2007-04-23 Jackson Harper <jackson@ximian.com>
11919 * TreeView.cs: Do not create the treeview's handle when setting
11920 the scroll position.
11921 - ExpandAll needs to compute the scrollbars so it knows which
11922 position to set the bar too.
11924 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
11926 2007-04-23 Jackson Harper <jackson@ximian.com>
11928 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
11931 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
11933 * ToolStripItem.cs: Make GetImageSize internal.
11934 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
11935 need to draw an item. Fixes a reported issue where images on menus
11936 that were not 16x16 were drawing incorrectly.
11938 2007-04-21 Miguel de Icaza <miguel@novell.com>
11940 * Padding.cs: Use the converter, fixes the resgen2 issue with
11943 2007-04-21 Jackson Harper <jackson@ximian.com>
11945 * TreeView.cs: Dont try to unhighlight the selected node if there
11946 isn't a selected node.
11948 2007-04-21 Jackson Harper <jackson@ximian.com>
11954 * TreeView.cs: Use the InternalBorderStyle property to set the
11955 initial border style, this forces the client rectangle to be sized
11958 2007-04-20 Jackson Harper <jackson@ximian.com>
11960 * TreeView.cs: Simplify scrolling to the last node after expanding
11962 - Fix some off by ones with setting the bottom.
11964 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
11966 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
11967 that. We were incorrectly doing it the other way around. Also,
11968 update ClientSize if we change the BorderStyle before the control
11971 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
11973 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11974 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11975 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
11976 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11977 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11978 Caption to CaptionHeight.
11979 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
11980 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
11981 and FixedFrameBorderSize to return value from current XplatUI driver.
11982 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
11983 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
11984 and FixedFrameBorderSize using win32 API. Renamed Caption to
11986 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
11987 * SystemInformation.cs: Fixed typo in BorderSize.
11989 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
11991 * XplatUI.cs: Added MenuAccessKeysUnderlined.
11992 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
11993 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
11995 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
11996 value from XplatUI driver.
11997 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
11998 SystemParametersInfo.
11999 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12001 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12004 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12006 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12008 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12010 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12012 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12014 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12015 MenuStrips that contain ToolStripSeparators.
12017 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12019 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12020 DefineStdCursorBitmap.
12021 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12022 has been created off a standard cursor. This is used to get a
12023 bitmap of the standard cursor when Draw or DrawStretched is called
12024 in order to draw the cursor.
12025 * X11Structs.cs: Added XcursorImage and XcursorImages.
12026 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12027 DefineStdCursorBitmap.
12028 * Cursors.cs: Update all relevant creations of Cursor to use the new
12029 internal constructor.
12031 2007-04-19 Jackson Harper <jackson@ximian.com>
12033 * TextBox.cs: Move the has_been_focused into the base control, so
12034 some of the text adding methods can manipulate it (probably time
12035 for a better name for this flag too).
12036 - Call a new version of selectall that doesn't scroll
12037 * TextBoxBase.cs: When we append text, if the document is empty,
12038 don't scroll. If the document has text already, we scroll to the
12039 end of the appended text.
12040 - When the text is changed, we reset the has_been_focused, so the
12041 next time the control gets focused, all the text is selected.
12043 2007-04-19 Jackson Harper <jackson@ximian.com>
12045 * TextControl.cs: Move the margins to the document, add a method
12046 so the margin sizes can be updated.
12047 * TextBoxBase.cs: When the border style is changed, update the
12050 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
12052 * Control.cs: Respect DefaultPadding.
12053 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12054 padding into account.
12055 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
12057 2007-04-19 Jackson Harper <jackson@ximian.com>
12059 * TextControl.cs: Oops, we need to use the ClientRect not the
12062 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12064 * ListView.cs: In ItemControl.ItemsMouseDown, take into
12065 account the double clicks when CheckBoxes are used and
12066 the pointer is inside the checkbox. Fixes part of #81191.
12068 2007-04-18 Jackson Harper <jackson@ximian.com>
12070 * TextControl.cs: Pressing the end key shouldn't move the caret
12071 past the line ending.
12072 * TextBoxBase.cs: We can still delete if we are in the line
12073 ending and the combine will just kill the existing line ending.
12075 2007-04-18 Jackson Harper <jackson@ximian.com>
12077 * TextControl.cs: We can't move lines, then invalidate their
12078 bounds, we need to get the old bounds and combine that with the
12080 * TextBoxBase.cs: Before combining two lines for a delete, we need
12081 to invalidate the area of the old line, since that will be moved
12082 in the combine operation.
12084 2007-04-18 Everaldo Canuto <everaldo@simios.org>
12086 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12087 with transparent background. Fixes #80482.
12089 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
12091 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12092 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12095 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12097 * CreateParams.cs: Add a couple of helper methods and do a less string
12098 concatenation in ToString.
12099 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12100 overload that takes a Control parameter, since this method may be
12101 called before a control is assigned to the hwnd (from
12102 CreateWindow), and update CreateWindow to use the new overload. In
12103 GetMenuOrigin subtract the title bar from the y position if the
12104 form has a window manager (since we're painting it and not X).
12105 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12106 CreateParams to calculate the origin (since border sizes may vary).
12107 In ScreenToMenu only subtract the title height if we actually have
12109 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12110 mdi children never have menus of themselves.
12111 * InternalWindowManager.cs: Implement menu handling like form does.
12112 Added GetMenuOrigin to calculate the menu origin, can't use the
12113 CreateParams from the form like normally since it's lying.
12114 * Hwnd.cs: Implement GetBorderSize better (in the sense more
12115 windows-like) and add Inflate and comparison operators to the
12116 Borders type. When calculating MenuOrigin and it's a form with a
12117 window manager, use the window manager to calculate it.
12119 2007-04-17 Chris Toshok <toshok@ximian.com>
12121 * Control.cs (CreateControl): turns out in 2.0 we don't need this
12122 OnBindingContextChanged thing here. It's only generated from
12123 ContainerControl.OnCreateControl. Fixes a newly written unit test
12124 - BindingTest.BindingContextChangedTest4.
12126 2007-04-17 Jackson Harper <jackson@ximian.com>
12128 * ScrollBar.cs: When setting values, make sure the current
12129 position stays within the new values range.
12131 2007-04-17 Chris Toshok <toshok@ximian.com>
12133 * Control.cs (CreateControl): talk about a bizarre corner case.
12134 Don't emit OnBindingContextChanged here if we're a parentless
12135 control (i.e. if we're a form.). Fixes
12136 BindingTest.BindingContextChangedTest2.
12138 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12140 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
12141 from win32. Fixes #81255.
12143 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12145 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12146 already present in CalculateButtonTextAndImageLayout.
12148 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12150 * XplatUIX11.cs: When setting min/max size for a window we need to
12151 translate the coordinates to x coordinates. Create an overload of
12152 SetWindowMinMax that takes a CreateParams handling this, and change
12153 SetWMStyles to call this function (can't use Control.FromHandle in
12154 the SetWindowMinMax to get the control/CreateParams from the handle
12155 because the handle might not have been assigned to the control
12156 yet). Fixes #81371.
12158 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12160 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12161 if StateImageList is non-null and it has less than two items (match MS
12162 behaviour). Also, in HandleNavKeys handle the Space key, calling
12163 the new ToggleItemsCheckState method, which tries to change the
12164 checked state of the selected items. Fixes part of #81191.
12166 2007-04-16 Jackson Harper <jackson@ximian.com>
12168 * RichTextBox.cs: namespace cleanup.
12170 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12172 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12174 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12177 * Control.cs: Call invalidate in set_Region.
12179 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12180 it dont works here.
12182 2007-04-16 Jackson Harper <jackson@ximian.com>
12184 * TextBoxBase.cs: When enter is pressed, we need to update all
12185 lines below the current.
12187 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
12189 * MdiClient.cs: Implement implicit menu merging for MDI
12190 children. When a child form is active, if it has a menustrip
12191 and the parent form has a MainMenuStrip, automatically merge
12194 2007-04-15 Andreia Gaita <avidigal@novell.com>
12196 * TabControl.cs: Refactored sizing methods to not repeat
12197 code all over the place. Tab bounds are now calculated
12198 as if alignment is top and single line, and only when
12199 setting the bounds are the positions adjusted according
12200 to alignment. Replaced hardcoded positions, spacings and
12201 paddings by getting the values the ThemeEngine.
12204 * Theme.cs: Change TabControl properties and methods so
12205 that all start with TabControl*. Added more properties
12206 to help remove hardcoded values on tabcontrol.
12207 Add CPDrawBorder3D declaration so the Theming classes
12210 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12212 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12213 on the Theming namespace, and call the appropriate methods here.
12214 Change CPDrawBorder3D to public.
12216 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12218 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12219 the control after firing the OnMouseUp event, instead of sending
12220 the message before the mentioned event. This is so we can match the
12221 MS behaviour. Fixes part of #80385.
12223 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12225 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12226 RightToLeft property.
12228 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12230 * ToolStrip.cs: Add properties and internal methods to support merging.
12231 * ToolStripItem.cs: Add MergeAction and MergeIndex.
12232 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12233 not trigger reparenting or layouts.
12234 * ToolStripManager.cs: Add Merge and RevertMerge methods.
12235 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12236 is hosting the overflow menu.
12238 2007-04-13 Jackson Harper <jackson@ximian.com>
12240 * TextControl.cs: Set the line ending correctly for the first
12243 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
12245 * Theme.cs: Update GetMethod to get the new definition for
12246 KnownColors.Update (and fix theme color updates).
12248 2007-04-12 Everaldo Canuto <everaldo@simios.org>
12250 * MessageBox.cs: Fix some test and button position.
12252 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12254 * Form.cs: Consider the implicit controls in
12255 GetRealChildAtPoint. We need it since this method
12256 is called on Form when handling the some messages in
12257 WndProc, and need to consider those implicit ones too.
12260 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
12262 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12263 if there are no ShortcutKeys set.
12264 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12265 set, use it when painting.
12267 2007-04-12 Jackson Harper <jackson@ximian.com>
12269 * TextControl.cs: Fix some off-by-one issues in line duplication
12270 and insertion in the undo manager. Also, overwrite the first tag
12271 of a line on insert, if it is just a zero lengthed tag. This
12272 prevents us from getting an extra stranded tag at the beginning of
12275 2007-04-11 Everaldo Canuto <everaldo@simios.org>
12277 * Label.cs: Remove check for handle created in CalcAutoSize, we need
12278 to calculated proper size including when handle was not created yet.
12280 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12282 * MdiWindowManager.cs: When moving a form, allow the form to be moved
12283 when the mouse is outside of it's parent's client rectangle. Fixes
12284 #79982 (take 3, part 2).
12286 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12288 * X11Structs.cs: Add a few ToString() overrides.
12289 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12290 the window location in a window-manager independent way. Reworked
12291 FrameExtents, it now actually works. Reworked AddConfigureNotify
12292 and ReparentNotify handling to use GetTopLevelWindowLocation
12293 instead of the earlier, more hacky solution. Reworked SetWMStyles,
12294 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12295 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12296 for all other windows (fixes #81281 part 1), a toolwindow is hidden
12297 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12298 and generally refactored to do as few calculations as possible
12301 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
12303 * Theme.cs: Change "reflective-contract" between MWF and SD to
12304 minimize # of calls, avoid Color serialization and avoid updating
12305 every "known colors" each time a single one is updated.
12307 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12309 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12310 when not readonly and the text is explicitly set. Code style updates.
12311 * DataGridTableStyle.cs: Removed extra line.
12312 * DataGrid.cs: Code style updates. Removed extra whitespace.
12313 * DataGridColumnStyle.cs: Code style updates. Removed extra
12316 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12318 * XplatUIX11.cs: Added comment that "fixes" #80021.
12320 2007-04-09 Jackson Harper <jackson@ximian.com>
12322 * TextControl.cs: We don't need this -1 on the line count anymore.
12324 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12326 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12327 entered value to underlying type, and convert it back to a string to
12328 apply formatting. Modified GetFormattedValue to use TypeConverter
12331 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
12333 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12334 Use SubItems property when we want to ensure there's at least one
12335 subitem. Modified SubItems property to ensure there's always at least
12336 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12337 the NRE's reported by MS.
12339 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
12341 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12342 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12343 Spaces to tabs. Removed extra tabs.
12345 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
12347 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12348 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
12350 2007-04-06 Jackson Harper <jackson@ximian.com>
12352 * TextBoxBase.cs: When a delete removes a line, recalculate all
12353 lines below that line (they need to get offsets setup correctly)
12356 2007-04-05 Jackson Harper <jackson@ximian.com>
12358 * TextControl.cs: We need to invalidate across the width of the
12359 document when we are invalidating multiple lines.
12360 * TextBoxBase.cs: Don't delete into the line ending.
12362 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12364 * ListView.cs: Restore the check for the MouseHover event
12365 in ListView. It looks like the ListView fires more than one MouseHover
12366 event when HoverSelection is true _only_ in weird-corner scenarios, but
12367 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12370 2007-04-05 Mike Kestner <mkestner@novell.com>
12372 * ListView.cs : raise MouseDown before updating selection.
12373 [Fixes #80373 tab 1&3]
12375 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12377 * ToolStripRenderer.cs: Add static method to mirror image.
12378 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12379 and RightToLeftAutoMirrorImage.
12380 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12382 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12384 * ToolStripSplitStackLayout.cs: Support Alignment property.
12385 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12387 2007-04-05 Jackson Harper <jackson@ximian.com>
12389 * TextControl.cs: Move around the line endings when crossing line
12391 - When combining lines, strip the ending text off the first line.
12393 2007-04-05 Jackson Harper <jackson@ximian.com>
12396 * TextBoxBase.cs: Try to never move the cursor into the line
12399 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12401 * ToolStripItem.cs: Make sure we aren't firing mouse events when
12402 the item is disabled. Also add a few missing methods.
12404 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12406 * ListView.cs: We don't need the MouseEnter/MouseLeave check
12407 to fire just one MouseHover event when HoverSelection is true, since
12408 .Net does fire more than one MouseHover event in that scenario. Also,
12409 fix the selection in HoverSelection, by invoking UpdateMultiSelect
12410 if MultiSelect is true, instead of only setting ListViewItem.Selected.
12411 Finally, we need to reset the Hover logic in MouseMove, even when we
12412 don't have a selected item.
12414 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12416 * ToolStrip.cs: Add several missing methods, properties, and events.
12418 2007-04-04 Chris Toshok <toshok@ximian.com>
12420 * DataGridTextBoxColumn.cs: set the bounds of the text box to
12421 (0,0,0,0) in Commit, as MS does.
12423 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
12424 make sure we set CurrentRow on a row header click *before* calling
12425 Select. This moves the current cell (and the textbox) to the new
12426 row. The call to Select then hides the textbox, giving us the
12427 correct behavior. Fixes #80362.
12429 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
12430 (ListChangedHandler): reorder the position/current changed events,
12431 and call UpdateIsBinding in the ItemAdded case.
12433 * GridColumnStylesCollection.cs: add some columns events, one of
12434 which raises the CollectionChanged event.
12436 2007-04-04 Jackson Harper <jackson@ximian.com>
12438 * TextControl.cs: When we delete multiple selection lines
12439 invalidate the selection area, don't need to do that for single
12440 lines because the final update view will handle it.
12442 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12444 * Control.cs: When we CreateControl, we need to also create all of the
12445 control's children. The child's OnLoad must also fire before the parent's
12446 OnLoad. Fixes the toolbox size in PDN.
12448 2007-04-04 Jackson Harper <jackson@ximian.com>
12450 * TextBoxBase.cs: When the user presses enter, insert a line
12451 ending into the text. (Maybe this would be a good spot for
12452 Environment.NewLine).
12453 * TextControl.cs: Remove undo manager hack, line endings get
12454 inserted properly now.
12456 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12459 - Remove unneeded parameters in UpdateCursor.
12460 - Fix UpdateCursor to check if menu is active.
12461 - Call UpdateCursor when menu deactivate my click.
12462 [Fixes remaining issues from #80410]
12464 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12466 * Control.cs: GetRealChildAtPoint method added, it make an
12467 recursive child control search for the point.
12469 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
12472 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
12474 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12476 * Form.cs: Fix mouse position when send back mouse event after closes
12479 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12481 * Form.cs: Simplify the BUTTONDOWN for active tracker.
12483 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12485 * Control.cs: Fix an issue where if a user resized a control inside
12486 a sizing method like OnResize, we would overwrite their explicit
12487 value. Also, only call DefaultSize once in the constructor instead
12488 of 4 times. Also, do not call SetBoundsCore from SetBounds if
12489 nothing actually changed.
12491 2007-04-03 Jackson Harper <jackson@ximian.com>
12493 * TextControl.cs: Don't attempt to copy text for lines with no
12494 text in them (technically this shouldn't happen, but we aren't
12495 always inserting line endings when we should be).
12497 2007-04-03 Jackson Harper <jackson@ximian.com>
12499 * TextBoxBase.cs: Calculate the scrollbars before calculating the
12500 document, because this sets some of the document size properties
12503 2007-04-03 Jackson Harper <jackson@ximian.com>
12505 * TextBoxBase.cs: We need to calculate maximums even if this is
12506 not a multiline control, because the maxs are used for scrolling.
12507 - Display the caret after doing a page up/down, we need to
12508 manually display it because a proper CaretMoved event isn't
12509 triggered (this is because of the way the math is done to
12510 determine how far to scroll).
12512 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12514 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
12515 (ToolBar was relying on SetBoundsCore to default the values sent
12516 base off of BoundsSpecified.)
12518 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12520 * DateTimePicker.cs: Change Text so that when a null value or empty
12521 string is assigned to the test we always raise ValueChanged and
12522 TextChanged (earlier implementation would only raise ValueChanged
12523 if the current date value was different from DateTime.Now).
12525 2007-04-03 Andreia Gaita <avidigal@novell.com>
12527 * ButtonBase: Call update after invalidation, fixes #80194
12529 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12531 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
12534 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12536 * XplatUIX11.cs: SetWMStyles: If the control is a form with
12537 FormBorderStyle = None, don't give the window any decorations.
12540 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12542 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12543 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
12544 to check for is a mix of several styles (such as WS_CAPTION for
12546 * Control.cs: Don't paint an area bigger than the client area when
12547 painting the background colour. Add an internal GetCreateParams.
12548 Update calls to XplatUI.CalculateWindowRect due to API change.
12549 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
12550 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
12551 the size if it hasn't been handled by any windows. When creating
12552 and moving windows, X wants the location of the entire window, but
12553 the size of the client window, so add
12554 TranslateClientRectangleToXClientRectangle,
12555 TranslateWindowSizeToXWindowSIze and
12556 TranslatedXWindowSizeToWindowSize to cope with this, and call them
12557 before every window creation and move. Update CalculateWIndowRect
12558 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
12559 In AddConfigureNotify don't do anything if the hwnd is a zombie
12560 (fixes the BadWindow we were getting while running the tests),
12561 always calculate the offsets when it's a parentless window, not
12562 only when reparented, and translate the window size, since we're
12563 getting the client size of the whole window, excluding entire
12565 * Theme.cs: Added BorderSizableSize.
12566 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12567 anymore. Update calls to XplatUI.CalculateWindowRect due to API
12569 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
12570 change. Fake the window styles here instead of in XplatUIWin32 so
12571 that all back-ends get the same window styles (and it's Form that's
12572 deciding when to use wm, not the Win32 backend anyways)
12573 * Hwnd.cs: Completely reworked GetWindowRectangle and
12574 GetClientRectangle - they are now passed a CreateParams and they
12575 only use Style and ExStyle to determine the rectangles (they should
12576 now work just like Win32AdjustWindowRectEx - though quite a few
12577 special cases are probably missing). They should also be 100%
12578 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
12579 == rect), and all numbers (borders, menu sizes) are taken from the
12580 current theme. Added a GetBorders helper function that will return
12581 the borders for any given CreateParams (including captions and
12582 menus), and GetBorderSize that returns the given border size only.
12583 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
12584 Hwnd.GetClientRectangle.
12586 2007-04-02 Chris Toshok <toshok@ximian.com>
12588 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
12589 logic between the values we present to the user and the values
12590 which are stored in the column's property. Also, don't call
12591 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
12593 2007-04-02 Jackson Harper <jackson@ximian.com>
12595 * TextBoxBase.cs: Scroll faster!
12597 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
12599 * StatusStrip.cs: Layout fixes for PDN.
12600 * ToolStrip.cs: Set item's available to true, and placement to main when
12602 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
12603 changing in setter before doing any work, add InternalVisible.
12604 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
12605 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12608 2007-04-02 Jackson Harper <jackson@ximian.com>
12610 * TextBox.cs: LBUTTON does not make the textbox select all of it's
12613 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12615 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
12616 Makes ToolStripComboBoxes show up again.
12618 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12620 * ListView.cs: Add a hover_pending field in ListView
12621 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
12622 cycle (we are resetting the MouseHover logic in XplatUI
12623 to handle HoverSelection). Fixes #80429.
12625 2007-04-02 Jackson Harper <jackson@ximian.com>
12627 * TextControl.cs: Make sure the attributes get set on the last
12629 - Still have to do the end tag if we have stepped all the ways to
12632 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
12634 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
12635 on an internal libgdiplus call when the information is already
12636 available via the public API.
12638 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12640 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
12641 control is removed from a control collecftion.
12642 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
12643 Fixes FormPropertyTest (failed on rare occasions).
12644 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
12645 of Win32SetParent (when changing from no parent to a parent it
12646 might add the new parent's location in screen coordinates to this
12647 window's location).
12648 * Form.cs: Rework ChangingParent once again, now the handle is
12649 recreated whenever a FormWindowManager is added or removed (that is
12650 whenever a normal form is parented or abandoned). Also change
12651 CreateParams so that all non-toplevel windows always get the
12652 specified sice (StartupPosition is never considered for
12653 non-TopLevel forms).
12654 * ContainerControl.cs: Add ChildControlRemoved, the container control
12655 needs to be notified when a control is removed from it's
12656 collection, in the case the removed control is the active control.
12658 2007-04-02 Jackson Harper <jackson@ximian.com>
12660 * RichTextBox.cs: Use the new methods for setting the font and
12661 color, these methods set the specified attribute without
12662 overriding the other attributes.
12664 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
12666 * ToolStripPanel.cs: Fixes for better layouts in PDN.
12668 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
12670 * TextBox.cs: Added internal ChangeBackColor method to special-case
12671 Color.Empty. Added check for invalid ScrollBars value.
12672 * TextBoxBase.cs: Added internal ChangeBackColor method.
12673 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
12674 internal ChangeBackColor method to special-case Color.Empty. Added
12675 check for invalid ScrollBars value.
12677 2007-03-30 Everaldo Canuto <everaldo@simios.org>
12679 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
12681 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
12683 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
12684 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
12685 [Based on submitted patch from Olivier Duff.]
12687 2007-03-30 Jackson Harper <jackson@ximian.com>
12689 * TextBox.cs: Only select all on initial focus if the user has not
12690 specified a selection area.
12692 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
12694 * UserControl.cs: Override CreateParams.
12696 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12700 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12701 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
12702 check for is a mix of several styles (such as WS_CAPTION for instance).
12703 * Control.cs: Don't paint an area bigger than the client area when painting
12704 the background colour. Add an internal GetCreateParams. Update calls to
12705 XplatUI.CalculateWindowRect due to API change.
12706 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
12707 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
12708 hasn't been handled by any windows. When creating and moving windows, X
12709 wants the location of the entire window, but the size of the client
12710 window, so add TranslateClientRectangleToXClientRectangle,
12711 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
12712 to cope with this, and call them before every window creation and move.
12713 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
12714 removing DeriveStyles). In AddConfigureNotify don't do anything if the
12715 hwnd is a zombie (fixes the BadWindow we were getting while running the
12716 tests), always calculate the offsets when it's a parentless window, not
12717 only when reparented, and translate the window size, since we're getting
12718 the client size of the whole window, excluding entire window.
12719 * Theme.cs: Added BorderSizableSize.
12720 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12721 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
12722 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
12723 Fake the window styles here instead of in XplatUIWin32 so that all
12724 back-ends get the same window styles (and it's Form that's deciding when
12725 to use wm, not the Win32 backend anyways)
12726 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
12727 they are now passed a CreateParams and they only use Style and ExStyle
12728 to determine the rectangles (they should now work just like
12729 Win32AdjustWindowRectEx - though quite a few special cases are probably
12730 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
12731 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
12732 sizes) are taken from the current theme. Added a GetBorders helper
12733 function that will return the borders for any given CreateParams
12734 (including captions and menus), and GetBorderSize that returns the given
12736 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
12737 Hwnd.GetClientRectangle.
12739 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12741 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
12742 layout of the mdi children is handled by CreateParams. Fixes
12745 2007-03-29 Everaldo Canuto <everaldo@simios.org>
12747 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
12750 * Form.cs: When active tracker mouse down is not processed, send event
12751 back to control inside mouse position. [Fixes #81227]
12753 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
12755 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
12756 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
12757 stealing focus from the active form on Windows. (Control will be made
12758 visible in ShowWindow.)
12760 2007-03-29 Mike Kestner <mkestner@novell.com>
12762 * ImageList.cs : add internal Changed event.
12763 * ListView.cs : hook up to StateImageList.Changed to perform
12764 invalidations when the the state icon list changes. [Fixes #81191]
12766 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
12768 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
12769 to prevent tooltips from stealing focus from the active form on Windows.
12771 2007-03-29 Everaldo Canuto <everaldo@simios.org>
12773 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
12775 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
12777 2007-03-29 Everaldo Canuto <everaldo@simios.org>
12779 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
12782 2007-03-29 Jackson Harper <jackson@ximian.com>
12784 * TextControl.cs: When deleting text from non multiline textboxes,
12785 we need to update the entire document, because line offsets will
12788 2007-03-29 Everaldo Canuto <everaldo@simios.org>
12790 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
12791 added to theme, now we can create themes that uses diferent notify engines
12792 like notification-daemon from galago project or growl for Mac OS.
12794 2007-03-28 Everaldo Canuto <everaldo@simios.org>
12796 * NotifyIcon.cs: Prevent Balloon to show in task bar.
12798 2007-03-28 Everaldo Canuto <everaldo@simios.org>
12800 * XplatUIX11.cs: Prevent system to open more than one balloon.
12802 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
12803 some compiler warning messages.
12805 2007-03-28 Everaldo Canuto <everaldo@simios.org>
12809 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
12811 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
12812 implemented, this methods is used by NotifyIcon.BalloonWindow class.
12814 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
12817 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12819 * ListViewItem.cs: Forgot to make Invalidate internal.
12821 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12823 * ListView.cs: Add a InvalidateSelection method to
12824 invalidate methods which are currently selected, and call
12825 it when setting FullRowSelect and HideSelection, instead of
12828 2007-03-28 Chris Toshok <toshok@ximian.com>
12830 * XplatUIX11.cs (UnmapWindow): reindent this block.
12832 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
12833 the selection_start if we're moving the selection (that is, not
12834 extending it). Fixes bug #80461.
12836 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12838 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
12839 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
12840 create private ControlCollection.
12842 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12844 * Control.cs: We need to call OnVisibleChanged for our implicit
12845 children as well as our normal children. Fixes scrollbars in
12846 comboboxes not showing up.
12848 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12850 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
12851 the check for IsHandleCreated first. The check in CreateHandle is not
12852 good enough because CreateHandle can be overriden, and the override
12853 should not be called if the handle is already created.
12855 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12857 * ToolStrip.cs: Remove MonoTODO for tooltips.
12858 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
12859 * ToolStripContainer.cs: Add custom ControlCollection class.
12860 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
12861 * ToolStripDropDown.cs: Add some missing properties/methods.
12862 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
12863 * ToolStripItem.cs: Remove MonoTODO for tooltips.
12864 * ToolStripManager.cs: Add IsShortcutDefined.
12865 * ToolStripOverflow.cs: Override LayoutEngine.
12866 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
12867 * ToolStripSeparator.cs: Add ImageKey.
12869 2007-03-28 Jackson Harper <jackson@ximian.com>
12871 * TextControl.cs: If a char delete removes a line ending, we need
12872 to update the ending style.
12873 - Make sure the line ending calcs get called.
12875 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12877 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
12878 it was making the new code not work. Fixed a typo in the new code
12879 as well. Fixes #79826.
12881 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12884 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
12885 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
12886 - SystrayBalloon method implemented.
12887 [Add support for notifyicon balloon on win32, #79149]
12889 2007-03-27 Mike Kestner <mkestner@novell.com>
12891 * ThemeWin32Classic.cs : update StateImageList selection to mirror
12892 the ms behavior when only one image is added to the list.
12895 2007-03-27 Jackson Harper <jackson@ximian.com>
12897 * TextControl.cs: Improvements to non multiline line ending
12900 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12902 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
12904 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12907 - Balloon message handling added.
12908 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
12910 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12911 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
12912 to SystrayBalloon to me like other Systray method, also a
12913 handle parameter added.
12915 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12917 * ListView.cs: Show scrollbars even when items.Count == 0
12918 but the columns Width is bigger than the ListView.Width.
12919 Also, when columns.Count == 0 set layout_wd and layout_ht
12920 to the ClientRectangle values, so we don't show any scrollbar
12923 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12925 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
12927 2007-03-27 Jackson Harper <jackson@ximian.com>
12929 * RichTextBox.cs: The RTF library decodes the text properly for us
12932 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12934 * ListView.cs: Display HeaderControl even when columns.Count == 0.
12935 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
12936 ListView header (HeaderControl), instead of Control.BackColor.
12938 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
12940 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
12941 Fixes tab control issues where controls would not show up because they
12942 never received their OnVisibleChanged call.
12944 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12946 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
12949 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
12951 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
12952 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
12953 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
12954 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
12955 the handle. Fix WindowState by using the internal variable until we are
12956 sure that we've been shown.
12957 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
12961 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
12963 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
12964 (at least borders). Fixes #79386 on Linux (with a small difference
12965 in behaviour: when trying to resize a caption-less window metacity
12966 shows the sysmenu. Resizing is still possible though).
12967 * XplatUIWin32.cs: When setting window styles send request an extra
12968 WM_NCCALCSIZE when it's a form without title (due to no text and no
12969 caption), since Win32 seems to calculate it wrong the first time we
12970 get the message, though the second time things work as they should.
12971 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
12972 newly reparented window might show up unparented. Update
12973 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
12974 there's no title text. Fixes #79386.
12976 2007-03-27 Mike Kestner <mkestner@novell.com>
12978 * ListBox.cs : don't perform invalidations if the handle hasn't been
12979 created. [Fixes #80753]
12981 2007-03-27 Mike Kestner <mkestner@novell.com>
12983 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
12986 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12988 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
12989 needed to implement Balloon.
12991 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12993 * ListViewItem.cs: In the constructors that take
12994 an array of strings, don't use ListViewSubItemCollection.AddRange
12995 method to add items, since we need to have a different behaviour (in
12996 the constructors we add an item for each null string, opposed to
12997 the behaviour of AddRange, which adds nothing).
12999 2007-03-26 Andreia Gaita <avidigal@novell.com>
13001 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13003 2007-03-26 Jackson Harper <jackson@ximian.com>
13005 * TextControl.cs: Draw and measure line endings when in non
13007 - When searching the text, count the end of the last line as a
13010 2007-03-26 Jackson Harper <jackson@ximian.com>
13012 * RichTextBox.cs: The selection_start and selection_end don't
13013 really track the correct tags for the selection. So we'll manually
13014 compute the correct tag here.
13016 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13018 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13019 and Continuous styles. Fixes #79469.
13021 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13023 * ToolStrip.cs: Implement Tooltips.
13024 * ToolStripItem.cs: Create internal method for determining tooltip.
13026 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13028 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13030 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13032 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13033 it prevents a problem thak keeps icon visible after application
13036 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13038 * NotifyIcon.cs: Balloon properties and methods created.
13040 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13041 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13043 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
13045 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13047 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13049 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
13050 parameter indicates which aspects were explicit/user-set.
13051 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13053 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13055 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13056 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13057 SmallChange, and Value (2.0).
13058 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13060 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13062 * ListView.cs: Always set item_control.Width in LayoutDetails
13063 if View is Details. Setting it later in CalculateScrollBars
13064 in a not-so-corner scenario (the sum of columns width is
13065 not bigger than the ListView width when handle is created, and then
13066 that sum gets bigger by increasing the width of the columns)
13067 causes a very weird recursion path (which shouldn't be happening,
13068 since header_control sets it in CalculateScrollBars too). This bug
13069 appeared after Chris' fixes for handle created issues, so probably
13070 it's related to some handle-creation time.
13072 2007-03-23 Chris Toshok <toshok@ximian.com>
13074 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13075 case where there's an add row, just so we don't end up in a case
13076 where it's not displayed (this happens when the row is partially
13077 obscured). Fixes bug #79574.
13079 2007-03-23 Jackson Harper <jackson@ximian.com>
13083 * RichTextBox.cs: Preserve line endings in the lines text buffer,
13084 also added an enum that represents the line ending type.
13086 2007-03-23 Andreia Gaita <avidigal@novell.com>
13088 * NumericUpDown.cs: Fix logic so Text and Value properties are not
13089 messed with in every method call, but only from DownButton,
13090 UpButton, UpdateEditText() and ValidateText. Fixes #80346
13092 2007-03-23 Chris Toshok <toshok@ximian.com>
13094 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13095 format objects if the format spec is "". Fixes bug #80889.
13097 2007-03-22 Miguel de Icaza <miguel@novell.com>
13099 * ToolStripPanel.cs (Join): added stubs to build PDN3
13101 * Control.cs (AutoScrollOffset): Add.
13103 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13104 property, its only implemented for Win32, on X11 it defaults to
13105 some hardcoded value.
13107 * ToolStripItem.cs (AllowDrop): Add property
13109 2007-03-22 Mike Kestner <mkestner@novell.com>
13111 * ListView.cs : in FullRowSelect Details mode, only enable box
13112 selection if the user clicks over the "item" column outside of the
13113 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
13115 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13117 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13118 handle is not created yet.
13119 * Form.cs: Select: Don't call CreateHandle if the handle is already
13120 created, avoids a stack overflow on Windows when we are recreating
13122 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13123 they are made visible, and override AfterTopMostControl to keep
13124 them on top when other controls are brought to front.
13125 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13126 or force_*scroll_visible is true (old implementation always shows
13127 scrollbars when needed, no matter what auto_scroll was set to).
13128 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13129 IsHandleCreated check.
13131 2007-03-22 Andreia Gaita <avidigal@novell.com>
13133 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13134 row or col separator.
13135 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13137 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13139 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13141 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13143 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13144 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
13145 every time. Fixes #80410.
13147 2007-03-22 Chris Toshok <toshok@ximian.com>
13149 * BindingSource.cs (AddNew): partially implement.
13151 remove a couple of NotImplementedException's
13152 to get bug #81148 closed.
13154 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13159 - UpdateCursor method added to update the screen cursor.
13160 - GetAvailableCursor method added to return cursor for enabled tree,
13161 it searches for cursor on control and it's parent's for enabled control.
13162 - Call UpdateCursor method on setter of Cursor property.
13163 - On setter of Enabled call UpdateCursor when it is false, we need to
13164 change cursor to normal (or to this parent cursor) because cursor
13165 setting theres no effect to disabled controls.
13166 - Some minor source changes to follow the coding style guidelines.
13168 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
13171 2007-03-22 Chris Toshok <toshok@ximian.com>
13173 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13176 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13178 * XplatUIX11.cs: Implement default locations for forms.
13179 * Form.cs: Completely rework startup location for forms. Fixes #79964.
13180 * Hwnd.cs: Add previous_child_startup_location (to track the current
13181 startup location for any child forms of the current form) and
13182 previous_main_startup_location (to track the startup location for
13183 the current toplevel form).
13185 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13187 * Control.cs: Don't trigger a layout if an implicit control is added
13188 that isn't visible. Also, don't notify the owner when an implicit control
13189 is added. (Owners shouldn't even know about their implicit controls.)
13191 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13193 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13194 to save some re-layouts.
13196 2007-03-21 Everaldo Canuto <everaldo@simios.org>
13198 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13201 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13203 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13204 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13206 2007-03-21 Mike Kestner <mkestner@novell.com>
13208 * ListView.cs : disable selection update for non-left button clicks
13209 with mods and over selected items. [Fixes #80524]
13211 2007-03-20 Jackson Harper <jackson@ximian.com>
13214 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13217 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13219 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13220 very probably a more complicated calculation there. Update the
13221 textbox' ForeColor and BackColor when the ComboBox' colors are
13222 changed. Change the border change in LayoutComboBox to only affect
13223 the textbox, not all the calculations there. Seems to fix most of
13226 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13228 * ComboBox.cs: Handle Home and End keys as well as all combinations of
13229 modifiers + navigation keys as input keys, enables advanced text
13230 selection in the combobox (like Shift+Left Arrow for instance).
13231 ComboTextBox now overrides Focused and returns whatever
13232 ComboBox.Focused returns, since it really should be focused
13233 whenever the ComboBox is. Fixes #80795. Also make the border around
13234 the text box one pixel bigger, as mentioned in #79436.
13236 2007-03-20 Jackson Harper <jackson@ximian.com>
13238 * TreeView.cs: Don't offset the images, this was causing some
13239 artifacts when expanding/collapsing with images that were the
13240 exact height of the treenode.
13242 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13244 * TrackBar.cs: Query the theme for the correct value when the mouse
13245 moves and the thumb is pressed.
13246 * Theme.cs: Added TrackBarValueFromMousePosition
13247 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13248 implementation was updating the trackbar value when drawing, now
13249 the drawing methods only draw. Fixes #80900. Refactored the
13250 calculations out to TrackBarValueFromMousePosition and
13251 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13252 according to the mouse position whenever it wants to. Changed the
13253 light coloured pen when drawing the thumb from ControlLight to
13254 ControlLightLight, because the ControlLight is the same colour as
13255 the background so the 3D effect is lost.
13257 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13259 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13260 defined. Fixes #80784.
13262 2007-03-20 Marek Habersack <mhabersack@novell.com>
13264 * ContextMenuStrip.cs: align with the change introduced in
13267 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13269 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
13270 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
13273 2007-03-19 Chris Toshok <toshok@ximian.com>
13275 * Control.cs (WmPaint): don't make use of the Handle property
13276 after an event is emitted, as the user could have closed the
13277 form/destroyed the control. Store the Handle in a local variable
13278 and make use of that. Fixes bug #80768.
13280 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13282 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13283 behavior in X11 environments.
13285 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13287 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13288 because on setter of topmost we dont call SetTopmost when handle is not
13291 2007-03-20 Jackson Harper <jackson@ximian.com>
13293 * TextControl.cs: Need to use SelectionLength () not
13294 selection_length, since that var is reset to -1.
13295 - Draw the caret when we don't have focus.
13296 * TextBox.cs: The selectall actually doesn't occur until the first
13298 * TextBoxBase.cs: Need to update the caret position after a
13301 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13303 * ListView.cs: Enable scrolling when using Tile view.
13305 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13309 * XplatUIDriver.cs: Abstract SetOwner method created.
13311 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
13312 must be implemented and was masked as todo.
13314 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
13317 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
13318 cheking for null owner to remove transient. The SetTopmost will be change
13321 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13322 SetTopmost. Now owned forms will work properly in win32 and X11.
13324 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13326 * MdiWindowManager.cs: Update function name.
13327 * Form.cs: After closing a form MdiParent is always null.
13328 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13329 better what it should do: necessary book-keeping when the form is
13330 closed, it should not close the form itself.
13332 2007-03-19 Andreia Gaita <avidigal@novell.com>
13334 * ListViewItem.cs: Fix back and fore color. The subitems only
13335 use their own colors if they are set, otherwise use the listview's
13336 colors. Don't set default colors on constructor for subitem.
13339 2007-03-19 Mike Kestner <mkestner@novell.com>
13341 * ListView.cs : make box selection for Details views with
13342 FullRowSelect conform to MS behavior when clicking in the "item"
13343 column and clicking outside the defined columns.
13344 [Fixes case 5-6 of #80374]
13346 2007-03-19 Chris Toshok <toshok@ximian.com>
13348 * ScrollableControl.cs: create the controls from within the ctor,
13349 but don't actually add them until our handle is created. this
13350 fixes a NRE possibility jpobst found (if you override OnLayout in
13351 a subclass, it's called before your ctor). Also, add a
13352 IsHandleCreated guard to UpdateSizeGripVisibility as well.
13354 2007-03-19 Jackson Harper <jackson@ximian.com>
13356 * TextBox.cs: Reduce the amount of invalidation we do.
13357 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13358 some of them are true by default on MS.
13359 - Add some functions to reduce the amount of invalidates we do.
13360 * TextControl.cs: Less invalidation.
13362 2007-03-19 Chris Toshok <toshok@ximian.com>
13364 [ Fixes #81773, and *seems* to fix #81553 as well ]
13366 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13367 AccumulateDestroyedHandles. We need to do it *after* we send
13368 WM_DESTROY, as the user's code can access Control.Handle in
13369 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
13370 move the WM_DESTROY/zombie handling to before the call to
13371 XDestroyWindow. For some reason without this ordering
13372 FormTest.RecreateHandle hangs. This ordering is semantically
13373 equivalent, however, as XDestroyWindow is async anyway.
13375 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
13377 * RichTextBox.cs: Reset backcolor_set after setting default.
13379 2007-03-19 Chris Toshok <toshok@ximian.com>
13381 * ScrollableControl.cs: the scroll position should not effect the
13382 canvas size. commit patch from georgegiolfan@yahoo.com, which
13383 fixes some really bizarre behavior on resizing. Fixes bug #80778.
13385 2007-03-19 Chris Toshok <toshok@ximian.com>
13387 * ScrollableControl.cs: clean this up a bit. create the
13388 scrollbars in the ctor and just show/hide them as needed. Also,
13389 make hscroll_visible/vscroll_visible internal to Recalculate, and
13390 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13391 everywhere else. This seems to fix the scrollbars appearing
13392 beneath the content for me (i have *no* idea why that is,
13395 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13397 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
13398 some redundacy for stuff in Anchor and Dock that base will take care of.
13401 2007-03-19 Mike Kestner <mkestner@novell.com>
13403 * ListView.cs : make box selection for Details views without
13404 FullRowSelect dependent on the text bounds, not item bounds.
13405 * ListViewItem.cs : add an internal property to obtain the TextBounds
13406 in Details view. [Fixes case 1-4 of #80374]
13408 2007-03-19 Andreia Gaita <avidigal@novell.com>
13410 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
13411 we're < 2.0. #78448 && #80316
13413 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13415 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
13416 have the same style available as the previously selected one. Also,
13417 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
13419 2007-03-19 Jackson Harper <jackson@ximian.com>
13421 * TextControl.cs: Add an alignment property that all new lines
13423 - Make sure to use the align shift when calculating the line's X
13425 * TextBox.cs: Set the alignment on the document as well as on all
13426 the document lines.
13428 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13430 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
13431 throw if setting the parent of an mdichild that already has an
13432 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
13433 AssemblyProductAttribute in the assembly, use the type's namespace (as
13434 MS seems to do). CreateControl: don't create the handle if the control
13435 is not visible (according to MS behaviour and spec). SetTopLevel: Only
13436 create handle if the control is not a form. Change FocusInternal to
13437 virtual so that it can be overriden by Form.
13438 * TextBox.cs: Update call to FocusInternal.
13439 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
13440 form is not a toplevel form when it's a mdi child, so update is_toplevel
13441 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
13442 hasn't been created. Show (IWin32Window): Don't allow this overload for
13443 toplevel windows. CenterToParent/CenterToScreen/Select: create the
13444 handle as MS does. SetVisibleCore: if called on a MdiChild and the
13445 parent isn't visible yet, save the visibility and restore it when the
13446 parent is made visible.
13447 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
13448 methods, since the visibility of the scrollbars can be changed from
13449 several places, not only from AutoScroll.
13452 2007-03-19 Jackson Harper <jackson@ximian.com>
13454 * RichTextBox.cs: Enable shortcuts by default.
13455 * TextBoxBase.cs: Add conditional shortcuts.
13457 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13459 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
13461 2007-03-19 Chris Toshok <toshok@ximian.com>
13463 [ Fixes bug #80604]
13465 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
13466 swallow the message we're waiting on, instead of delivering it, as
13467 this is only used for the WM_SHOWWINDOW raised from
13468 MapWindow/UnmapWindow, and the message needs to be generated
13469 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
13470 before doing the Map/Unmap. Also make sure that the Hwnd is still
13471 alive after the message has been handled.
13473 *before* the window is shown.
13475 * Control.cs (CreateControl): guard a few more things inside the
13476 if (!is_created) block, as we might end up being called again -
13478 (WmShowWindow): call CreateControl if we're showing the control.
13480 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13482 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
13483 controls without a handle if they have any parent with a handle. In
13484 Dispose add a check whether the handle is created or not before
13485 calling BeginInvoke, this removes the need of the extra disposing
13486 parameter (which was bogus anyway since it didn't prevent the
13487 invoke from happening, it only skipped the check for an existing
13488 handle, meaning that the invoke would call on an inexistent
13491 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13493 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
13494 appears in taskbar.
13496 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13499 - Fixed a problem that dont show help button for messages with 3 buttons.
13500 - Refactory button size and position calculations, now dont use fixed
13501 values, also fixed button sizes (#80043) and form's border space.
13502 - AddButton method created, now all other AddButton methods call this one.
13503 - Some other source code cosmetic changes.
13505 2007-03-18 Jackson Harper <jackson@ximian.com>
13507 * RichTextBox.cs: Don't do this all fonts must match check if
13508 there is only one char selected.
13510 2007-03-18 Jackson Harper <jackson@ximian.com>
13512 * TreeView.cs: ScrollWindow works properly now, so we don't need
13513 to screw around with the scroll area. This fixes some artifacts
13514 when expanding and collapsing.
13516 2007-03-18 Jackson Harper <jackson@ximian.com>
13518 * TextBoxBase.cs: Allow updating the selection position when the
13519 cursor is outside the textarea, but we have a capture.
13520 * TextControl.cs: A special case for when the cursor is outside
13521 the bounds of the TB.
13523 2007-03-18 Jackson Harper <jackson@ximian.com>
13525 * TextBoxBase.cs: Remove image pasting code for now. There is no
13526 way to get an image on the clipboard right now anyways.
13528 * RichTextBox.cs: Use the new RTF Picture class for pictures.
13530 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13533 - Set window properties in constructor intead of on CreateParams.
13534 - Remove topmost from Window ExStyle.
13535 - Set ShowInTaskbar to false.
13536 - Set form border to FixedDialog.
13537 - Some cosmetic changes and remove unneeded comments.
13538 - It fixes itens 2,3 and 4 of bug #80043.
13540 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
13542 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
13543 none was explicitly set. Fixes part of bug #79949.
13545 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
13547 * ToolStripComboBox.cs: Add AutoComplete*.
13549 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
13551 * ToolStripComboBox.cs: Add FlatStyle.
13553 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
13555 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
13556 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
13558 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13560 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
13561 CheckBox.cs, RadioButton.cs, BindingSource.cs,
13562 DataGridColumnStyle.cs: Remove warnings.
13564 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13566 * Menu.cs: MergeMenu: Check menu argument for null before looping over
13568 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
13569 visibility of mdi child forms. FormSizeChangedHandler: update the
13570 maximized size if size has changed while maximized.
13571 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
13572 creating the handle.
13573 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
13574 avoid creating the handle if not created.
13575 * XplatUI.cs: Update debug output.
13576 * XplatUIStructs.cs: Added ToString's for a couple of structs.
13578 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
13580 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
13582 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
13583 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
13584 Implement keyboard shortcuts.
13586 2007-03-15 Everaldo Canuto <everaldo@simios.org>
13588 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
13589 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
13590 ColorDialog and all derived classes.
13592 2007-03-15 Everaldo Canuto <everaldo@simios.org>
13594 [ Fixes bug #79828 ]
13597 - Rename ToolBarButtonInfor to ToolBarItem.
13598 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
13599 - Maintain an array of ToolBarItem, used instead of ToolBarButton
13600 collection to be able add same button more than one time on a toolbar.
13601 - Refactory all properties and methods to use ToolBarItem.
13603 * ToolBarButton.cs:
13604 - Remove all propeties and methods that is now in ToolBarItem.
13605 - Rectangle propery now gets the rectangle from first ToolBarItem to
13606 mimic win32 behavior.
13607 - Size calculation and layout methods also removed.
13609 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
13610 ToolBarItem instead of ToolBarButton to right drawing buttons when
13611 same button/separator was added more than one time to ToolBar.
13613 * ThemeNice.cs: Same as above.
13615 2007-03-15 Andreia Gaita <avidigal@novell.com>
13617 * XplatUIX11.cs: Fire extra MouseMove events right after
13618 MouseDown and MouseUp, emulating win32's <censored> behaviour
13619 for apps that rely on it.
13621 2007-03-15 Jackson Harper <jackson@ximian.com>
13624 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
13625 it is drawn on the controls client window and there is no NC
13627 - Set the background color to gray on 2.0 when we are readonly.
13629 2007-03-15 Chris Toshok <toshok@ximian.com>
13631 [ Fixes bug #81144 ]
13633 * XplatUIX11.cs: implement VirtualScreen independently of
13634 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
13637 2007-03-15 Chris Toshok <toshok@ximian.com>
13639 * Hwnd.cs: add an internal field for the cached_window_state.
13641 * XplatUIX11.cs: cache the window state, invalidating the cache
13642 (and thus re-querying the X server) only when we see an update to
13643 the _NET_WM_STATE property.
13645 2007-03-15 Chris Toshok <toshok@ximian.com>
13647 * BindingSource.cs: get a lot of the unit tests working.
13649 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
13651 * Control.cs: Modify UpdateStyles to store distances when bounds >=
13652 0 instead of just bounds > 0. [Fixes bug #80912]
13654 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
13656 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
13659 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
13661 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
13662 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
13663 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
13664 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
13666 2007-03-15 Chris Toshok <toshok@ximian.com>
13670 * Control.cs: add Ivan's fix for 81101, with a slight modification
13671 - you can set control.Target to null.
13673 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
13675 * ToolStripItem.cs: If our OwnerItem is null, we can't use
13676 HideDropDown, use Hide instead to prevent an NRE.
13679 2007-03-14 Jackson Harper <jackson@ximian.com>
13681 * TextBoxBase.cs: Mess with the creation stuff a little. We need
13682 to calculate the document before the handle is created, in some
13683 cases. (Actually just one case).
13685 2007-03-14 Jackson Harper <jackson@ximian.com>
13687 * TextBoxBase.cs: Need to display the caret after letting the base
13688 wndproc handle the focus methods, because the caret display
13689 methods check the focus state.
13690 - Try to display the caret after updating it's position with SelectWord.
13691 - Don't need to do an immediate update on this recalc, since there
13692 will be an invalidate anyways.
13694 2007-03-14 Jackson Harper <jackson@ximian.com>
13696 * TreeView.cs: Some workarounds so that we can match event order a
13699 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
13701 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
13702 #80803. Avoid NullReferenceException when Control does not have
13703 parent. Fixed different blinkstyle issues. Only subscribe to Tick
13704 event a single time. Only draw error icon when control is created and
13705 visible. Fixes failing unit tests.
13707 2007-03-14 Andreia Gaita <avidigal@novell.com>
13709 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
13710 Selecting events. Fire Leave and Enter events when changing tabs.
13712 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
13714 * TreeView.cs: Add TreeViewNodeSorter.
13715 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
13717 2007-03-14 Chris Toshok <toshok@ximian.com>
13719 * Form.cs: go ahead and remove the RecreateHandles that jpobst
13720 removed earlier and I had him add back it. It turns out metacity
13721 *does* in fact handle the MOTIF_WM_HINTS property changing, it
13722 just doesn't redraw the window titlebar until you resize the
13723 window. This also means we aren't recreating the entire window
13724 hierarchy on X when you change this property. And it looks better
13727 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13730 * ListView.cs: Collecting selection information
13731 is now done in SelectedIndexCollection rather than in
13732 SelectedListViewItemCollection. This is done so we can
13733 have the selection information code in one single place
13734 (virtual mode selection information entirely depends on
13735 SelectedIndexCollection).
13737 2007-03-13 Miguel de Icaza <miguel@novell.com>
13739 * ErrorProvider.cs: Add stubs for ISupportInitialize
13741 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13743 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
13744 in the right order with the right values, from the Checked property,
13745 just as MS does (instead of triggering them from ListView).
13747 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
13749 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13751 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
13752 the correct handler in OnItemCheck method (ItemCheckEventHandler
13753 instead of EventHandler). This used to throw an InvalidCastException.
13755 2007-03-13 Jackson Harper <jackson@ximian.com>
13757 * TextBoxBase.cs: Calculate the document before the handle is
13758 created, so there isn't an extra invalidate called.
13760 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
13762 * Form.cs: Don't set owner in ShowDialog until we are sure
13763 that we aren't going to throw an exception. [Fixes bug #80773]
13765 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
13767 * TreeView.cs: Make it compile.
13769 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13771 * Control.cs: Another place we don't call SizeFromClientSize.
13772 * Form.cs: Another place we don't call SizeFromClientSize.
13775 2007-03-12 Jackson Harper <jackson@ximian.com>
13777 * TreeView.cs: Basically emulating some strangness here with
13778 exanding nodes and setting node positions when windows aren't
13780 - Also attempting to walk the node tree less than previously, and
13781 just use visible order calculations for determining offsets.
13782 - oops made scrolling backwards.
13783 * TreeNode.cs: We need to start nodes with a zero visible order,
13784 because the order calcs are based on the first nodes order.
13786 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13788 * Form.cs: Don't exit the program if RecreateHandle is called on
13791 2007-03-12 Chris Toshok <toshok@ximian.com>
13793 * XEventQueue.cs: remove the use of PostQuitState.
13795 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
13796 WM_QUIT message in GetMessage, return false (and if we're in the
13797 nested WaitForHwndMessage, repost the WM_QUIT message).
13799 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13801 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
13802 or the MaximizeBox properties. [Part of bug #80640]
13804 2007-03-12 Everaldo Canuto <everaldo@simios.org>
13806 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
13809 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13811 * ToolStripItem.cs: Fix some tests I broke by checking Visible
13812 instead of visible.
13814 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
13816 * FileDialog.cs: Use text of File name combobox to determine what
13817 files the user selected. Added tokenizer to parse the file names.
13820 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13822 * Control.cs: We can't call SizeFromClientSize in the constructor,
13823 but we still need to do the same work, so make an internal version.
13826 2007-03-12 Jackson Harper <jackson@ximian.com>
13830 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
13833 2007-03-12 Jackson Harper <jackson@ximian.com>
13835 * TextBoxBase.cs: Now that the handles are being created a little
13836 later, we need to make sure that the document is recalculated when
13837 the handle is created.
13839 2007-03-11 Everaldo Canuto <everaldo@simios.org>
13841 * Theme.cs: GetLinkFont abstract method added.
13844 - Remove CalcTrimRectangle, no longer needed.
13845 - Factor also remove, position issues must be fixed in libgdiplus.
13846 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
13847 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
13848 care about font used to draw links.
13849 - Set TabStop to true when control is "Selectable", control is selectable
13850 when have one or more links. Fixes #80501 (test case is also added).
13851 - Set the LinkArea values after links change, LinkArea values must be
13852 based in first link position and size, a test case was created.
13853 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
13854 the attribute must be true LinkArea.Length > 0. The same was applied to
13857 * ThemeWin32Classic.cs:
13858 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
13860 - Use CPDrawStringDisabled to draw disabled text instead of hard code
13862 - Draw focus rectangle for every parts focused, including parts that
13863 is on another line, its because regions returns various rectangles
13864 and not only one. Needed to mimic W32 look.
13865 - Uses Graphics.Clip to delimite region painted, it mean that now
13866 complete text is passed to DrawString, with this we solve layout
13867 issues without create another text renderer.
13868 - Uses Region.Intersect to fix some flickers problems, now only needed
13869 parts will redrawed.
13870 - This changes fixes #79614 and some other unreported issues, on Linux
13871 some layout problems still remain, the problem is under
13872 MeasureCharacterRanges but it is an libgdiplus bug.
13874 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
13876 * TextBox.cs: Set for foreground color.
13877 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
13878 this is already done in Control.
13880 2007-03-10 Jackson Harper <jackson@ximian.com>
13882 * TextBox.cs: Set the background color, but reset the
13883 backcolor_set flag which is just for the user setting the
13886 2007-03-09 Chris Toshok <toshok@ximian.com>
13888 * Control.cs: really remove the call to XplatUI.SetVisible from
13889 CreateHandle(), like I said I did when I merged the branch.
13891 * BindingSource.cs: implement some more of this stuff.
13893 2007-03-09 Jackson Harper <jackson@ximian.com>
13895 * TextBox.cs: Don't explicitly set our background colors.
13897 * TextBoxBase.cs: Draw readonly text.
13898 - Need to invalidate when backcolor or readonly are changed.
13900 2007-03-09 Jackson Harper <jackson@ximian.com>
13902 * TextBoxBase.cs: Don't set the forecolor until the handle is
13904 - Do not raise OnPaint, and removed some old debug code.
13906 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
13908 * ScrollableControl.cs: Fix mouse wheel scrolling.
13910 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
13912 * Control.cs: Wire up MouseDoubleClick event.
13914 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
13916 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
13918 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
13919 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
13920 item is added. This logic was moved to ToolStrip.OnItemAdded.
13923 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13925 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
13927 2007-03-08 Jackson Harper <jackson@ximian.com>
13929 * TreeView.cs: Show the correct image for selected node (this used
13930 to work, not sure how the code got deleted). Also implemented 2.0 feature
13933 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13936 * ListViewItem.cs: Cache index in items when retrieving them
13939 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13941 * ToolStripItem.cs: Don't return the explicit_size if we are using
13942 AutoSize. Fixes invalidation issue when user has explicitly set a
13943 size and has AutoSize = true.
13945 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13947 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
13949 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13951 * DataGridView.cs: Remove event handler from DataView when a
13952 DataTable is used as DataSource.
13954 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13956 * Control.cs: Create internal setter for client_size to allow it to be
13957 set without triggering resizing code.
13958 * Form.cs: Calculate client_size in constructor, only change client_size
13959 in FormBorderStyle property if Handle has been created.
13960 [Fixes #80574, #80791]
13962 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
13964 * SystemInformation.cs: Add TerminalServerSession.
13966 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13968 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
13971 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13973 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
13974 Handle before we were supposed to. Now checks ActivateOnShow property
13976 * Control.cs: Add internal ActivateOnShow property.
13977 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
13978 for ActivateOnShow.
13979 * Hwnd.cs Remove no longer needed no_activate field.
13981 2007-03-07 Jackson Harper <jackson@ximian.com>
13983 * TreeView.cs: Implement owner draw tree nodes. And a couple more
13985 * DrawTreeNodeEventHandler.cs: Add
13986 * DrawTreeNodeEventArgs.cs: Correct default value.
13988 2007-03-07 Chris Toshok <toshok@ximian.com>
13990 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
13991 to be called before NativeWindow.WndProc. Put the HwndCreating
13992 magic there to hook up our Hwnd's to handles.
13994 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
13996 * DataGridView.cs: Comment out debug code.
13998 2007-03-07 Chris Toshok <toshok@ximian.com>
14000 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14001 to make the rest of the world happy]
14003 * Control.cs (CreateHandle): there's no need to call
14004 XplatUI.SetVisible here, it's effectively done by
14005 XplatUI.CreateWindow on X now, and always was on windows.
14007 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14008 shortcircuit out of the loop if we have a message loop running on
14011 [Changelog from merge]
14013 2007-03-05 Chris Toshok <toshok@ximian.com>
14015 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14016 causes handle creation.
14018 2007-02-28 Chris Toshok <toshok@ximian.com>
14020 * ApplicationContext.cs: Add a flag to make sure we only raise the
14021 ThreadExit event once (ExitThreadCore can be indirectly called
14022 from a few places.) I don't like the additional flag, but it
14023 makes the event ordering/count correct.
14025 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14026 without locking the collection. An enumerator doesn't give us any
14027 protection from modification anyway. Lock the thread hash and
14028 replace the complicated enumerator loop with a foreach.
14029 (Application.CloseForms): make internal so it can be called from
14030 ApplicationContext. This should probably be moved to MWFThread.
14031 (Application.ExitThread): don't call MWFThread.Current.Exit()
14032 here. just call XplatUI.PostQuitMessage. We'll exit the thread
14033 when the runloop exits (in response to WM_QUIT.)
14034 (Application.RunLoop): add a comment (and check) for
14035 context.MainForm being null after setting context.MainForm.Visible
14036 = true. This is because you're perfectly free to dispose of a
14037 form in VisibilityChanged. Chalk this up to another case where we
14038 need to synchronously generate WM_ACTIVATE from Control.Show.
14039 Also, add handling for WM_QUIT here so we'll exit the loop.
14041 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
14042 fact that we don't wait if we're only unmapping the whole_window
14043 makes me a bit nervous, but it doesn't seem to cause any problems
14046 also, add a comment about the stupid, broken and wrong resetting
14047 of PostQuitState to false in GetMessage().
14049 In PostQuitMessage, we need to add a WM_QUIT message to the
14050 thread's queue. We use the FosterParent to get the right
14053 Lastly, in SetVisible, we need to unmap both windows, since the
14054 waiting only happens when we're unmapping the client window. So
14055 now, the *only* time we unmap just the whole_window is in the hack
14056 for resizing a control to 0,0.
14058 2007-02-21 Chris Toshok <toshok@ximian.com>
14060 * Application.cs (CloseForms): rewrite this so that we don't
14061 modify the list while we're traversing it.
14063 2007-02-20 Chris Toshok <toshok@ximian.com>
14065 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14066 of OnHandleCreated.
14067 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14068 handle is created. otherwise we'll create it here.
14069 (VerticalScrollEvent): same here.
14071 * Application.cs (CloseForms): call Form.Dispose, don't post
14074 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14075 here. Application should Dispose() of the Form's.
14077 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14078 WM_DESTROY as well.
14079 (MapWindow,UnmapWindow): only actually do the waiting for
14080 SHOWWINDOW if the control we're dealing with is a Form.
14081 (CreateWindow): if the control isn't a form, SendMessage
14082 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14084 * Control.cs (SetVisibleCore): always use is_visible here, not
14085 value. If we use value, we can end up re-setting something
14086 visible if, for instance, you do Control.Hide() in a delegate
14087 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14089 2007-02-20 Chris Toshok <toshok@ximian.com>
14091 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14092 the message we need. PeekMessage returning false should not be a
14093 condition under which we exit the loop.
14095 2007-02-15 Chris Toshok <toshok@ximian.com>
14097 * Control.cs (Refresh): only refresh if we've got a handle and are
14099 (CreateAccessibilityInstance): CreateControl() here.
14100 (UpdateChildrenZOrder): complicate the code loop even more by
14101 taking into account controls that haven't had their handle
14102 created, and those that aren't visible. But on the flip side,
14103 simplify the code by splitting it into two loops. one which
14104 builds up the list of child controls we're interested in, and the
14105 other that sets the z order of those children.
14107 2007-02-14 Chris Toshok <toshok@ximian.com>
14109 * Control.cs: Control.AccessibilityObject causes the control to be
14110 created, not just the handle.
14112 2007-02-14 Chris Toshok <toshok@ximian.com>
14114 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14115 problem on X where a window might have its handle created (and be
14116 visible) while the window is unmapped. calling XConfigureWindow
14117 on an unmapped window is bad, and generates X errors.
14119 2007-02-13 Chris Toshok <toshok@ximian.com>
14121 * Control.cs (CreateHandle): don't loop over our children setting
14122 their parent here. do it when in WndProc when we're shown.
14123 (UpdateChildrenZOrder): make this internal so we can call it from
14125 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14126 creating its handle. Also, remove the calls to PerformLayout from
14127 here. they're done in ScrollableControl.OnVisibleChanged. Also,
14128 OnVisibleChanged only seems to be called directly here for the
14129 toplevel control. It's propagated down the window hierarchy by
14130 calls to child.OnParentVisibleChanged.
14131 (OnVisibleChanged): don't do layout here - it's done (oddly
14132 enough, according to a glance at stack traces on ms.net..) in
14135 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14136 z order of our children before calling PerformLayout.
14138 2007-02-12 Chris Toshok <toshok@ximian.com>
14140 [big change, fixes #80020]
14142 * AccessibleObject.cs: we need to make owner internal again to fix
14143 some of ControlAccessibleObject.
14145 * Control.cs: lots of changes here. add support for WM_CREATE,
14146 for which we generate OnHandleCreated. Remove the OnHandleCreated
14147 call from CreateHandle. Also add support for WM_SHOWWINDOW where
14148 we create child controls. leave the MonoTODO's for the
14149 accessibility calls, but fix the exceptions so the tests pass.
14151 Add the InvalidOperationExceptions to Invoke methods, and remove a
14152 couple of InvokeInternal methods we aren't using.
14154 Also, add a couple of CreateHandle calls in places where we know
14155 the handles are being created but our code doesn't reference
14158 Make SetVisibleCore call OnVisibleChange if the handle isn't
14159 created. If the handle is created, we rely on XplatUI.SetVisible
14160 generating the event synchronously.
14162 Lastly, make sure we don't use this.Handle inside CreateHandle,
14163 because we can call back into client (and that code can dispose of
14166 * XplatUIStructs.cs: misc/cleanup.
14168 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14169 although we don't populate the wParam properly.
14170 (CreateWindow): generate WM_CREATE.
14171 (MapWindow,UnmapWindow): make these calls synchronous, at great
14172 performance expense (particularly in the unmap case), to match
14175 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14177 (set_MdiParent): don't recreate the handle unless it's been
14180 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14183 * NativeWindow.cs: this is probably the weirdest part of the
14184 patch. We need a way to link up the window being created to the
14185 WM_CREATE message. Since we can only be creating one window at a
14186 time on a given thread, we keep track of a per-thread reference so
14187 we can dispatch it properly. We also need to keep track of the
14188 Hwnd currently being created so that the win32 backend doesn't
14191 * XplatUIWin32.cs: a similar change to the one we made in
14194 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14196 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14197 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14198 to draw the menu shortcut string.
14200 2007-03-07 Jackson Harper <jackson@ximian.com>
14202 * TreeNode.cs: Add the 2.0 collapse method.
14204 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14206 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14208 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14210 * DataGridView.cs: Change DataSource will clear column and row
14211 lists. Call Invalidate() to reflect DataSource change.
14213 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14215 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14216 and a new row is added to it.
14218 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14220 * DataGridView.cs: Add columns when DataSource is en empty list but
14221 is a System.Data.DataView (from a System.Data.DataTable).
14223 2007-03-06 Andreia Gaita <avidigal@novell.com>
14225 * Label.cs: Implement AutoEllipsis (2.0)
14227 2007-03-06 Jackson Harper <jackson@ximian.com>
14229 * TreeView.cs: Implement 2.0 TopNode setter property.
14230 - Use a local var instead of the skipped_nodes field for computing
14231 how many nodes to skip. Otherwise we won't scroll because the
14232 valuechanged handler checks if skipped_nodes is equal to the new
14234 - Implement 2.0 Sort method.
14235 - Add useless 2.0 DoubleBuffer property
14236 - Implement 2.0 LineColors property. Lets you change the color of
14237 the lines in the tree. Terribly useful for creating non cohesive
14239 - Implement 2.0 image key feature.
14241 2007-03-06 Jackson Harper <jackson@ximian.com>
14243 * TreeView.cs: We can't get the bounds of the nodes before raising
14244 the AfterSelect event, because that event could change the node's
14245 bounds (scrolling, font change, etc).
14247 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14249 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14250 * Form.cs: Don't recreate handle when creating FormWindowManager, just
14251 update window styles. In CreateParams us VisibleInternal instead of
14252 VIsible to get the actual visible flag set for this form.
14253 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14254 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14255 handle the case when the form is already maximized, in which case
14256 it should be restored. Fixes #81043.
14258 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14260 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14262 2007-03-05 Jackson Harper <jackson@ximian.com>
14264 * TreeViewHitTestInfo.cs: implement.
14266 2007-03-05 Jackson Harper <jackson@ximian.com>
14268 * InternalWindowManager.cs: class status fix.
14270 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14272 * InternalWindowManager.cs: All windows that have a parent
14273 are confined to their parent when they're being moved.
14276 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
14278 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14279 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14281 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14283 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14284 buttons invisible before deciding which ones should be visible
14285 (fixes minimize/maximize buttons showing up in toolwindows). Remove
14286 an unused variable.
14287 * InternalWindowManager.cs: Remove warning.
14289 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14291 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14292 to throw an InvalidOperationException is virtual mode is being used.
14294 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14296 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14297 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14298 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14299 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14300 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14301 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14303 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14305 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14306 driver.KeyboardDelay from XplatUI.KeyboardDelay
14307 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14308 (patch by Sergey Volk)
14310 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14312 * ToolWindowManager.cs: Added, contains logic for
14314 * CreateParams.cs: Add a few helper methods and an
14315 internal variable to know which control the CreateParams belongs
14317 * Control.cs: Call Form.ChangingParent when the
14318 parent is about to be changed.
14319 * XplatUIX11.cs: DeriveStyles (): Set
14320 caption_height for all windows that have captions and are children.
14321 Update to use ToolWindowManager instead of InternalWindowManager
14323 * XplatUIWin32.cs: Set fake window styles for all
14324 windows that have window managers.
14325 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14326 now duplicated for mdi windows when they are
14327 maximized, first for the buttons the window itself has, then for
14328 the buttons that appear in the menu bar. Makes things a little
14329 easier). Updated UpdateWindowDecorations, SetWindowState and the
14330 mouse eventhandlers accordingly.
14331 * Form.cs: Add ChangingParent (), contains the
14332 logic of what should happen when the parent changes. In MdiParent
14333 don't set things that ChangingParent () is doing. When handling
14334 WM_CLOSE, we can close the form if there are any other modal forms
14335 and the current form is a descendent of the modal form.
14336 * InternalWindowManager.cs: A lot of refactoring,
14337 the title buttons are now extracted to a separate container class
14338 that takes care of all button code (clicks, tooltips, etc). Moved
14339 Iconic|Maximized|Normal Bounds properties to this class from
14340 MdiWindowManager, so that the window state logic can succeed for
14341 other than mdi wm's. Implemented general window state change logic.
14342 Moved CreateButtons to ThemeWin32Classic, since the theme might
14343 override which buttons are available when as well as the exact
14345 * FormWindowManager.cs: Added, contains logic for
14347 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14348 which buttons go where (and if they are at all visible).
14349 Removed special handling of maximized windows, since they aren't special.
14350 In DrawManagedWindowDecorations don't try to draw the text if it is
14352 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
14353 use whatever the wm gives us.
14355 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14357 * ButtonBase.cs: Add 2.0 properties.
14358 * Button.cs: Override Draw for 2.0.
14359 * Control.cs: Add Entered and Selected properties.
14360 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14361 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14362 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14364 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14366 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14368 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
14370 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14372 * XplatUIWin32.cs: Register a new class with Windows each time we get
14373 a new ClassStyle. [Fixes bugs #79432, #80817]
14374 * Controls.cs: Set the correct ClassStyle in CreateParams.
14375 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14377 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
14379 * ListView.cs: Add fireEvent argument to ReorderColumn since the
14380 ColumnReordered event must not be signaled when modifying DisplayIndex
14381 of a ColumnHeader. Added internal ReorderColumns method which takes
14382 care of drawing, and updating the internal DisplayIndex of the
14383 ColumnHeader. Added AddColumn method which is invoked from
14384 ColumnHeaderCollection when adding or inserting columns, and which
14385 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14386 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14387 Recalculated dispay indices after removing a ColumnHeader.
14388 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14389 match MS. Allows last display index to be returned after ListView
14390 is disposed. Update actual location of ColumnHeader when DisplayIndex
14393 2007-03-01 Everaldo Canuto <everaldo@simios.org>
14395 * LinkLabel.cs: Improve CalcTrimRectangle.
14397 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14399 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14401 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
14402 get rectangle as a result value.
14404 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14406 * LinkLabel.cs: Theres some diferences between rectangle return from
14407 MeasureCharacterRanges and the area used for DrawString to fix this
14408 CalcMeasurementFactor method was created, it calcules the diferences
14409 to be use later to adjust rectangle in draw operations. Fixes #80473.
14411 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
14412 to adjust draw rectangle.
14414 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14416 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
14417 text and some other changes to reduce and optimize source code.
14419 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14421 * RadioButton.cs: Implement 2.0 event.
14422 * RelatedImageListAttribute.cs: Implement new class.
14424 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14426 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
14428 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14430 * CheckBox.cs: Implement 2.0 functionality.
14432 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14434 * ListView.cs: Refactor Add and AddRange methods of
14435 ListViewItemCollection, to not update the ListView
14436 everytime an item is added in AddRange. Also move the update
14437 code to a new CollectionChanged method, and call it
14438 from other methods that need it as well (this should also fix some
14439 bugs when Sorting is used).
14441 2007-02-27 Jackson Harper <jackson@ximian.com>
14443 * TextControl.cs: Try to never let the caret stay in a non-text
14445 * TextBoxBase.cs: Update the caret.
14447 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
14449 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
14450 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
14451 delete POINT structure, duplicate of one in XplatUIStructs.
14452 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
14454 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
14456 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
14457 edit box since otherwise the Label would immediately be set (even if
14458 the user did not modify the label). In OnKeyDown set Handled to true
14459 if Return or Escape was pressed. In ColumnHeaderCollection unlink
14460 columns that are to be removed. In ListViewItemCollection unlink items
14461 that are to be removed.
14463 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
14465 * TextRenderer.cs: If we set a GDI clip region, we need to clear
14466 it when we are done. [Fixes bug #80949]
14468 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14470 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
14472 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14474 * ListView.cs: I forgot to commit the changes for ListView
14475 in my previous patch.
14477 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14479 * Clipboard.cs: Partially implement an overload of SetDataObject.
14480 * Form.cs: Implement ShowWithoutActivation.
14481 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
14483 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14485 This is a first set of changes to make the Virtual mode works,
14486 by avoiding the retrieval of ListViewItem instances until
14489 * ListView.cs: Store item position in the ListView instead of the
14490 ListViewItem, this way we don't request the Bounds property of
14491 ListViewItem inside the ListView calculations, as well as cache the item
14492 size in item_size field. Store indexes instead of ListViewItem
14493 instances in the matrix used by icon view. Add a ItemMatrixLocation
14494 struct to hold the row and col info of the matrix info.
14496 * ListViewItem.cs: Don't store the location anymore, and only cache
14497 the rectangles for GetBounds. Use the ListView.GetItemLocation
14498 method to retrieve the actual location.
14500 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14502 * TextRenderer.cs: Add clipping support, thanks to George.
14505 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14507 * ListViewItem.cs: Cancel label edit when item is removed from
14509 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
14510 event before the edit textbox is displayed. Added CancelEdit method
14511 which is used end to editing while ignoring the value set by the
14512 user. In EndEdit, set focus to ListView to avoid losing focus to
14513 other controls. In ListViewItemCollection.Clear, cancel editing of
14514 any of the items. In Remove, cancel editing of item being removed.
14515 Avoid udplicate code by modifing RemoveAt to invoke Remove.
14517 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14519 * FileDialog.cs: Update FSEntry when move is successful. Fixes
14522 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14524 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
14525 compatible with non X11 systems. Fixes #80901.
14527 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14529 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
14530 whether the item should be unselected and reselect. We do no want this
14531 when we're starting to edit the label. Do not fire the
14532 SelectedIndexChanged event from ListView when its already been fired
14533 by modifying ListViewItem.Selected. Fixes bug #80943.
14535 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14537 * TextRenderer.cs: Previos commit logic was backwards.
14539 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14541 * TextRenderer.cs: Don't add padding on MeasureText if we were
14542 sent the NoPadding flag.
14544 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14546 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
14547 after DrawButton. To prevent image overlaps button borders SetClip and
14548 ResetClip added before and after draw image. Fixes #79129.
14550 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14552 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
14553 window size, it fix problem when you run under win32 that theres
14554 Size diferent than ClientSize. Also fix controls size and positions
14555 to mimic Win32. Fixes #80837.
14557 2007-02-22 Everaldo Canuto <everaldo@simios.org>
14559 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
14560 menu area to fix some problems for non X11 systems. Fixes #80613.
14562 2007-02-22 Jackson Harper <jackson@ximian.com>
14564 * TreeNode.cs: When a node is expanded, set its is_expanded flag
14565 even if it doesn't have any children.
14567 2007-02-22 Jackson Harper <jackson@ximian.com>
14569 * TreeView.cs: Calculate the top node 'on the fly', this
14570 eliminates issues where you need to click on the tree before
14571 scrolling it to get the top node computed correctly.
14572 * TreeNodeCollection.cs: We don't need to mess with the top node
14575 2007-02-22 Jackson Harper <jackson@ximian.com>
14577 * DataGridViewRow.cs: Fix typo so height can actually be set.
14578 Patch by Peter Grimm.
14580 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
14582 * FileDialog.cs: Fixed support for renaming files and directories.
14583 * ListView.cs: Do not lose focus when edit is canceled. Process
14584 Escape as regular key (to prevent closing of dialogs).
14586 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
14588 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
14589 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
14591 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
14593 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
14594 did not modify label.
14595 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
14596 modified the text. Reset Label when user presses Escape in edit mode.
14597 Move focus to ListView after having cancelled or finished editing the
14600 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
14602 * ComboBox.cs: Removed unnecessary initializations. Marked items field
14603 private. Clear textbox when Text is set to null and SelectedIndex is
14605 * FileDialog.cs: Removed unnecessary initializations. Removed
14606 workarounds for ComboBox bugs that are now fixed. Modified
14607 DefaultExt, InitialDirectory and Title property to change null to
14608 zero-length string in getters. Avoid directly accessing fields.
14610 2007-02-20 Jackson Harper <jackson@ximian.com>
14612 * TextControl.cs: Remove RecalAlignments call, that was some
14613 debugging leftovers.
14614 - Don't use the line indent when we shouldn't.
14615 * RichTextBox.cs: Add support for paragraph left indents.
14617 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14619 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
14620 Seems like the class status pages doesn't catch params differences.
14622 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
14624 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
14626 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
14628 * ComboBox.cs: Setting Text should have no effect if item text of
14629 selected item exactly matches value. First lookup text using
14630 case-sensitive comparison, and fallback to case-insensitive comparison.
14631 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
14632 allow startIndex to be last index. Changed ArgumentOutOfRangeException
14633 paramname to match MS. Restart from first item if string is not found
14634 after startIndex. Fixed paramname of ArgumentNullException that is
14635 thrown for null value in ObjectCollection.Contains.
14637 2007-02-19 Everaldo Canuto <everaldo@simios.org>
14639 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
14641 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14643 * ListControl.cs: In SelectedValue use value.Equals to compare for
14644 equality instead of ==, otherwise it will fail for strings.
14647 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14649 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
14650 since the caret won't show up unless ShowSelection is true.
14653 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14655 * Application.cs: When disabling all forms but the main form, do not
14656 disable any descendants of the main form (such as mdi children or
14657 other parented forms). Fixes #80822 on Windows.
14658 * Form.cs: If we have a parent, set the WS_CHILD style.
14659 * Control.cs: Update the window styles if the control whose parent has
14660 changed is a form (the WS_CHILD style has to be switched).
14662 2007-02-19 Everaldo Canuto <everaldo@simios.org>
14664 * XplatUIStructs.cs: MsgUIState structure added.
14666 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
14668 * FileDialog.cs: Removed need for separate fileName field. On 2.0
14669 profile, do not check filename(s) for illegal character if filename(s)
14670 were set non-interactively but always check on 1.0 profile. Fixed NRE
14671 in DefaultExt and only strip off first leading dot. Improve exception
14672 message when invalid Filter is set. Do not ignore InitialDirectory if
14673 it does no exist. Store specified Title, and if empty use default
14674 title (depending on type of dialog). Added an internal DialogTitle
14675 property for retrieving dialog title. Fixed logic of displayed dir to
14676 more closely match MS. Avoid setting ComboBox.Text to a zero-length
14677 string as its buggy.
14678 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
14679 FileName is a zero-length string (it can never be null). Override
14680 DialogTitle property to set default title of dialog box.
14681 * SaveFileDialog.cs: Override DialogTitle property to set default
14682 title of dialog box.
14684 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
14686 * FileDialog.cs: Modify default text of filename and filetype labels
14687 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
14688 after we've updated the SelectedIndex. Fixes part of bug #80887.
14689 * SaveFileDialog.cs: Set text of filetype label.
14691 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14693 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
14694 label field. Needed by latest Jackson's fixes for ListView.
14696 2007-02-16 Andreia Gaita <avidigal@novell.com>
14698 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
14699 print preview images.
14701 2007-02-16 Jackson Harper <jackson@ximian.com>
14703 * ListView.cs: Make AfterLabelEdit work correctly.
14704 * FileDialog.cs: After changing the name of the folder, we have to
14705 make sure that it is created, or that we pop up an error because
14708 2007-02-16 Jackson Harper <jackson@ximian.com>
14710 * X11Dnd.cs: Implement aliases on mime handlers, so things like
14711 System.String are mapped to text.
14712 - Handle dataobjects, getting all the possible formats out of them
14713 - We dont need the drag event args before we give feedback. This
14714 allows feedback cursors to be immediate before selections have
14717 2007-02-16 Jackson Harper <jackson@ximian.com>
14719 * TextBoxBase.cs: Modified the method for inserting images to
14720 taking a line and position instead of tag and position.
14721 * RichTextBox.cs: Handle PngBlip data by inserting the png image
14723 * TextControl.cs: Allow images to be inserted as the first tag of
14725 - Fix some off by one issues when we assume the first tag is a
14726 text tag, not an image tag.
14728 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14730 * ListView.cs: Set focus to ListView when ItemControl gets a
14731 WM_RBUTTONDOWN message, to mimic .Net behaviour.
14732 Fixes part of #80467.
14734 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14736 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
14737 validate Text input (if null or empty string reset Value to default
14738 value). Fixes #80830.
14740 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14742 * ListView.cs: Set owner as null for columns and items when
14743 Dispose is invoked. Fixes #80607.
14745 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
14747 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
14748 showing DropDowns, don't show a Grip when doing Flow layout.
14749 [This fixes the toolbox in PDN 2.72.]
14750 * ToolStripItem.cs: Add Anchor property and some internal properties to
14751 reduces needed changes to FlowLayout.
14752 * ToolStripOverflow.cs: Remove unused variable.
14753 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
14754 use it in the layout calculations.
14756 2007-02-13 Everaldo Canuto <everaldo@simios.org>
14758 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
14759 reported in #79640.
14761 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
14764 2007-02-13 Everaldo Canuto <everaldo@simios.org>
14766 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
14767 MeasureString format, it can make button very large in some cases, it is
14768 strange but is what win32 do.
14770 2007-02-13 Everaldo Canuto <everaldo@simios.org>
14772 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
14775 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
14776 rendering, the value is based on MenuAccessKeysUnderlined.
14778 2007-02-13 Everaldo Canuto <everaldo@simios.org>
14780 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
14783 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
14785 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
14786 and use MenuAccessKeysUnderlined instead.
14788 2007-02-13 Andreia Gaita <avidigal@novell.com>
14790 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
14791 A selected control would not get a Focus call if:
14792 - the default active control of the container is the same as
14793 the one that was selected
14794 - we are switching from one container to another
14795 Under these conditions, the container being selected already has
14796 an active_control, which is the same as the one being activated,
14797 so set_ActiveControl would always return and not send the Focus
14798 call. Fix to check if the currently active control of the container
14799 is actually focused.
14801 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
14803 * StatusStrip.cs: Implement the spring layout.
14804 * ToolStripControlHost.cs: Make sure the hosted control's visibility
14805 always matches the host.
14806 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
14807 and TextAfterImage.
14809 2007-02-13 Andreia Gaita <avidigal@novell.com>
14811 * Control.cs: Code reorganization only.
14812 - Reorganize the WndProc cases so that each case has it's own handling method,
14813 to help with the no-line-numbering stack traces.
14814 - Formatting changes (it's vstudio's fault, really :p)
14816 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
14818 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
14819 Thread.CurrentUICulture to match DateTimePicker's (and MS)
14822 2007-02-12 Jackson Harper <jackson@ximian.com>
14825 * TextBox.cs: By default we have a non multiline document
14826 - use the multiline property instead of the internal variable
14827 * TextBoxBase.cs: Treat multiline and non multiline the same in
14829 - Use the documents multiline flag instead of tracking it ourself
14830 * TextControl.cs: Attempt at getting multiline to match MS
14831 behavior. Lines now track an offset, which is either their X or Y
14832 offset depending on whether or not we are in multiline mode.
14833 - Update all the methods to understand that lines have an X value.
14834 - Fix crash in Undo::Duplicate when empty lines are deleted.
14836 2007-02-12 Everaldo Canuto <everaldo@simios.org>
14838 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
14839 code moved to properties PreferredHeight and PreferredWidth. It solve the
14840 all problems when preferred sizes must be recalculated. Fixes #80801.
14842 2007-02-12 Everaldo Canuto <everaldo@simios.org>
14844 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
14845 font height when compatible_text_rendering is false. Partially fix #80801.
14847 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
14849 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
14851 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
14853 * Form.cs: Improved exception messages in ShowDialog.
14855 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
14857 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
14858 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
14859 if not set. Fixes bug #80764. Avoid accessing current_settings field
14862 2007-02-08 Everaldo Canuto <everaldo@simios.org>
14864 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
14867 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
14868 public in 2.0 and for easy maintenance and dont break compatibility it is
14871 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
14873 * ToolStripItem.cs: Implement using images from ImageList.
14875 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14877 * DateTimePicker.cs: Change default date-formatting culture from
14878 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
14879 seems to be the way MS does it.
14881 2007-02-08 Andreia Gaita <avidigal@novell.com>
14883 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
14884 (the 6 was cut off on the right side)
14886 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
14888 * Form.cs: Tell MenuStrips to close when the form is clicked.
14889 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
14890 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
14891 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
14892 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
14893 support for Overflow, where items that do not fit are automatically
14894 reparented to a drop down menu.
14895 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
14896 Also: fixes bug #80747.
14898 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14900 * ComboBox.cs: Remove warning (unused code).
14901 * ScrollableControl.cs: Remove warning for 1.1 profile.
14903 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14905 * Form.cs: Remove a warning.
14907 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14909 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
14910 'g' specifier, not documented anywhere, but seems to always show up
14911 as a single space (might have something to do with the DateTime 'g'
14912 specifier, which is the era format, but since DateTimePicker can't
14913 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
14914 won't crash if the format has an unmatched quote. Now shows
14915 single-character formats correctly. Fixes #80744.
14917 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
14919 * StatusStrip.cs: Stretch property needs to call base.Stretch,
14920 not this.Stretch to fix stack overflow. [Fixes bug #80760]
14922 2007-02-07 Chris Toshok <toshok@ximian.com>
14924 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
14925 background color. it overwrites the background image we've
14926 already painted. Fixes #80599.
14928 2007-02-07 Chris Toshok <toshok@ximian.com>
14930 * DataGrid.cs: return immediately from Edit() when there are no
14931 columns. Fixes #80662.
14933 2007-02-07 Chris Toshok <toshok@ximian.com>
14935 * MessageBox.cs: fix #80625. don't always show the Help button in
14936 2.0. use the displayHelpButton parameter to determine if we
14937 should show it. Also, make the internal show_help field private.
14939 2007-02-07 Chris Toshok <toshok@ximian.com>
14941 * Control.cs (SetVisibleCore): check in the proposed patch for
14942 80604, and set is_visible before calling CreateControl.
14944 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
14946 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
14947 MonoInternalNote. This is added automagically by VS2005, so let's not crash
14950 2007-02-06 Everaldo Canuto <everaldo@simios.org>
14952 * MenuAPI.cs: hotkey_active internal field added, it is required because
14953 we need to know when hotkeys must be draw, before this change a keystate
14954 Navigating was used but we can have menu in navigating state without
14955 hotkeys. Fixes #80694.
14957 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
14959 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14961 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
14962 corresponding events and methods to be internal for 1.1 profile and
14963 public for 2.0 profile (required by SizeGrip).
14964 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
14965 implicit control list). Don't set the size nor the location of the
14966 SizeGrip anymore as it's not needed.
14967 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
14968 draw directly on the captured control (fixes #80656). Removed
14969 ShowGrip (it wasn't used anywhere), redraw (always true), added
14970 GetDefaultSize and GetDefaultRectangle to calculate defaults.
14971 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
14972 be called from SizeGrip.
14974 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14976 * Timer.cs: Throw ArgumentException if Interval <= 0.
14978 2007-02-05 Jackson Harper <jackson@ximian.com>
14980 * TreeView.cs: We need to check scrollbar visibility when window
14981 visibility is updated, because non visible trees don't ever add
14983 * Cursor.cs: We want the override cursor to be reset to NULL when
14984 we set current cursor to the default cursor.
14986 2007-02-05 Jackson Harper <jackson@ximian.com>
14988 * TextControl.cs: Don't have crlfs when we are non multiline.
14989 - Consolidate the line position.
14991 2007-02-05 Jackson Harper <jackson@ximian.com>
14993 * X11Keyboard.cs: BACK+CTRL gets a special char code.
14995 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14997 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
14998 handling LeaveNotify->NotifyUngrab in order to send
14999 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15000 after calling XUngrabPointer, so we call WindowUngrabbed directly
15001 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15002 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15003 MouseCaptureChanged correctly. Also create handles if changing
15004 Capture (matches MS behaviour).
15006 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15008 * SizeGrip.cs: Make the last change 2.0 only.
15010 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15012 * SizeGrip.cs: If resizing and the capture is lost, revert any size
15013 changes to initial size (fixes #80597).
15015 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15017 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15019 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15021 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15022 background) and only allow dragging if enabled. This way the
15023 sizegrip can be used to fill the open square that otherwise would
15024 have been shown in the bottom right corner of ScrollableControl
15025 when ScrollableControl is not suppose to support sizing.
15026 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15027 sizegrip is shown and enabled, and hook up with necessary events.
15029 2007-02-01 Chris Toshok <toshok@ximian.com>
15031 * DataGridTextBoxColumn.cs: clean up the
15032 GetFormattedString/GetColumnValueAtRow combination of functions.
15033 Also fix UpdateUI, and the initial state of
15034 IsInEditOrNavigateMode.
15036 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15037 aren't supposed to scroll the textbox here, we're supposed to
15038 scroll the datagrid.
15040 2007-02-01 Chris Toshok <toshok@ximian.com>
15042 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15043 setting the position.
15045 2007-02-01 Chris Toshok <toshok@ximian.com>
15047 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15048 here, since the most recent focus fixes keep us from generating
15049 the Leave event when our textbox gets focus.
15050 (Edit): we should be passing null for the column style's
15051 instantText parameter.
15053 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
15055 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
15056 raised. Fixes menu text/icons not showing up in PDN.
15058 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15060 * Control.cs: Remove code in constructor that makes every
15061 control with WS_CHILD set have initial location -1, -1.
15063 2007-01-31 Jackson Harper <jackson@ximian.com>
15065 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15067 * XplatUIX11.cs: Give teh keyboard to teh dnd.
15069 2007-01-31 Jackson Harper <jackson@ximian.com>
15071 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15072 - Remove some debug code.
15074 2007-01-31 Jackson Harper <jackson@ximian.com>
15076 * XplatUIX11.cs: If you set the override cursor during a grab, it
15077 should actually override the grab cursor. This comes into play
15078 when you are setting custom cursors in a DND feedback method.
15080 2007-01-31 Jackson Harper <jackson@ximian.com>
15082 * X11Dnd.cs: Add support for handling the QueryContinue and
15083 GiveFeedback events.
15084 - Cancel drag and drop actions when the escape key is clicked.
15085 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15086 can handle the ESCAPE key.
15087 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
15088 done when dnd events are continued after the button is released.
15089 - Add a new helper method so that dnd can translate key events.
15091 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
15093 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15094 make it more obvious what is happening.
15096 2007-01-30 Jackson Harper <jackson@ximian.com>
15098 * XplatUIX11.cs: Don't break when handling button release in drag
15099 and drop operations. We need that BUTTONUP message to get through
15100 so capture is released.
15101 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15102 this is handled automatically when the mouse is down.
15104 2007-01-30 Jackson Harper <jackson@ximian.com>
15106 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15107 is closed, so we need to make sure that we aren't changing the
15108 dialog result when the OK (Open or Save) button has been clicked
15109 and we are closing the window ourselves. Note we don't need to
15110 worry about the cache being written in this case, because it was
15111 already done in the previous FilOk call.
15113 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15115 * DateTimePicker.cs: Remove a warning.
15116 * ComboBox.cs: Remove a couple of warnings.
15118 2007-01-29 Chris Toshok <toshok@ximian.com>
15120 * XplatUIX11.cs: don't crash, and remove the icon if the user has
15121 set one, if SetIcon is passed a null icon.
15123 2007-01-29 Andreia Gaita <avidigal@novell.com>
15125 * TextBox.cs: Redraw when the password characters changes
15126 * TextControl.cs: Check if textbox has a password char and draw
15127 a line of password chars instead of the text in the line. LineTag gets
15128 an extra Draw() method which allows document.Draw to override the text
15129 that will be drawn. Removes 1024 char limitation on length of passworded
15132 2007-01-29 Jackson Harper <jackson@ximian.com>
15134 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
15135 single chars is not.
15137 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
15139 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15140 one pixel. Fix a StackOverflowException caused by an overload wrongly
15143 2007-01-26 Everaldo Canuto <everaldo@simios.org>
15145 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15146 also remove ProcessArrowKey and put the code inside ProcessKeys.
15148 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
15150 * PaddingConverter.cs: Added.
15152 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15154 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15155 ShowPanels is false (fixes #80600). Only draw up to 127 characters
15156 of text (fixes #80601). For panels clip the text to draw to the
15157 panel (fixes #80603).
15159 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15161 * ComboBox.cs: Fixed implementation of ResetText.
15163 2007-01-25 Jackson Harper <jackson@ximian.com>
15165 * TextControl.cs: For the last char of a line we need to use the
15166 line size, not that chars width, since it won't actually be
15167 computed since the right side of a char is based on the start of
15168 the left side of the next char, and the next char does not exist.
15170 2007-01-25 Chris Toshok <toshok@ximian.com>
15172 * Splitter.cs: fix the new unit tests, and reindent some switch
15175 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15177 * ComboBox.cs: Implemented 2.0 methods and events.
15178 * TextBoxBase.cs: Added OnTextUpdate, so that
15179 ComboBox.ComboTextBox can inform ComboBox of it.
15181 2007-01-25 Jackson Harper <jackson@ximian.com>
15183 * TextControl.cs: Respect ShowSelection when deciding whether or
15184 not to display the caret, this allows comboboxes to have carets
15185 when the combotextbox does not have focus.
15187 2007-01-25 Jackson Harper <jackson@ximian.com>
15189 * TextControl.cs: Add a Suspend/Resume for updating, basically the
15190 same as the Suspend/Resume for recalc, except this will do actual
15192 - New Undo manager, works much like the MS version.
15194 * TextBoxBase.cs: The Cut operation is undoable.
15196 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15198 * TextBoxBase.cs: Don't antialias text. Makes it look way better
15199 on Windows (no difference on Linux).
15201 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15203 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15204 we don't want to activate any windows. Fixes #79433.
15206 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
15208 - ButtonBase.cs: Fix capitalization of parameter: disposing.
15211 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
15214 - Move to using System.ComponentModel.EventHandlerList
15215 - Replace Refresh with Invalidate
15216 - Clear the mime filecache on closing
15217 - Some other memory reducing work. After beeing closed FD now uses
15218 only about 300 KB for the fdo mime stuff plus the memory of the
15220 * Mime.cs: Changed coding style and removed unnecessary commented
15221 code. Some more memory memory reducing work.
15223 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15225 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15226 a few other missing 2.0 properties.
15227 * Theme.cs: Added DrawFlatStyleComboBox.
15228 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15230 2007-01-24 Chris Toshok <toshok@ximian.com>
15232 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15233 wake_waiting flag, not just when there's data to be read. if we
15234 don't, then future wakeup's won't reach us and we'll be doomed to
15235 wait for the entire 1 second timeout forever (unless there are X
15238 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15240 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15241 until you pass Items.Count, not Items.Count - 1 like 1.1.
15243 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
15245 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15247 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15249 * ToolStripContainer.cs: The recent Dock fix exposed that I was
15250 adding the panels in the wrong order.
15252 2007-01-24 Jackson Harper <jackson@ximian.com>
15254 * TextBoxBase.cs: When we move the caret we also need to move the
15255 selection, this fixes some random crashing after doing select
15256 text, unselect, delete a char, paste.
15258 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
15260 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15262 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15264 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15265 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
15266 * ToolBar.cs: Force redraw in BackgroundImageChanged.
15268 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15271 - Implement support for vertical toolbars. Fixes #80539;
15272 - Call LayoutToolBar when resize, it fix some other problems in layout.
15273 - Rename requested_height to requested_size, as we can have width on it
15274 when toolbar is vertical.
15275 - Create a private property "Vertical" that uses Dock to verify when
15276 toolbar is vertical or not.
15277 - Set ControlStyles when change Dock property.
15278 - Refactory in LayoutToolBar to have better variables names and to support
15280 - Fixes default value for ButtonSize when button count is equal zero, size
15281 must be (39, 36) test case writed.
15283 2007-01-23 Chris Toshok <toshok@ximian.com>
15285 * Control.cs: fix the checks so that they work correctly for mdi
15288 2007-01-23 Chris Toshok <toshok@ximian.com>
15290 * Control.cs: ControlCollection seems to have super-secret
15291 abstraction breaking knowledge of Mdi containers. allow MdiClient
15292 to add toplevel controls.
15294 2007-01-23 Chris Toshok <toshok@ximian.com>
15296 * Control.cs: throw an ArgumentException if a toplevel control is
15297 added to our control collection from ControlCollection.Add, as
15298 well as from ControlCollection.IList.Add. This fixes the
15299 ControlSetTopLevelTest.TestTopLevelAdd unit test.
15301 Also, in ControlCollection.IList.Add, don't through an
15302 ArgumentNullException, throw an ArgumentException, when value ==
15303 null. This matches MS.
15305 2007-01-23 Chris Toshok <toshok@ximian.com>
15307 * BindingSource.cs: initial, incomplete, implementation of
15310 2007-01-23 Jackson Harper <jackson@ximian.com>
15313 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15314 that I can fix a broken unit test (TextBoxTest::ClearUndo)
15316 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15318 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15320 2007-01-23 Andreia Gaita <avidigal@novell.com>
15322 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15323 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15324 IndexOfKey() for 2.0
15326 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15328 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15329 to prevent it from changing z-order.
15330 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15331 leave UI updates in MdiWindowManager.
15332 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15333 1 sized (NC handling goes weird on Linux otherwise).
15334 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15335 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15336 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15337 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15338 and SetWindowState(s) to allow for changing the size of an activated child
15339 before activating it (reduces a lot of flicker).
15341 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15343 * Form.cs: Changing FormBorderStyle has different semantics based
15344 on whether the Form is visible or not. If not visible, don't change
15345 the Size. But InvalidateNC needs to be called to force the window
15346 to pick up the changes and redraw itself. [Fixes bug #80574]
15348 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15351 * ContainerControl.cs: ProcessCmdKey.
15352 * ErrorProvider.cs: new constructor.
15353 * Form.cs: fix AutoValidateEvent compiler warning.
15354 * Label.cs: fix OnAutoSizeChanged compiler warning.
15355 * MenuStrip.cs: fix CanOverflow compiler warning.
15356 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15357 * TextBox.cs: Dispose.
15358 * ToolStrip.cs: CanOverflow, re-enable double buffering.
15359 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15360 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15361 * ToolStripItem.cs: Overflow, RightToLeft properties.
15363 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15365 * Form.cs: Move the layout of the main form to MdiWindowManager.
15366 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15367 do a layout of the main window to update MdiClient's client area to
15368 the right area. Fixes #80533. Remove the calculation of nc size,
15369 it was just wrong and the correct one is the same as for
15370 InternalWindowManager.
15372 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
15374 * Control.cs: Setting Anchor or Dock needs to reset the other
15375 to its default. [Fixes bug #80556]
15377 2007-01-20 Chris Toshok <toshok@ximian.com>
15379 * CheckedListBox.cs: class status changes.
15381 * ScrollableControl.cs: same.
15383 * RichTextBox.cs: same.
15385 * ContainerControl.cs: same.
15387 * ListView.cs: same.
15389 * NotifyIcon.cs: same.
15391 * MenuStrip.cs: same.
15393 * RadioButton.cs: same.
15395 * CheckBox.cs: same.
15397 * PrintPreviewDialog.cs: same.
15401 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
15403 * TreeNode.cs: Apply Alan's patch for Name property.
15405 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15407 * Form.cs: Implemented SizeGripStyle.
15408 * SizeGrip.cs: Check for minimum and maximum size for the
15409 control being resized and only resize if size has actually
15412 2007-01-19 Chris Toshok <toshok@ximian.com>
15414 * DataGridColumnStyle.cs: stop setting _readonly in the
15415 PropertyDescriptor setter. fixes a unit test failure.
15417 also, rename ParentReadOnly to TableStyleReadOnly, and have it
15418 just consult our table style (if we have one). We don't need to
15419 consult the datagrid readonly attribute because that's passed in
15420 as the _ro arg to Edit. this simplifies things a little.
15422 * DataGrid.cs: use CurrentColumn instead of
15423 current_cell.ColumnNumber just to simplify some of the code.
15425 switch the order of some things in the CurrentCell setter to keep
15426 the previous cell from getting a textbox again -
15427 EnsureCellVisibility causes scrolling to happen, which calls Edit.
15428 So we need to set the new cell before calling it.
15430 call Edit in OnEnter, as does Microsoft.
15432 also, make sure the current table style isn't the one we create
15433 initially when checking to see if it's different than the one
15434 we're setting it to in BindColumns (this fixes #80421).
15436 * GridTableStylesCollection.cs: table styles can have "" for a
15437 mapping name. part of the fix for #80421.
15439 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
15440 Edit significantly.
15442 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15444 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
15445 and less GDI object leaky-er.
15447 2007-01-18 Andreia Gaita <avidigal@novell.com>
15449 * LinkLabel.cs: Add opaque control style
15451 2007-01-18 Jackson Harper <jackson@ximian.com>
15453 * TextControl.cs: Calculate width properly.
15454 - Don't store the tag's X offset, this can be figured out very
15456 - When getting the caret tag make sure to get the last empty tag.
15458 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15460 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
15463 * Control.cs: Color.Empty shouldn't count for previous transparent
15466 2007-01-18 Jackson Harper <jackson@ximian.com>
15470 * TextControl.cs: Starting to merge in some pieces of my older
15471 undo work. Basically just some slight cleanup of the undo API.
15473 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15475 * TrackBar.cs: Fix signature of RightToLeftLayout.
15476 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
15477 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
15478 * Application.cs: Implemented UseWaitCursor.
15480 2007-01-18 Jackson Harper <jackson@ximian.com>
15482 * TextControl.cs: We can't skip tags if any part of the tag is
15485 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15487 * ContainerControl.cs: Override OnLayout.
15489 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15491 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
15493 * ContextMenuStrip.cs: Make sure context menu is shown on top of
15496 2007-01-18 Chris Toshok <toshok@ximian.com>
15498 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
15499 (leftover from the container_selected days, I'd wager). fixes bug
15502 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15504 * Control.cs: Apply patch from George to fix the new testcase on
15505 bug #80451. We can't just check for Color.Transparent, we need
15506 to check if the back color's alpha channel is < 255.
15508 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15510 * Form.cs: Move setting show_icon = true to before the constructor
15511 so that the base constructor has that information when it calculates
15512 the form's size. Was causing forms to be (6, 6) bigger than they
15513 were supposed to be. Thanks for catching this Rolf!
15515 2007-01-18 Jackson Harper <jackson@ximian.com>
15517 * TextControl.cs: When replacing a selection we need to invalidate
15518 from the initial selection start, because selection start is moved
15519 to the end of the replacement.
15521 2007-01-18 Andreia Gaita <avidigal@novell.com>
15523 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
15525 2007-01-18 Chris Toshok <toshok@ximian.com>
15527 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
15530 2007-01-17 Everaldo Canuto <everaldo@simios.org>
15532 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
15533 layout methods and properties from ToolBarButton must be available
15534 into ToolBarButtonInfo.
15536 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15538 * Control.cs: If the control has a transparent background, we
15539 need to refresh it when it moves and when it's parent's background
15540 image changes. [Fixes bug #80451]
15542 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15544 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
15546 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15548 * XplatUIWin32.cs: Implement proper double buffering for Windows.
15549 [Fixes bug #80447, and probably speeds up things as well]
15551 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15553 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
15554 * XplatUIWin32.cs: We need to recalculate NC size after changing
15555 window style to toolwindow (otherwise the client rectangle will be
15556 3 pixels to small for some reason).
15557 * MdiWindowManager.cs: Revert NC size calculations to match how
15558 they are calculated only based on window styles (to match
15559 Win32AdjustWindowRectEx, since otherwise when setting size or
15560 location, Control will call Win32AdjustWindowRectEx to update client
15561 size, which would provoke a paint, then we'd get a NCCALCSIZE and
15562 calculate a different value of client size causing another paint
15564 * InternalWindowManager.cs: When moving or resizing a window only
15565 update size or location if they actually changed.
15566 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
15567 (seems to match Windows behaviour better). Cleaned up
15568 ManagedWindowDecorations to draw what's needed and nothing else
15569 (was drawing borders and lines where they shouldn't be)
15570 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
15571 (style = 0xFFFF) and takes into account caption height when
15572 calculating window rectangle.
15574 2007-01-16 Everaldo Canuto <everaldo@simios.org>
15576 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
15577 can be added to toolbar multiple times, we need to maintain a list of
15578 button information for each positions.
15580 2007-01-16 Everaldo Canuto <everaldo@simios.org>
15582 * ToolBar.cs: Some small stetic changes.
15584 2007-01-16 Jackson Harper <jackson@ximian.com>
15586 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
15587 that allow us to have nested recalc = false blocks.
15588 - Add paste support for images in the RichTextBox
15589 * RichTextBox.cs: flush the text after the color is changed, so
15590 the change takes effect.
15591 - Use SuspendRecalc
15592 - Some extra debugging info
15593 * TextControl.cs: Tags no longer track their length, it is just
15594 computed from the next tags length, this makes things a little
15595 simpler and reduces places that we have to track length changes.
15596 - Refactored the linetag class a little so we could make it
15597 a base class for different kinds of tags
15598 - Created a image tag, a tag that can have a single image inserted
15600 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
15601 that we can call suspend multiple times.
15602 - Add some debugging methods
15604 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15606 * MdiClient.cs: Add ActivatePreviousChild for
15607 mdi child window navigation.
15608 * Form.cs: Use MdiClient.ActivateNextChild/
15609 ActivatePreviousChild instead of Form.SelectNextControl
15610 to select the next/previous child since
15611 SelectNextControl doesn't do it in the same order
15612 as mdi children should do it.
15614 2007-01-16 Chris Toshok <toshok@ximian.com>
15616 * Control.cs: remove container_selected field.
15618 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15620 * MdiClient.cs: Update main form's ActiveChild when
15621 updating keyboard focus for the mdi child.
15623 2007-01-16 Jonathan Pobst <jpobst@novell.com>
15625 * Control.cs: PreferredSize fix.
15627 * Form.cs: Add several 2.0 events, properties, and methods.
15629 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
15631 * Form.cs: Provide meaningful message when MdiParent is assigned a
15632 Form that is not an MdiContainer.
15634 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15636 * MdiClient.cs: Update main form's ActiveChild when
15637 activating a mdi child.
15639 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15641 * MdiWindowManager.cs: Fix NRE when merging menus and main form
15642 doesn't have a menu.
15644 * Form.cs: Request NCRecalc after creating a mdi child window.
15645 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
15646 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
15648 * MdiClient.cs: Add new method SendFocusToActiveChild that either
15649 sends keyboard focus to the active child, or to the MdiClient
15650 if there are no child forms.
15652 2007-01-15 Chris Toshok <toshok@ximian.com>
15654 * ListView.cs: drop the *Internal overrides, just do our work in
15655 ItemControl's WndProc instead.
15657 * UpDownBase.cs: a few large changes. Fix up the Selectable state
15658 of the various controls, and forward the events properly (in the
15659 same manner as MS) from the textbox to the UpDown. Also the
15660 ActiveControl of the UpDownBase gets set properly now. Finally,
15661 we don't call UpdateEditText from the ctor. Fixes bug #79957.
15663 * NumericUpDown.cs: set Text in the ctor.
15665 * DomainUpDown.cs: call UpdateEditText in the ctor.
15667 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
15668 so even a Selectable = false textbox can be focused if you click
15671 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
15672 just add their handling in their respective WndProc's. Also add
15673 an explicit FocusInternal method that doesn't consult CanFocus
15674 before calling Select(this).
15676 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
15677 do our work in WndProc instead.
15679 * TabControl.cs: same.
15681 * ComboBox.cs: same.
15683 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15685 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
15688 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15691 * ThemeWin32Classic.cs: Don't draw the item text outside
15692 item bounds in Details view, as well as use trimming.
15695 2007-01-15 Jonathan Pobst <jpobst@novell.com>
15697 * Form.cs: Implement Form.ShowIcon.
15699 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
15700 null, which when combined with the DlgModalFrame window style removes
15701 the icon from the title bar.
15703 2007-01-15 Jonathan Pobst <jpobst@novell.com>
15705 * Control.cs: Call OnMouseClick after OnClick. (2.0)
15707 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15709 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
15710 menu when mdi child windows theres a menu, uses insert to get icon
15711 at first position. Partially fix #80006.
15713 2007-01-15 Jonathan Pobst <jpobst@novell.com>
15715 * Clipboard.cs: Implement 2.0 methods.
15717 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15719 * Menu.cs: Implement Insert method of MenuItemCollection class
15722 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15724 * ListView.cs: Implement 2.0 FindItemWithText method.
15726 2007-01-11 Everaldo Canuto <everaldo@simios.org>
15728 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
15729 to calculate menu bar size. Fixes #80290.
15731 2007-01-11 Everaldo Canuto <everaldo@simios.org>
15733 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
15735 2007-01-11 Chris Toshok <toshok@ximian.com>
15737 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
15740 2007-01-11 Chris Toshok <toshok@ximian.com>
15742 * LinkLabel.cs: make sure to call base.Select in our Select method
15743 if it turns out we're going to be selected (i.e. if we have a link
15744 that is going to receive focus). That way our container's
15745 ActiveControl is updated properly.
15747 2007-01-11 Chris Toshok <toshok@ximian.com>
15749 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
15750 they have 1 or more links. this fixes the crash gert reported.
15752 2007-01-11 Andreia Gaita <avidigal@novell.com>
15754 * ContainerControl.cs: Remove ContainerSelected flag, not needed
15757 * Control.cs (Controls.Add): Check if control to be added to the collection
15758 is a top level control, and throw an ArgumentException if it is.
15759 Remove ContainerSelectedFlag, not needed anymore.
15761 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
15762 top most control doesn't activate the form. This fixes a problem in the
15763 MessageBox, where the default button wouldn't get focus because the form
15764 was activated before being Loaded - when the Owner is set, SetTopMost is
15765 called, and it would activate it.
15767 2007-01-11 Jonathan Pobst <jpobst@novell.com>
15769 * Button.cs: When clicked and setting the parent form's DialogResult,
15770 use FindForm instead of Parent, since parent could be a container
15771 control and not the Form. Fixes bug #80495.
15773 2007-01-10 Chris Toshok <toshok@ximian.com>
15775 * Form.cs: move the call to SendControlFocus into the same
15778 2007-01-10 Chris Toshok <toshok@ximian.com>
15780 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
15781 It breaks in the face of the new ActiveControl stuff, and should
15784 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
15785 activecontrol's focus if it's not already set, after we set
15786 ActiveControl, but before we call OnActivated. Re-fixes #79667
15787 after the previous focus/active control fixes regressed it.
15789 * Control.cs: reindent some code.
15791 2007-01-10 Chris Toshok <toshok@ximian.com>
15793 * Splitter.cs: clearing some outstanding changes from my tree.
15794 Replace all accesses (not writes) to the internal dock_style field
15795 with the Dock property.
15797 2007-01-10 Chris Toshok <toshok@ximian.com>
15799 * Control.cs: make FireEnter, FireLeave, FireValidating, and
15800 FireValidated virtual.
15802 * Form.cs: override and don't chain up calls to FireEnter and
15805 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15807 * ListView.cs: Add more text padding space when using
15808 auto resize for columns (the previous value didn't work fine).
15810 * ThemeWin32Classic.cs: Update text position inside columns,
15811 to match the appeareance of .Net.
15813 * ColumnHeader.cs: When using auto resize, only the Width should
15814 depend on the sub items, not the Height. Also, set width after
15815 auto resizing (the value of Width should never remain as -1 or -2).
15817 2007-01-10 Chris Toshok <toshok@ximian.com>
15819 * Application.cs: fix compilation errors when debug is enabled.
15821 2007-01-10 Chris Toshok <toshok@ximian.com>
15823 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
15824 add some nice ascii art pictures and explanation of the process).
15825 (GetMostDeeplyNestedActiveControl): new utility function we need
15826 because our ActiveControl can refer to a child container with its
15829 * Form.cs (OnActivated): remove the call to SelectActiveControl
15830 from here, since you can override this method and not chain up,
15831 and winforms still sets the active control.
15832 (OnCreateControl): also remove the unnecessary SelectActiveControl
15834 (WndProc): it's actually called from the WM_ACTIVATE block, just
15835 before calling OnActivated.
15837 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
15838 inside the else. the ActiveControl setter will end up setting
15839 focus on @control. This keeps us from setting it again (and
15840 generating an extra LostFocus/GotFocus pair).
15841 (Select (bool, bool)): reindent.
15843 2007-01-10 Jonathan Pobst <jpobst@novell.com>
15845 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
15846 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
15847 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
15848 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
15849 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
15850 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
15851 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
15852 ToolStripTextBox.cs: Another wave of corcompare work.
15854 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15856 * ColumnHeader.cs: Implement 2.0 AutoResize method using
15857 the Width property.
15859 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
15860 methods by callling Column.AutoResize method on columns.
15862 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
15864 * Control.cs: Provide proper implementations of PreferredSize
15865 and GetPreferredSize (2.0).
15867 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
15869 * Form.cs: Remove one character (!) to make my previous OnClosing
15870 stuff work for modal windows like MessageBox.
15872 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15875 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
15876 ListView.Columns to get the last displayed column. Fixes #80452.
15878 2007-01-09 Everaldo Canuto <everaldo@simios.org>
15880 * Label.cs, LinkLabel.cs: Source code identation fixes.
15882 2007-01-08 Everaldo Canuto <everaldo@simios.org>
15884 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
15885 we dont need to invalidate only borders because when we invalidate four
15886 border lines the invalidate's generates a complete redraw of button,
15887 because it now invalidate a complete rect some other redraws operations
15888 are fixed. Fixes #80196.
15890 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
15891 Remove ToolBarInvalidateEntireButton as it is not used.
15893 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
15895 * Form.cs: Make sure that both OnClosing and OnFormClosing are
15896 called for 2.0 profile.
15897 * CloseReason.cs: Make class internal for 1.1.
15899 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
15901 * ToolStripManager.cs: Implement FindToolStrip functionality.
15902 * ToolStrip.cs: Register and unregister with ToolStripManager.
15904 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
15906 * Control.cs: This was messy. 2.0 moves much of ControlCollection
15907 to ArrangedElementCollection. Implemented this with as few #if's as
15908 possible (which is still too many).
15910 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
15912 * Control.cs: Implement SizeFromClientSize() [2.0].
15914 2007-01-07 Everaldo Canuto <everaldo@simios.org>
15916 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
15917 use Theme.BorderSize to calculate area instead of static value 1,
15918 by the way use new BorderStaticSize instead Border3DSize when
15919 border_static is true. Fixes #79537.
15921 * XplatUIOSX.cs: Fix call to GetClientRectangle.
15923 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
15926 2007-01-06 Everaldo Canuto <everaldo@simios.org>
15928 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
15930 2007-01-06 Everaldo Canuto <everaldo@simios.org>
15932 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
15933 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
15936 - border_static field added, it will used to define when a control
15937 theres 3D border but it must be static (thin).
15938 - In GetWindowRectangle use Theme.BorderSize to calculate area
15939 instead of static value 1, by the way use new BorderStaticSize instead
15940 Border3DSize when border_static is true.
15942 * XplatUIX11.cs, XplatUIOSX.cs:
15943 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
15945 * Theme.cs: BorderStaticSize field added.
15947 2007-01-05 Everaldo Canuto <everaldo@simios.org>
15949 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
15951 2007-01-05 Everaldo Canuto <everaldo@simios.org>
15953 * Control.cs: Under InternalBorderStyle call RecreateHangle to
15954 mimic same behavior than win32 that set border only in CreateParams,
15955 it fix problems under CreateParams overrides. Fix #79442 and partial
15958 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
15959 of thi control you must call recreate handle.
15961 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
15962 need to do anything as RecreateHangle will take care about borders.
15964 2007-01-05 Mike Kestner <mkestner@novell.com>
15966 * ListView.cs: hack to eliminate Lost/Got focus notifications on
15967 cycles between the ItemControl and parent. Fixes #80388.
15969 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
15971 * Control.cs: Lazy init layout engine. Do not directly use
15972 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
15974 2007-01-05 Chris Toshok <toshok@ximian.com>
15976 * DataGrid.cs: don't forceably rebind columns in SetDataSource
15977 unless our list manager has changed (i.e. unless we have reason to
15978 believe our columns have changed). Fixes #80422.
15980 also, disable the call do BindColumns in
15981 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
15982 1.1 the event isn't raised in response to a column addition on a
15985 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
15987 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
15988 that inheritors can not call it if they choose. Fixes bug #80456.
15990 2007-01-05 Andreia Gaita <avidigal@novell.com>
15992 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
15993 doesn't blow up with a null exception on marshalling.
15995 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
15997 * Control.cs: Implement several 2.0 protected properties and methods.
15998 Ensure that all necessary events are being called when properties
16001 2007-01-05 Mike Kestner <mkestner@novell.com>
16003 * ListView.cs: implement PgUp/PgDn for Details view. Also
16004 fixes First/LastVisibleIndex to use the item_control.ClientRect
16005 instead of the parent control. Fixes #80378.
16007 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
16009 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16010 determine whether to use yard-pound or not (bug #78399).
16012 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
16014 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16015 problems. So it is time to bring back the old popupbutton colors.
16017 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16020 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16021 property by using the internal information of the
16022 columns order in ListView.
16024 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
16026 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16027 Add 2.0 Tag properties.
16029 * LinkArea.cs: Add 2.0 ToString method.
16031 2007-01-03 Chris Toshok <toshok@ximian.com>
16033 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16034 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
16035 when we're editing, which fixes #80047.
16037 2007-01-03 Chris Toshok <toshok@ximian.com>
16039 * Form.cs: apply patch contributed by Dominik Seichter. fixes
16042 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
16044 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16045 property and implementation.
16047 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16048 for MdiWindowListItem property.
16050 * ToolStripDropDown.cs: Don't consider hidden menu items while
16051 laying out the menu.
16053 2007-01-03 Andreia Gaita <avidigal@novell.com>
16055 * SendKeys.cs: window handle is not needed in win32, so just
16056 get the active window for X after parsing keys and don't use
16057 it when building the message; it is passed by parameter to the
16058 Xplat method and used there to build the message instead. Also,
16059 wait for events to be processed on SendWait, as opposed to Send,
16060 which doesn't wait :) Playing with threads and Send() completely
16061 hangs on ms.net, only SendWait() works.
16064 X11Display.cs: Check for valid window handle.
16066 2007-01-03 Jackson Harper <jackson@ximian.com>
16068 * TextControl.cs: Need to prevent wrap calculations when replacing
16069 text (this was there before i removed it accidently).
16070 - Don't update the cursor during the positioning, just set it to
16071 selection_start at the end of the operaion.
16073 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16076 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16078 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16080 * MonthCalendar.cs: Added Click and DoubleClick events again,
16081 but this time they only hide Control's Click and DoubleClick.
16083 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
16085 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16086 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16088 2007-01-02 Jackson Harper <jackson@ximian.com>
16090 * TextBoxBase.cs: We move the caret with the split now, so we
16091 don't need to explicitly move the caret after splitting. This
16092 fixes the caret bumping down an extra line on Enter.
16094 2007-01-02 Miguel de Icaza <miguel@novell.com>
16096 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16099 * ScrollableControl.cs: Add Scroll event.
16101 2007-01-02 Mike Kestner <mkestner@novell.com>
16103 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
16104 to fix all hdr height padding codepaths. Fixes #80207.
16106 2007-01-02 Chris Toshok <toshok@ximian.com>
16108 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16109 setting it to the Control defaults anyway, and it being after the
16110 Dock set was screwing up layout.
16111 (set_Dock): don't short circuit out of setting base.Dock. Also,
16112 no need to call UpdateStatusBar here, as it'll be re-layed out if
16115 2007-01-02 Mike Kestner <mkestner@novell.com>
16117 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16118 to header height for width == -1. Fixes the rest of #80207.
16120 2007-01-02 Mike Kestner <mkestner@novell.com>
16122 * ListView.cs: rework the mouse event forwarding everaldo added
16123 to translate the coordinates to the parent control not
16124 raise the parent events until after we've done our work. Hover
16125 needs more work, in the case where HoverSelection is on, because
16126 the item control receives more than one MouseHover per Enter
16127 event, so we need to ensure only the "first" hover gets forwarded.
16128 Opening a minor bug for that.
16130 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
16132 * CheckedListBox.cs: Fixed SelectionMode to match MS.
16133 * ListControl.cs: Implemented AllowSelection property. Removed extra
16135 * ListBox.cs: Implemented AllowSelection property.
16137 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16139 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16140 SelectedItem, it prevent for errors when you must disable item
16141 before perform click. Fixes #80409.
16143 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16145 * MenuAPI.cs: Prevent second level and beyond submenus to close
16146 until first level when move out side of popup.
16148 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16151 - Down submenu positin in three pixels.
16152 - Closes sub menu when mouse leaves from menu. Fixes #80402.
16154 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16156 * ThemeWin32Classic.cs:
16157 - Fix popup menu size adding one pixel on the top.
16158 - Down menu item border from two to one to mimic Win32.
16159 - Some source identation fixes.
16161 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16163 * ThemeWin32Classic.cs: Use float numbers to calculate size and
16164 position of menu arrows, it fix wrong arrow size.
16166 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16168 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16169 instead of line, it simplify draw operation and fix it using 3D
16170 borders to mimic Win32.
16172 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
16174 * StatusStrip.cs: Add implementation of the sizing grip.
16176 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16177 StatusStrip rendering.
16179 2006-12-31 Chris Toshok <toshok@ximian.com>
16181 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
16182 override the layout style (anchor/dock) of the control. assign to
16183 Dock instead. Fixes bug #80416.
16185 * ToolStrip.cs: same.
16187 2006-12-31 Andreia Gaita <avidigal@novell.com>
16189 * ContainerControl.cs: Use ContainerSelected flag to check if
16190 a Container is directly selected, or if Select is called on a
16191 non-container. If a container is directly selected, focus events
16192 should not be raised.
16193 Apply #80411 patch to throw exception on set_ActiveControl if
16194 control is the same as the current one.
16196 * Control.cs: Use ContainerSelected flag (see above).
16197 Add invalidation check to raise event but not invalidate if
16199 Apply #80411 patch.
16202 2006-12-31 Everaldo Canuto <everaldo@simios.org>
16204 * MenuAPI.cs: After click, dont close popup menu when menu is
16205 ContextMenu. Fixes #80399.
16207 2006-12-30 Chris Toshok <toshok@ximian.com>
16209 * ContainerControl.cs: make sure we throw the exception if the
16210 container control doesn't contain the control we're setting
16213 2006-12-30 Chris Toshok <toshok@ximian.com>
16215 * Control.cs (SetTopLevel): fix the exception raised by
16216 SetTopLevel for child controls.
16217 (set_Anchor): call UpdateDistances when setting the anchor type.
16218 This fixes bug #80336.
16220 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16222 * Theme.cs: For now, revert back to 8pt font.
16224 2006-12-29 Everaldo Canuto <everaldo@simios.org>
16226 * MenuAPI.cs: Set popup as active when open a ContextMenu.
16229 2006-12-29 Chris Toshok <toshok@ximian.com>
16231 * Control.cs: reorder the code in OnResize to give the same event
16234 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
16236 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16237 TileHorizontally and TileVertically.
16239 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
16241 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16242 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16243 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16244 Corrected copyright and email adress.
16246 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16248 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16249 of Exception in FullPath property if no TreeView is associated with
16252 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16254 * Theme.cs: Marked default_font as private, and initialize it in ctor
16255 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16257 * ThemeGtk.cs: Removed default_font intialization.
16258 * ThemeWin32Classic.cs: Removed default_font initialization.
16260 2006-12-28 Chris Toshok <toshok@ximian.com>
16262 * Control.cs: fix a couple of place where we were creating handles
16263 more aggressively than we should be. Fixes ControlRefresh unit
16266 2006-12-28 Chris Toshok <toshok@ximian.com>
16268 * Control.cs: contrary to what the comment said, Control.Dock does
16269 not supercede Control.Anchor - the last one you assign to decides
16270 the layout behavior. so we need to keep track of which was the
16271 last set. Also, fix some of the affected property arguments in
16272 PerformLayout calls, and remove an redundant parent.PerformLayout
16275 Add a VisibleInternal property, which returns is_visible. We
16276 can/should get rid of all the usage of this field elsewhere.
16278 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16280 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16281 control style, not DoubleBuffer. Added UseDoubleBuffering property
16282 that indicates whether doublebuffering is enabled and supported.
16283 (comment from and code based on Gert Driesen's patch in #80324).
16286 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16288 * Control.cs: Fixed a NRE.
16290 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16292 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16295 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16297 * Control.cs: Rewrote double buffering, now a seperate
16298 class handles all the buffering, no Graphics is disposed of
16299 until the painting is finished (earlier implementation
16300 would crash if the control was resized in the OnPaint,
16301 since it would cause the double buffer to be recreated
16302 and the old one disposed), a separate Graphics is
16303 created for every paint (MS behaviour and anyways the state
16304 of the Graphics would have to be saved and restored otherwise)
16306 * XplatUIDriver.cs:
16308 * XplatUI.cs: Added and implemented GetOffscreenGraphics
16309 so that we can get the graphics for the back buffer without
16310 having to create a new one and remove the offscreen_dc parameter
16311 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16313 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16315 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16316 Also make virtual all the key-related methods.
16318 * ListViewItem.cs: Make virtual the key related methods for
16319 ListViewSubItemCollection.
16321 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16325 * ThemeWin32Classic.cs:
16326 * Theme.cs: Initial support for Tile view in ListView,
16327 as well as the implementation of the required bits for it (Item
16330 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16332 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16333 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16334 Provide useful exception messages.
16336 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16338 * TrackBar.cs: Remove a warning.
16339 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16340 when used by DateTimePicker, fixes #80287. This also requires that
16341 MonthCalendar implements it's own drawing for the yearly updown control,
16342 otherwise the Capture tracking would be too complicated. Removed the Click
16343 and DoubleClick events (according to comments they were hiding the base class
16344 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16345 raise these events, not that they cannot be raised. It is possible to raise
16346 them by calling OnClick and OnDoubleClick). Added two internal fields in
16347 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16348 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16349 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16350 event, no longer needed.
16352 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16354 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16355 true if new value differs from current value.
16357 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16359 * Control.cs: ControlCollection.Count must be public. Fixed build of
16362 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16364 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16366 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16368 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16370 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16372 * Control.cs: Invalidates control including when Width and Height is
16373 equal zero or is not visible, only Paint event must be care about
16374 this. Fixes #79913.
16376 2006-12-26 Chris Toshok <toshok@ximian.com>
16378 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16379 more corcompare work.
16381 * DataGridView.cs: fix compiler warning.
16383 * ColumnHeader.cs: some corcompare work, and also take the
16384 opportunity to make the internal fields private.
16386 * ListView.cs: fix the fallout from the above field change.
16388 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16390 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16391 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16392 ToolStripTextBox.cs: Fixes to events and corcompare.
16394 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16396 * ListView.cs: Call owner.OnMousexx event to propagate events from
16397 item to ListView. Fixes #80367.
16399 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16401 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
16402 if value is less than one. ItemHeight should not be set to a value
16403 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
16404 Removed extra tabs.
16406 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16408 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
16409 * ToolStripStatusLabel.cs: Add Spring for Moma.
16411 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16413 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
16414 Fixed code formatting. Removed debug code.
16415 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
16417 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16419 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
16420 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
16421 ArgumentOutOfRangeException if ColumnCount is negative. In
16422 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
16423 less than 4 or higher than 32768.
16424 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
16425 Fixed FormatProvider to return CurrentCulture unless explicitly set.
16426 Fixed IsFormatProviderDefault to return true if FormatProvider has
16427 not been explicitly set.
16429 2006-12-25 Chris Toshok <toshok@ximian.com>
16431 * Application.cs: add a couple of 2.0 events.
16433 2006-12-25 Chris Toshok <toshok@ximian.com>
16435 * Control.cs: fix compiler warning.
16437 * AxHost.cs: corcompare fixes.
16439 * ApplicationContext.cs: corcompare fixes.
16441 2006-12-25 Chris Toshok <toshok@ximian.com>
16443 * Control.cs: only update dist_right/dist_bottom if the
16444 width/height is > 0. this fixes anchored controls being resized
16445 smaller until they disappear and then resized larger again.
16447 2006-12-25 Chris Toshok <toshok@ximian.com>
16449 * Control.cs: a couple of changes. Remove dist_left and dist_top,
16450 since they're nothing more than X/Left and Y/Top, respectively.
16452 Also, move back to a per-control Bitmap/Graphics for
16453 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
16454 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
16457 2006-12-25 Miguel de Icaza <miguel@novell.com>
16459 * MessageBox.cs: Implemented overload that takes a new "bool
16460 displayHelpButton" by adding a new internal field "show_help".
16461 When clicked this will raise the HelpRequested on the owner or the
16464 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
16465 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
16467 * ListView.cs: Add support ColumnWidthChanged and
16468 ColumnWidthChanging.
16470 Add support for ColumnReordered event.
16471 (ReorderColumn): Add NET_2_0 specific support for cancelling the
16474 Very nice codebase!
16476 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
16478 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
16480 2006-12-24 Chris Toshok <toshok@ximian.com>
16482 * GridTablesFactory.cs: 2.0 corcompare work.
16484 * ToolStripContainer.cs: add "override" to
16485 ContextMenuStripChanged, and remove the local event object.
16487 * ToolStripDropDown.cs: same with a couple properties.
16489 * ToolStripPanel.cs: same with AutoSizeChanged event.
16491 * TextBoxBase.cs: add "override" to AutoSizeChanged.
16493 * Form.cs: add the remaining 2.0 events, and do some corcompare
16496 * DateTimePicker.cs: add "new" to padding.
16498 * ButtonBase.cs: use Control's use_compatible_text_rendering.
16500 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
16502 * DataGridView.cs: PaddingChanged is overridden.
16504 2006-12-24 Chris Toshok <toshok@ximian.com>
16506 * Control.cs: corecompare work here too.
16508 * DataGridViewElement.cs, DataGridView.cs,
16509 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
16510 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
16511 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
16512 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
16515 2006-12-24 Miguel de Icaza <miguel@novell.com>
16517 * Control.cs: Switched the error message on the console for a
16518 todo. A review of the code will have to cope with this anyways
16519 (since its a large feature, it is in our radar) and it was
16520 producing too much output when running PDN.
16522 * ToolStripComboBox.cs: Set the text when the SelectedIndex
16523 changes. Applications depend on this (PDN 2.72)
16525 2006-12-23 Chris Toshok <toshok@ximian.com>
16527 * TableLayoutSettings.cs: finish up the corcompare work for this
16530 2006-12-23 Chris Toshok <toshok@ximian.com>
16532 * Control.cs: make SetImplicitBounds internal, do some futzing
16533 with LayoutEngine so that it's available in 1.1, and remove the
16534 entire duplicated code mess from PerformLayout. Use
16535 System.Windows.Forms.Layout.DefaultLayout instead.
16537 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
16539 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
16541 * Form.cs: Add MainMenuStrip property.
16543 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
16545 * Control.cs: Add ContextMenuStrip property and implementation.
16546 Fix ContextMenu implementation to show menu centered on control when
16547 activated using the keyboard instead of showing at screen (0,0).
16549 * ToolStripDropDown.cs: Fix needed overload of Show ().
16551 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16553 * Menu.cs: Name property added for 2.0 profile.
16555 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16557 * Menu.cs: Update information about FindMenuItem, method to be
16560 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16562 * MenuAPI.cs: When deselect items deselect also selected subitems.
16564 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16566 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
16567 FindSubItemByCoord to found itens that is not active, also an
16568 cheking added to FindSubItemByCoord to search for items only
16569 in visible popup windows. Fixes #80274.
16571 2006-12-22 Everaldo Canuto <everaldo@simios.org>
16573 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
16574 internal property, it be care about change ExStyle.
16576 2006-12-22 Andreia Gaita <avidigal@novell.com>
16578 * ContainerControl.cs: set activeControl for parent forms up the
16579 tree when the new activecontrol is a container.
16580 When validating the active control, if it is a container, also
16581 raise up the validation for it's active control. Fixes #80280
16583 * Control.cs: Add internal property flag and check to prevent
16584 Focus events from getting raised when Select() is called for
16585 a ContainerControl. There are still too many focus events being
16586 raised at the moment though.
16587 Cleaned up the code a bit.
16589 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16591 * Control.cs: Added all missing 2.0 events.and
16592 fixed a couple of corcompare issues.
16593 * TrackBar.cs: Implemented missing 2.0 bits.
16594 * MonthCalendar.cs,
16595 * DateTimePicker.cs,
16596 * MdiClient.cs: Fixed some corcompare issues.
16598 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
16600 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
16601 SplitterPanel.cs: corecompare work.
16603 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
16605 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
16606 Clean up warnings for BackgroundImageChanged and PaddingChanged
16607 events now that they are implemented in Control.cs.
16609 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
16611 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
16613 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
16614 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
16615 of TableLayoutPanel and supporting cast.
16617 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
16620 - GrabWindow now confines the mouse pointer to the confine window.
16621 - Added Win32ClipCursor and Win32GetClipCursor.
16624 - Added CaptureWithConfine to be able to capture and confine
16627 * InternalWindowManager.cs:
16628 - Call CaptureWithConfine instead of Capture if we're an
16629 MdiChild (fixes #79982).
16631 2006-12-21 Chris Toshok <toshok@ximian.com>
16633 * DataGrid.cs: guard against the initial state of selection, where
16634 selection_start == -1. make sure we only select from index >= 0.
16637 2006-12-21 Chris Toshok <toshok@ximian.com>
16639 * Control.cs: we don't need to be so draconian with
16640 UpdateDistances, and we thusly don't need to call it before
16641 calling PerformLayout in ResumeLayout. Fixes bug #80289.
16643 2006-12-21 Daniel Nauck <dna@mono-project.de>
16646 TextBox.cs: Implemented AutoComplete properties.
16648 2006-12-20 Chris Toshok <toshok@ximian.com>
16650 * DataGridView*.cs: some corecompare work.
16652 2006-12-20 Jackson Harper <jackson@ximian.com>
16654 * XplatUIX11.cs: We need to hide the caret when deleting it,
16655 otherwise you get carets left lying around everywhere.
16656 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
16657 prevents getting some weird half drawn caret tracers when
16659 * TextControl.cs: Attempt to reduce the number of times we need to
16660 recreate the caret.
16662 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
16664 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
16666 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16668 * DateTimePicker.cs:
16669 - Implemented missing 2.0 bits.
16670 - Changed some default values to match MS.
16672 2006-12-20 Jackson Harper <jackson@ximian.com>
16674 * TextBoxBase.cs: When changing the font across the document we
16675 can't recalculate after changing each line, since that will cahnge
16677 - PreferredHeight is a little different than i thought.
16678 - When backspacing, move the caret before we do the actual char
16679 delete, because when that delete crosses a wrap boundary the
16680 positional information will change.
16682 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16684 * Control.cs: Added some missing 2.0 bits:
16685 BackgroundImageLayout, BackgroundImageLayoutChanged,
16686 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
16687 add IBindableComponent and IDropTarget implementation.
16689 * MonthCalendar.cs:
16690 - Added all missing 2.0 features:
16691 BackgroundImageLayout, RightToLeftLayout,
16692 OnHandleDestroyed, RightToLeftLayoutChanged,
16693 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
16695 - Rewrote all the BoldDate code, it was completely broken.
16696 - Fixed all the tests (the tests can now be re-enabled, the
16697 problems were not with the tests, but with the control, it was
16700 * DateTimePicker.cs: Changed the location where the
16701 MonthCalendar is shown.
16703 2006-12-19 Chris Toshok <toshok@ximian.com>
16705 * DataGridView.cs: add IDropTarget implementation.
16707 * ToolStripPanel.cs: add IDropTarget implementation.
16709 2006-12-19 Jackson Harper <jackson@ximian.com>
16711 * TextControl.cs: soft now means something different than what it
16712 used to mean, we want to move the caret regardless of whether or
16713 not this break was soft (would we really have wanted the caret
16714 to not move with the break in the old context?)
16715 * TreeView.cs: Make sure we factor in the vert scrollbar when
16716 calculating the horizontal scrollbar's maximum.
16718 2006-12-19 Andreia Gaita <avidigal@novell.org>
16720 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
16721 check for keywords in alternate casing, close bug #80049.
16723 2006-12-19 Chris Toshok <toshok@ximian.com>
16725 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
16726 methods (which all do nothing).
16728 * IDropTarget.cs: add the 4 missing methods.
16730 2006-12-19 Chris Toshok <toshok@ximian.com>
16732 * TableLayoutRowStyleCollection.cs: corcompare work.
16734 * TableLayoutSettings.cs: same.
16736 * TableLayoutStyle.cs: same.
16738 * TableLayoutColumnStyleCollection.cs: same.
16740 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
16742 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
16743 TableLayoutPanel I've had in my local tree for way too long.
16745 2006-12-19 Miguel de Icaza <miguel@novell.com>
16747 * TableLayoutSettings.cs: Finish the public API (still needs all
16748 the logic to update on changes).
16750 * TableLayoutPanelCellPosition.cs: new file.
16752 * TableLayoutRowStyleCollection.cs,
16753 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
16754 TableLayoutSettings.cs: Track the final 2.0 table api.
16756 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16758 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
16759 and Image List 2.0 members for ColummnHeader.
16760 * ListView.cs: Add key-related 2.0 methods for
16761 ColumnHeaderCollection.
16763 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
16765 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
16766 ArgumentNullException if items argument is null. Ignore null item in
16767 arrays. Removed extra tabs.
16769 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
16771 * MonthCalendar.cs: Fixed InvalidCastException.
16773 2006-12-19 Jackson Harper <jackson@ximian.com>
16775 * TextControl.cs: Don't increment the position here.
16776 - When calculating char positions only add in the line break size
16777 for hard line breaks.
16779 2006-12-19 Andreia Gaita <avidigal@novell.org>
16781 * SendKeys.cs: Changed some things to match ms.net behaviour
16782 when parsing shifted capital letters.
16784 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
16785 Add window handle as parameter to SendInput. X11 needs the
16786 window handle, and the handle being passed to it in the keys
16787 queue is the active control handle (which windows needs), not
16790 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
16791 to support SendKeys on X.
16793 * X11Keyboard: Implement helper method to lookup a linux keycode
16794 given the virtual keycode. Added table of keycode-2-virtualkey
16795 values to support this.
16797 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16799 * ListView.cs: Add support for SelectedIndexCollection
16800 and SelectedItemCollection 2.0 methods. Implement support
16802 * ListViewItem.cs: Add support for ListViewSubItemCollection
16803 2.0 methods. Also, fix an incorrect behavior of AddRange method
16804 (it shouldn't call Clear).
16805 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
16807 2006-12-19 Jackson Harper <jackson@ximian.com>
16810 * TextBoxBase.cs: New args for FormatText
16811 * TextControl.cs: Rewrote the main drawing method, this version
16812 feels a little easier to understand and debug to me. Hopefully it
16813 does to others also
16814 - Fix FormatText to OR in the new formating values. Added
16815 FormatSpecified param, basically this works in the same way as
16816 BoundsSpecified in Control.
16817 - Set the caret properties when the caret is positioned.
16818 - When wrapping text make sure that we calculate the width of the
16820 - when calculating alignments we might have wrapped down to the
16821 next line, so don't search for an individual tag, search for the
16823 - We need to invalidate the selection area when we replace the
16826 2006-12-19 Daniel Nauck <dna@mono-project.de>
16828 * Application.cs: add Restart () 2.0 support
16830 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16832 * MenuItem.cs: Invalidate menu item rectangle after change Enable
16833 property. Fixes #80268.
16835 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16837 * MenuAPI.cs: Dont trigger select event when closes top menu
16838 item. Fixes #80270.
16840 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16842 * MenuAPI.cs: When you click on menuitem only trigger onselect
16843 event for top menu itens. Fixes #80271.
16845 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16847 * MdiWindowManager.cs: Make IconicBounds depend on
16848 the bottom of MdiClient, not the top (fixes #80267)
16850 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16852 * MdiClient.cs: Added missing 2.0 attribute
16854 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16856 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
16857 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
16859 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16861 * MenuAPI.cs: Fix click when menuitem is not popup,
16862 this regression was caused by last commit (#80272).
16864 2006-12-17 Everaldo Canuto <everaldo@simios.org>
16866 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
16867 fire click event or close menu. Fixes #80272.
16869 2006-12-17 Daniel Nauck <dna@mono-project.de>
16871 * ListViewHitTestInfo.cs: add
16873 2006-12-17 Daniel Nauck <dna@mono-project.de>
16875 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
16876 * FlatButtonAppearance.cs: add
16877 * DockingAttribute.cs: add
16879 2006-12-17 Chris Toshok <toshok@ximian.com>
16881 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
16882 and rebind our columns when it does - this way, if you make
16883 changes to the DataTable (or set the Table attribute on a DataView
16884 after setting it as the DataGrid's DataSource, the changes are
16885 made visible.) Fixes bug #80107.
16887 2006-12-17 Daniel Nauck <dna@mono-project.de>
16889 * ListViewGroup.cs: add internal Location property for layouting.
16890 * Theme.cs: add abstract ListViewGroupHeight function.
16891 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
16893 2006-12-16 Andreia Gaita <avidigal@novell.com>
16895 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
16896 Added reset of selected index to 0 when adding first tab page.
16899 * NumericUpDown.cs: Fix NET_2_0 check
16901 2006-12-16 Daniel Nauck <dna@mono-project.de>
16903 * ListViewGroup.cs: fixed DefaultValueAttribute value
16905 2006-12-16 Daniel Nauck <dna@mono-project.de>
16907 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
16909 2006-12-15 Miguel de Icaza <miguel@novell.com>
16911 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
16912 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
16913 ScrollableControl.cs: Add a handful of methods that are
16916 2006-12-15 Chris Toshok <toshok@ximian.com>
16918 * XplatUIWin32.cs: initial implementation of the Reversible
16919 drawing functions. there are some problems. DrawReversibleFrame
16920 doesn't seem to work at all for Dashed FrameStyle, and in the
16921 Thick case there are drawing errors at the corners (we probably
16922 need to bind Rectangle instead of doing moveto/lineto's.)
16924 2006-12-16 Andreia Gaita <avidigal@novell.com>
16926 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
16927 to send blocks of key messages. Send accumulates keys to send with Flush,
16928 while SendWait sends all keys immediately.
16930 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16931 XplatUIX11.cs, XplatUIX11-new.cs:
16932 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
16933 to Win32 SendInput.
16934 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
16936 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
16937 testing for ms.net on this class is very tricky, as the tests run too fast
16938 to allow the hook to release, essentially freezing the keyboard and the
16939 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
16942 2006-12-16 Daniel Nauck <dna@mono-project.de>
16944 * Padding.cs: fixed serialization compability to MS ("_var" field names),
16945 added missing attributes.
16947 2006-12-15 Daniel Nauck <dna@mono-project.de>
16949 * ListViewGroup.cs: Added missing attributes.
16950 * ListViewGroupCollection.cs: Added missing attributes.
16952 2006-12-15 Daniel Nauck <dna@mono-project.de>
16954 * ListViewItem.cs: fixed ListViewSubItem text property.
16956 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16958 * Control.cs: Added missing 2.0 attributes
16960 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16962 * MdiClient.cs: Added missing 2.0 attribute.
16963 * MonthCalendar.cs: Added some missing 2.0 attributes
16966 2006-12-15 Daniel Nauck <dna@mono-project.de>
16968 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
16970 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
16972 * MainMenu.cs: Add the new 2.0 constructor to help out people
16973 using the MainMenu in VS2005.
16975 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16977 * MdiChildContext.cs: Removed it, no longer used.
16978 * MdiClient.cs: Added missing 2.0 attributes.
16980 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16982 * InternalWindowManager.cs: Fix a NullRef with previous
16983 changes for toolwindows.
16985 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16988 - Added AfterTopMostControl to allow for certain controls
16989 to always stay on top when normal controls are brought to
16993 - (DrawInversibleRectangle): Get window rectangle from Win32
16994 in stead of from control, since Win32 doesn't calculate
16995 screen coords correctly from control's Location if it
16996 have docked siblings.
16998 * MdiWindowManager.cs:
16999 - Correct the control menu popup location when clicked on
17000 the maximized form icon. (fixes #80223.1)
17001 - Don't show moving rectangle if mouse hasn't moved from
17002 the original clicked point.
17003 - Removed FormGotFocus handler (not used).
17004 - Calculate the control buttons location from the main
17005 window's size and not client size (fixes #79770).
17006 - Form is now closed when the form icon is double-clicked
17008 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17010 * InternalWindowManager.cs:
17011 - Moved some MDI-only methods to MdiWindowManager.
17012 - Removed unused properties and methods.
17013 - Unified method naming for methods handling wm messages.
17014 - Moved all message handling to seperate methods for
17017 * ThemeWin32Classic.cs:
17018 - DrawManagedWindowDecorations now draws the title bar
17019 with a gradient brush.
17020 - Add a CPDrawButtonInternal that allows us to specify
17021 light, normal and dark colors for the buttons (control
17022 buttons for MDI children were drawn with the same light
17023 color as the background, therefore loosing the 3D effect).
17026 - Add a CapturedControl property that is used to
17027 determine the control to resize (defaults to parent).
17028 Needed for MdiClient, since its SizeGrip's parent is
17029 MdiClient, but the control to resize is the main form.
17032 - Set SizeGrip's CapturedControl to the main form in order
17033 to resize the main form and not the MdiClient.
17034 - Override AfterTopMostControl to leave the scrollbars
17037 2006-12-15 Daniel Nauck <dna@mono-project.de>
17039 * ListView.cs: fixed ListViewItemCollection AddRange and
17040 implemented ListViewItemCollection AddRange 2.0 support.
17042 2006-12-15 Daniel Nauck <dna@mono-project.de>
17044 * ListViewGroup.cs: Add.
17045 * ListViewGroupCollection.cs: Add
17046 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17047 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17048 stub for ImageKey 2.0 support.
17050 2006-12-14 Mike Kestner <mkestner@novell.com>
17052 * ListView.cs: add text padding to the autocalculation for columns
17053 of width -2. Fixes #80207.
17055 2006-12-14 Mike Kestner <mkestner@novell.com>
17057 * ListView.cs: add some index guarding for partial row navigation
17058 logic. Fixes #80250.
17060 2006-12-14 Mike Kestner <mkestner@novell.com>
17062 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17063 are added or inserted to the collection. Fixes #81099.
17065 2006-12-13 Everaldo Canuto <everaldo@simios.org>
17067 * MenuAPI.cs: Closes menu when right click out side of popup
17068 it fix problem in ContextMenu and MainMenu. Fixes #80252.
17070 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17072 * ListViewItem.cs: Fix dumb error.
17074 * ListView.cs: Add Find and ContainsKey methods in
17075 ListViewItemCollection, and also return true for IsReadOnly
17076 and IsFixedSize (changes for 2.0).
17078 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
17080 * Control.cs: Allow Region to be set to null.
17082 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17084 * MdiWindowManager.cs: Remove unused (commented out) code.
17085 * Form.cs: When the MdiChild is maximized, the form needs
17086 WM_NCMOUSELEAVE, so request it.
17087 * InternalWindowManager.cs:
17088 - Added tooltips to control buttons.
17089 - Removed duplicated control button handling code.
17090 - Removed unused (commented out) code.
17092 2006-12-12 Everaldo Canuto <everaldo@simios.org>
17094 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
17095 was used because we must set cursor without trigger ChangeCursor event
17096 and without change Cursor control property. Fixes #79963.
17098 2006-12-12 Andreia Gaita <avidigal@novell.com>
17100 * Control.cs: Check if Region setter value is null, and ignore
17102 2006-12-12 Jackson Harper <jackson@ximian.com>
17104 * TextControl.cs: We were almost always drawing one more line then
17105 needed, since the GetLineByPixel will return the last line found
17106 at that pixel. In most cases though, we were invalidating up to
17107 the junction between two lines.
17108 - Improve debug code.
17110 2006-12-12 Chris Toshok <toshok@ximian.com>
17112 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17113 and FillReversibleRectangle.
17115 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17116 and FillReversibleRectangle.
17118 * XplatUIWin32.cs: add stubs which do nothing for
17119 DrawReversibleFrame, DrawReversibleLine, and
17120 FillReversibleRectangle.
17122 * XplatUIOSX.cs: add stubs which raise NIE for
17123 DrawReversibleFrame, DrawReversibleLine, and
17124 FillReversibleRectangle.
17126 * XplatUIX11.cs: add working implementation for
17127 DrawReversibleFrame, DrawReversibleLine, and
17128 FillReversibleRectangle.
17130 * ControlPaint.cs: implement DrawReversibleFrame,
17131 DrawReversibleLine, and FillReversibleRectangle, by calling into
17132 the appropriate XplatUI method.
17134 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17136 * Form.cs: Make MdiClient have the focus even if it's
17137 not selectable, since it should receive WM_KEY* and WM_MOUSE
17138 messages. Fixes #79907.
17140 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17142 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17143 queried after the window is created.
17145 * XplatUIX11.cs: Added SendParentNotify to implement
17146 WM_PARENTNOTIFY logic. Fixes #79965.
17148 * Control.cs: Added MakeParam.
17150 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17152 * MdiClient.cs: Resume Layout before setting window
17153 states (fixes #80201).
17155 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17157 * MenuAPI.cs: Deselect a menu item after performing
17158 the click (fixes #80197).
17160 2006-12-11 Jackson Harper <jackson@ximian.com>
17162 * TextBoxBase.cs: We need to cap this value, since Maximum -
17163 ViewPortHeight can be less than zero.
17164 - Only do selection with the left mouse button.
17165 * TextBox.cs: Don't tell the world that we have a context menu.
17166 * Control.cs: New method so that we can control whether or not the
17167 context menu is visible outside MWF.
17169 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17171 * ToolBarButton.cs: Fix text positon.
17173 2006-12-11 Miguel de Icaza <miguel@novell.com>
17175 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17177 * Control.cs (DoubleBuffered): Add implementation.
17179 * Application.cs (OpenForms): Add.
17181 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17183 * Form.cs: Use opacity instead of Opactiy to determine if we need
17184 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
17186 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17188 * Control.cs: Fix NRE if Control.Site was set to null.
17190 2006-12-11 Chris Toshok <toshok@ximian.com>
17192 * Control.cs: ControlCollection.Remove should return if the arg is
17193 null, and ControlCollection.SetChildIndex should raise a ANE.
17195 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
17197 * Control.cs: Verify value set for Dock property. Code formatting
17200 2006-12-11 Jackson Harper <jackson@ximian.com>
17202 * TextControl.cs: Draw the caret and the selection when a flag is
17204 * TextBoxBase.cs: We want to draw the caret and the selection for
17205 TextBox but not for TextBoxBase.
17206 - If the window is resized and scrolling is no longer needed (the
17207 whole doc is visible) set the scroll position to zero.
17208 - The default SelectWord (the one TextBox uses) should move the
17209 caret to the end of the word.
17210 - SelectAll moves the caret to the end of the selection.
17211 * TextBox.cs: We don't selectall on focus, we just do it when the
17212 control is created.
17214 2006-12-11 Mike Kestner <mkestner@novell.com>
17216 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17218 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17220 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
17222 * ListViewItem.cs: Add Name 2.0 property.
17224 2006-12-11 Andreia Gaita <avidigal@novell.com>
17226 * TabControl.cs: Set visibility on selected or default tab
17227 when tabcontrol handle is created, so that it's contents
17228 actually show up (duh). Fixes #80193
17229 Don't redraw the control if there is no handle created, as
17230 the selected index might be completely invalid. Added some tests
17233 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17235 * ToolBar.cs: Uses maximun width and height of all buttons as
17236 button rectangle when ButtonSize specified, it looks strange but
17237 is what happens in Win32. Fixes #80189.
17239 2006-12-11 Jackson Harper <jackson@ximian.com>
17241 * TextControl.cs: Need to track undo levels ourself, since
17242 compound actions will mess them up.
17244 2006-12-10 Andreia Gaita <avidigal@novell.com>
17246 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17247 SelectedIndex value is changed (even if it's not valid).
17248 Reset SelectedIndex to 0 when the handle is created and if
17249 the current index is invalid.
17250 Fixes SelectdeIndex unit tests and #80128
17252 2006-12-08 Chris Toshok <toshok@ximian.com>
17254 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17255 calls EndEdit, it needs to be called before we set current_cell to
17256 its new value. Otherwise, we end up committing the value in the
17257 textbox to the new cell as well. Fixes bug #80160.
17259 2006-12-08 Chris Toshok <toshok@ximian.com>
17261 * Form.cs (set_CancelButton): if the button's DialogResult is
17262 None, set it to Cancel. Fixes bug 80180.
17264 2006-12-08 Jackson Harper <jackson@ximian.com>
17266 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17267 to watch ourselves when setting the canvas size and setting the
17270 2006-12-08 Chris Toshok <toshok@ximian.com>
17272 * DataGrid.cs: comment out the two MakeTransparent calls for the
17273 time being so people using trunk (and not 1.2.2) on windows can
17274 actually use the datagrid. This deals with bug #80151.
17276 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17278 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17279 Graphics.DrawImage (image, int, int, int, int) overload instead
17280 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
17281 the dpi difference and was blurring images it drew.
17284 2006-12-08 Chris Toshok <toshok@ximian.com>
17286 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17287 rowcnt is 0 (such as with an empty datasource), and make sure we
17288 initialize not_usedarea.Y to cells.Y, so we don't draw over the
17289 other areas (caption, parent row, etc, etc). Fixes bug #80095.
17291 2006-12-08 Chris Toshok <toshok@ximian.com>
17293 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17296 2006-12-08 Chris Toshok <toshok@ximian.com>
17298 [ Fixes bug #80167 ]
17300 * ThemeWin32Classic.cs: don't draw the image if the button's flat
17301 style is FlatStyle.System.
17303 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17304 ButtonBase.flat_style private, and switch uses of it to the public
17307 2006-12-08 Chris Toshok <toshok@ximian.com>
17309 [ Fixes bug #80121 ]
17311 * ThemeWin32Classic.cs: center the caption text in the datagrid
17314 * DataGrid.cs: lessen the amount we add to the caption height from
17315 6 to 2. 6 was making it huge.
17317 2006-12-08 Andreia Gaita <avidigal@novell.com>
17319 * UpDownBase: Handle MouseWheel call directly instead of capturing
17320 the inner textbox's OnMouseWheel. Fixes #80166
17322 2006-12-08 Jackson Harper <jackson@ximian.com>
17324 * TextControl.cs: We need to invalidate the textbox when we empty
17325 it (how had this not been discovered before?)
17327 2006-12-08 Jackson Harper <jackson@ximian.com>
17329 * TextBoxBase.cs: Reworked the mouse down code so I could get it
17330 to behave like MS, we now ignore the eventargs.Click and just
17331 track state ourself, which we were already doing anyways.
17332 - Constrain the double click handler to the double click size.
17334 2006-12-08 Chris Toshok <toshok@ximian.com>
17336 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17337 direction if that scrollbar isn't shown. fixes bug #80158.
17339 2006-12-08 Andreia Gaita <avidigal@novell.com>
17341 * NumericUpDown.cs: Update value on getter. Fixes #79950
17343 2006-12-08 Chris Toshok <toshok@ximian.com>
17345 * MenuItem.cs: add back in the event cloning code. I didn't know
17346 how to do it in the face of the EventHandlerList work i'd done
17347 last week. Fixes bug #80183.
17349 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17351 * Control.cs: Add an invalidate to the BackgroundImage setter.
17354 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17356 * ToolStrip*: Add some small properties reported by MoMA, fix event
17357 firing and default properties based off of unit tests, and add some
17358 attributes based off of the class status page.
17360 2006-12-07 Jackson Harper <jackson@ximian.com>
17362 * TextBoxBase.cs: Take HideSelection into account when determining
17363 whether or not to show the selection.
17364 * RichTextBox.cs: After inserting the RTF into the document move
17365 the cursor to the beginning of the document.
17367 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17369 * Control.cs: Remove static ArrayList "controls" which maintained
17370 a reference to every control created.
17371 * Application.cs: Create a static FormCollection to maintain a reference
17372 to every form created. Use it in places that formerly enumerated through
17373 the controls one looking for forms.
17374 * Form.cs: Add and remove self from above FormCollection.
17376 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
17378 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17379 not libgdk (though it makes me wonder why I didn't have any
17382 2006-12-07 Chris Toshok <toshok@ximian.com>
17384 [ you had to know this was coming after that last commit...]
17386 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17387 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17388 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17391 2006-12-07 Chris Toshok <toshok@ximian.com>
17393 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17394 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17395 all the behavior we need for double buffering.
17397 * XplatUIDriver.cs: implement the 3 double buffer methods using a
17398 client side Bitmap, just like the old Control-based double buffer
17399 code did. The methods are virtual, so each XplatUI driver
17400 subclass can replace the implementation to use a faster, platform
17403 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
17404 double buffer code, and clean things up a bit in the process.
17406 2006-12-06 Chris Toshok <toshok@ximian.com>
17408 * Control.cs: reindent WndProc.
17410 2006-12-06 Chris Toshok <toshok@ximian.com>
17412 [ I wanna be like BenM when I grow up ]
17414 * Hwnd.cs: create a single static Graphics object on the static
17415 Bitmap we create. use this for our text measurements.
17417 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
17418 This was causing us to allocate a backbuffer for every control,
17419 even when it wasn't flagged as double buffered. Instead use the
17420 single graphics instance. This might have implications for
17421 multithreaded applications. If we run into problems we can switch
17422 to creating 1 Graphics per control, on the static Hwnd bitmap.
17424 this change nets us a 7M savings in private dirty mappings when
17425 running FormsTest.exe.
17427 2006-12-06 Chris Toshok <toshok@ximian.com>
17429 * ListView.cs: the BackgroundImage override is just to set
17430 attributes. chain up to base.BackgroundImage.
17432 * RichTextBox.cs: same.
17434 * ToolBar.cs: same, but we need to also redraw the toolbar when it
17435 changes, so instead a handler for BackgroundImageChanged.
17437 * Control.cs: make background_image private.
17439 2006-12-06 Chris Toshok <toshok@ximian.com>
17441 * ScrollBar.cs: change the assignment of cursor to Cursor. not
17442 sure we even need this assignment, but roll with it for now.
17444 * Control.cs: make the cursor field private.
17446 2006-12-06 Chris Toshok <toshok@ximian.com>
17448 * Form.cs: we don't need to explicitly set ImeMode to
17449 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
17450 behavior in the face of ImeMode.Inherit.
17452 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
17453 change the ctor's assignment to use ImeMode instead of ime_mode.
17455 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
17456 ImeModeInherit. Only check for the parent's imemode (and return
17457 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
17458 This fixes the button unit test, which sets both ImeMode and
17459 DefaultImeMode to ImeMode.Disable.
17461 also make the ime_mode field private.
17463 2006-12-06 Chris Toshok <toshok@ximian.com>
17465 * Control.cs: make control_style private.
17467 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
17468 setting the styles to true, then setting them to false instead of
17469 reverting to their previous values.
17471 also, call SetStyle on the scrollbars instead of using
17472 control_style directly.
17474 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
17476 * FormCollection.cs: Implement. [2.0]
17478 2006-12-06 Chris Toshok <toshok@ximian.com>
17480 * Control.cs: make tab_stop private.
17482 * Label.cs: set TabStop, not tab_stop. reformat some event
17483 add/remove methods to make them more compact.
17485 2006-12-06 Chris Toshok <toshok@ximian.com>
17487 * RadioButton.cs: fix TabStop handling.
17489 2006-12-06 Chris Toshok <toshok@ximian.com>
17491 * TextBox.cs: remove the explicit assignments to has_focus.
17494 * ButtonBase.cs: remove the assignment to has_focus. Control will
17497 2006-12-06 Chris Toshok <toshok@ximian.com>
17499 * ButtonBase.cs: remove all uses of is_enabled from this code.
17500 it's always true when any of the code containing the checks is
17503 2006-12-06 Chris Toshok <toshok@ximian.com>
17505 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
17506 with different semantics (some are present in both 1.1 and 2.0
17507 profiles) so that we match MS's behavior in our unit tests.
17509 2006-12-06 Jackson Harper <jackson@ximian.com>
17511 * TextControl.cs: Make this operation undoable.
17512 * TextBoxBase.cs: Factor the border width into the preferred
17514 - implement Modified as per the spec.
17516 2006-12-06 Chris Toshok <toshok@ximian.com>
17518 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
17520 2006-12-06 Chris Toshok <toshok@ximian.com>
17522 * Control.cs: make right_to_left and context_menu fields private.
17524 2006-12-06 Chris Toshok <toshok@ximian.com>
17526 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
17527 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
17528 Control.child_controls private. switch all uses over to
17531 2006-12-06 Chris Toshok <toshok@ximian.com>
17533 * System.Windows.Forms/GroupBox.cs,
17534 System.Windows.Forms/AccessibleObject.cs,
17535 System.Windows.Forms/ErrorProvider.cs,
17536 System.Windows.Forms/Control.cs,
17537 System.Windows.Forms/UpDownBase.cs,
17538 System.Windows.Forms/ScrollBar.cs,
17539 System.Windows.Forms/DateTimePicker.cs,
17540 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
17541 System.Windows.Forms/ToolTip.cs,
17542 System.Windows.Forms/RadioButton.cs,
17543 System.Windows.Forms/LinkLabel.cs,
17544 System.Windows.Forms/Splitter.cs,
17545 System.Windows.Forms/TextBoxBase.cs,
17546 System.Windows.Forms/ToolStripTextBox.cs,
17547 System.Windows.Forms/ContainerControl.cs,
17548 System.Windows.Forms/ThemeWin32Classic.cs,
17549 System.Windows.Forms/SizeGrip.cs,
17550 System.Windows.Forms/ToolStripDropDown.cs,
17551 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
17552 private. switch all uses over to Control.Parent.
17554 2006-12-06 Chris Toshok <toshok@ximian.com>
17556 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
17557 Control does this before calling emitting these events.
17559 * TabControl.cs: same.
17561 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
17562 Control.client_rect.
17564 * ButtonBase.cs: use the ClientSize property instead of the
17567 * ScrollableControl.cs: same.
17569 * Control.cs: another pass at making properties private. also,
17570 move the initialization of tab_stop to the ctor.
17572 2006-12-05 Andreia Gaita <avidigal@novell.com>
17574 * TabControl.cs: Let the selected index be set freely if the
17575 control handle is not yet created.
17577 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
17579 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
17580 internal until I can rewrite DefaultLayout.
17581 * ToolStrip.cs: Fix build error and some general cleaning.
17582 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
17583 Fix build errors caused by making some of Control's fields private.
17585 2006-12-05 Jackson Harper <jackson@ximian.com>
17587 * TextControl.cs: Redo Insert a little so that it use IndexOf
17588 instead of Split, this prevents it from messing up on things like
17589 \n\n\n. Also more effecient since the split array doesn't need to
17591 * TextBoxBase.cs: AppendText doesnt handle multiline and non
17592 multiline text differently, this is the first of many fixes that
17593 will make multiline/non-multiline the same thing as far as the
17594 TextBoxBase is concerned.
17595 - Don't split the text and insert lines, this can lose some line
17596 endings (like is the last line a soft or hard break). Instead use
17598 - Fix an off by one when combining all the lines in the Text
17600 - Remove separate multiline handling from the Text getter/setter.
17602 2006-12-05 Chris Toshok <toshok@ximian.com>
17604 * ButtonBase.cs: a few changes:
17606 - don't reinitialize internal Control fields in the ctor when they
17607 have the same values as Control sets them.
17609 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
17610 this before calling those methods.
17612 - we don't need to call Refresh for anything. use Invalidate
17615 - OnEnabledChanged doesn't need to redraw at all - Control.cs
17616 calls Refresh in its OnEnabledChanged.
17618 - several of the events we were registered for in the ctor to
17619 redraw ourselves already include calls to Invalidate in the
17620 property setters that raise the events. remove the extra
17623 - reformat a switch statement that was 83274658 columns wide.
17625 2006-12-05 Mike Kestner <mkestner@novell.com>
17627 * ComboBox.cs: fix a unit test regression from a TextBox
17628 SelectionLength return of -1 when there's no selection.
17630 2006-12-05 Chris Toshok <toshok@ximian.com>
17632 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
17633 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
17634 cleaning up some of the internal Control fields being used by
17637 2006-12-05 Mike Kestner <mkestner@novell.com>
17639 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
17640 listbox after AddImplicit calls since it defaults to hidden. Add a
17641 hack to preserve requested heights across DropDownStyle changes.
17643 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
17645 * PropertyGrid.cs: Hide FindFirstItem method from public API.
17647 2006-12-05 Chris Toshok <toshok@ximian.com>
17649 * DataGridView.cs: fix compiler warnings.
17651 * PrintControllerWithStatusDialog.cs: same.
17653 * ToolBar.cs: same.
17655 * FolderBrowserDialog.cs: same.
17657 * Splitter.cs: same.
17659 * DataGridViewComboBoxCell.cs: same.
17661 * XplatUIWin32.cs: same.
17663 * PictureBox.cs: same.
17665 * Win32DnD.cs: same.
17667 * PageSetupDialog.cs: same.
17669 * FileDialog.cs: same.
17671 * PrintDialog.cs: same.
17673 * DataGridTextBoxColumn.cs: same.
17675 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
17677 2006-12-05 Chris Toshok <toshok@ximian.com>
17679 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
17680 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
17681 System.ComponentModel.EventHandlerList work.
17683 2006-12-05 Jonathan Chambers <joncham@gmail.com>
17685 * DrawTreeNodeEventArgs.cs: Added.
17687 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17689 * InternalWindowManager.cs: Remove an unused field.
17691 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17693 * InternalWindowManager.cs:
17694 - Save the point where the title bar is clicked.
17696 * MdiWindowManager.cs:
17697 - Only allow moving of the window as long as the
17698 clicked point on the title bar does not get out of
17699 MdiClient's rectangle. Fixes #79982.
17702 - Added Horizontal/VerticalScrollbarVisible.
17703 - Simplified the scrollbar sizing algorithm.
17704 - Cache the difference in scrolled value in
17705 H/VBarValueChanged and move the calculation out
17708 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17710 * Control.cs: Make the Console.WriteLine in WndProc
17713 2006-12-05 Chris Toshok <toshok@ximian.com>
17715 * ToolStripManager.cs, ToolStripButton.cs,
17716 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
17717 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
17718 ToolStripSplitButton.cs, ToolStripSeparator.cs,
17719 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
17720 ToolStripProgressBar.cs, ToolStripContainer.cs,
17721 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
17722 to using System.ComponentModel.EventHandlerList.
17724 2006-12-04 Chris Toshok <toshok@ximian.com>
17726 * LinkLabel.cs: fix up compiler warnings.
17728 * TableLayoutSettings.cs: same.
17730 * TreeView.cs: same.
17732 * ToolBar.cs: same.
17734 * TabControl.cs: same.
17736 * RichTextBox.cs: same.
17738 * ListViewItem.cs: same.
17740 * PropertyGrid.cs: same.
17742 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
17746 * TextRenderer.cs: fix up compiler warnings.
17750 * Form.cs: corcompare fixes.
17752 * PictureBox.cs: fix up compiler warnings.
17754 * ImageListStreamer.cs: same.
17756 * TrackBar.cs: corcompare fix.
17758 * Control.cs: fix up compiler warnings.
17760 * SplitterPanel.cs: same.
17762 * NumericTextBox.cs: same.
17764 * ImageList.cs: same.
17766 * StatusStrip.cs: same.
17768 * ProgressBar.cs: corcompare fix.
17770 * ToolStripButton.cs: fix up compiler warnings.
17772 * ToolStripStatusLabel.cs: same.
17774 * ToolStripSplitButton.cs: same.
17776 * ToolStripSeparator.cs: same.
17778 * ToolStripProgressBar.cs: same.
17780 * ToolStripDropDownMenu.cs: same
17782 * ToolStripDropDown.cs: same.
17784 * ToolStripDropDownButton.cs: same.
17786 * ToolStrip.cs: same.
17788 * ToolStripControlHost.cs: same.
17790 * ToolStripContentPanel.cs: same.
17792 * ToolStripDropDown.cs: same.
17794 * ToolStripContainer.cs: same.
17796 * ToolStripPanel.cs: same, and add "new" where we need it to work
17797 with the new ArrangedElementCollection.
17799 * ToolStripItemCollection.cs: add "new" where we need it to work
17800 with the new ArrangedElementCollection.
17802 2006-12-04 Andreia Gaita <avidigal@novell.com>
17804 * TabControl.cs: Fix default tab selection to after TabControl
17805 gets focus and not before. Fixes #80128
17807 2006-12-04 Chris Toshok <toshok@ximian.com>
17809 * DataGridTableStyle.cs: remove the gross calling of
17810 datagrid.Refresh from here. It's a broken idea and it doesn't
17813 * DataGrid.cs: instead, just register/unregister from the
17814 DataGridTableStyle events in CurrentTableStyle. we play it
17815 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
17816 even though some would most likely not require it. Fixes bug
17817 #80115 (and one portion of #80117 as a side effect).
17819 2006-12-04 Chris Toshok <toshok@ximian.com>
17821 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
17822 so the textbox (if any) goes away. Fixes bug #80117.
17824 2006-12-04 Chris Toshok <toshok@ximian.com>
17826 * DataGridColumnStyle.cs: set the column's readonly property
17827 initially based on the property descriptor's IsReadOnly. Fixes
17830 2006-12-04 Chris Toshok <toshok@ximian.com>
17832 * ComboBox.cs: wrap the dropdown style changing work in
17833 SuspendLayout/ResumeLayout. Fixes bug #79968.
17835 2006-12-04 Jackson Harper <jackson@ximian.com>
17837 * TextBoxBase.cs: Fix off by one, since these are one-based.
17838 * TextBox.cs: Select all the text when we get focus. The TextBox
17839 does this but the RTB does not.
17841 2006-12-04 Chris Toshok <toshok@ximian.com>
17843 * DataGridTextBoxColumn.cs: remove some spew.
17845 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
17846 but some part of me is saying "it shouldn't be here.." At any
17847 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
17850 2006-12-04 Chris Toshok <toshok@ximian.com>
17852 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
17853 to reassign the propertydescriptor.
17855 2006-12-04 Jackson Harper <jackson@ximian.com>
17858 * TextControl.cs: Remove some unused variables. Maybe this will
17859 patch things up between mike and I.
17860 - don't split lines less then one char wide, if the viewport is
17861 that small text won't be visible anyways.
17863 2006-12-04 Jackson Harper <jackson@ximian.com>
17865 * TextBoxBase.cs: Default selection length is -1, need to do some
17866 more testing on windows to see when this is used for the property.
17867 - Redid the Lines [] property to that we properly remove soft line
17869 - added support for preserving carriage returns
17870 - CanUndo is not a variable like 'is undo enabled' it just returns
17871 true if there is undo operations available.
17872 - AppendText doesn't need to grab the last tag itself anymore,
17873 this happens automatically when we move the cursor.
17874 * TextControl.cs: Add CompoundActions to the undo class. This
17875 allows combining the other operations into one big option. ie a
17876 paste will combine { delete old, insert new, move cursor }
17877 - Add InsertString undo operation
17878 - New method for deleting multiline text
17879 - Add carriage returns to lines. So we can preserve carriage
17880 returns when text is 'roundtripped'
17882 2006-12-04 Chris Toshok <toshok@ximian.com>
17884 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
17885 minimum 0. Fixes the scrollbar exception in bug #80136.
17887 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17890 * MdiWindowManager: Removed unused fields and methods.
17892 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17894 * StatusBar.cs: Update all panels when a AutoSize=Contents
17895 panel needs updating.
17897 * StatusBarPanel.cs: Remove twidth and only use initialize.
17900 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17902 * Form.cs: When a form's MdiParent is set add it directly
17903 on top of the z-order in stead of relying on MdiClient's
17904 ActivateChild to do it. Fixes #80135.
17907 - Remove original_order, mdi_child_list is already doing
17909 - Create mdi_child_list on construction in
17910 stead of first use (avoids a few null checks).
17912 * MenuItem.cs: Use an already existing list of mdi children
17913 to get the correct order of children and remove the other
17916 2006-12-04 Chris Toshok <toshok@ximian.com>
17918 * PropertyGridView.cs: cached_splitter_location is only used in
17919 !DOUBLEBUFFER code.
17921 * PropertyGrid.cs: implement the ComComponentNameChanged event
17922 using Events, hoping that would fix the warning. Looks like a
17923 compiler bug instead (#80144).
17925 * PropertyManager.cs: remove unused method.
17927 2006-11-04 Everaldo Canuto <everaldo@simios.org>
17929 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
17930 include parentesis to fix expression evaluation. Fixes #79634.
17932 2006-11-02 Everaldo Canuto <everaldo@simios.org>
17935 - Changes to fix behavior in Menu control, some reported in #80097
17936 and other detected during behavior refactory like a select event
17938 - Remove unneded "if's" conditions.
17939 - Created an internal to flag when popup is active in control, we need
17940 it because in .NET you can have menu active but without popup active
17941 when you active menu using popup without visible items.
17942 - Mimic win32 behavior for Select and Popup events.
17943 - Dont open popup menu when you dont have visible subitems.
17944 - Do nothing when click on disabled menu item.
17945 - Some small changes to follow the coding style guidelines.
17946 - Unselect menu only when another control gives focus. Fixes #80097.
17947 - Remove unused code.
17949 * MenuItem.cs: internal VisibleItems method to check if menu
17950 theres visible subitems, it will be usefull to fix some
17951 behavior in Menu control.
17953 2006-11-01 Everaldo Canuto <everaldo@simios.org>
17955 * Timer.cs: Tag property for 2.0 profile.
17957 2006-12-01 Chris Toshok <toshok@ximian.com>
17959 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
17961 * Win32DnD.cs: comment out some unused fields.
17963 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
17964 some unused properties/methods.
17966 * XplatUIX11.cs: fix MousePosition so we override the base class's
17967 property instead of conflicting with it.
17969 * PictureBox.cs: comment out some unused fields
17971 * OSXStructs.cs: make some struct fields public.
17973 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
17974 MousePosition so we override the base class's property instead of
17975 conflicting with it.
17977 * X11Dnd.cs: comment out some unused fields
17979 * X11DesktopColors.cs: fix some struct field visibility to quiet
17982 * X11Dnd.cs: remove some debug code.
17984 * ThemeClearlooks.cs: comment out unused field.
17986 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
17988 * ThemeGtk.cs: comment out some unused pinvokes.
17990 * Timer.cs: remove some unused fields.
17992 * ThemeClearlooks.cs: comment out unused field.
17994 * UpDownBase.cs: comment out unused field.
17996 * DataObject.cs: comment out unused field.
17998 * DataGridBoolColumn.cs: reomve unused field.
18000 * DataGrid.cs: remove unused field.
18002 * Cursor.cs: remove old ToBitmap code.
18004 * ControlPaint.cs: remove unused method.
18006 * ScrollBar.cs: remove unused fields.
18008 * ComboBox.cs: remove unused field, and chain up to
18009 AccessibleObject ctor.
18011 * ListBox.cs: remove unused field.
18013 * ButtonBase.cs: wrap a couple fields in NET_2_0.
18015 * GridEntry.cs: remove unused fields.
18017 * Binding.cs: remove unused fields.
18019 * AxHost.cs: remove unused method.
18021 * ContainerControl.cs: remove unused field.
18023 * ScrollableControl.cs: remove unused fields.
18025 2006-12-01 Chris Toshok <toshok@ximian.com>
18027 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18028 the Where/WhereString stuff. it's easy enough to CWL
18029 Environment.StackTrace.
18031 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18032 unused private fields.
18034 2006-12-01 Jackson Harper <jackson@ximian.com>
18036 * TextControl.cs: Do not update the view while inserting multiline
18037 text. If we update the view we might wrap lines, before entering
18038 the new lines, which causes the new line insertion calculations to
18039 be totally fubared.
18040 - Remove an old TODO
18041 - Make debug output a little nicer
18043 2006-12-01 Chris Toshok <toshok@ximian.com>
18045 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18047 2006-12-01 Chris Toshok <toshok@ximian.com>
18049 [ fix the majority of the CS0108 warnings we've been suppressing ]
18051 * TreeView.cs: mark BackgroundImageChanged as 'new'.
18053 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
18054 to "LayoutToolBar" to quiet mcs.
18056 * TabControl.cs: mark our ControlCollection class as 'new'.
18058 * TextBoxBase.cs: mark some events as 'new'.
18060 * Splitter.cs: TabStop is 'new'.
18062 * ControlBindingsCollection.cs: mark a few methods as new since
18063 they change the visibility from protected to public.
18065 * RadioButton.cs: DoubleClick -> base class, and remove unused
18068 * MonthCalendar.cs: ImeMode property -> base class, and mark many
18071 * NumericUpDown.cs: TextChanged -> base class.
18073 * CheckedListBox.cs: mark our ObjectCollection class as new to
18076 * FolderBrowserDialog.cs: make HelpRequest event new and have it
18077 muck with the base class.
18079 * StatusBar.cs: fix some mcs warnings about Update being the same
18080 name as a base class method.
18082 * RichTextBox.cs: mark some events as new, and make them do things
18083 to the base class impl.
18085 * UserControl.cs: mark TextChanged as new, and have it manipulate
18088 * UpDownBase.cs: mark some things new.
18090 * CheckBox.cs: mark DoubleClick "new", and add some text about
18091 what we need to look at.
18093 * Panel.cs: make the events "new", and manipulate the base
18094 version. these are just here for attributes.
18096 * AccessibleObject.cs: make owner private.
18098 * Control.cs: deal with AccessibleObject.owner being private.
18099 cache our own copy if we need it.
18101 * Button.cs: add "new" to the DoubleClickEvent.
18103 * ListBox.cs: no need to track our own has_focus here. let
18104 Control.has_focus do it for us. Also some other work to clear up
18105 warnings about not overriding base class methods of the same name.
18107 * ComboBox.cs: clear up some warnings about not override base
18108 class methods of the same name.
18110 2006-12-01 Chris Toshok <toshok@ximian.com>
18112 * Form.cs: flag a few things as "new" to quiet some of the mcs
18117 * PrintPreviewDialog.cs: same.
18119 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
18120 now DGV isn't so horrible on the class status page. also, move
18121 all events to using System.ComponentModel.EventHandlerList. my
18124 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
18126 * MdiWindowManager.cs:
18127 - Set form to active mdi child if shown,
18128 and update the active mdi child to the next
18129 remaining child in the z-order if the form is hidden.
18132 - Track if the form has been visible and if its
18133 visibility is beeing changed, so that the MdiClient
18134 can properly decide the ActiveMdiChild. The MdiClient
18135 cannot track this since the form can change visibility
18136 before MdiClient is created.
18139 - Don't activate anything of the parent form is changing
18141 - Rework ActiveMdiChild to only return visible mdi
18142 children and take into account several other corner
18145 2006-12-01 Chris Toshok <toshok@ximian.com>
18147 * IBindableComponent.cs: new 2.0 interface.
18149 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
18151 * DataGrid.cs: Font for caption area is bold by default.
18153 2006-12-01 Everaldo Canuto <everaldo@simios.org>
18155 * Menu.cs: Tag property for 2.0.
18157 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18159 * ThemeWin32Classic.cs: Adjust menu separator drawing.
18161 2006-12-01 Chris Toshok <toshok@ximian.com>
18163 * TreeView.cs: doh, the Begin* events should be
18164 TreeViewCancelEventHandler.
18166 2006-12-01 Chris Toshok <toshok@ximian.com>
18168 * Form.cs: Form.ControlCollection already stores off the
18169 form_owner field. don't access the base class's internal "owner"
18172 * Control.cs: make all the fields in Control.ControlCollection
18173 private. there's no need for any internal fields here.
18175 2006-12-01 Chris Toshok <toshok@ximian.com>
18177 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18178 OnHandleCreated. Fixes bug #80109.
18180 2006-12-01 Chris Toshok <toshok@ximian.com>
18182 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18183 SplitContainer.cs, Control.cs, StatusStrip.cs,
18184 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18185 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18186 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18187 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18188 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18189 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18190 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18191 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18192 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18193 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18195 do most of the work to convert our code over to use
18196 System.ComponentModel.Component.Events for
18197 adding/removing/dispatching events.
18200 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18202 * DataGridView.cs: Fix an ArgumentNullException reported
18203 twice today in IRC.
18205 2006-11-30 Mike Kestner <mkestner@novell.com>
18207 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
18208 grabbed listbox. Fixes #80036 and #80101.
18210 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18212 * Message.cs: Changed ToString() to match MS.
18214 2006-11-30 Jackson Harper <jackson@ximian.com>
18216 * TextBoxBase.cs: You can still change the selected text on a read
18218 * TextControl.cs: Lower magic number for wrap calculations. This
18219 lets text get closer to the right (far) edge.
18221 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18223 * Control.cs: Tweak 2.0 layout properties.
18224 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18225 * TextRenderer.cs: Add a new overload.
18226 * ToolStrip*: Huge amount of changes and new features.
18228 2006-11-30 Mike Kestner <mkestner@novell.com>
18230 * ComboBox.cs: fixes for LargeChange and Maximum to get the
18231 scroll range correct. Fixes #79994.
18233 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18235 * MdiWindowManager.cs: Update main form's text when
18236 a form is closed. (fixes #80038)
18238 2006-11-30 Everaldo Canuto <everaldo@simios.org>
18241 - Fix an regression in ButtonSize.
18242 - Get ImeMode default value change to "Disable".
18243 - Get ShowTooltips default value change to true, default value is
18244 "false" but after make a test in .NET we get "true" result as default.
18246 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
18248 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18250 2006-11-29 Chris Toshok <toshok@ximian.com>
18252 * XplatUIWin32.cs (GetWindowTransparency): check return value of
18253 GetLayeredWindowAttributes. if it's 0, return 1.0, as
18254 SetWindowTransparency hasn't been called.
18256 2006-11-29 Chris Toshok <toshok@ximian.com>
18258 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18260 (set_AllowTransparency): reorder things a little so that the
18261 WS_EX_LAYERED style is removed properly.
18263 2006-11-29 Chris Toshok <toshok@ximian.com>
18265 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18267 * Form.cs: only call the XplatUI transparency method (get/set) if
18268 SupportsTransparency says it's supported. Otherwise fallback to
18269 doing nothing (in the set case) or returning the instance field we
18270 cache (in the get case).
18272 * XplatUIStructs.cs: add TransparencySupport flag enum.
18274 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18275 change to SupportsTransparency.
18277 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18278 TransparencySupport.None from SupportsTransparency.
18280 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18281 TransparencySupport.Set from SupportsTransparency.
18283 * XplatUIWin32.cs: implement GetWindowTransparency calling
18284 GetLayeredWindowAttributes, and implement SupportsTransparency by
18285 checking whether or not both
18286 GetWindowTransparency/SetWindowTransparency are available
18287 entrypoints. We need to do this since SetWindowTransparency is
18288 available as of win2k, but GetWindowTransparency requires winxp.
18291 * XplatUI.cs: Add GetWindowTransparency, and change
18292 SupportsTransparency to allow for either/both Get/Set.
18294 2006-11-29 Chris Toshok <toshok@ximian.com>
18296 * DataGrid.cs: keep from going into an infinite loop redrawing a
18297 datagrid that has no datasource. Fixes bug #80033.
18299 2006-11-29 Chris Toshok <toshok@ximian.com>
18301 * MenuItem.cs: fix the NRE when we assign text (and therefore call
18302 Invalidate) before the mainmenu has been assigned to a control.
18304 2006-11-29 Chris Toshok <toshok@ximian.com>
18306 * DataGrid.cs: detect when we should be double the double click
18307 row/column autosize stuff, although that codepath has yet to be
18308 written. part of the work for bug #79891.
18310 2006-11-29 Chris Toshok <toshok@ximian.com>
18312 * Binding.cs (SetControl): fix unit test.
18314 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18316 * PageSetupDialog.cs: Validate the margins and set them in
18318 * NumericTextBox.cs: New class to mimic the behavior of the
18319 textboxes used in the printing dialogs.
18321 2006-11-29 Andreia Gaita <avidigal@novell.com>
18323 * Form.cs: Revert previous change (remove call UpdateBounds
18324 from form constructor), because it messes with the handle creation
18325 order, and that one needs lots and lots of love.
18326 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18327 for valid printer and throw InvalidPrinterException if document
18328 is set but printer not valid), adding a MonoTODO. Once
18329 handle creation is done properly, we can put this back in.
18331 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18333 * MenuItem.cs: Create a invalidate method for menu item, to be
18334 calling from set text, it make text changes to imadiate update
18335 on screen. Fixes #80013.
18337 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18339 * ToolBar.cs: Fixes and simplify toolbar button layout, it
18340 fixes bug #80070 and some other problem on toolbar buttons
18343 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18345 * ThemeWin32Classic.cs: Paint toolbar toggle button background
18346 with dotted brush. Fixes #79564
18348 2006-11-28 Andreia Gaita <avidigal@novell.com>
18350 * Form.cs: Removed call to UpdateBounds on Form
18351 constructor, it was causing a call to CreateHandle
18352 before it was supposed to.
18353 * PrintControllerWithStatusDialog: Applied patch
18354 by Chris Toshok to hide controller when there are
18355 no printers available.
18356 PrintDialog.cs: initialize printer settings to
18357 null - correct DefaultValues test #5
18358 * PrintPreviewControl.cs: Move PrintController
18359 initialization to GeneratePreview
18360 * PrintPreviewDialog.cs:
18361 - Remove Preview generation from Document_set(). It is
18363 - Throw InvalidPrinterException on CreateHandle if
18364 a Document is set but there are no printers or
18365 printer is not valid.
18366 * ThemeWin32Classic: don't paint PrintPreviewControl
18367 if there is nothing to paint
18369 2006-11-28 Miguel de Icaza <miguel@novell.com>
18371 * Form.cs: Add another popular method.
18373 * TabPage.cs: ditto.
18375 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18377 * MenuItem.cs: Fixed a warning.
18378 * InternalWindowManager: Fixed a warning.
18380 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18383 - When cloning a menu also clone MdiList and clone the
18384 window menu items properly (as the forms and menuitems
18385 are kept in an internal hashtable, these need updating
18387 - Rewrote the window menu code, menu items are added in the
18388 order the forms were added to their parent, and they are
18389 updated every time the window menu is shown (before the
18390 list was only generated once, in the current order of the
18391 forms, and would never be updated). A checkmark is shown
18392 next to the item corresponding to the active mdi child.
18394 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18396 * XplatUIStructs.cs:
18397 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18400 - Added TME_NONCLIENT to TMEFlags.
18401 - Handles WM_NCMOUSEMOVE in GetMessage to
18402 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
18404 * MdiWindowManager:
18405 - Now merges mdi child menu to parent menu when maximized.
18406 - Recalculate NC areas of both mdi child and mdi parent.
18408 on window state and size changes.Fixes #79844 (3).
18409 - Handle WM_NCCALCSIZE to properly calculate borders.
18412 - Add/remove to the mdi containers list of mdi children
18413 in the order they are added.
18414 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
18415 to the maximized mdi child.
18417 * InternalWindowManager.cs:
18418 - Only execute a click on the control buttons on the mouse up,
18419 not on the mouse down. Show the state of the button
18420 (was only showing Normal state, never Pressed state). The
18421 pressed button now follows the mouse (if you click the Close
18422 button and move the mouse over the Maximize button, the
18423 Maximize button will be shown as pressed). Since Win32 does
18424 not generate WM_NCLBUTTONUP if you release the button outside
18425 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
18428 * ThemeWin32Classic.cs:
18429 - Draw a missing border around mdi child forms. Fixes #79844 (2).
18432 - Added a list of forms which contains the order the forms are
18433 added to the mdi parent.
18434 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
18435 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
18436 - If the active form changes set the scrollbars to the top
18437 of the Z order, otherwise the form could hide them.
18438 - Scrollbars are now sized according to ClientSize, not
18439 to Size, and they take into account the other scrollbar
18440 to determine maximum.
18442 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18445 * XplatUIDriver.cs:
18449 - Added RequestAdditionalWM_NCMessages for windows to
18450 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
18451 Currently only implemented in XplatUIWin32.
18453 2006-11-27 Chris Toshok <toshok@ximian.com>
18455 * Hwnd.cs: only add the hwnd to the windows hash in
18456 set_WholeWindow and set_ClientWindow if whole_window/client_window
18457 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
18459 2006-11-27 Mike Kestner <mkestner@novell.com>
18461 * ComboBox.cs: remove redundant OnDropDown call. It is called
18462 from the ComboListBox.ShowWindow code. Fixes #79969.
18464 2006-11-27 Chris Toshok <toshok@ximian.com>
18466 * Hwnd.cs: remove the setters for ExposePending and
18467 NCExposePending - noone uses them.
18469 2006-11-27 Jackson Harper <jackson@ximian.com>
18471 * TextControl.cs: new param for ReplaceSelection which determines
18472 whether we select the new selection, or set the cursor to the end
18473 of the new selection.
18474 * TextBoxBase.cs: Use new param for ReplaceSelection. When
18475 pasting, select the new text.
18476 * RichTextBox.cs: Use new param for ReplaceSelection.
18478 2006-11-27 Jackson Harper <jackson@ximian.com>
18480 * TextBoxBase.cs: Set the selection to the caret after the caret
18481 is moved, otherwise they get out of sync.
18483 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18485 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
18488 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18490 * ThemeWin32Classic.cs:
18491 - Fix toolbar drop down arrow position.
18492 - Fix drop down appearance when ToolBar.Appearance is normal,
18495 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
18497 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
18498 * Control.cs: Same.
18499 * UpDownBase.cs: Same.
18500 * ButtonBase.cs: Same.
18501 * ScrollBar.cs: Same.
18502 * TrackBar.cs: Same.
18503 * PictureBox.cs: Same.
18504 * UserControl.cs: Same.
18506 * ListControl.cs: Same.
18507 * TextBoxBase.cs: Same.
18508 * ListView.cs: Same.
18509 * RichTextBox.cs: Same.
18510 * TreeView.cs: Same.
18512 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
18515 - Text label for where
18516 - Text label comment was not shown
18518 2006-11-23 Everaldo Canuto <everaldo@simios.org>
18520 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
18522 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18524 * InternalWindowManager.cs:
18525 - Handle WM_PARENTNOTIFY to activate the form
18526 if any child control is clicked.
18527 - The form is only sizable if not minimized.
18529 * MdiWindowManager.cs:
18530 - Save the IconicBounds if the form is moved.
18531 - Rework SetWindowState, now the window bounds
18532 are stored only if the old window state is Normal.
18535 - In SetWindowStates store the old window state if
18536 the window is maximized and restore window state if
18537 the window looses focus.
18538 - Don't handle any scrollbar value changes if
18539 initializing the scroll bars. Fixes #79771.
18540 - Reworked ArrangeIconicWindows. Current algorithm
18541 tests bounds agains all other minimized windows, if
18542 any intersections create new bounds (going left to
18543 right, bottom to top) and then test again. When
18544 successful the bounds are saved and never computed
18545 again. Fixes #79774.
18547 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18549 * InternalWindowManager.cs: Added HandleTitleBarUp.
18551 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18553 * NumericUpDown.cs: In .NET 1.1, user entered text is still
18554 hexadecimal in ParseUserEdit.
18557 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18559 * MdiWindowManager.cs:
18560 - Handle a click on the form's icon to show the
18561 system menu (when maximized). Fixes #79775.
18562 - Change the existing click handler for the form's
18563 icon when not maximized to show on MouseUp.
18566 * Form.cs: In OnResize only layout the mdi child's
18567 parent if it actually has a parent. Might not if
18568 the window is closing.
18571 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18573 * MdiClient.cs: Ignore active MDI client for text of parent, if
18574 child has no text set.
18576 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18578 * ToolBar.cs: Fixed ToString to match MS.
18580 2006-11-22 Andreia Gaita <avidigal@novell.com>
18583 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
18584 update inner values on set. Fixes #79966.
18585 - Override OnLostFocus to update value on NET 2. Fixes #79950.
18586 - Fix hexadecimal parsing.
18588 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
18589 parent. Fixes #79957
18591 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18593 * Control.cs: After calling SetWindowsPos in SetBoundsCore
18594 the actual size has to be queried, since if height /
18595 width is negative Win32 changes it to 0.
18596 Fixes #79999 on Windows.
18598 * XplatUIX11.cs: Set height / width to 0 if negative
18599 in SetWindowPos. Fixes #79999 on Linux.
18601 2006-11-22 Everaldo Canuto <everaldo@simios.org>
18603 * ThemeWin32Classic.cs: Fix text redenring when button is
18606 2006-11-22 Everaldo Canuto <everaldo@simios.org>
18608 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
18609 and later navigate by mouse. Fixes #79528.
18611 2006-11-21 Everaldo Canuto <everaldo@simios.org>
18613 * ToolBar.cs: Set default value for TabStop to false in
18614 constructor, it fixes remaining behavior of bug #79863.
18616 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
18618 * MdiWindowManager.cs:
18619 * InternalWindowManager.cs:
18620 - Moved a few methods specific to Mdi from
18621 InternalWindowManager to MdiWindowManager.
18624 2006-11-21 Chris Toshok <toshok@ximian.com>
18626 * XplatUIOSX.cs: stub out InvalidateNC.
18628 * XplatUIWin32.cs: implement InvalidateNC using the call I found
18629 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
18631 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
18633 * XplatUIDriver.cs: add InvalidateNC abstract method.
18635 * XplatUI.cs: add InvalidateNC.
18637 2006-11-21 Everaldo Canuto <everaldo@simios.org>
18639 * ToolBar.cs: Invalidate complete button area when pressed status
18641 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
18642 * ThemeWin32Classic.cs: Increase vertical and horizontal position
18643 by 1 when button is pressed.
18645 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18647 * ToolButton.cs: Invalidate middle of DropDown button when
18648 ToolBar theres DropDownArrows.
18649 * ThemeWin32Classic.cs: Change position of DropDown arrow and
18650 fix DropDown drawing operations.
18652 2006-11-20 Chris Toshok <toshok@ximian.com>
18654 * NativeWindow.cs: fix the formatting of functions ('{' on the
18655 following line), and enable the thread exception dialog.
18657 * Application.cs: remove the duplicate exception catching from
18660 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18662 * Toolbar.cs: Triggers button click event when click on icon
18663 of dropdown ToolBarButton. Fixes #79912.
18665 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18668 * ThemeWin32Classic.cs:
18669 - Added a property WindowBorderFont to enable themeing
18670 of mdi child windows' Text.
18672 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18674 * InternalWindowManager.cs:
18677 * MdiWindowManager.cs:
18678 - If mdi child is maximized, set mdi parent's
18679 text to "Parent - [Child]". Fixes #79770.
18680 - If there is any maximized mdi child windows, only the active
18681 window (and any new windows) is maximized, the rest are normal.
18682 - On a WindowState change only save mdi child's window bounds
18683 if the old window state was normal. Fixes #79774.
18684 - The scroll bars are now calculated on hopefully all
18685 necessary events. Fixed #79771 / #79844->6 / #79906.
18686 - MdiClient.SizeScrollBars() now takes into account docked
18687 controls in the parent when calculating available space.
18688 - InternalWindowManager now always repaints the entire title
18689 area. Fixes #79844->1/4/5.
18690 - Added RequestNCRecalc on mdi child windowstate changes.
18693 2006-11-20 Mike Kestner <mkestner@novell.com>
18695 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
18696 in the MouseUp handler of the listbox and move the return handling
18697 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
18699 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18701 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
18703 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
18705 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
18706 working in 1.2.x anymore. So, updated.
18708 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
18710 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
18711 NumberGroupSeparator of current culture instead of assuming en-US.
18714 2006-11-17 Mike Kestner <mkestner@novell.com>
18716 * Control.cs: Add the concept of implicit bounds setting so that
18717 dock/undock round trips preserve explicitly set size/locations.
18720 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
18722 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
18723 can't handle those filters. (Fixes bug #79961)
18725 2006-11-17 Chris Toshok <toshok@ximian.com>
18727 [ fixes the exit/crashes associated with #79835. it's clearly
18728 suboptimal though, we need to figure out a better way to solve
18731 * PrintPreviewControl.cs: deal with the new invalid printer
18734 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
18735 and return false (so CommonDialog.ShowDialog doesn't actually show
18738 * PrintDialog.cs: enable/disable the Ok button depending on
18739 whether or not the printer is valid.
18741 * CommonDialog.cs (ShowDialog): only actually show the form if
18742 RunDialog returns true.
18744 2006-11-17 Jackson Harper <jackson@ximian.com>
18746 * TextControl.cs: When soft splitting a line, mark it as a soft
18747 split line. Also carry over the current line break to the next
18750 2006-11-17 Chris Toshok <toshok@ximian.com>
18752 * XplatUIX11.cs: when scrolling a window with an invalid area, we
18753 only want to shift the part of the invalid area that overlaps the
18754 area we're scrolling. we also don't want to clear the invalid
18755 area unless the invalid area was entirely contained within the
18758 2006-11-16 Chris Toshok <toshok@ximian.com>
18760 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
18761 also make sure to free the memory returned by XGetWindowProperty
18764 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
18766 2006-11-16 Chris Toshok <toshok@ximian.com>
18768 * XplatUI.cs: add a new super secret way to get at the totally
18769 unsupported X11 backend.
18771 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
18773 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
18775 2006-11-16 Jackson Harper <jackson@ximian.com>
18777 * TreeView.cs: Allow more explicit setting of top node position
18778 for scrollbars. Slower algo, but more accurate.
18779 - CollapseAll should maintain the current top node.
18780 * TextBoxBase.cs: When positioning the caret, use the line, pos
18781 method, since the x, y method does not grab the correct tag, and
18782 the caret height never gets set correctly. (Maybe I should just do
18783 away with the caret having its own height, and always use the
18784 carets current tag for height).
18786 2006-11-16 Jonathan Pobst <monkey@jpobst.com
18788 [Fixes 79778, 79923]
18790 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
18791 Parent to the FosterParent instead.
18793 2006-11-16 Jackson Harper <jackson@ximian.com>
18795 * TreeView.cs: Need to recalc the topnode when we expand or
18796 collapse. The scrolling methods can't handle this on their own,
18797 since they use differences between the last scroll position, and
18798 those difference get completely messed up since we are expanding
18799 nodes. This problem should probably be fixed in the scrolling
18800 methods, so they can figure out exactly where they are, but this
18801 will slow things down a little.
18802 * ThemeWin32Classic.cs: Special case for groupboxes with empty
18803 strings, makes nunit-gui look a lot nicer.
18805 2006-11-16 Chris Toshok <toshok@ximian.com>
18807 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
18808 the broken multithreaded event handling we have in here. File
18809 this entry under "Why we should move to the new X11 backend".
18811 Any thread can make it into UpdateMessageQueue, which gets events
18812 from the X socket - some of which could belong to hwnds being
18813 managed by a different thread. We can also have multiple threads
18814 in UpdateMessageQueue at the same time, with each one reading from
18815 the X socket. This leads to many problems, with the following
18818 We can't use hwnd.Queue.Enqueue anywhere in here and must use
18821 The MotionNotify compression we do can't work across threads
18822 (without locking the entire queue, perhaps) since we call
18823 hwnd.Queue.Peek, so we just punt and don't compress motion events
18824 unless the owning thread is the one which got the X event.
18826 ConfigureNotify is another fun one, since it modifies the hwnd's
18827 bounds and then enqueues the event. We add a lock to Hwnd which
18828 is held when setting configure_pending to true (and enqueuing the
18831 There is a race wrt the wake socket. we need to make sure that
18832 only 1 thread is waiting on that socket, or else a thread could
18833 sleep waiting for data that never comes. It's difficult (but not
18834 impossible) to make happen, because it seems to require something
18835 like the following:
18837 1. Thread 1 polls on wake_receive
18839 2. poll returns saying there's data to be read on
18842 3. Thread 2 polls on wake_receive and immediately returns
18843 saying there's data to be read.
18845 4. Thread 2 reads the wakeup byte from wake_receive
18847 5. Thread 1 attempts to read the wakeup byte from
18850 6. Thread 2 exits (due to a form closing, perhaps).
18852 7. Thread 1 blocks forever.
18856 Fixing the Expose handling isn't done yet, and the races inherent
18857 in that piece of code are responsible for the drawing mistakes you
18858 see when generating expose events in a MT app (like NPlot). This
18859 one is the likely to be the hardest to bandaid, and it doesn't
18860 appear to cause anything but drawing problems. The other issues
18861 caused apps to exit or hang.
18863 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
18864 called from a different thread than the one that should be calling
18867 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
18869 2006-11-15 Chris Toshok <toshok@ximian.com>
18871 * Application.cs: null out the context's MainForm when we exit
18872 RunLoop. Fixes a newly checked in unit test as well as the last
18873 ODE from bug #79933.
18875 2006-11-15 Chris Toshok <toshok@ximian.com>
18877 * Form.cs (set_Owner): allow a null value so we can clear the
18879 (Dispose): set all our owned_form's Owner properties to null, and
18880 clear the owned_forms collection.
18881 (WM_CLOSE): clean up this a little bit.. still not right though.
18883 * ApplicationContext.cs: OnMainFormClosed should only call
18884 ExitThreadCore if the main form isn't recreating. Fixes unit
18887 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
18891 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
18893 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
18897 * Hwnd.cs: Add a flag to show a window, but not activate it, to
18898 keep popup window types from stealing focus from the main form
18901 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
18903 * MenuAPI.cs: Set above flag to true.
18905 2006-11-15 Chris Toshok <toshok@ximian.com>
18907 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
18908 the button being released is not in wParam.
18910 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
18912 * Form.cs: Add the released button to MouseEventArgs.Button
18913 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
18916 2006-11-15 Chris Toshok <toshok@ximian.com>
18918 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
18919 GetText(). untested because it's unused in our implementation.
18920 Control.Text always caches the text, even if
18921 ControlStyles.CacheText is not set.
18925 2006-11-15 Chris Toshok <toshok@ximian.com>
18929 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
18930 message. no hiding, no disposing.
18932 in the WM_CLOSE handler, hide the form if it's modal.
18934 2006-11-15 Chris Toshok <toshok@ximian.com>
18936 * XplatUIX11.cs: use AddExpose instead of sending a message.
18937 fixes textbox border drawing.
18939 2006-11-15 Chris Toshok <toshok@ximian.com>
18941 * PropertyGridView.cs: keep from crashing on mouse move/down when
18942 the property grid is empty.
18944 2006-11-14 Jackson Harper <jackson@ximian.com>
18946 * TextControl.cs: Make PageUp and PageDown more like the MS
18948 * TextBoxBase.cs: When we set the text property position the
18949 cursor at the beginning of the document.
18951 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
18953 * Form.cs: if a mdi child's WindowState has changed
18954 before it's creation, it would display wrong control
18957 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
18959 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
18962 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
18964 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
18965 the window gets to paint its borders even if the window is
18968 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
18969 otherwise the old control buttons would still be painted
18970 if the window gets bigger.
18972 * PaintEventArgs.cs: add an internal method so that the clip
18973 rectangle can be changed.
18975 2006-11-13 Chris Toshok <toshok@ximian.com>
18977 [ fixes bug #79745 ]
18979 * NotifyIcon.cs: lots of cleanup.
18981 * X11Structs.cs: add an enum for XEMBED messages.
18983 * XplatUIX11.cs: reindent one of the giant switch statements, it
18984 was taking up an additional tab stop, and this file is already way
18985 too wide for my laptop's screen.
18987 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
18988 we get it, resize the hwnd to the WMNormalHints max_width/height.
18990 2006-11-13 Jackson Harper <jackson@ximian.com>
18992 * TextBoxBase.cs: Compute the value changes for the mouse wheel
18995 2006-11-13 Chris Toshok <toshok@ximian.com>
18997 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
18998 #79898. force a reference to the Region to stick around so the
18999 unmanaged object isn't collected (rendering our handle in the MSG
19002 2006-11-13 Chris Toshok <toshok@ximian.com>
19004 * XplatUIX11.cs: fix #79917 for window managers which support
19006 using XStoreName on the raw utf8, and we need to convert to
19007 COMPOUND_TEXT if it's non-latin1.
19009 2006-11-13 Chris Toshok <toshok@ximian.com>
19011 * Form.cs (set_DialogResult): we need to set closing to false if
19012 we're setting our result to None. fixes bug #79908.
19014 2006-11-13 Jackson Harper <jackson@ximian.com>
19016 * TextControl.cs: When formatting text, compute the adjusted tag
19017 lengths correctly, using FindTag for the end tag instead of trying
19018 to figure it out outselves.
19019 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19020 the item, ItemHeight doesn't work, because trees with large
19021 imagelists use those for their height
19022 * TreeView.cs: ActualItemHeight factors in the image height
19023 - compute left edge of checkboxes correctly
19024 - when expanding/collapsing move the bottom down one pixel, so we
19025 aren't moving part of the node
19027 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19029 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19030 stack in PaintEventStart so that it won't get disposed by the gc
19031 before reaching PaintEventEnd.
19033 2006-11-13 Jackson Harper <jackson@ximian.com>
19035 * TextBoxBase.cs: Don't select the word if we are on a line with
19037 - We don't need to position the caret on mouse up, since the mouse
19038 move handler should be doing this
19039 - When double clicking a blank line, the caret is advanced to the
19042 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
19044 * TreeNodeCollection.cs: Avoid duplicating indexer code.
19046 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
19048 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19049 Fixes part of bug #79910.
19051 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
19053 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19054 (bug #79903). Some minor string updates to match ms.
19056 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19058 * FileDialog.cs: Don't add an extension if the filename
19059 already ends with that extension.
19061 2006-11-10 Jackson Harper <jackson@ximian.com>
19063 * TreeView.cs: Use the currently highlighted node for the
19064 BeforeSelect event.
19065 * TextBoxBase.cs: There is no need to expand selection on
19067 - CanUndo means 'is there any undo operations', not 'is undo
19068 allowed on this textcontrol. Fixed ClearUndo unit test.
19070 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
19072 * Button.cs: only perform click when button is Selectable (so as
19073 not to activate default buttons when they're disabled)
19075 * Control.cs: Rewrite of the SelectNextControl and related
19076 methods. HandleClick now selects next control if the current one
19079 * Form.cs: OnActivated selects next active control only if Load
19080 has already occurred. If Load hasn't run, there's no point in
19081 selecting here, Load might change the state of controls.
19083 * FocusTest.cs: Tests marked as working again for these fixes
19085 2006-11-10 Chris Toshok <toshok@ximian.com>
19087 * XplatUIX11.cs: a couple of fixes.
19089 - use XInternAtoms with almost all the atoms we need to register,
19090 instead of many, many calls to XInternAtom. should help a bit on
19091 startup time, at the expense of making the code look a little
19094 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19095 isn't reparented (which seems to be a clue that we're running fon
19096 compiz) and they have an Owner form. This fixes the tool windows
19097 in paint.net when running under compiz.
19099 - when setting the opacity of a window, support both the case
19100 where the window has been reparented and also when it hasn't been.
19101 Since compiz/beryl doesn't seem to reparent windows, and these are
19102 the only window managers which support translucency, I'm not sure
19103 why we need the hwnd.reparented case at all.. but leave it in.
19104 now we get translucent windows in paint.net under compiz/beryl.
19106 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19108 * FileDialog.cs: Always return the value for FilterIndex that
19109 was set. Internally convert it to values that make sense.
19111 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19113 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19115 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19117 * Toolbar.cs: Change default value of DropDownArrows to true, the
19118 signature still using false to make it compatible with MS but the
19119 initial value is true. Fixes #79855.
19121 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19123 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19124 only available on Linux.
19126 2006-11-09 Everaldo Canuto <everaldo@simios.org>
19128 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19129 reduce number of calls to redraw method during toolbar creation.
19131 2006-11-09 Mike Kestner <mkestner@novell.com>
19133 * ListView.cs : raise SelectedIndexChanged when an item is selected
19134 programmatically via the Item.Selected property. Gert's nice
19135 ListViewSelectedIndexChanged test fixture now runs clean.
19137 2006-11-09 Mike Kestner <mkestner@novell.com>
19139 * ListView.cs : raise SelectedIndexChanged when a selected item is
19140 removed from the item collection using Remove or RemoveAt.
19142 2006-11-09 Mike Kestner <mkestner@novell.com>
19144 * ListView.cs : raise SelectedIndexChanged once per selected item
19145 for compat with MS. Fixes #79849+.
19147 2006-11-09 Chris Toshok <toshok@ximian.com>
19149 * TabControl.cs: initialize row_count to 0, and set it to 1 when
19150 we need to (if we have any tab pages). Fixes unit test.
19152 2006-11-09 Chris Toshok <toshok@ximian.com>
19154 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19155 width is 0, not 3. Fixes a unit test.
19157 2006-11-09 Mike Kestner <mkestner@novell.com>
19159 * ListView.cs : use Implicit scrollbars so that focus isn't
19160 stolen from the listview when they are clicked. Fixes #79850.
19162 2006-11-09 Chris Toshok <toshok@ximian.com>
19164 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19165 have a root item. Fixes #79879.
19167 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
19171 - An ArgumentException is now thrown if a wrong filter
19172 is applied (matches ms). The previous filter doesn't change
19173 anymore if an exception is thrown.
19174 - Changing the FileName property also affects FileNames
19175 * ColorDialog.cs: The length of the CustomColors array is always
19176 16. It doesn't matter if we use a smaller array or null to update
19177 or change the custom colors property.
19178 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19179 for RootFolder if we get a undefined value.
19181 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19183 * StatusBarPanel.cs:
19184 - Width is set to MinWidth if Width is smaller than
19185 MinWidth. Fixes #79842.
19186 - MinWidth now always overrides Width (MSDN says MinWidth
19187 is set to Width when AutoSize = None, but they do not
19189 - Style has now the the correct default value.
19191 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19194 - The control is completely invalidated on
19195 Got/LostFocus to draw the focus rectangle correctly.
19196 - When AutoSize then height is always 45 (width for
19197 vertical controls).
19199 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19200 on the mouse when moved and it doesn't move when grabbed
19201 until the mouse moves as well. Also fixed some wrong
19202 calculations when clicking on the thumb (control thought
19203 click was outside of thumb and didn't grab it).
19204 Fixes some of the issues in #79718.
19206 2006-11-08 Everaldo Canuto <everaldo@simios.org>
19208 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19210 2006-11-08 Chris Toshok <toshok@ximian.com>
19212 * PropertyGridView.cs: only call ToggleValue if the item is not
19215 2006-11-08 Jackson Harper <jackson@ximian.com>
19217 * TextBoxBase.cs: The RichTextBox and textbox have very different
19218 word selection methods. Implement the textbox's simple word
19219 selection here, and let the RichTextBox override and provide it's
19221 - Don't do extra selection on mouseup
19222 * RichTextBox.cs: Use the documents word selection algorithm, I
19223 think ideally, this function will be pulled into the
19224 RichTextBox.cs code someday.
19226 2006-11-08 Chris Toshok <toshok@ximian.com>
19228 * RootGridEntry.cs: new class to represent GridItemType.Root.
19230 * CategoryGridEntry.cs: reformat, and add boilerplate.
19232 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19233 returns the UI parent anyway, and we need special handling to
19234 implement the GetTarget method in the face of it. Also, implement
19237 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
19238 a root grid item, and use that instead of PropertyGrid.grid_items.
19239 Also, make use of TypeConverters (and add limitted support for
19240 ICustomTypeDescriptors) when initially populating the grid.
19241 Arrays now show up more or less properly.
19243 2006-11-08 Chris Toshok <toshok@ximian.com>
19245 * Application.cs: set the modal dialog to non modal after we close
19246 it. Fixes bug #79866.
19248 2006-11-08 Jackson Harper <jackson@ximian.com>
19250 * TextControl.cs: When combining lines carry over the line end
19251 style from the end line.
19252 - Invalidate the selected area when setting it, if it is visible.
19253 * TextBoxBase.cs: Only rich text box can do full line selects.
19254 - Make sure to set the cursor position when there is a click,
19255 otherwise two clicks in separate areas could cause a large chunk
19258 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19260 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
19263 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19265 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19266 time. Remove tooltips when ToolButton click events. Fixes #79856.
19268 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19270 * MenuAPI.cs: Ignore right click for menu actions and fixes
19271 menu border when clicked. Fixes #79846.
19273 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19275 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19276 MouseState after create wParam for message, this fixes mouse button
19277 equal none in mouse up events.
19279 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
19281 * Control.cs : Focus() now calls Select to set the Container's
19282 Active Control and to give it focus. To avoid infinite recursion
19283 (because ActiveControl also calls Focus at one point), a check
19284 is made in Focus with the help of a new internal variable
19287 2006-11-07 Mike Kestner <mkestner@novell.com>
19289 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19290 if there's a selection. Fixes #79849.
19292 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
19294 * PropertyGrid.cs: Avoid fixed height of help description label.
19295 Fixes part of bug #79829.
19297 2006-11-07 Chris Toshok <toshok@ximian.com>
19299 * XplatUIX11.cs: fix #79790 again, by using the
19300 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19302 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19304 * ToolBar.cs: Fix left click checking.
19306 2006-11-07 Chris Toshok <toshok@ximian.com>
19308 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
19310 2006-11-07 Chris Toshok <toshok@ximian.com>
19312 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
19313 PropertyManager unit tests.
19315 * PropertyManager.cs: make property_name internal.
19317 2006-11-07 Chris Toshok <toshok@ximian.com>
19319 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19320 pass a unit test. Also, don't set image_index to anything in
19321 response to setting the ImageList property.
19323 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19325 * ToolBar.cs: Ignore click events when mouse button is not a
19326 left button, only accepts other button for dropdown menus.
19329 2006-11-07 Chris Toshok <toshok@ximian.com>
19331 * DataGrid.cs: make the back and parent row buttons a little less
19334 2006-11-07 Jackson Harper <jackson@ximian.com>
19336 * TextBoxBase.cs: When converting to Text don't put line breaks in
19337 for soft line breaks.
19338 * TextControl.cs: There is an initial "fake" line in the document,
19339 this is now a soft break line, so that an extra line feed doesn't
19340 get added to the end of documents.
19342 2006-11-07 Chris Toshok <toshok@ximian.com>
19346 * CurrencyManager.cs: if the list is readonly, don't bother
19347 checking if IBindingList.AllowNew is true.
19349 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19350 for non-DataRowView datasources.. or rather, make it not crash.
19351 (DataGridPaintRelationRow): make sure we limit the row painting to
19352 the area not covered by the row header, and make our cell width at
19353 least large enough to cover the relation area. This allows grids
19354 that have relations but no rows to render correctly.
19355 (DataGridPaintRowContents): same type of changes here.
19356 (SetDataSource): move back to always calling
19357 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
19358 navigating back through relations.
19359 (HitTest): handle the case where we have no cells but have
19360 relations. Right now we generate a hit in cell 0 of whatever the
19361 row is, not sure if this is strictly correct, but it works for our
19364 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19365 bother doing anything.
19367 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
19369 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19370 early version of StatusStrip. Not responsible for eaten
19371 application or firstborn children.
19373 2006-11-06 Chris Toshok <toshok@ximian.com>
19375 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19376 call GetTabRect with a -1 index. Fixes #79847.
19378 2006-11-06 Jackson Harper <jackson@ximian.com>
19380 * TreeNodeCollection.cs: Update scrollbars after clearing.
19382 2006-11-06 Chris Toshok <toshok@ximian.com>
19384 * NumericUpDown.cs: fix the ToString method for some unit test
19387 2006-11-06 Chris Toshok <toshok@ximian.com>
19390 - set the initial SelectedGridItem if we can.
19392 - Exclude non-mergable properties only if we're merging > 1
19393 object. Merging 1 object isn't really merging, obviously.
19395 - Handle PropertySort.NoSort just like Alphabetical, which is
19396 wrong of course, but at least gets things on the screen.
19398 * PropertyGridView.cs:
19399 - Add method "FindFirstItem" which finds the first property grid
19400 item, so we can select it by default.
19402 - make use of GridEntry.CanResetValue.
19404 - Don't call RedrawBelowItemOnExpansion here anymore, the
19405 individual GridEntry's will do that.
19407 - Remove the ITypeDescriptorContextImpl internal class.
19410 - this class needs to implement ITypeDescriptorContext, as it's
19411 what MS's PropertyDescriptorGridEntry does, which means we can
19412 remove the ITypeDescriptorContextImpl internal class from
19413 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
19415 - keep a reference to our PropertyGridView, and move the call to
19416 RedrawBelowItemOnExpansion here from PGV. This means
19417 programmaticly setting Expanded actually does something visible.
19419 - add a CanResetValue() function which takes into account our
19420 possibly multiple "selected_objects" in the merged case. Shifting
19421 PropertyGridView to use this method fixes another unreported
19422 crasher found running the test for #79829.
19424 - when Top or Bounds is updated, make sure the PropertyGridTextBox
19425 is updated to reflect this.
19427 * CategoryGridEntry.cs: the ctor takes the PGV now.
19429 2006-11-06 Jackson Harper <jackson@ximian.com>
19431 * TextControl.cs: These are 1 based.
19432 * TextBoxBase.cs: When setting the selected text, don't change the
19433 selected text tags, this is done by ReplaceText, just position the
19434 cursor at the end of the new text.
19436 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19438 * ListView.cs: Allow label edit only when, when LabelEdit is
19441 2006-11-06 Jackson Harper <jackson@ximian.com>
19443 * TextControl.cs: If a suitable wrapping position isn't found,
19444 just wrap right in the middle of a word.
19446 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19448 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
19451 2006-11-06 Jackson Harper <jackson@ximian.com>
19453 * TreeView.cs: Can't use the VisibleCount property when setting
19454 scrollbar heights, because this doesn't take into account whether
19455 or not the horz scrollbar just came visible.
19457 2006-11-05 Everaldo Canuto <everaldo@simios.org>
19459 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
19460 activated. Fixes #79369, #79832.
19462 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
19464 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
19465 had to remove support for links that point to a directory. FileInfo
19466 returns no usefull information (means, the directory they point to)
19467 for such links. Replaced some empty string ("") with String.Empty.
19469 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19471 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
19472 NullReferenceException when attempting to remove node that is not in
19473 collection. Throw NullReferenceException when null is passed to
19474 Remove. Allow first element of the collection to be removed. Fixes
19475 bug #79831. In GetEnumerator ().Current return null if positioned
19476 before the first element of the collection. In GetEnumerator ().Reset,
19477 position before first element of the collection.
19479 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19481 * PropertyGrid.cs: To match MS, remove default title and description
19482 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
19485 2006-11-04 Chris Toshok <toshok@ximian.com>
19487 * Theme.cs: add a Clamp method, just for kicks.
19489 * ThemeWin32Classic.cs: clamp all color components to [0..255].
19491 2006-11-04 Chris Toshok <toshok@ximian.com>
19493 * Form.cs: if the form isn't visible, Close() does nothing.
19495 2006-11-03 Chris Toshok <toshok@ximian.com>
19497 * Form.cs (Close): if the form is modal, don't Dispose of it, only
19499 (WndProc): don't Dispose after handling the WM_CLOSE message.
19501 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
19502 them as such, instead of using casts from Control to Form. Also,
19503 don't Dispose of the modal dialog when we fall out of the loop -
19504 Close() it instead.
19508 2006-11-03 Chris Toshok <toshok@ximian.com>
19510 * Control.cs (Dispose): only go through the dispose thing if we're
19511 @disposing, and we haven't already been disposed. Fixes bug
19514 * Form.cs: no reason to call "base.Dispose()" here instead of
19517 2006-11-03 Mike Kestner <mkestner@novell.com>
19519 * ComboBox.cs : use ToString instead of casts in AddItem for
19520 sorting functionality. Fixes #79812.
19522 2006-11-03 Chris Toshok <toshok@ximian.com>
19524 * Application.cs: pave the way for actually using the thread
19525 exception dialog. it's ifdefed out at the moment.
19527 2006-11-03 Chris Toshok <toshok@ximian.com>
19529 * ThreadExceptionDialog.cs: until we get a better layout, actually
19530 hide the details textbox and label when we shouldn't see them.
19532 2006-11-03 Jackson Harper <jackson@ximian.com>
19534 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
19535 multiline textboxes anymore. This method also determines the
19536 width/height of a textboxes canvas area.
19537 - Sorta a revert of the last patch. For multiline just position
19538 the controls, then bail. This way the scrollbar width won't be
19541 2006-11-03 Everaldo Canuto <everaldo@simios.org>
19543 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
19544 it dont need. Fixes #79537.
19546 2006-11-02 Jackson Harper <jackson@ximian.com>
19548 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
19549 send the status after firing the DndOver event.
19551 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
19553 * TrackBar.cs: Now orientation only switches height / width if
19554 the control's handle is created (Win32 does it like this). Also
19555 fixed a typo in ToString() for a test to pass, changed the
19556 exception thrown in set_LargeChange and set_SmallChange to
19557 match Win32 behaviour, and added TrackBar tests to the unit
19560 2006-11-02 Chris Toshok <toshok@ximian.com>
19562 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
19563 not _NET_WM_STATE_NO_TASKBAR.
19565 2006-11-02 Jackson Harper <jackson@ximian.com>
19567 * TextControl.cs: Increment count by one, since in the update view
19570 2006-11-02 Jackson Harper <jackson@ximian.com>
19572 * TextBoxBase.cs: Use client rectangle not bounds for checking if
19573 the mouse is in the client rectangle (duh).
19575 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
19577 * TrackBar.cs: Fixed trackbar jumping around when clicking
19578 on it - the trackbar was not detecting correctly at which
19579 side of the thumb the click was done. (fixes #79718)
19581 2006-11-02 Everaldo Canuto <everaldo@simios.org>
19583 * ListBox.cs: scroll visible area when change SelectedIndex to
19584 a non visible area. Fixes #79481.
19586 2006-11-01 Jackson Harper <jackson@ximian.com>
19588 * TextControl.cs: When replacing the selection move the selection
19589 start/end/anchor to the end of the new text.
19591 2006-11-01 Jackson Harper <jackson@ximian.com>
19593 * XplatUIWin32.cs: When setting the parent change the controls
19594 visibility to it's visibility flag, not to it's old parents
19595 visibility (.Visible walks the parent chain).
19597 2006-11-01 Chris Toshok <toshok@ximian.com>
19599 * XplatUIX11.cs: revert the #79790 fix, as the simple.
19600 XSetTransientForHint fix breaks paint .net's tool windows. more
19601 work needed for that one.
19603 2006-11-01 Chris Toshok <toshok@ximian.com>
19605 * ScrollBar.cs: throw ArgumentException instead of Exception in
19606 LargeChange/SmallChange setters. fixes unit tests.
19608 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
19610 * ContainerControl.cs: reverted rev.67183 (which was itself
19611 a reversion of rev.66853... eh).
19613 * Control.cs: Fixes Reflector hang by changing Focus() call
19614 to what it was before rev.66643 (calling Select() here sets
19615 ActiveControl, which in some situations calls back Focus and
19616 eventually does a stack overflow). Temp fix.
19617 Changes to GetNextControl() to not look for children to select when
19618 parent cannot be selectable (so it looks for siblings instead)
19620 2006-10-31 Mike Kestner <mkestner@novell.com>
19622 * CheckedListBox.cs : off by one error in returned index from
19623 ObjectCollection.Add. Fixes #79758.
19625 2006-10-31 Chris Toshok <toshok@ximian.com>
19627 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
19628 calls for the textbox/spinner, to keep from recursing to the point
19629 where we crash. Fixes #79760.
19631 2006-10-31 Chris Toshok <toshok@ximian.com>
19633 * ListControl.cs (set_SelectedValue): don't throw exceptions on
19634 null/"" value, just return. matches ms's behavior and fixes some
19637 2006-10-31 Chris Toshok <toshok@ximian.com>
19639 * Control.cs (set_Capture): make a logic a little easier to
19642 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
19643 if it's being destroyed. A necessary fix surely, but a bandaid
19644 also, to fix the stuck capture problem in bug #78413.
19646 2006-10-31 Chris Toshok <toshok@ximian.com>
19648 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
19649 convention of clearing hwnd.ClientRect when we set the
19650 width/height (so it'll be recalculated by Hwnd).
19652 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
19654 * ContainerControl.cs: reversed Contains check from
19655 ActiveControl due to hanging problems. This fix
19656 partly regresses #79667 (button does not have
19657 initial focus), so this might be a symptom for
19658 a larger parenting problem (set_ActiveControl
19659 is being called but the child control does
19660 not have the parent set yet?)
19662 2006-10-31 Mike Kestner <mkestner@novell.com>
19664 * MenuAPI.cs : fix keynav when menu is click activated.
19666 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
19668 * ToolStrip*: Version 0.2.
19670 * MenuStrip.cs: Version 0.1.
19672 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
19674 2006-10-30 Chris Toshok <toshok@ximian.com>
19676 [ fixes the oversized notify icon issue in bug #79745 ]
19678 * NotifyIcon.cs: scale the icon down to the size we're given by
19679 the XplatUI layer (this would be faster if we did it once instead
19680 of whenever we paint..) Also, remove the WM_NCPAINT handling,
19681 since it's never invoked.
19683 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
19684 pixels high by default, so let's hardcode our systray icon to that
19685 size. The SYSTEM_TRAY protocol should really have a way for
19686 client apps to query for the correct icon size.. but oh well. A
19687 couple of patches to deal with the screwy client_window ==
19688 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
19689 instance, and also make sure we don't XSelectInput twice).
19691 2006-10-30 Chris Toshok <toshok@ximian.com>
19693 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
19694 recreating forms. Control recreation is the bane of my existence.
19695 Fix it in a way that keeps everyone happy.
19697 2006-10-30 Chris Toshok <toshok@ximian.com>
19699 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
19700 just non-CHILD ones. otherwise sometimes scrollbars end up with
19701 client_windows not being resized to the proper size (ReportBuilder
19702 shows this extremely well).
19704 2006-10-30 Chris Toshok <toshok@ximian.com>
19706 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
19707 for non-WS_EX_APPWINDOW windows. This is what keeps them from
19708 showing up in the gnome taskbar. Fixes bug #79790.
19710 2006-10-30 Chris Toshok <toshok@ximian.com>
19712 * ApplicationContext.cs: guard against a NRE.
19714 * Application.cs: null out the old MainForm for the context, so we
19715 don't try to use it again once it's disposed. Fixes bug #79783.
19717 2006-10-30 Chris Toshok <toshok@ximian.com>
19719 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
19720 BindingContext, set the data source directly, otherwise do the
19721 lazy approach - the actual ListManager will be created when we get
19722 a BindingContext. Fixes bug #79700.
19724 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
19726 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
19727 XplatUIX11.cs: Remove old 2 parameter SetVisible.
19729 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
19731 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
19733 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
19734 of SetVisible that allows a window to be shown, but not activated.
19735 This is needed on Windows for MenuStrip, and can probably be used
19736 with MainMenu and ComboBox to fix the focus stealing issues on
19739 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
19741 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
19743 * PictureBox.cs: Fix the output of the ToString method.
19745 2006-10-29 Chris Toshok <toshok@ximian.com>
19747 * Control.cs (get_TopLevelControl): fix bug #79781.
19749 2006-10-29 Chris Toshok <toshok@ximian.com>
19751 * ListControl.cs (set_DataSource): throw Exception here, not
19752 ArgumentException, to match MS behavior.
19754 2006-10-29 Chris Toshok <toshok@ximian.com>
19756 * Form.cs: remove the try-catch's around calls to GetWindowState.
19757 We can just check the return value.
19759 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
19762 * XplatUI.cs: Add note about additional return value for
19765 2006-10-29 Chris Toshok <toshok@ximian.com>
19767 * Control.cs (CreateHandle): when we create our handle, we also
19768 create the handles of our child controls. Fixes one of the
19769 Control unit tests (CH11).
19771 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
19773 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
19775 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
19777 * ThemeClearlooks.cs: A little speedup.
19779 2006-10-27 Chris Toshok <toshok@ximian.com>
19781 * Control.cs: implement Control.FromChildHandle in a way that
19782 matches the docs (and fixes the failed test.)
19784 2006-10-27 Chris Toshok <toshok@ximian.com>
19786 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
19789 * DataGrid.cs: implement ResetForeColor such that the tests
19792 2006-10-27 Chris Toshok <toshok@ximian.com>
19794 * ToolBarButton.cs: setting text/tooltiptext to null results in it
19795 being set to "". Fixes bug #79759.
19797 2006-10-27 Jackson Harper <jackson@ximian.com>
19799 * TextControl.cs: We need to clear the entire selection area when
19800 setting the start, otherwise multiline selections are still
19803 2006-10-26 Chris Toshok <toshok@ximian.com>
19805 * PropertyGridView.cs:
19807 - ifdef all the code specific to the double
19808 buffer case, and provide some alternatives in the non-doublebuffer
19809 code, which makes heavy use of XplatUI.ScrollWindow to move things
19810 around without having to invalidate (and cause flicker). There
19811 are still some drawing problems in the non-doublebuffered case, so
19812 DOUBLEBUFFER is defined by default.
19814 - Fix the way dropdowns are handled. now we explicitly watch for
19815 the events which might cause the dropdown to close, and break out
19816 of the nested event loop there. This gets rid of all Capture
19817 code, at the expense of the Msg special casing. Seems to work,
19818 though, and fixes bug #79743.
19820 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
19821 * Control.cs: SetIsRecreating now recreates implicitly added
19822 child controls as well. Finally fixes #79629. The flag passed to
19823 SetIsRecreating has also been removed since it wasn't used.
19825 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19827 * PageSetupDialog.cs: Clean some code, fix some bits,
19828 add some checks, and add a printer sub-dialog.
19830 2006-10-26 Chris Toshok <toshok@ximian.com>
19832 * PropertyGrid.cs: make set_SelectedObject call
19833 set_SelectedObjects, and move the duplicate logic to the
19834 SelectedObjects setter. Also, raise SelectedObjectsChanged.
19836 * PropertyGridView.cs: hide the textbox when we get a
19837 SelectedObjectsChanged event.
19841 2006-10-26 Chris Toshok <toshok@ximian.com>
19843 * PropertyGridView.cs: deal with the type converter not supporting
19844 GetStandardValues() or GetStandardValues() returning null, which
19845 is does in the default case. Fixes #79742.
19847 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
19849 * CheckedListBox.cs: nunit no longer crashes when selecting
19850 Project/Edit menu option
19852 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
19854 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
19855 is no menu selected. fixes #79739
19857 2006-10-25 Chris Toshok <toshok@ximian.com>
19859 * PropertyGridView.cs: factor out the splitter invalidation code
19860 into the SplitterPercent setter, and for kicks implement the
19861 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
19862 amount in either direction.
19864 2006-10-25 Chris Toshok <toshok@ximian.com>
19866 * PropertyGridView.cs: do some cleanup of the brush used to draw
19867 text - read only fields should be grayed out. not sure how to do
19868 this with the textbox, though. but the textbox's should also be
19869 readonly now at least. Also, hide/show the textbox when resizing
19872 * CursorConverter.cs: use System.Reflection when getting the
19873 properties of Cursors, as TypeDescriptor.GetProperties isn't
19874 returning static properties.
19876 2006-10-25 Chris Toshok <toshok@ximian.com>
19878 * PropertyGridView.cs: factor out the up/down handling, and reuse
19879 it for page up/down. also add End/Home support.
19881 2006-10-25 Chris Toshok <toshok@ximian.com>
19883 * PropertyGridView.cs:
19885 - ensure the selected grid item is visible in the scrolled area,
19888 - fix Keys.Down handling when you're on the last item in the
19891 2006-10-25 Mike Kestner <mkestner@novell.com>
19893 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
19894 clicks too. Fixes #79725.
19896 2006-10-24 Chris Toshok <toshok@ximian.com>
19898 * PropertyGrid.cs: use property.Converter instead of
19899 TypeDescriptor.GetConverter(property.PropertyType), so we catch
19900 TypeConverters declared on the property as well as on the
19901 PropertyType. Fixes bug #79678.
19903 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
19905 * MimeIcon.cs, Mime.cs:
19906 Fallback to the default platform handler if no shared mime info
19907 stuff exists (fixes #79693).
19909 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19910 * ContainerControl.cs: Incorrect contains check in ActiveControl
19911 from previous fix (duh).
19913 2006-10-20 Chris Toshok <toshok@ximian.com>
19915 * PropertyGridView.cs: the dropdown should be MIN(number of items
19916 in list, 15). Fixes #79551.
19918 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19919 Fixes #79384, #79394, #79652, #79667
19922 - Modal windows are now destroyed in the proper order for windows
19924 * ContainerControl.cs:
19926 - ActiveControl setter has more conditions on when to return:
19927 - if we're reselecting the active control, but it actually
19928 didn't have focus (window hidden or some such), it runs
19929 - if the active control being selected doesn't actually
19930 exist in the container, it returns
19934 - The ShowDialog now gets the current form as the owner when
19935 invoking without parameters, and correctly activates the owner
19940 - MessageBox now catches the Escape key to exit
19942 2006-10-20 Chris Toshok <toshok@ximian.com>
19944 * PropertyGridView.cs: fix a number of issues (bug #78565, and
19945 most of bug #79676):
19947 - you can navigate around the property grid with the arrow keys.
19949 - the dropdown is sized properly when the pg has a vertical
19952 - fix the indentation for subentries, and properly select the
19955 - fix the gray bar's drawing (only draw it to the last element,
19956 not for the height of the control. Also make sure we draw that
19957 last horizontal grid line.
19959 - use the same mechanism the datagrid uses wrt the editing textbox
19960 when scrolling/resizing/etc. Namely, we hide it first, do the
19961 operation, then show it again (if it's still visible).
19963 - aggressively remove a lot of unnecessary refreshes (and also
19964 calls to Invalidate(). call more limited variants, and only redraw
19969 - when we're populating the merged collection, fill in the UI
19970 parent with either the passed in item, or the category item we
19973 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
19975 * GridItem.cs: drop some fully qualified names.
19977 * GridEntry.cs: add a "UIParent", which is basically the parent
19980 * GridItemCollection.cs: add an IndexOf method.
19982 2006-10-20 Mike Kestner <mkestner@novell.com>
19984 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
19985 a working win32 NC invalidation mechanism, we can't invalidate
19986 menus. [Fixes #79705]
19988 2006-10-20 Mike Kestner <mkestner@novell.com>
19990 * ListBox.cs : don't update the VScrollbar if the list is empty,
19991 just hide it. [Fixes #79692]
19993 2006-10-20 Jackson Harper <jackson@ximian.com>
19995 * RichTextBox.cs: Handle some special chars better, and don't skip
19996 the entire group when we encounter a special char that we don't
19999 2006-10-18 Chris Toshok <toshok@ximian.com>
20001 * PropertyGridView.cs: address a number of issues from bug #79676,
20002 mostly of the cosmetic variety.
20004 - The highlight rectangle for indented items not extends all the
20007 - Indented items aren't indented so much.
20009 - the dropdown is properly sized width-wise if the pg has a
20010 vertical scrollbar.
20012 2006-10-18 Chris Toshok <toshok@ximian.com>
20014 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20015 systray stuff is rather convoluted to begin with.
20017 systray icons are a single window for some reason (that I haven't
20018 figured out yet), and for them, client_window == whole_window.
20019 Given the way the tests are structured elsewhere to determine
20020 which paints are pending (client vs. nc), that situation will
20021 always yield PAINT, not NCPAINT. So, if we have a pending
20022 nc_expose and no pending expose, remove the hwnd from the paint
20023 queue, and also set nc_expose_pending to false, to keep us from
20024 blocking further expose's adding the hwnd to the paint queue.
20026 phew. like i said, a rather convoluted change. Fixes the
20027 notifyicon repaint issues in bug #79645.
20029 2006-10-18 Chris Toshok <toshok@ximian.com>
20031 * Form.cs: when getting the backcolor of the form, don't get
20032 base.BackColor, as this allows parents to influence the background
20033 color. This breaks mdi forms. Instead, if the background_color
20034 is empty, return the default.
20036 2006-10-18 Chris Toshok <toshok@ximian.com>
20038 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20039 to being private instead of internal static.
20041 * Control.cs: remove all the stupid ParentWaitingOnRecreation
20042 crap, it wasn't working for more deeply nested controls anyway,
20043 and we already have the is_recreating flag - use that instead.
20044 Before calling DestroyHandle in RecreateHandle, recurse through
20045 the control tree setting it to true. this returns the recreate
20046 code to much of its original simplicity, while now guaranteeing we
20047 actually recreate everything we're supposed to. This change gets
20048 fyireporting actually showing mdi children.
20050 2006-10-17 Chris Toshok <toshok@ximian.com>
20052 * Form.cs: remove some debug spew, and collapse some duplicate
20053 code at the end of SetClientSizeCore.
20056 - add some more debug spew here too wrt Destroy handling.
20057 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20058 in Control's handling of WM_DESTROY.
20059 - Remove the handling of zombie window DestroyNotifies from the
20060 event loop - we don't need it. Now the only DestroyNotifies we
20061 actually handle are ones generated by X.
20062 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20063 match gtk's (functioning) handling of this. This keep metacity
20064 from leaving droppings in the form of wm borders with no window
20065 contents all over the place.
20068 - add a bunch of debug spew wrt control recreation.
20069 - fix a bug where we weren't tracking Visible properly on
20071 - fixed the WM_PAINT double buffer handling to support re-entrant
20072 calls (yes, i know it's gross, but it's happening to us).
20074 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20075 * ThemeWin32Classic.cs: changed drawing of selected days
20076 to make them look better.
20078 2006-10-16 Chris Toshok <toshok@ximian.com>
20080 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20081 drawing_stack. Nuke the ClientDC/NonClientDC properties.
20083 * XplatUIX11.cs: move away from using hwnd.client_dc and
20084 hwnd.non_client_dc and on to a stack of dc's (and in window's
20085 case, PAINTSTRUCT's), so we can deal with nested Paint calls
20086 without puking or not disposing of Graphics objects.
20088 * XplatUIOSX.cs: same.
20090 * XplatUIWin32.cs: same.
20092 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20094 * FileDialog.cs: Don't call on_directory_changed inside
20095 OnSelectedIndexChanged (it changes the SelectedIndex too).
20096 Instead move it to OnSelectionChangeCommitted.
20098 2006-10-13 Chris Toshok <toshok@ximian.com>
20100 * XplatUIX11.cs: more Destroy work. the current code does the
20101 following things, in order:
20103 1. Enumerates all handles of all controls at or below the one
20104 being destroyed, in pre-order. As it is doing this, it marks the
20105 handles as zombie and clears all references to them.
20107 2. calls XDestroyWindow on the window passed in.
20109 3. SendMessage's WM_DESTROY to all he handles in the accumulated
20112 2006-10-13 Chris Toshok <toshok@ximian.com>
20114 * XplatUIX11.cs: set hwnd.zombie to true before calling
20115 SendMessage (WM_DESTROY). this keeps us from marking the new
20116 window a zombie, and also keeps us from calling sendmessage at
20119 2006-10-13 Jackson Harper <jackson@ximian.com>
20121 * TextControl.cs: Do not show the caret and selection at the same
20122 time. Reduces ugliness by 35%.
20124 2006-10-13 Chris Toshok <toshok@ximian.com>
20126 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20127 zombie after we do the recursive call, so we actually do call
20128 SendMessage on the children controls.
20129 (GetMessage): if we find a pending paint event for a zombie hwnd,
20130 remove the hwnd from the paint queue, or else it will always be
20131 there (and we'll effectively loop infinitely)
20133 2006-10-13 Mike Kestner <mkestner@novell.com>
20135 * MenuItem.cs : add Selected format under keynav too.
20138 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
20140 * PropertyGrid.cs: Fixed some NRE's and small difference between our
20141 implementation and that of MS.
20143 2006-10-13 Chris Toshok <toshok@ximian.com>
20145 * Control.cs (OnInvalidated) only futz with the invalid_region if
20146 the control is double buffered. this fixes the apparent hang in
20147 the ListView unit tests. Someone needs to make the
20148 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20150 2006-10-13 Chris Toshok <toshok@ximian.com>
20152 * PropertyGridView.cs:
20154 - do a little refactoring so that only one place calls
20155 dropdown_form.Hide, and that is CloseDropDown. make everywhere
20156 else call that. Also make it Refresh, since there are redraw bugs
20157 otherwise (we should take a look at that...)
20159 - do a little more refactoring work to share the body of code
20160 involved with the drop down. it was duplicated in the code
20161 dealing with the listbox handling and in the code dealing with the
20164 - add a Capture to the dropdown form's control once it's
20165 displayed, and add a MouseDown handler that checks to make sure
20166 the position is inside the control. If it's not, close the
20167 dropdown. This fixes #78190.
20169 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20170 if the value is different than the initial value.
20172 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
20174 * Control.cs: see #78650
20175 - Fixed GetNextControl for several cases:
20176 - Changed FindFlatForward to return
20177 correct sibling control when more than one
20178 control has same TabIndex as the currently
20180 - Changed FindFlatBackward to loop children
20181 from last to first and apply same logic as in
20183 - Changed FindControlForward to search for
20184 children when control is not a container
20185 but has children, or search for siblings if
20186 control is a container...
20187 - Changed FindControlBackward to continue
20188 searching for child controls when hitting
20191 - Fixed Focus method to update ActiveControl
20192 (FocusTest.FocusSetsActive failure)
20195 - Focus rectangle now refreshes when gaining
20197 - Removed grab for Tab key on IsInputKey that
20198 was keeping tab navigation from working (#78650)
20200 2006-10-13 Chris Toshok <toshok@ximian.com>
20202 * PropertyGridView.cs:
20203 - Rewrite SetPropertyValue to loop over SelectedGridItem's
20206 - Deal with GridItem.Value == null a few places.
20209 - replace the PopulateGridItemCollection with a pair of methods
20210 which compute the intersection of all the properties in the
20211 SelectedObjects array. Fixes #79615.
20213 - Throw ArgumentException from set_SelectedObjects if there's a
20216 - Add GetTarget method which can be used to traverse up the
20217 GridItem.Parent chain. It depends on the assumption that
20218 selected_objects for different GridEntries are always in the same
20219 order (a safe assumption). Use this method and loop over all the
20220 selected objects in the entry when calling RemoveValueChanged and
20223 * GridEntry.cs: Make this handle multiple selected objects.
20224 .Value returns null if not all the selected objects share the same
20227 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
20228 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20229 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20230 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20231 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20232 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20233 add additional functionality.
20235 2006-10-12 Mike Kestner <mkestner@novell.com>
20237 * ErrorProvider.cs : new ToolTipWindow ctor sig.
20238 * HelpProvider.cs : new ToolTipWindow ctor sig.
20239 * ToolTip.cs : remove ToolTip param from Window sig since it is
20241 * ToolBar.cs : add tooltip support. Fixes #79565.
20243 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20245 * ComboBox.cs: move the events in set_SelectedIndex to
20246 after the call to HighlightIndex in order to avoid
20247 possible recursion and subsequent problems with the call
20248 to HighlightIndex and include a range check in
20249 set_HighlightIndex. Fixes #79588
20251 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20253 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
20254 to ui thread's settings instead of sunday.
20255 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20257 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20259 * DateTimePicker.cs
20261 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20262 and implement missing functionality (selecting different parts
20263 of the date and edit them individually with the keyboard).
20265 2006-10-11 Chris Toshok <toshok@ximian.com>
20267 * Control.cs (OnInvalidated): fix NRE relating to last change.
20269 2006-10-11 Chris Toshok <toshok@ximian.com>
20271 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20272 atoms in _NET_WM_STATE here if the window is maximized. We need
20273 to do this because we're *replacing* the existing _NET_WM_STATE
20274 property, so those atoms will be lost otherwise, and any further
20275 call to GetWindowState will return Normal for a window which is
20276 actually maximized. Fixes #79338.
20278 2006-10-11 Jackson Harper <jackson@ximian.com>
20280 * TextControl.cs: Special case for setting selection end to
20281 selection start, we basically kill the anchor.
20282 - some todo comments.
20284 2006-10-11 Chris Toshok <toshok@ximian.com>
20286 * Control.cs: switch to using an "invalid_region" to track which
20287 parts of the image buffer need updating. This is more code than
20288 the simple fix from r66532. That version just attempted to always
20289 fill the entire buffer on redraw, which turns out to be
20290 inefficient when invalidating small rectangles. This version
20291 simply adds the invalid rectangle to the invalid region. When we
20292 get any WM_PAINT message we see if it can be filled using the
20293 image buffer, and if it can't (if the paint event's clip rectangle
20294 is visible in the invalid region) we first fill the image buffer.
20295 So, the image buffer is still a cache, we just fill it lazily.
20297 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20298 need it any longer.
20300 2006-10-11 Chris Toshok <toshok@ximian.com>
20302 * XplatUIX11.cs (SetWindowPos): we need to update both position as
20303 well as size after calling XMoveResizeWindow. This keeps us from
20304 ignoring future SetWindowPos calls. Fixes the disappearing
20305 DateTimePicker in the ToolBarDockExample from bug #72499.
20307 2006-10-11 Chris Toshok <toshok@ximian.com>
20309 * TextBoxBase.cs: reorder things a bit when it comes to
20310 resizing-causing-recalculation. we were recalculating the
20311 document when our position was changed, which shouldn't happen.
20312 We only care about size changes. Clear up some more redundant
20313 recalculation calls while I'm at it. This makes the toolbar dock
20314 example snappy when you're just dragging toolbars around (since it
20315 causes a relayout whenever you move one.)
20317 2006-10-11 Chris Toshok <toshok@ximian.com>
20319 * ToolBarButton.cs (get_Rectangle): this only returns
20320 Rectangle.Empty if Visible == false, or Parent == null.
20321 Parent.Visible doesn't matter.
20323 2006-10-10 Chris Toshok <toshok@ximian.com>
20325 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20326 by .net 1.1, so switch to an internal method instead.
20328 2006-10-10 Chris Toshok <toshok@ximian.com>
20330 * Control.cs (WM_PAINT): when a control is double buffered we draw
20331 initially to the ImageBuffer and then copy from there. But when a
20332 parent control which has child controls is double buffered, the
20333 initial drawing doesn't encompass the entire ClientRectangle of
20334 the parent control, so we end up with uninitialized bits (this is
20335 easily seen by dragging the top toolbar in
20336 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
20337 manually set the ClipRectangle of the paint_event (only the one we
20338 use to populate the ImageBuffer) to ClientRectangle. Fixes more
20339 of the nastiness in bug #72499.
20341 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20342 which we use in Control.cs's WM_PAINT handling.
20344 2006-10-10 Jackson Harper <jackson@ximian.com>
20346 * TextBoxBase.cs: Finish off the autoscrolling stuff.
20348 2006-10-10 Chris Toshok <toshok@ximian.com>
20350 * Cursor.cs: Apply a slightly different patch to the one suggested
20353 2006-10-10 Jackson Harper <jackson@ximian.com>
20355 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20356 not the parent form.
20357 * TextControl.cs: use difference in old line count vs new count to
20358 calculate how many lines were added, this takes into account soft
20359 line breaks properly.
20361 2006-10-10 Chris Toshok <toshok@ximian.com>
20363 * LinkLabel.cs: don't call MeasureCharacterRanges against a
20364 rectangle located at 0,0 and the size of the text. Use
20365 ClientRectangle instead. This fixes rendering of non-left aligned
20368 2006-10-10 Jackson Harper <jackson@ximian.com>
20370 * TextBoxBase.cs: When we set the selection start position the
20372 * TextControl.cs: Need to update the caret when we decrement it to
20374 - Make sure that the selection_visible flag gets reset to false if
20375 the selection isn't visible. Before this you could get it set to
20376 visible by changing the selection start, then changing the end to
20379 2006-10-09 Jackson Harper <jackson@ximian.com>
20381 * TreeView.cs: Don't update scrollbars when we aren't visible.
20382 * TreeNodeCollection.cs: Only need to update scrollbars if being
20383 added to an expanded visible node or the root node.
20385 2006-10-09 Chris Toshok <toshok@ximian.com>
20387 * XplatUIX11.cs (SendMessage): fix NRE.
20389 2006-10-09 Jackson Harper <jackson@ximian.com>
20391 * TextBoxBase.cs: Implement horizontal autoscrolling.
20392 * TextControl.cs: Add a movement types that allows moving forward
20393 and backwards without wrapping.
20395 2006-10-09 Mike Kestner <mkestner@novell.com>
20397 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20398 with focus "expansion" of labels. Fixes #79532 and then some.
20399 * ThemeWin32Classic.cs : add LineLimit to ListView label format
20402 2006-10-09 Jackson Harper <jackson@ximian.com>
20404 * TextBoxBase.cs: Set the default max values to MaxValue since
20405 we use the scrollbar for autoscrolling and the default value is
20406 100. If we don't do this the caret won't keep up with typing
20407 after about 18 characters.
20408 * TextControl.cs: Make sure the selection is offset by the
20409 viewport x. This fixes selection when using auto scrolling.
20411 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
20413 * Form.cs: The active control should be selected after the
20414 OnLoad so that any child control initialization that affects
20415 the selection is done. Fixes #79406
20417 2006-10-06 Chris Toshok <toshok@ximian.com>
20419 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
20420 to have no evil effects.
20422 - Stop selecting StructureNotifyMask on non-toplevel windows.
20424 The only way children should be resized is by using the SWF api,
20425 and we already send WM_WINDOWPOSCHANGED messages in those cases.
20426 Toplevel windows can be interacted with via the window manager,
20427 and so we keep the input mask there.
20429 The other event StructureNotifyMask gives us (that we care
20430 about) is DestroyNotify. The code is already structured such
20431 that it assumes we won't be getting a DestroyNotify event for
20432 the window we pass to XDestroyWindow (which is what
20433 StructureNotifyMask is supposed to guarantee.) So, that code
20434 shouldn't be affected by this either.
20436 - Stop selecting VisibilityChangeMask altogether.
20438 We weren't doing anything with the resulting events anyway.
20440 This vastly reduces the number of X requests and events we see
20441 when resizing/laying out a large ui.
20443 2006-10-06 Chris Toshok <toshok@ximian.com>
20445 * ScrollableControl.cs (DisplayRectangle): we need to take into
20446 account the DockPadding regardless of whether or not auto_scroll
20447 == true. rework this slightly to this effect, and fix bug #79606,
20448 and part of #72499 (you can now see the drag handles and drag
20451 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
20453 * ListViewItem.cs: Collections of selected and checked items are now
20454 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
20455 we mark the collection "dirty".
20456 * ListView.cs: Marked collections readonly. Modified UpdateSelection
20457 to only clear SelectedItems when a new item is selected and MultiSelect
20458 is enabled. CheckedItems and SelectedItems now subscribe to Changed
20459 event of ListViewItemCollection, and mark its list dirty whenever
20460 that event is fire. This allows us to return selected/checked items
20461 in the same order as they are in the Items collection. This matches
20464 2006-10-06 Chris Toshok <toshok@ximian.com>
20466 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
20467 right mouse clicks. Fixes bug #79593.
20469 2006-10-06 Chris Toshok <toshok@ximian.com>
20471 * Splitter.cs: doh, fix splitters that don't want to cancel the
20472 movement when you drag them. Also, impose the limits on the
20473 values we send to the SplitterMovingEvent. Fixes #79598.
20475 2006-10-06 Jackson Harper <jackson@ximian.com>
20477 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
20478 since we use this for auto scrolling also.
20480 2006-10-05 Chris Toshok <toshok@ximian.com>
20482 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
20483 beginning to think that most datagrid column types don't need this
20484 method. Fixes bug #79392.
20486 2006-10-05 Chris Toshok <toshok@ximian.com>
20488 * DataGrid.cs: move back to a more lazy scheme for creating the
20489 CurrencyManager, so we aren't updating it every time you set
20490 either DataSource or DataMember. Also, don't call
20491 RecreateDataGridRows if the currency manager hasn't changed.
20493 2006-10-05 Chris Toshok <toshok@ximian.com>
20495 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
20496 emitted, SelectedIndex should already be updated. Fixes bug
20499 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
20501 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
20502 ToolStripTextBox.cs: Initial commit.
20503 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
20505 2006-10-05 Jackson Harper <jackson@ximian.com>
20507 * TabControl.cs: We need to invalidate the tab control area when
20508 new ones are added (duh).
20510 2006-10-03 Chris Toshok <toshok@ximian.com>
20512 * Form.cs (ProcessDialogKey): if the focused control is in this
20513 form and is a button, call its PerformClick method here. Fixes
20516 2006-10-04 Jackson Harper <jackson@ximian.com>
20518 * TabPage.cs: Ignore setting of Visible, and add an internal
20519 method for setting the controls visibility. TabPage's Visible
20520 property is a little strange on MS, this seems to make us
20521 compatible, and fixes cases where people set all the tab pages to
20523 * TabControl.cs: Use the new internal setting on tab pages
20526 2006-10-03 Mike Kestner <mkestner@novell.com>
20528 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
20530 2006-10-03 Mike Kestner <mkestner@novell.com>
20532 * ListView.cs : use is_visible instead of Visible to check if
20533 scrollbars should be placed/sized. Also some max_wrap_width
20534 love for LargeIcon view. [Fixes #79533]
20536 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
20539 Make set_TextAlign() do actually update the align. Fixed #78403.
20541 2006-10-03 Chris Toshok <toshok@ximian.com>
20543 * DataGrid.cs: fix a crash when switching datasources if the
20544 vertical scrollbar is at someplace other than Value = 0. Also,
20545 reduce the number of recalculation passes we do in SetDataSource
20548 2006-10-03 Jackson Harper <jackson@ximian.com>
20550 * TextBoxBase.cs: Move the if value the same bail check up, we
20551 don't want to empty the document if it is already empty, this
20552 seems to severly mess up the caret. TODO: I should probably fix
20553 the empty statement to update teh caret somehow.
20555 2006-10-03 Chris Toshok <toshok@ximian.com>
20557 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
20558 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
20559 reflection, an internal row type, properties on said type, etc.)
20560 will work with our datagrid. Fixes #79531.
20562 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20564 * FileDialog.cs: Don't crash if a path is not accessible
20565 (System.UnauthorizedAccessException). Fixes #79569.
20566 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
20567 a ':' too. Return unknown icon for those paths/files.
20569 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
20571 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
20572 GetContainerControl returns null.
20574 2006-10-02 Chris Toshok <toshok@ximian.com>
20576 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
20577 call to XGetWindowAttributes instead of "handle". fixes an X
20578 error using notifyicon after the NotifyIconWindow to Form base
20581 2006-10-02 Chris Toshok <toshok@ximian.com>
20583 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
20584 server grab and looping we need to do to get down to the most
20585 deeply nested child window.
20586 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
20587 QueryPointer again after the WarpPointer so we can generate a
20588 proper (fake) MotionNotify event to be enqueued in the destination
20590 (GetCursorPos): call QueryPointer.
20594 2006-10-02 Jackson Harper <jackson@ximian.com>
20596 * NotifyIcon.cs: Derive the notify icon from a form, so things
20597 like FindForm work on it.
20598 - Swallow the WM_CONTEXTMENU message, since that is generated on
20599 mouse down, and context menu is a mouse up kinda guy. I believe
20600 the correct fix here is probably to make the notify icon entirely
20601 NC area, but this seems to work fine for anyone not manipulating
20604 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
20606 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
20607 ToolStripItemCollection.cs, ToolStripLabel.cs,
20608 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
20609 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
20610 Initial implementation.
20611 * TextRenderer.cs: Provide padding to MeasureText.
20613 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
20615 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
20616 of ButtonBaseAccessibleObject. Fix bug #79552.
20618 2006-10-02 Jackson Harper <jackson@ximian.com>
20620 * MdiWindowManager.cs: When maximizing use the containers client
20621 rect, not it's bounds, so nc area is accounted correctly.
20622 - Use the parent form's size for the menu position, since the
20623 client isn't always the full form size.
20625 2006-10-01 Chris Toshok <toshok@ximian.com>
20627 * ScrollableControl.cs: make sure neither right_edge or
20628 bottom_edge are < 0, since they're used as LargeChange for the
20629 horiz/vert scrollbars respectively. Fixes #79539.
20631 2006-10-01 Chris Toshok <toshok@ximian.com>
20633 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
20634 the xplatuix11 code can cause us to destroy/recreate our handle.
20638 - this code can be invoked many times for the same Hwnd. Make
20639 sure we only destroy the client window once (the first time this
20640 method is called). This fixes bug #79544.
20641 - Remove the call to the improperly bound XSync. why we had two
20642 bindings to this, I will never know, but this call resulted in
20643 events being discarded from the queue(!).
20644 - correct a misunderstanding of _XEMBED_INFO - the second atom is
20645 not our current state but the state we wish to be in. So, 0 if
20646 we don't want to be mapped. Change it to 1.
20647 (SystrayRemove): The XEMBED spec makes mention of the fact that
20648 gtk doesn't support the reparent of client windows away from the
20649 embedder. Looking at gtksocket-x11.c seems to agree with this.
20650 The only avenue we have for removing systray icons is to destroy
20651 them. We don't want the handle to go away for good, though, so
20652 call InternalRecreateHandle on the NotifyIconWindow. Fixes
20655 2006-10-01 Chris Toshok <toshok@ximian.com>
20657 * Form.cs (WndProc): inline the native_enabled variable usage into
20658 the cases in which it's used. Fixes #79536.
20660 2006-09-29 Mike Kestner <mkestner@novell.com>
20662 * ListView.cs : toggle the selection state for ctrl clicks in
20663 multiselect mode. [Fixes #79417]
20665 2006-09-29 Mike Kestner <mkestner@novell.com>
20667 * ListView.cs : kill CanMultiSelect and refactor the selection
20668 code to support multiselection in the absence of mod keys. Steal
20669 arrow/home/end keys by overriding InternalPreProcessMessage to
20670 restore regressed keynav behavior.
20673 2006-09-29 Jackson Harper <jackson@ximian.com>
20675 * MdiClient.cs: Repaint the titlebars when the active window is
20678 2006-09-29 Chris Toshok <toshok@ximian.com>
20680 * Application.cs: when entering a runloop with a modal, make sure
20681 the hwnd is enabled. Fixes #79480.
20683 2006-09-29 Chris Toshok <toshok@ximian.com>
20685 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
20686 when ListManager.CanAddRows == false, bump us back one.
20688 * DataGridColumnStyle.cs (ParentReadOnly): remove the
20689 listmanager.CanAddRows check. This makes ArrayLists uneditable
20690 using a datagrid, which is not right.
20691 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
20692 is an IEditable, but call property_descriptor.SetValue regardless.
20695 2006-09-29 Chris Toshok <toshok@ximian.com>
20697 * DataGridBoolColumn.cs: we need to test equality in the face of
20698 possible null values (as is the case with the default NullValue).
20699 This patch keeps us from crashing in that case.
20701 2006-09-29 Jackson Harper <jackson@ximian.com>
20703 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
20704 here, since it will get called for every node collection in the
20705 tree. This is now done in the treeview once the sorting is
20707 * TreeView.cs: Recalculate the visible order, and update the
20708 scrollbars after sorting, set the top nope to the root so that the
20709 recalc actually works.
20711 2006-09-29 Chris Toshok <toshok@ximian.com>
20713 * LinkLabel.cs: more handling of the default link collection in
20714 the face of LinkArea manipulation. The default link collection
20715 contains 1 element (start=0,length=-1). If the user sets LinkArea
20716 to anything and the links collection is the default, clear it.
20717 Then only add the link if its nonempty. Fixes #79518.
20719 2006-09-29 Chris Toshok <toshok@ximian.com>
20721 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
20722 piece correctly when we hit a '\n'. Fixes #79517.
20724 2006-09-29 Chris Toshok <toshok@ximian.com>
20726 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
20727 change the binding of gdk_init_check to take two IntPtr's, and
20728 pass IntPtr.Zero for both of them. Fixes #79520.
20730 2006-09-29 Mike Kestner <mkestner@novell.com>
20732 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
20735 2006-09-28 Jackson Harper <jackson@ximian.com>
20737 * XplatUIX11.cs: When translating NC messages make sure we go from
20738 whole window to screen, not client window to screen.
20739 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
20740 method doesn't exist
20741 - Skip over controls that aren't forms when arranging.
20743 2006-09-28 Jackson Harper <jackson@ximian.com>
20745 * XplatUIWin32.cs: Clip the rect to the parent window.
20746 * XplatUIStructs.cs: Add clipping modes struct.
20747 * InternalWindowManager.cs: New private method that factors title
20748 bar heights in when calculating the pos of an NC mouse message.
20749 - Use SendMessage to force a paint when the form's size is changed
20750 instead of painting the decorations immediately.
20751 - Don't let the NC button click messages get to DefWndProc,
20752 because they will attempt to handle windowing themself, and this
20753 messes up z-order (it will put them in front of the scrollbars).
20754 * XplatUIX11.cs: Make sure that we don't reset window managers if
20755 we already have one (ie the window is an MDI window).
20757 2006-09-28 Chris Toshok <toshok@ximian.com>
20759 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
20760 menu code really needs going over.
20762 2006-09-27 Chris Toshok <toshok@ximian.com>
20764 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
20765 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
20766 window is maximizable. So, we need to make sure that even if we
20767 clear the border/wm frame of those functions, they're still
20768 available (basically, we remove the decoration without removing
20769 the function). Half the fix for #79338.
20771 2006-09-27 Chris Toshok <toshok@ximian.com>
20773 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
20776 2006-09-27 Chris Toshok <toshok@ximian.com>
20778 * Splitter.cs: reorder things a bit so that we don't actually
20779 draw/move the splitter until after calling OnSplitterMoving. This
20780 lets users cancel/disallow the movement by explicitly setting
20781 event.SplitX/SplitY. Fixes #79372.
20783 2006-09-27 Jackson Harper <jackson@ximian.com>
20785 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
20786 because it is most likely on a window being destroyed, and that
20787 will give us an X11 error.
20789 2006-09-27 Chris Toshok <toshok@ximian.com>
20791 * PropertyGridView.cs: half of the fix for #78190. Clicking on
20792 the dropdown button now toggles between showing and hiding the
20793 dropdown. Also, get rid of dropdown_form_showing and just use
20794 dropdown_form.Visible. We still don't do a grab, but I'll leave
20795 that part to someone who has handled Capture-fu before.
20797 2006-09-27 Chris Toshok <toshok@ximian.com>
20799 * DataGrid.cs: return false if alt isn't pressed when '0' is
20800 pressed. this keeps the '0' key from being swallowed, and fixes
20803 2006-09-27 Chris Toshok <toshok@ximian.com>
20805 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
20806 Calling Refresh (in response to a scrollbar event) screws up the
20807 scrollbar painting. Fixes bug #78923.
20809 2006-09-27 Chris Toshok <toshok@ximian.com>
20811 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
20812 then insert into hashtable" blocks threadsafe.
20814 2006-09-27 Chris Toshok <toshok@ximian.com>
20816 * MessageBox.cs (CreateParams): the styles should be |'ed with our
20817 baseclass's, since otherwise the
20818 ControlBox/MinimizeBox/MaximizeBox assignments above have no
20819 effect. This gets the close button back in messageboxes.
20821 2006-09-27 Chris Toshok <toshok@ximian.com>
20823 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
20824 flag, not just != 0. this makes flags that are actually multiple
20825 bits (like WS_CAPTION) work. fixes bug #79508.
20827 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
20829 * PageSetupDialog.cs: add support for getting and settings the
20830 paper size, source and orientation.
20832 2006-09-26 Chris Toshok <toshok@ximian.com>
20834 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
20835 and caption == "", we need to remove the resize handles as well as
20838 * Control.cs (set_Text): turns out that setting Text on a form
20839 should change the WM styles on the window, since if ControlBox ==
20840 false, the only way to get a window border is to have a non-""
20841 Text property. check winforms/forms/text.cs for an example. so,
20842 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
20843 update both window styles and title. This fixes a lot of dialogs
20844 (including the preferences dialog in MonoCalendar.)
20846 2006-09-26 Chris Toshok <toshok@ximian.com>
20848 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
20849 control isn't a Form), call Win32ShowWindow to hide the window,
20850 but don't update the control Visible property. When we reparent
20851 back to a parent control, call SetVisible in order for the
20852 window's visibility to be reinstated.
20854 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
20857 * Control.cs (ControlCollection.Remove): remove that value.Hide()
20858 call for good, since it breaks MonoCalendar (and other things I'm
20859 sure.) Also, set all_controls to null *after* the owner calls,
20860 which end up regenerating it.
20861 (ChangeParent): allow new_parent to be == null, passing
20862 IntPtr.Zero down to XplatUI.
20864 this fixes #79294 the right way.
20866 2006-09-26 Mike Kestner <mkestner@novell.com>
20868 * GridEntry.cs : internal SetParent method.
20869 * PropertyGrid.cs : attach to property changed on the proper
20870 target if we have a hierarchical grid with subobjects. Setup
20871 GridItem.Parent for hierarchical items.
20872 * PropertyGridView.cs : Set value on the correct target for
20873 hierarchical grids. [Fixes #78903]
20875 2006-09-26 Chris Toshok <toshok@ximian.com>
20877 * Control.cs (ChildNeedsRecreating): this should return true if
20878 either we're being recreated and the child is in our list, or our
20879 parent is waiting for our recreation.
20881 2006-09-26 Chris Toshok <toshok@ximian.com>
20883 * Control.cs (ControlCollection.Remove): reinstate the
20884 value.Hide() call as suggested in bug #79294.
20886 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
20888 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
20889 coordinates (versus a relative move).
20891 2006-09-26 Chris Toshok <toshok@ximian.com>
20893 * Control.cs: rework child recreation a little bit. It turns out
20894 that we race between the DestroyNotify the WM_DESTROY message. If
20895 the parent gets its DestroyNotify before the child gets the
20896 WM_DESTROY message, the child ends up not recreating (since the
20897 parent finishes its recreation on DestroyNotify, and the child
20898 checks ParentIsRecreating.)
20900 So, instead we store off a list of all the child controls which
20901 need to be recreated when the parent control starts to recreate
20902 itself. Then, when child controls get their WM_DESTROY message we
20903 check to see if they're in the parent's pending recreation list,
20904 and if so, we recreate. This removes all dependency on ordering
20905 from the code and fixes the initial MonoCalendar upgrade dialog.
20907 2006-09-26 Jackson Harper <jackson@ximian.com>
20909 * TextControl.cs: Use the Line to get the length of the line,
20910 since soft line breaks can change the end line.
20912 2006-09-26 Chris Toshok <toshok@ximian.com>
20914 * Control.cs (ControlCollection.AddImplicit): don't add the
20915 control again if it's already in one of our lists. This keeps us
20916 from adding controls over and over again for comboboxes when their
20917 handle gets recreated (as the combobox adds implicit controls in
20918 OnHandleCreated). Fixes the X11 errors in bug #79480.
20920 2006-09-26 Jackson Harper <jackson@ximian.com>
20922 * TextControl.cs: When deleting characters make sure that any
20923 orphaned zero lengthed tags get deleted.
20924 - Fix ToString for zero lengthed tags.
20926 2006-09-25 Jackson Harper <jackson@ximian.com>
20928 * TextControl.cs: When getting a tag at the location there can be
20929 multiple tags at the same spot, these are 0-lengthed tags that
20930 appear when extra formatting has been stuck in a location. We
20931 need to pull out the last of these 0 lengthed tags.
20933 2006-09-25 Jackson Harper <jackson@ximian.com>
20935 * TextControl.cs: Fix print out in debug method.
20936 * TextBoxBase.cs: When text is set bail if we are setting to the
20939 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
20941 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
20942 It is now possible to change the selected index in a FontXXXListBox
20943 with the up and down arrow keys from the FontXXXTextBoxes.
20944 Also, send the FontXXXTextBox mouse wheel event to the corresponding
20945 FontXXXListBoxes to match ms.
20947 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
20949 * SystemInformation.cs: Return a clone of the theme's MenuFont because
20950 anyone can dispose it, anytime. All other properties returns enums,
20951 structs or basic types so they don't need such tricks.
20953 2006-09-22 Jackson Harper <jackson@ximian.com>
20960 * XplatUIDriver.cs: Update interface to add a primary selection
20961 flag, so the driver can use the primary selection buffer if
20963 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
20965 * RichTextBox.cs: We need to supply the data object to paste now
20966 (so we can choose to supply CLIPBOARD or PRIMARY).
20967 * TextBoxBase.cs: Supply data object to paste (see above).
20968 - Middle click uses the primary selection data object.
20970 2006-09-21 Chris Toshok <toshok@ximian.com>
20972 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
20973 of SetWMStyles. It's still a rat's nest and is largely
20974 order-dependent which I dislike immensely. This also fixes the X
20975 button disappearing from toplevel forms.
20977 2006-09-21 Mike Kestner <mkestner@novell.com>
20979 * ListBox.cs: move Jordi's click/dblclick raising code to the
20982 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
20984 * ListBox.cs: Fixes 79450
20986 2006-09-21 Mike Kestner <mkestner@novell.com>
20988 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
20989 to deal with people updating the TreeNodeCollection after the tree
20990 is disposed. "Fixes" 79330.
20992 2006-09-20 Jackson Harper <jackson@ximian.com>
20994 * TextControl.cs: Push the cursor record onto the undo stack
20995 before the delete action. This fixes 78651.
20997 2006-09-20 Jonathan Chambers <joncham@gmail.com>
20999 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21000 CreateParams. Fixes 79329.
21002 2006-09-19 Chris Toshok <toshok@ximian.com>
21004 * XplatUIX11.cs: a couple of blanket code massage passes to clean
21005 things up a bit. First, get rid of the NetAtoms array (and the NA
21006 enum), and just embed the atoms as static fields. Also, add a
21007 couple of functions (StyleSet and ExStyleSet) to clean up all the
21008 bitmask testing of styles.
21010 * X11Structs.cs: remove the NA enum, not needed anymore.
21012 2006-09-19 Chris Toshok <toshok@ximian.com>
21014 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21015 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
21016 added cleanup to get MessageBox titles appearing again, which were
21017 broken by my earlier fix for caption-less/ControlBox-less windows.
21019 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
21021 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21022 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21023 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21024 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21025 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21026 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21027 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21028 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21029 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21030 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21031 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21033 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21034 ToolStripButton.cs: Stubs needed for above.
21035 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21037 2006-09-15 Chris Toshok <toshok@ximian.com>
21040 - make the MessageQueues hashtable Synchronized.
21042 - SendMessage: if the Hwnd is owned by a different thread, use the
21043 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21044 thread. Fixes bug #79201.
21046 2006-09-15 Chris Toshok <toshok@ximian.com>
21048 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
21049 ControlBox == false, we disallow maximize/minimize/close. If the
21050 form Caption is "" we also disallow move (and get rid of the Title
21051 decoration). Unfortunately, regardless of how things are set,
21052 we're stuck with the Title and WM menu.
21054 2006-09-15 Chris Toshok <toshok@ximian.com>
21056 * Application.cs: add locking around the static message_filters
21057 ArrayList, part of #79196.
21059 2006-09-15 Chris Toshok <toshok@ximian.com>
21061 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21062 Form.ControlBox == false, the window has no titlebar nor resize
21063 handles. fixes bug #79368.
21065 2006-09-15 Chris Toshok <toshok@ximian.com>
21067 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21068 >= 0. Fixes bug #79370.
21070 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
21071 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21073 Add properties: LayoutEngine, Margin, DefaultMargin.
21074 Add method: GetPreferredSize.
21075 Move layout logic from PerformLayout to layout engines.
21077 2006-09-13 Chris Toshok <toshok@ximian.com>
21079 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
21080 fix for #79326 broke #78718, so this change addresses that.
21082 - in SendWMDestroyMessages remove the call to
21083 CleanupCachedWindows, since we might be recreating the control and
21084 need to maintain the references to right Hwnd handles. Also, set
21085 the zombie flag to true for each of the children in the hierarchy
21086 instead of calling hwnd.Dispose. This will cause GetMessage to
21087 ignore all events for the window except for DestroyNotify.
21089 - In GetMessage, ignore messages except for DestroyNotify for
21092 * Control.cs: revert the is_recreating fix from the last
21093 ChangeLog. It's definitely "right", but it breaks switching from
21094 an MDI form to a non-MDI form. Will need to revisit that.
21096 * Hwnd.cs: add a zombie flag, which means "the
21097 client_window/whole_window handles are invalid, but we're waiting
21098 for the DestroyNotify event to come in for them". Set the flag to
21099 false explicitly if setting WholeWindow/ClientWindow, and also
21102 2006-09-13 Chris Toshok <toshok@ximian.com>
21104 * XplatUIX11.cs: rework window destruction slightly.
21106 - when destroying the windows associated with a control, we don't
21107 need 2 separate XDestroyWindow calls. Just the one for the
21108 whole_window (or for client_window if whole_window is somehow
21109 IntPtr.Zero -- can this happen?) is enough.
21111 - reworked SendWMDestroyMessages slightly, so we always dispose
21112 the child control hwnd's after sending the messages.
21114 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21115 the two places it was used (one was even using hwnd.Handle and the
21116 other hwnd.client_window. ugh), adding another call in
21117 SendWMDestroyMessages. We need this new call because now the
21118 DestroyNotify events in the queue will be ignored for the child
21119 controls (as their hwnd's were disposed, and the window id's
21120 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21122 - this fixes bug #79326.
21124 2006-09-13 Chris Toshok <toshok@ximian.com>
21126 * Control.cs: don't always set is_recreating to false at the end
21127 of RecreateHandle, since sometimes we're not done (and won't be
21128 until WndProc handles the WM_DESTROY message). Also, set
21129 is_recreating to false in the WM_DESTROY handling code. Part of
21130 the fix for bug #79326.
21132 2006-09-13 Miguel de Icaza <miguel@novell.com>
21134 * X11DesktopColors.cs: Start the droppage of debugging messages.
21136 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21138 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
21140 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21142 2006-09-12 Chris Toshok <toshok@ximian.com>
21144 * DataGrid.cs (get_ListManager): if the list_manager is null, try
21145 to create it using SetDataSource. Fixes bug #79151.
21147 2006-09-11 Chris Toshok <toshok@ximian.com>
21149 * XEventQueue.cs: add a DispatchIdle property.
21151 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21152 either the queue is null, or the queue has DispatchIdle set to
21154 (DoEvents): set queue.DispatchIdle to false around the
21155 peek/translate/dispatch message loop in this method. This keeps
21156 Application.Doevents from emitting idle events. Part of the fix
21159 2006-09-11 Chris Toshok <toshok@ximian.com>
21161 * DataGrid.cs (set_DataSource): make this work for both the
21162 winforms/datagrid test and ReportBuilder. It seems as though when
21163 we've created a ListManager (or maybe it's if we have a
21164 BindingContext?), when we set the DataSource it clears the
21165 DataMember to "". otherwise we reuse the datamember. Fixes bug
21168 2006-09-11 Chris Toshok <toshok@ximian.com>
21170 * XplatUIX11.cs: deal with queue being null, which happens in all
21171 the Clipboard functions. Fixes one of the two problems mentioned
21174 2006-09-11 Chris Toshok <toshok@ximian.com>
21176 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21177 button on various spots (including outside the menu) works closer
21178 to MS, and doesn't crash. Fixes #79343.
21180 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
21182 * ListView.cs: Do not initialize item_sorter in init. To match MS,
21183 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21184 and the internal comparer is set. When a new ListViewItemSorter is set,
21185 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21186 was specified. No further processing is necessary if SortOrder is set
21187 to it's current value. If Sorting is modified to None, and View is
21188 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21189 (either custom or our internal ItemComparer) to null, on 1.0 profile
21190 only set item_sorter to null if its our internal IComparer. If Sorting
21191 is modified to Ascending or Descending, then use our internal IComparer
21192 if none is set, and if the current IComparer is our internal one then:
21193 on 2.0 profile always replace it with one for new Sorting, and on 1.0
21194 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21195 Enum.IsDefined to verify whether a valid View value is specified in
21196 its setter. Automatically sort listview items when listview is
21197 created. In Sort, do nothing if ListView is not yet created, or if
21198 no item_sorter is set (no Sorting was set, Sorting was explicitly set
21199 to None or ListViewItemSorter was set to null). Added Sort overload
21200 taking a bool to indicate whether the ListView should be redrawn when
21201 items are sorted (we use this in ListViewItemCollection to avoid double
21202 redraws). Modified our internal IComparer to take the sort order into
21203 account. In Add and AddRange methods of ListViewItemCollection, also
21204 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21205 view), but use overload with noredraw option to avoid double redraw.
21206 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21207 true when View is Tile, and do the same when attempting to set View to
21208 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21209 for selected/checked indices, as it involves overhead when sorting is
21210 done while these collections are not used all that often. Instead
21211 we'll build the indices on demand. Modified IList implementation of
21212 CheckedIndexCollection to use public methods if object is int.
21213 Modified CheckedListViewItemCollection to hide checked items if
21214 ListView.CheckBoxes is false. Removed LAMESPEC remark in
21215 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21216 IList implementation in SelectedIndexCollection to use public methods
21217 if object is int. Modified SelectedListViewItemCollection to hide
21218 selected items if listview is not yet created.
21219 * ListViewItem.cs: CheckedIndices list no longer needs to be
21220 maintained separately (see ListView changes). Also clone font, fixes
21223 2006-09-11 Mike Kestner <mkestner@novell.com>
21225 * ComboBox.cs: if we are updating the contents of the currently
21226 selected index, refresh the control or the textbox selection.
21229 2006-09-11 Mike Kestner <mkestner@novell.com>
21231 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
21232 the 'specified' logic has been moved there. This seems like a bug
21233 in Control.cs, since our current SetBoundsCore completely ignores
21234 the specified parameter. Peter's commit seems to indicate that is
21235 the way the MS control implementation works. [Fixes #79325]
21237 2006-09-10 Jonathan Chambers <joncham@gmail.com>
21239 * XplatUI.cs: Set default_class_name to be composed
21240 of current domain id. This allows MWF to be loaded in multiple
21243 2006-09-09 Miguel de Icaza <miguel@novell.com>
21245 * X11Keyboard.cs: If we are unable to obtain the input method, do
21246 not call CreateXic to create the input context. Should fix
21249 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
21251 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21252 Simplified gnome support by adding more pinvokes to get the
21253 icon for a file or mime type.
21255 2006-09-08 Jackson Harper <jackson@ximian.com>
21257 * MenuAPI.cs: Deslect popup context menu items before closing the
21258 window, so that you don't see the previously selected item
21259 selected when you reopen the menu.
21260 * TextControl.cs: Update the cursor position even if we don't have
21261 focus. This fixes typing in things like the ComboBox. I'm not
21262 totally sure we should always set the visibility if we don't have
21263 focus, but couldn't find any corner cases where the cursor showed
21264 up when it shouldn't.
21266 2006-09-08 Chris Toshok <toshok@ximian.com>
21268 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21269 our arrays are length 256. & 0xff before indexing. Fixes the
21270 crash in bug #78077.
21272 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21274 * ThemeWin32Classic.cs:
21275 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21276 is true. Handle that check box too.
21278 2006-09-07 Chris Toshok <toshok@ximian.com>
21280 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
21283 2006-09-07 Chris Toshok <toshok@ximian.com>
21285 * Control.cs: in set_BackColor only do the work if
21286 background_color != value.
21288 * XplatUIX11.cs: move the clearing of invalid areas (both client
21289 and nc) to the same block of code where we set (nc_)expose_pending
21290 to false. That is, move it from PaintEventEnd to PaintEventStart,
21291 so things that cause invalidates from within OnPaint will trigger
21292 another call to OnPaint. Fixes bug #79262.
21294 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
21296 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21297 * FileDialog.cs: Fix typo
21299 2006-09-07 Jackson Harper <jackson@ximian.com>
21301 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
21302 for tab pages if they have any.
21304 2006-09-06 Mike Kestner <mkestner@novell.com>
21306 * Splitter.cs: use the "current" rect when finishing drag handle
21307 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
21309 2006-09-06 Mike Kestner <mkestner@novell.com>
21311 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21312 support offset splitters. [Fixes #79298]
21314 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
21316 * Mime.cs: Fixed a bug that could override the global mime type
21319 2006-09-05 Jackson Harper <jackson@ximian.com>
21321 * TabControl.cs: Better calculation method for setting the slider
21322 pos. Prevents crashes on really wide tabs.
21323 - Draw Image on tab pages if an image list is used.
21325 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21327 * MonthCalendar.cs: When Font changes, the Size should be
21328 updated to fit the new font's space requirements.
21330 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
21332 * ListBox.cs: If the items are cleared with Items.Clear set
21335 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21337 * MonthCalendar.cs: Handle arrow keys as input keys. Also
21338 fire DateChanged event instead of DateSelected event when
21339 the date was changed by keyboard interaction.
21341 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21343 * DateTimePicker.cs: Handle DateChanged for the associated
21344 month_calendar control, and set month_calendar.Font from
21345 OnFontChanged method, as well as resize the height of the
21346 control when needed. Make PreferredHeight proportional.
21348 2006-09-01 Chris Toshok <toshok@ximian.com>
21350 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21353 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21355 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
21357 * FileDialog.cs: Set ClientSize instead of window size, to allow space
21358 for decorations (Fixes #79219)
21360 2006-09-01 Mike Kestner <mkestner@novell.com>
21362 * ComboBox.cs: first stab at sorting plus some selection handling
21363 fixes to bring us more in line with MS behavior. Also switches back
21364 to index based selection. Alternative patches for index-based
21365 selection were provided by Jackson Harper, Carlos Alberto Cortez,
21366 and latency@gmx.de on bug 78848. I assume they were similar to this
21367 code I've had simmering in my tree forever.
21370 2006-09-01 Chris Toshok <toshok@ximian.com>
21372 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21373 when setting list position guard against ending up with a -1 index
21374 (the other part of the fix for #78812). Should probably make sure
21375 we don't need the analogous fix in the ItemDeleted case.
21378 - in SetDataSource, work around the fact that the way
21379 OnBindingContextChanged is invoked will cause us to re-enter this
21380 method. I'll remove the hack once I investigate
21381 OnBindingContextChanged.
21383 - fix the logic in set_DataSource and set_DataMember (basically
21384 what to do if the other of the two is null.)
21386 - in OnListManagerItemChanged, we need to take into account the
21387 edit row when deciding whether or not to call RecreateDataGridRows
21388 (part of the fix for #78812).
21390 2006-09-01 Jackson Harper <jackson@ximian.com>
21392 * Splitter.cs: Don't do anything if there is no control to affect
21393 (prevents us from crashing in weird tet cases).
21394 * TreeView.cs: Bounding box for the mouse movement reverting
21395 focus/selection back to previously selected node. This matches
21396 MS, and makes the tree a lot more useable.
21397 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21398 use clipping so they are not drawn. This fixes when the control
21399 is set to have a transparent background, or if it was over an
21402 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
21404 * MimeIcon.cs: Improved handling for reading default icons when
21405 using gnome (2.16 made it necessary). Check and read svg icons
21406 first, then 48x48 and then 32x32 icons.
21408 2006-08-31 Chris Toshok <toshok@ximian.com>
21410 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
21413 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
21414 ProcessKeyPreview. Fixes part of #77806.
21416 * DataGrid.cs: big patch.
21418 - revert the queueing up of DataSource/DataMember if inside
21419 BeginInit/EndInit calls. That's not the way the datagrid achieves
21420 its delayed databinding. Instead, call SetDataSource in
21421 OnBindingContextChanged. This mimic's MS's behavior, and fixes
21424 - Also, it wasn't mentioned in #78811, but the test case exhibits
21425 behavior that was lacking in our datagrid implementation - Columns
21426 that have mapping names that don't exist in the datasource's
21427 properties aren't shown. Yuck. To fix this I added the bound
21428 field to the column style, and basically any calculation to figure
21429 out anything about columns uses a loop to find the bound columns.
21430 still need to investigate if I can cache an array of the bound
21431 columns or if the indices must be the same.
21433 - When setting CurrentCell, we no longer abort if the cell being
21434 edited was in the add row. This fixes the other part of #77806.
21436 - The new code also fixes #78807.
21438 * ThemeWin32Classic.cs: perpetrate the same disgusting
21439 column.bound field hack, and only render bound fields.
21441 2006-08-31 Chris Toshok <toshok@ximian.com>
21443 * DataGridColumnStyle.cs: add bound field. this field is true if
21444 the datasource has a property corresponding to the mapping name.
21446 * DataGridTableStyle.cs: set the bound field on the column styles
21447 depending on whether or not we have a column for that property.
21449 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
21451 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
21452 splitter control (fixes #79228)
21454 2006-08-31 Chris Toshok <toshok@ximian.com>
21456 * DataGridColumnStyle.cs: we need to delay the assignment of
21457 property descriptor until the last possible moment due to the lazy
21458 databinding stuff in the datagrid. Also, fix the exceptions
21459 thrown by CheckValidDataSource to match MS.
21461 2006-08-31 Jackson Harper <jackson@ximian.com>
21463 * Form.cs: When activated select the active control, if there is
21464 no active control, we select the first control.
21465 * XplatUIX11.cs: If there is no focus control when we get a
21466 FocusIn event, find the toplevel form and activate it. This
21467 occurs when you popup a window, it becomes the focus window, then
21468 you close that window, giving focus back to the main window.
21470 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21472 * MonthCalendar.cs:
21473 * ThemeWin32Classic.cs: Cache Font in bold style, as well
21474 as StringFormat with Center alignments in MonthCalendar,
21475 instead of creating new ones when drawing the control.
21476 Also, draw the month name in bold style.
21478 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
21481 - PerformLayout(): It would seem MS performs the fill even if the
21482 control is not visible (part of #79218 fix)
21483 - ResetBackColor(): Use the setter to reset the color, to allow
21484 overriders to catch the change.
21486 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
21487 - CreateHandle(): dito (part of $79218 fix)
21488 - Don't set an icon if we have a dialog
21489 * ScrollableControl.cs:
21490 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
21491 - ScrollIntoView(): No need to scroll if control is already visible
21492 (resolves fixme and fixes #79218)
21494 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21496 * MonthCalendar.cs: Change proportions in SingleMonthSize
21497 to match the aspect of the original control.
21499 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
21501 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
21502 get updated when they get maximized.
21504 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
21506 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
21508 2006-08-29 Chris Toshok <toshok@ximian.com>
21510 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
21512 2006-08-29 Jackson Harper <jackson@ximian.com>
21514 * TreeView.cs: Need to track selected node and highlighted node,
21515 they aren't always the same thing, when the mouse is down on a
21516 node it is hilighted, but not selected yet.
21517 - Do the HideSelection stuff right
21518 - Need to focus on rbutton mouse down. And redraw selection when
21519 right click is mouse upped.
21521 2006-08-29 Mike Kestner <mkestner@novell.com>
21523 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
21524 when SubItems.Count < Columns.Count. [Fixes #79167]
21526 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21528 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
21530 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21532 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
21533 from X. Only send based on ConfigureNotify if we don't have the
21534 correct location in hwnd (if the window manager moved us)
21536 2006-08-28 Mike Kestner <mkestner@novell.com>
21538 * ListView.cs: remove a TODO.
21539 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
21540 [Fixes ListView part of #79166]
21542 2006-08-28 Mike Kestner <mkestner@novell.com>
21544 * ListView.cs: move wheel handler to parent since it is focused
21545 instead of the item_control now. [Fixes #79177]
21547 2006-08-28 Mike Kestner <mkestner@novell.com>
21549 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
21550 when the control is focused. [Fixes #79171]
21552 2006-08-28 Mike Kestner <mkestner@novell.com>
21554 * ListView.cs: size the item and header controls for empty and
21555 unscrollable views.
21556 * ThemeWin32Classic.cs: draw disabled backgrounds.
21559 2006-08-28 Chris Toshok <toshok@ximian.com>
21561 * Form.cs: remove unused "active_form" static field.
21563 * Hwnd.cs: lock around accesses to static windows collection.
21565 * Application.cs: lock threads in Exit ().
21567 2006-08-28 Chris Toshok <toshok@ximian.com>
21569 * NativeWindow.cs: lock around accesses to window_collection.
21571 2006-08-28 Chris Toshok <toshok@ximian.com>
21573 * Control.cs: err, fix this the right way, by locking on controls
21574 when using it. not by making it synchronized.
21576 2006-08-28 Chris Toshok <toshok@ximian.com>
21578 * Control.cs: make the static "controls" field synchronized, as it
21579 gets updated from multiple threads.
21581 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
21583 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
21584 Prevent other threads from exiting when calling thread sets quit state.
21585 * XEventQueue.cs: Added PostQuitState property
21587 2006-08-27 Chris Toshok <toshok@ximian.com>
21589 * AsyncMethodData.cs: add a slot for the window handle.
21591 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
21592 window (the destination control's window, not the foster window).
21594 * Control.cs (BeginInvokeInternal): store the window's handle in
21595 the AsyncMethodData.
21598 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
21601 - PostQuitMessage: Removed resetting S.D display handle, we might have
21602 another loop started after calling PostQuitMessage (Fixes #79119)
21603 - Created destructor to reset S.D handle
21605 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
21607 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
21609 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21611 * TextControl.cs (Insert): Update the caret position even if we don't
21612 have a handle yet, just don't call the driver in that case.
21613 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
21614 to the end of the new selection text (Fixes #79184)
21616 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21618 * Form.cs (Activate): Only activate if the handle is created)
21620 - Mark window as invisible when it's disposed
21621 - Check if window handle is created when setting window visible,
21622 instead of relying just on the is_created variable
21623 - Check if object is disposed when creating the control (Fixes #79155)
21625 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21627 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
21628 when allowing layout again. Otherwise we re-generate the anchoring
21629 distance to the border again and actually alter what the user wanted
21630 This is ugly, it'd be better if we used DisplayRectangle instead of
21631 ClientRectangle for Control.UpdateDistances, but that causes us to
21632 have other problems (initial anchoring positons would be wrong)
21635 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21638 - The size and location setters shouldn't go directly to
21639 SetBoundsCore, but to SetBounds, which triggers layout on the
21640 parent, then calls SetBoundsCore. (Related to fix for #78835)
21641 - SetBounds: Moved actual location update code into this function
21642 from SetBoundsCore, to match MS. Added call to PerformLayout if
21643 we have a parent (to trigger resizing of anchored parents if the
21644 child size has changed (see testcase for #78835)
21645 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
21647 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
21649 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21651 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
21652 System.Drawing when a toplevel window gets closed; there might
21653 be other toplevel windows belonging to the same app (Fixes #78052)
21655 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
21657 * FileDialog.cs: After reading FileDialog settings from mwf_config
21658 use Desktop prefix only if a real folder doesn't exist anymore.
21659 * FontDialog.cs: Added char sets.
21660 It is now possible to select the font, size or style with the
21663 2006-08-25 Kornél Pál <kornelpal@gmail.com>
21665 * PrintPreviewDialog.cs: Use assembly name constants.
21667 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21669 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
21670 scrollbar from whacking it's buttons)
21672 2006-08-24 Chris Toshok <toshok@ximian.com>
21674 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
21675 in this patch (aggregating setting Left/Top/Width/Height to
21676 setting Bounds on the scrollbars), but the crux of the fix is in
21677 Recalculate, where we scroll by the remaining scroll_position if
21678 we're hiding a scrollbar. The 2*$5 reward in the comment is
21681 2006-08-24 Jackson Harper <jackson@ximian.com>
21684 * MdiWindowManager.cs: If the form is made a non-mdi window we
21685 need to remove the form closed event so that closing forms works
21688 2006-08-24 Jackson Harper <jackson@ximian.com>
21690 * Control.cs: Make IsRecreating internal so that the driver can
21692 - Temporarily remove the Hide when controls are removed, its
21693 making a whole bunch of things not work because visibility isn't
21694 getting reset elsewhere correctly
21695 * Form.cs: Need to do a full handle recreation when the mdi parent
21697 * XplatUIX11.cs: If we are recreating handles don't dispose the
21698 HWNDs. What was happening is the handles were being recreated in
21699 SendWMDestroyMessages, but then flow continued on in that method
21700 and destroyed the new handles.
21702 2006-08-23 Jackson Harper <jackson@ximian.com>
21704 * Form.cs: MdiClient is always at the back of the bus
21705 * Control.cs: When the order of items in the collection is changed
21706 we need to reset the all_controls array
21707 - do the same sorta setup thats done when adding a control when a
21708 control is set on the collection.
21710 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21712 * TextBoxBase.cs (get_Text): Return an empty array if our document
21713 is empty (fixes #79052)
21715 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21717 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
21718 on WM_SYSCHAR messages (fixes #79053)
21720 2006-08-23 Chris Toshok <toshok@ximian.com>
21722 * DataGrid.cs: fix flickering when scrolling vertically.
21724 2006-08-23 Chris Toshok <toshok@ximian.com>
21726 * DataGrid.cs (EndEdit): only invalidate the row header when we
21729 2006-08-23 Chris Toshok <toshok@ximian.com>
21731 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
21732 methods. fixes the flicker when scrolling around.
21734 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21736 * FileDialog.cs: Making sure the control is created before we get a
21737 chance to use it with BeginInvoke (Fixes #79096)
21739 2006-08-23 Chris Toshok <toshok@ximian.com>
21741 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
21742 width to use when painting the rows.
21744 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21747 - Throw ArgumentException if a negative value is passed to SelectionLength
21748 - Update the selection end if start is moved. end needs to be always
21749 after start. (Fixes #79095)
21750 - Track selection length; MS keeps the selection length even if start
21751 is changed; reset on all other operations affection selection
21753 2006-08-22 Jackson Harper <jackson@ximian.com>
21755 * TreeView.cs: Make sure both scrollbars get displayed and sized
21756 correctly when the other bar is visible.
21757 - Use the original clip rectangle for checking if the area between
21758 the two scrollbars is visible, not the viewport adjusted clipping
21761 2006-08-22 Jackson Harper <jackson@ximian.com>
21763 * Binding.cs: We don't use IsBinding because it requires the
21764 control to be created, which really shouldn't be necessary just to
21765 set a property on the control.
21767 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21769 * ComboBox.cs: Some CB.ObjectCollection methods must throw
21770 ArgumentNullReferenceException when the argument is null.
21772 2006-08-21 Jackson Harper <jackson@ximian.com>
21774 * Timer.cs: Track the thread that the timer is started in (NOT
21775 CREATED), this way messages for it will only be triggered on its
21777 * XEventQueue.cs: Track the timers here, this makes timers per
21779 * XplatUIX11.cs: The timers are moved to the XEventQueue.
21781 2006-08-19 Chris Toshok <toshok@ximian.com>
21783 * XplatUIX11.cs: after further communication with pdb, we get the
21784 best of both worlds. SetZOrder working for un-Mapped windows, and
21785 no X errors for un-mapped windows.
21787 2006-08-19 Chris Toshok <toshok@ximian.com>
21789 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
21790 as it was causing pdn toolbars to not have the correct stacking.
21792 2006-08-18 Mike Kestner <mkestner@novell.com>
21794 * ListView.cs : guard against negative ClientArea.Width in scrollbar
21795 calculation. Not sure why control should ever be setting a negative
21796 width though. Fixes #78931.
21798 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21800 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
21801 null items in ObjectCollection class.
21802 * ListBox.cs.: Likewise.
21804 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
21806 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
21807 as the base method in ThemeWin32Classic should work fine.
21810 2006-08-18 Jackson Harper <jackson@ximian.com>
21812 * Binding.cs: When validating if the value entered doesn't convert
21813 properly reset to the old value.
21814 * RadioButton.cs: Don't fire click when we get focus.
21816 2006-08-18 Jackson Harper <jackson@ximian.com>
21818 * FileDialog.cs: Paint the selection on the directory combobox the
21821 2006-08-17 Jackson Harper <jackson@ximian.com>
21823 * ErrorProvider.cs: Don't allow the error control to be selected.
21824 * Control.cs: Don't send the SetFocus messages, the control
21825 activation will do this, and if we do it blindly here validation
21828 2006-08-17 Jackson Harper <jackson@ximian.com>
21831 * ContainerControl.cs: Make validation events fire in the correct
21832 order. TODO: For some reason the first validation event is not
21835 2006-08-17 Mike Kestner <mkestner@novell.com>
21837 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
21839 2006-08-17 Mike Kestner <mkestner@novell.com>
21841 * ComboBox.cs : implement scroll wheel support for popped-down
21842 state. Fixes #78945.
21844 2006-08-17 Jackson Harper <jackson@ximian.com>
21846 * TreeView.cs: Specify treeview actions (old patch that didn't get
21847 committed for some reason).
21848 - Don't let the mouse wheel scroll us too far. Just want to make
21849 the bottom node visible, not scroll it all the ways to the top.
21851 2006-08-17 Jackson Harper <jackson@ximian.com>
21853 * XplatUIX11.cs: Mouse wheel events go to the focused window.
21855 2006-08-17 Mike Kestner <mkestner@novell.com>
21857 * ComboBox.cs : don't do mouseover selection in simple mode.
21859 2006-08-16 Jackson Harper <jackson@ximian.com>
21861 * Form.cs: Fire the closing events for all the mdi child windows
21862 when a window is closed. If the cancel args are set to true, the
21863 main window still gets the event fired, but it doesn't not close.
21864 * MdiWindowManager.cs: Do this closing cleanup in a Closed
21865 handler, instead of when the button is clicked, so cancelling the
21866 close works correctly.
21867 * ComboBox.cs: Send the mouse down to the scrollbar.
21869 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21871 * ListBox.cs: When passing 'null' to SelectedItem,
21872 set SelectedIndex to -1, to unselect items. This is the
21873 observed behaviour in .Net.
21875 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
21877 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
21878 MS flags saying there won't be any. (fixes #78800)
21879 * Control.cs (HandleClick): Made virtual
21881 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
21883 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
21884 cultures. Fixed bug #78399.
21886 2006-08-16 Jackson Harper <jackson@ximian.com>
21888 * Form.cs: Use the MdiClients MdiChildren property to access
21889 MdiChildren instead of creating the array from the child controls.
21890 * MdiClient.cs: Maintain a separate array of the mdi children, so
21891 that insertion order is maintained when the Z-order is changed.
21893 2006-08-16 Mike Kestner <mkestner@novell.com>
21895 * ListView.cs : add an ItemComparer and default to it for sorting.
21896 Fixes #79076, but sorting needs a complete overhaul to be compat with
21899 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21901 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
21903 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21905 * Hwnd.cs (Mapped): Properly traverse the tree
21907 2006-08-15 Chris Toshok <toshok@ximian.com>
21909 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
21910 pass manager.Current.GetType() to ParseData. It has to be the
21911 property type. So, hold off doing the ParseData until we're in
21912 SetPropertyValue where we know the type. This fixes the crash in
21913 #78821 but the textbox is still empty.
21915 2006-08-15 Chris Toshok <toshok@ximian.com>
21918 - when we're scrolling, only call Edit() again if the
21919 current cell is still unobscured. Fixes bug #78927.
21920 - when handling mousedown on a cell, ensure the cell is visible
21921 before calling Edit.
21922 - remove the properties from DataGridRow, and remove the
21923 DataGridParentRow class altogether.
21926 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21928 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
21929 fire OnTextChanged by ourselves. There's no point calling base,
21930 we don't set the base value anywhere else. Fixes #78773.
21932 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21934 * ListBox.cs: Call CollectionChanged when modifying
21935 an item from Items indexer, to update the actual items
21938 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21940 * PrintDialog.cs: Small fixes for focus and a pair of checks,
21941 to match .Net behaviour.
21943 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21945 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
21947 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21949 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
21951 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21953 * MessageBox.cs: Prevent potential NRE exception.
21954 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
21956 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
21958 * MessageBox.cs: Calculate the owner of a messagebox, also make
21959 it topmost. Fixes #78753
21961 2006-08-14 Chris Toshok <toshok@ximian.com>
21963 * XplatUIX11.cs: A couple of fixes so that metacity will let us
21964 programmatically move windows. first, set the PPosition hint as
21965 well as the USPosition hint. Second include some code from pdb
21966 that sets the window type to NORMAL when we set the transient for
21967 hint. This is because, in the absence of a window type, metacity
21968 thinks any window with TransientFor set is a dialog, and refuses
21969 to let us move it programmatically. fascists.
21971 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
21973 * XplatUIX11.cs: When setting normal hints, take into consideration
21974 an different hints previously set so we don't delete them (fixes #78866)
21976 2006-08-12 Chris Toshok <toshok@ximian.com>
21978 * ToolBarButton.cs: make Layout return a boolean, if something to
21979 do with the button's layout changed.
21982 - add another parameter to Redraw, @force, which all existing
21984 - make the Layout function return a boolean which is true if the
21985 layout has actually changed. Redraw now uses this (and @force)
21986 to determine when to invalidate. At present the only place
21987 where @force can be false is the call from OnResize, when
21988 background_image == null. So, resizing a toolbar when the
21989 layout doesn't change results in no drawing.
21991 2006-08-12 Chris Toshok <toshok@ximian.com>
21993 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
21994 the VScrollBar and HScrollbar reversed. oops.
21996 * DataGrid.cs: fix the logic that assigns sizes to the implicit
21997 scrollbars. we were assigning them twice (once in
21998 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
21999 therefore causing two scrollbar resizes (and redraws?) to happen
22002 2006-08-12 Chris Toshok <toshok@ximian.com>
22004 * ToolBarButton.cs: redraw the entire button if the theme tells us
22007 * Theme.cs: add ToolBarInvalidateEntireButton.
22009 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22010 buttons, just the border.
22012 * ThemeNice.cs: redraw the entire toolbar button since we need to
22013 draw the highlight image.
22015 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22016 we need to redraw the entire button (not just the border).
22018 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22020 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22021 for vertical bars. Fixes the mismatches shown by #78513
22023 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
22025 * FileDialog.cs: If a saved/remembered path doesn't exist
22026 anymore, fall back to "Desktop".
22028 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22030 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22031 parent. It's apparently legal to not have one
22033 - SetZOrder: Don't try to set Z-Order on an unmapped window
22034 - CreateWindow: 0,0 are legal coordinates for a window. don't move
22035 it unless the coordinates are negative
22037 2006-08-10 Mike Kestner <mkestner@novell.com>
22039 * ListControl.cs: allow null for DataSource. Clear DisplayMember
22040 when setting to null per msdn docs. Fixes #78854.
22042 2006-08-10 Chris Toshok <toshok@ximian.com>
22044 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22045 flickering by setting a clip rectangle on the Graphics when we
22046 need to redraw just a particular menuitem. Also, rename "OnClick"
22047 to "OnMouseDown" to reflect what it actually is.
22049 * Form.cs: track the OnMouseDown change.
22051 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
22053 * CommonDialog.cs: Properly inherit the CreateParams from the form
22054 and only change what we need. Fixes #78865
22056 2006-08-10 Chris Toshok <toshok@ximian.com>
22058 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22059 flickering in flat mode (and most of the flickering in general) by
22060 only invalidating the button border (and not the entire rectangle)
22061 when the state changes. A couple of cases still flicker:
22062 ToggleButtons, and the dropdown arrow case when the user mouse
22065 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
22067 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22068 for german keyboards. Numlock state shouldn't affect the behaviour
22069 of the Del key. Fixes bug #78291.
22071 2006-08-10 Chris Toshok <toshok@ximian.com>
22073 * ListControl.cs: remove the items.Clear line from BindDataItems,
22074 as this is the first thing done by both subclasses in their
22075 SetItemsCore overrides. Also, add a ItemChanged handler, and when
22076 passed -1, refresh the list. This gets databinding working when
22077 the datasource is set on the list before the datasource is
22078 populated (as in wf-apps/ReportBuilder.)
22080 * ComboBox.cs: remove the argument to BindDataItems. This call
22081 should really go away, and be initiated by the ListControl code.
22083 * ListBox.cs: same.
22085 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22087 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22088 if no data is in the document when the control is displayed
22090 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22092 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22095 - PositionCaret: Allow positioning of caret but don't call methods
22096 requiring a handle if the window isn't created yet
22097 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22098 - owner_HandleCreated: Don't position the caret, just update it's
22099 location. User might have already set a different position
22101 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22103 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22104 windows. Screws up the returned coordinates for child windows.
22105 Fixes #78825. I'm hoping this doesn't break something, since the
22106 code was explicitly put in 8 months ago, but no bug was attached.
22107 Menus still seem to work properly.
22109 2006-08-08 Chris Toshok <toshok@ximian.com>
22111 * DataGrid.cs: make BeginInit/EndInit actually do what they're
22112 supposed to do - delay data binding until the EndInit call. Also,
22113 make the table style collection's CollectionChangeAction.Refresh
22116 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22117 (with action = Refresh) when a consituent table's MappingName is
22120 2006-08-08 Chris Toshok <toshok@ximian.com>
22122 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22123 Invalidate, since changing the text can change the size of the all
22126 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22128 * Form.cs (AddOwnedForm): Still need to add the form to our listif
22129 we don't have it yet
22131 2006-08-08 Chris Toshok <toshok@ximian.com>
22133 * PrintControllerWithStatusDialog.cs: don't .Close() the status
22134 dialog, as this causes X errors later on, since we actually
22135 destroy the window. Instead, .Hide() it.
22137 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22139 * ComboBox.cs: Added focus reflection for popup window
22141 - Removed transient setting for non-app windows for now, not sure it
22143 - Fixed logic checking if we have captions when deciding
22144 override_redirect, WS_CAPTION is two bits and a 0 check was not
22146 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22149 - AddOwnedForm: Don't just add the form to the list, call the property
22150 to ensure the driver is informed about the ownership as well
22151 - CreateHandle: Set the TopMost status in the driver if we have an owner
22152 * XplatUI.cs: Fixed debug statement
22154 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
22155 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22156 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22157 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
22158 TrackBarRenderer.cs: Make constructor private.
22159 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22160 * ProfessionalColorTable.cs: Make properties virtual.
22162 2006-08-06 Duncan Mak <duncan@novell.com>
22164 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22167 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22168 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22169 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22170 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22171 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22172 Initial import of new 2.0 classes.
22174 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22175 * Application.cs: Add 2.0 VisualStyles properties.
22177 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22178 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22179 XplatUIX11.cs: Create property to allow access to existing private
22180 variable "themes_enabled"
22182 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22184 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22185 file size, as otherwise our class libraries fail using windows. Fixes
22188 2006-08-04 Jackson Harper <jackson@ximian.com>
22191 * XplatUIX11.cs: Move the toolwindow window manager creation into
22192 the X11 driver, this way on win32 we can let windows create/handle
22195 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22197 * PrintDialog.cs: Remove some redundant checks, add some others,
22198 clean some code, and move the focus to the text boxes when the
22199 values are incorrect.
22201 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
22203 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22205 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22207 * NumericUpDown.cs: Setting the Minimum and Maximum is now
22208 handled correctly. Fixes bug #79001.
22210 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22212 * PrintDialog.cs: The "Copies" numeric up down must have
22213 set the Minimum property to 1; only if the value is bigger
22214 than 1, activate "Collate" check box. This is the behaviour of .Net.
22215 Also modify the Document elements only if it is not null.
22217 2006-08-03 Jackson Harper <jackson@ximian.com>
22219 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22220 length. (We have a larger array then actual node count).
22222 2006-08-03 Jackson Harper <jackson@ximian.com>
22224 * ComboBox.cs: Don't show selection by default.
22225 - The SelectAll isn't needed here, since the focus code should do
22227 - DDL style lists to manual selection drawing, so when they
22228 get/lose focus they have to invalidate.
22230 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
22232 * TextBoxBase.cs: Don't always show all selections by default.
22234 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
22235 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22236 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22237 Fixed various typos.
22239 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22241 * Control.cs: Removing the controls in a ControlCollection with
22242 Clear now hides the controls as expected. Fixes bug #78804.
22244 2006-08-03 Jackson Harper <jackson@ximian.com>
22246 * Control.cs: Revert previous focus patch, it breaks reflector.
22248 2006-08-03 Jackson Harper <jackson@ximian.com>
22250 * ComboBox.cs: Cleanup selection and focus with the combobox.
22251 This also eliminates some duplicated keyboard code, since now
22252 everything is handled by the main class.
22253 - Make list selection work on mouse up instead of down, to match
22256 2006-08-02 Jackson Harper <jackson@ximian.com>
22258 * Control.cs: Setting focus needs to go through the whole
22259 selection mechanism.
22261 2006-08-02 Chris Toshok <toshok@ximian.com>
22263 * PrintPreviewDialog.cs: change MinimumSize to use
22264 base.MinimumSize so it works.
22266 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
22269 - UpdateCaret: Added sanity check in case caret isn't defined yet
22270 - Line.Delete: Now updating selection and caret markers if we're
22271 transfering a node (Properly fixes #78323)
22272 - SetSelectionEnd: Added sanity check
22273 * TextBoxBase.cs: Removed broken attempt to fix #78323
22275 2006-08-01 Chris Toshok <toshok@ximian.com>
22277 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22278 Close() call is handled in Form, not here.
22280 2006-08-01 Chris Toshok <toshok@ximian.com>
22282 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22285 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22286 for sizes < 100% zoom. The code now aggressively attempts to keep
22287 from calling document.Print (), and tries not to use the scaling
22288 g.DrawImage whenever possible (it still does if you scale to >
22289 100%, since usually that involves huge images).
22291 * PrintPreviewControl.cs: hook up the close button.
22293 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
22294 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22295 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22296 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22297 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22298 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22299 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22300 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22301 Removed [Serializable] for 2.0 Event Handlers.
22303 2006-07-31 Jackson Harper <jackson@ximian.com>
22305 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22306 * TextControl.cs: Uncomment out the body of this method.
22308 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
22310 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22313 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22315 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22316 that embed TextBox and need selections visible even if textbox is not
22317 focused to enforce that behaviour.
22318 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22321 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22324 - Added new SetSelectionStart/SetSelectionEnd overloads
22325 - Fixed viewport width assignment to be accurate
22326 - Adjusted alignment line shift calculations to allow cursor on right
22327 aligned lines to be always visible at the right border (like MS)
22329 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22330 - TextBoxBase_SizeChanged: recalculating canvas on size changes
22331 - CalculateScrollBars: Use ViewPort size instead of window size, to
22332 properly consider space occupied by the border and scrollbars
22334 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
22335 calculations; no longer leaves artifacts
22336 - CaretMoved: Adjusted window scrolling to match MS and fixed several
22337 calculation bugs (Still missing right/center align calculations)
22339 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22341 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22342 use of both scroll rect and clip rect, as they do the same.
22344 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22346 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
22347 in the event handler (fixes #78912)
22349 2006-07-31 Chris Toshok <toshok@ximian.com>
22351 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22352 grid.ListManager.Count, since grid.ListManager might be null.
22353 This of course begs the question "why are we drawing rows for a
22354 grid with no list manager (and therefor no rows)?" Fixes the
22355 crash in bug #78929.
22357 2006-07-31 Chris Toshok <toshok@ximian.com>
22359 * RelatedPropertyManager.cs: Don't always chain up to the parent
22360 ctor. instead, call SetDataSource if the parent's position is !=
22361 -1. Fixes the crash in #78822.
22363 2006-07-31 Chris Toshok <toshok@ximian.com>
22365 * DataGrid.cs (get_ListManager): use field instead of property
22366 accessors for datasource and datamember.
22367 (RowsCount): make internal again.
22368 (OnMouseDown): end edits before resizing columns/rows.
22369 (OnMouseUp): restart edits after resizing columns/rows.
22371 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
22373 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22374 This fixes the situation where the last set cursor is displayed
22375 whenever the mouse is over scrollbars.
22377 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22379 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22380 Document properties, as well as initial values.
22382 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
22384 * XplatUIWin32.cs (SetBorderStyle): Setting both border
22385 and ClientEdge results in a 3-pixel border, which is
22388 2006-07-28 Jackson Harper <jackson@ximian.com>
22390 * TreeNodeCollection.cs: Fix the clear method.
22391 - Fix the Shrink also
22393 2006-07-27 Jackson Harper <jackson@ximian.com>
22395 * TreeView.cs: Make sure the visible order is computed when we
22396 attempt to size the scrollbars (for trees that mess with the
22397 scrolling when they shouldn't.
22398 - Make sure to give the scrollbars valid values.
22400 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22402 * XplatUIX11.cs: Move motion compression code to where it
22403 has less performance impact
22405 2006-07-26 Jackson Harper <jackson@ximian.com>
22407 * UpDownBase.cs: When the control is selected make the child
22408 controls non selectable, so that a click on them won't do a
22409 focus/unfocus cycle.
22410 - Don't give focus to the text box when the spinner is selected.
22411 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
22413 2006-07-26 Chris Toshok <toshok@ximian.com>
22415 * ThemeWin32Classic.cs: add print preview rendering. I'm not
22416 satisfied with this solution. If the bitmaps are small, we should
22417 just cache them in the PrintPreviewDialog and draw them here.
22418 Also, the layout is broken for the 2-up and 3-up cases.
22420 * Theme.cs: add PrintPReviewControlPaint.
22422 * PrintPreviewDialog.cs: first pass implementation.
22424 * PrintPreviewControl.cs: first pass implementation. No
22427 * PrintDialog.cs: only validate fields if that particular portion
22428 of the UI is enabled. Also, set the document's controller to a
22429 PrintControllerWithStatusDialog wrapping the document's print
22432 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
22433 bring up a SaveFileDialog (i hope we don't want to match the
22434 behavior of the crappy windows file entry) and set the
22435 PrinterSettings.PrintFileName accordingly.
22437 2006-07-26 Jackson Harper <jackson@ximian.com>
22439 * ContainerControl.cs: Add a field that disables auto selecting
22440 the next control in a container when the container is activated.
22441 * UpDownBase.cs: Don't select the text box when the up down is
22444 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22446 * XEventQueue.cs: Added methods for peeking (used for compression
22447 of successive events)
22448 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
22449 mouse move events (fixes #78732)
22451 2006-07-25 Jackson Harper <jackson@ximian.com>
22453 * UpDownBase.cs: Use an internal class for the textbox so that we
22454 can control focus. the updown control should always have focus,
22455 if either the text area or the buttons are clicked.
22456 - Send the key messages to the textbox, since it never actually
22458 - Activate and decativate the textbox caret.
22460 2006-07-24 Jackson Harper <jackson@ximian.com>
22462 * Control.cs: Use the directed select when selecting a control,
22463 this way the container controls override will get called and the
22464 whole ActiveControl chain will get triggered. TODO: probably need
22465 to make sure this gets done everywhere instead of the old
22467 * ContainerControl.cs: Implement the directed Select method to
22468 find and activate the correct child control.
22470 2006-07-22 Mike Kestner <mkestner@novell.com>
22472 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
22473 menu handling code so that clicks without a grab work too.
22476 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
22478 * FileDialog.cs: Enable the BackButton when dirstack has one element.
22479 Added some small optimizations.
22481 2006-07-21 Matt Hargett <matt@use.net>
22483 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
22485 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
22487 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
22488 tests pass and match MS in some strange border cases.
22490 2006-07-21 Chris Toshok <toshok@ximian.com>
22492 * ThemeWin32Classic.cs: handle drawing of the relation links and
22493 parent row buttons.
22495 * Theme.cs: change args to DataGridPaintParentRow.
22497 * DataGrid.cs: Don't use controls for the relation links and
22498 parent buttons, so we have to handle all their interactions in
22499 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
22500 when we're navigating through child tables, so we can reinstate
22501 selection, expanded state, current cell, etc.
22503 2006-07-20 Chris Toshok <toshok@ximian.com>
22505 * ToolBar.cs: When we redraw a button, for whatever reason,
22506 there's no reason to redraw the entire toolbar. Also, don't call
22507 Control.Refresh from within Redraw, as it's much heavier than
22508 Invalidate (which is really what we want).
22510 2006-07-20 Chris Toshok <toshok@ximian.com>
22512 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
22513 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
22514 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
22515 traces from within a debug IBindingList datasource
22516 (in mono/winforms/datagrid) for *days*, I've finally gotten things
22517 to work in a similar fashion.
22519 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22521 * ListBox.cs: Don't call Sort () when setting
22522 the Sorted property to false (avoid an unnecessary sort).
22524 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22526 * ListControl.cs: DataSource should throw an ArgumentException
22527 instead of a normal exception when the argument is not of the
22530 2006-07-20 Mike Kestner <mkestner@novell.com>
22532 * Control.cs: add InternalPreProcessMessage to allow us to steal
22533 key events before MWF gets its paws on them. Adapted from a
22535 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
22536 up/down/left/right navigation. Override the new internal control
22537 method to steal the events since they never make it to WndProc.
22538 * ToolBarButton.cs: don't worry about pushed when setting hilight
22539 since the drawing code prefers pushed to hilight. Invalidate on
22540 Hilight changes. Fixes #78547 and #78525.
22542 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22544 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
22545 the canvas size. Fixes #78868
22547 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22549 * Splitter.cs: Track requested split position until first layout
22550 is performed. Fixes #78871
22552 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22554 * Application.cs: Removed code that forces 1.x for the version
22555 number if the version started with 0. Not sure why that code was
22556 there and I couldn't find any bugs that indicated we needed it.
22559 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
22561 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
22562 ResetDefaults(), just write some output to the console until it's
22563 implemented. Fixes bug #78907 for now. Eliminated two warnings.
22565 2006-07-19 Jonathan Chambers <joncham@gmail.com>
22567 * PropertyGridView.cs: set StartPosition of drop down forms
22568 so they appear in correct initial spot. Fixes #78190.
22570 2006-07-19 Mike Kestner <mkestner@novell.com>
22572 * ThemeWin32Classic.cs: use parent background color when drawing
22573 flat toolbars. Restructure the conditionals to make sure non-flat
22574 non-Divider toolbars are filled too. Fixes #78837.
22576 2006-07-19 Mike Kestner <mkestner@novell.com>
22578 * ListBox.cs: Sort on collection changes even if the handle
22579 isn't created yet. Fixes #78813.
22581 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22583 * ListControl.cs: DisplayMember should never be null,
22584 and now we assign String.Empty when null is passed to it (this
22587 2006-07-17 Mike Kestner <mkestner@novell.com>
22589 * ListViewItem.cs: restructure Font and subitem Font handling
22590 to hold a specific font and refer back to owner on null.
22593 2006-07-17 Mike Kestner <mkestner@novell.com>
22595 * ToolBar.cs: bandaid for side-effect of previous patch which was
22596 discarding explicit heights for non-AutoSize toolbars. Need to
22597 extend my format tester to deal with AutoSize=false. Fixes #78864.
22599 2006-07-15 Jackson Harper <jackson@ximian.com>
22601 * LabelEditTextBox.cs:
22602 * TreeView.cs: Use a new LabelEdit class for node editing, this
22603 class automatically 'closes' itself when it gets the enter key or
22605 - Use the client rectangle when setting the trees scrollbars, so
22606 border style is taken into account.
22608 2006-07-14 Jackson Harper <jackson@ximian.com>
22611 * TreeView.cs: Make the editing work similar to MSs, firing the
22612 events correctly and ending edits correctly.
22614 2006-07-14 Mike Kestner <mkestner@novell.com>
22616 * ToolBarButton.cs:
22617 * ToolBar.cs: layout restructuring and redraw enhancements to support
22618 formatting changes gracefully, like setting TextAlign, ImageList,
22619 ButtonSize, and Appearance. Handles explicit button sizing quirks
22620 of the MS controls. Things like flat toolbars ignoring button size
22621 but becoming constant sized at the largest button's size. Normal
22622 toolbars with an image set cannot be shrunk smaller than the image,
22623 but text can be clipped/ignored.
22624 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
22625 is zero. Seems like DrawString should be smart enough to not put
22626 anything on screen though. Also trim labels and ellipsize at the char
22627 boundary, not word.
22628 Fixes #78711 and #78483.
22630 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22632 * FolderBrowserDialog.cs: Disable "New Folder" button and
22633 "New Folder" contextmenu menuitem if a folder like "My Computer"
22636 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22638 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
22639 * FolderBrowserDialog.cs:
22640 - Use MWFConfig to store and read size and position settings
22641 - Added code to create a new folder (button or context menu).
22642 Use TreeView labeledit to change the name of the new folder.
22644 2006-07-14 Jackson Harper <jackson@ximian.com>
22646 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
22647 when the tree is scrolled we end editing.
22649 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22651 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
22654 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
22656 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
22657 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
22658 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
22659 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
22660 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
22661 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
22662 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
22663 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
22664 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
22665 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
22666 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
22667 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
22668 ListViewItemSelectionChangedEventHandler.cs,
22669 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
22670 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
22671 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
22672 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
22673 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
22674 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
22675 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
22676 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
22677 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
22678 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
22679 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
22680 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
22681 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
22682 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
22683 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
22684 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
22685 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
22686 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
22687 WebBrowserNavigatingEventHandler.cs,
22688 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
22690 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
22692 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
22693 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
22694 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
22695 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
22696 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
22697 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
22698 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
22699 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
22700 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
22701 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
22702 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
22703 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
22704 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
22705 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
22706 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
22707 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
22708 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
22709 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
22710 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
22711 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
22712 ListViewItemStates.cs, MaskFormat.cs: Added
22714 2006-07-13 Jonathan Chambers <joncham@gmail.com>
22716 * PropertyGridView.cs: Fix keyboard navigation of drop down.
22717 Patch from eno for bug 78558.
22719 2006-07-13 Jackson Harper <jackson@ximian.com>
22721 * TreeView.cs: When an edit is finished make sure that the
22722 selected node is visible.
22723 - When setting the top/bottom use the scrollbars is_visible, so
22724 everything will be set correctly even if the tree isn't visible
22727 2006-07-13 Jackson Harper <jackson@ximian.com>
22729 * ComboBox.cs: Revert the item->index part of my previous patch.
22730 * TreeView.cs: Use LostFocus instead of Leave for detecting when
22731 the edit box has lost focus (duh).
22732 - Just make the edit box not visible when we get return, that will
22733 take the focus, which will call EndEdit
22734 * TreeNode.cs When we start editing, notify the treeview.
22736 2006-07-12 Jackson Harper <jackson@ximian.com>
22738 * ComboBox.cs: Clear out old items before setting the item list.
22739 This prevents databound controls from having their items added
22741 - Switch the combobox to use indices whereever possible instead of
22742 using Item's. This allows usto navigate through lists that have
22743 more then one item with the same string value (ie a, b, b, a).
22744 - Scroll the listboxes scrollbar when a non visible item is
22746 - Allow keypress to cycle through all the possible values. For
22747 example if you have b1, b2, b3 and hold down the B key all the
22748 values will be cycled through.
22750 2006-07-12 Jackson Harper <jackson@ximian.com>
22753 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
22754 this using the internal methods.
22755 * Control.cs: Add OnGotFocusInternal. A new method that allows
22756 controls to "override" OnGotFocus and change focus behavior if
22758 - Same thing for LostFocus
22759 * ComboBox.cs: Pass off focus to the text control properly.
22761 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
22763 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
22764 * FolderBrowserDialog.cs: Almost a complete rewrite.
22765 - Better support for Environment.Specialfolders
22766 - Added support for MWFVFS
22767 - Made setting SelectedPath work
22769 2006-07-12 Jackson Harper <jackson@ximian.com>
22771 * Control.cs: Optimze getting all the controls.
22773 2006-07-11 Jackson Harper <jackson@ximian.com>
22775 * ContainerControl.cs: Override SETFOCUS in the container control,
22776 so that it is not selected on mouse click.
22778 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
22780 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
22781 Hopefully we will have a better way once all of focus is complete.
22783 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
22785 * ThemeWin32Classic.cs: Commented out some debug code and fixed
22786 a compile error with csc.
22788 2006-07-11 Jackson Harper <jackson@ximian.com>
22790 * Control.cs: When hiding a control only select the next control
22791 if the current control was focused.
22792 - Don't handle enter/leave when setting/killing focus, this is
22793 done by the container control.
22794 - Remove is_selected, it's not needed anymore.
22795 - Add utility methods for selecting a child control, and for
22796 firing the Enter/Leave events.
22797 * ContainerControl.cs: When a control is activated fire the
22798 enter/leave events.
22799 - Don't wrap when processing the tab key, so that focus can be
22800 moved outside of the container.
22801 - Use the correct active control
22803 2006-07-11 Jackson Harper <jackson@ximian.com>
22805 * ComboBox.cs: Remove some debug code that was blinding me.
22806 * UpDownBase.cs: These controls actually aren't implicit, they are
22807 visible to the user.
22809 2006-07-10 Chris Toshok <toshok@ximian.com>
22811 * DataGrid.cs: move back to the is_adding boolean field. god i
22812 hate this is_editing/is_adding/is_changing stuff.
22814 2006-07-10 Chris Toshok <toshok@ximian.com>
22816 * DataGridTableStyle.cs: just check if the property type is bool.
22817 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
22818 Don't use CanRenderType.
22820 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
22821 if our text == NullText. Remove CanRenderType.
22823 * DataGridBoolColumn.cs: nuke CanRenderType.
22825 * DataGrid.cs: reenable some code to end the current edit inside
22826 of set_CurrentCell. This fixes the other 1.1.16 regression.
22827 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
22828 Also, remove the visible_row_count arg from CalcRowHeaders, since
22829 we don't need to worry about the actual height of the area.
22831 2006-07-10 Chris Toshok <toshok@ximian.com>
22833 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
22836 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
22837 the real sense of the IsInEditOrNavigateMode property (true =
22838 navigate, false = edit). Also, update OnKeyPress to reflect this.
22840 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
22841 column style exists, we still need to set its property descriptor
22842 to match up with our list manager.
22844 2006-07-10 Chris Toshok <toshok@ximian.com>
22846 * ThemeWin32Classic.cs: implement the new row/header painting
22847 approach. The parent row painting will likely go away and
22848 replaced with label controls, but the rest seems to work ok (and
22851 * Theme.cs: change the way we draw datagrid rows. we don't draw
22852 the row headers as a block now. Instead we draw them in the
22853 normal draw-row loop. Add some calls for drawing parent rows and
22856 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
22857 a default table style. Set the defaults from ThemeEngine.Current,
22858 not SystemColors. Fix lots of misc issues with property setters.
22860 * DataGrid.cs: move loads of style information out of this class
22861 as it's being duplicated with DataGridTableStyle. keep track of a
22862 special DataGridTableStyle for the properties we used to mirror
22863 here. Switch all the style properties to access this table style
22864 instead of instance fields of this class. Also add a internal
22865 class to represent parent rows (more needs to be stored here, like
22866 the selection state from the parent table, as well as the
22867 expansion state.) Also, for datasources with relations, do the
22868 right thing for collapse/expand, and add support for the
22869 navigation/parent row buttons.
22871 Lastly, fix the crash in the 1.1.16 build.
22873 * GridTableStylesCollection.cs: make the explicit interface
22874 implementations call the class's methods as opposed to duplicating
22877 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
22878 0 so the text doesn't jump around when we move the cursor.
22880 2006-07-10 Jackson Harper <jackson@ximian.com>
22883 * ListBox.cs: Match MS's ToString (this makes debugging focus
22884 stuff infinitely easier).
22886 2006-07-10 Jackson Harper <jackson@ximian.com>
22888 * Control.cs (SelectNextControl): When checking the control's
22889 parent use this instead of ctrl.parent so that null can be passed
22890 to SelectNextControl. (I have unit tests for this).
22891 - Remove unused var.
22893 2006-07-10 Chris Toshok <toshok@ximian.com>
22895 * CurrencyManager.cs: correct one regression, the removal of the
22896 finalType field. Also, add a MonoTODO on CanAddRows, implement
22897 Refresh() correctly, and fix some event emission in
22898 ListChangedHandler.
22900 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
22902 * FileDialog.cs: Don't use brackets for new folders if they exist
22903 under *nix. Instead use -(number of existing folders +1).
22905 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
22908 - Fixed really nasty bug #78771
22909 - Don't block the whole GUI when reading directories with a lot of
22910 entries. Use an other thread instead and call BeginInvoke to
22911 update the ListView in MWFFileView
22913 2006-07-07 Chris Toshok <toshok@ximian.com>
22915 * Control.cs (Dispose): release any Capture when disposing.
22917 2006-07-07 Chris Toshok <toshok@ximian.com>
22919 * LinkLabel.cs (Select): if we chain up to the parent, set
22920 focused_index to -1 so we'll search for the first available link
22921 the next time the user tabs into us. Also, if the direction is
22922 backward and focused_index == -1, start the search from the last
22925 2006-07-07 Chris Toshok <toshok@ximian.com>
22927 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
22928 is beyond the end of the text, don't do anything.
22929 (CreateLinkPieces): set our ControlStyles.Selectable based on
22930 whether or not we have any links.
22931 (Link.Invalidate): use a loop instead of foreach.
22932 (Link.set_Start): null out owner.sorted_links so it'll be
22933 recreated by CreateLinkPieces.
22935 2006-07-06 Chris Toshok <toshok@ximian.com>
22937 * LinkLabel.cs: revert the SetStyle change.
22939 2006-07-06 Chris Toshok <toshok@ximian.com>
22941 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
22942 (OnEnableChanged): s/Refresh/Invalidate
22943 (OnGotFocus): if we have a focused index already, refocus it (so
22944 if we mouse out/in to the window it'll focus the right link).
22945 (OnKeyDown): move the tab handling out of here.
22946 (OnLostFocus): don't set focused_index to -1, so we can refocus it
22947 when we lose focus.
22948 (OnMouseDown): don't Capture here - Control handles it. Also,
22949 focus the active link.
22950 (OnMouseUp): don't deal with Capture.
22951 (OnPaintBackgroundInternal): remove.
22952 (OnTextAlignChanged): CreateLinkPieces before calling the
22953 superclass's method.
22954 (OnTextChanged): call CreateLinkPieces before calling superclass's
22956 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
22958 (Select): implement this, moving the selection between different
22959 links, and call parent.SelectNextControl if we don't have another
22960 link to focus in the given direction.
22961 (CreateLinkPieces): call Invalidate instead of Refresh.
22963 2006-07-06 Chris Toshok <toshok@ximian.com>
22965 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
22966 new LinkLabel internals.
22968 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
22969 over pieces looking for active/focused/etc links. also, deal with
22970 runs of text (and links) with embedded \n's in them, and use
22971 MeasureCharacterRanges instead of MeasureString to figure out the
22972 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
22975 2006-07-04 Jackson Harper <jackson@ximian.com>
22977 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
22978 XKB or key auto repeat, do it manually. Without key auto repeat,
22979 when a key is held down we get key press, key release, key press,
22980 key release, ... with auto repeat we get key press, key press, key
22981 press ..., and then a release when the key is actually released.
22983 2006-07-03 Jackson Harper <jackson@ximian.com>
22986 * ThemeWin32Classic.cs: Tabs do not obey normal background color
22987 rules, they are always control color regardless of the background
22990 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
22992 * FileDialog.cs: Added internal class MWFConfig.
22993 Removed Registry support and replaced it with support for the new
22994 MWFConfig class. See MWFConfig comments for more information.
22996 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
22998 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
22999 rectangle. Added some patches from eno from bug #78490 and fixed
23000 the arrow position for small up and down CPDrawScrollButtons.
23002 2006-06-30 Jackson Harper <jackson@ximian.com>
23004 * InternalWindowManager.cs: Remove some debug code.
23005 * Form.cs: When an MdiParent is set to null, the window is
23006 "detatched" and becomes a normal window.
23007 * MdiClient.cs: Don't bring the new child form to the front until
23008 it is activated (setting it as active does this), this makes the
23009 previously active forms titlebar get redrawn as inactive.
23011 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
23013 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23014 with later controls
23016 2006-06-29 Mike Kestner <mkestner@novell.com>
23018 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23019 arrow in keynav state. Fixes #78682.
23021 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23023 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
23024 order (fixes #78393)
23026 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
23028 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
23029 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23030 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23031 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23032 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23033 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
23034 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23035 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23036 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23037 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23038 enumerations (FlagsAttribute, SerializableAttribute, added/removed
23041 2006-06-28 Mike Kestner <mkestner@novell.com>
23043 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23045 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23048 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23049 item lines from other area (It also makes BackColor consistent and
23050 compatible with .NET). Fixed bug #78564.
23052 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
23054 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23055 Patch from Eno for #78555.
23057 2006-06-27 Chris Toshok <toshok@ximian.com>
23059 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23061 * DataGridColumnStyle.cs: same.
23063 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23065 * DataGridDrawingLogic.cs: nuke.
23067 2006-06-27 Chris Toshok <toshok@ximian.com>
23069 * DataGridTableStyle.cs: clean up the constructors, and build the
23070 list of child relations for this table. I have no idea if this is
23071 where we should be doing it (it probably isn't), but since we're
23072 already iterating over the properties..
23074 * DataGrid.cs: add row resizing. for now we add a DataGridRow
23075 struct and array for keeping track of row information, similar to
23076 what's shown in a hack on
23077 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23079 * Theme.cs: be consistent about the naming of DataGrid methods,
23080 prefering ColumnWidths and RowHeights over columnsWidths and
23083 * ThemeWin32Classic.cs: same, and also add support for variable
23084 sized rows (and the +/- expansion icons for related rows).
23086 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23088 * TextBoxBase.cs: Applied Eno's patch from #78660
23090 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23092 * Form.cs (ScaleCore): We don't want to scale our form if it's
23093 state is minimized or maximized, but we still need to scale our
23094 child windows. Also, added try/finally block to ensure layout
23095 gets reset (Fixes #78697)
23097 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23099 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23101 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23103 * Form.cs: Fixed c+p error and added check to resize form if minimum
23104 size is bigger than current size (Fixes #78709)
23106 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
23108 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23110 2006-06-26 Mike Kestner <mkestner@novell.com>
23112 * ComboBox.cs: only do Keypress handling in the combo when there
23113 are items in the collection. Fixes #78710.
23115 2006-06-26 Chris Toshok <toshok@ximian.com>
23117 * Binding.cs: make this work bi-directionally. also, clear up
23118 other mixups between Push/Pull Data (e.g. we're supposed to pull
23119 data when validating).
23121 * BindingManagerBase.cs: trim some fully qualified collection
23124 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23126 2006-06-23 Chris Toshok <toshok@ximian.com>
23128 * PropertyManager.cs: It appears (according to the unit tests)
23129 that PropertyManager doesn't use
23130 PropertyDescriptor.AddValueChanged to track propery value changes
23131 in its datasource, but uses the same scheme as Binding, where it
23132 looks for a <Property>Changed event and binds to it.
23134 Also, according to the docs, IsSuspended always returns false for
23135 a property manager with a non-null datasource.
23137 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23139 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23140 need to update the actual DialogResult. (Fixes #78613)
23142 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23144 * Form.cs (ShowDialog): Release any captures before running the
23145 new message pump (fixes #78680)
23147 2006-06-22 Mike Kestner <mkestner@novell.com>
23149 * ListView.cs: Layout column widths properly in details mode even
23150 if HeaderStyle.None is set. Fixes #78691.
23152 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23154 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23156 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23158 * Control.cs (ContainsFocus): Using new driver method to get focused
23159 window, instead of trying to use internal tracking var, which can
23160 recursion issues (Fixes #78685)
23161 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23162 XplatUIWin32.cs: Added GetFocus method to return focused window
23164 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23166 * ColorDialog.cs: when the mouse button is pressed inside the color
23167 matrix, don't let the cursor move out of it until the button is
23168 released, which is the behavior on windows. Changed 'colours' by
23169 'colors' to use the same word consistently.
23171 2006-06-21 Chris Toshok <toshok@ximian.com>
23173 * DataGrid.cs: add in some basic navigation stuff (navigating to a
23174 child relation and back, using a stack). Also, remove
23175 GetDataSource and the code that calls it - it's not needed. Also,
23176 track CurrencyManager.ListName's removal.
23178 2006-06-21 Chris Toshok <toshok@ximian.com>
23180 * CurrencyManager.cs: push some of the original type checking from
23181 BindingContext.CreateBindingManager to here, and remove some of
23182 the finalType stuff. Need more tests to make sure I've got the
23183 ListName part right, and we might need more in SetDataSource.
23185 * PropertyManager.cs: add a ctor that takes just the datasource,
23186 and no property name. Make SetDataSource work with a null
23187 property_name, and make Current return the data_source if the
23188 property descriptor is null. this makes 'string foo = "hi";
23189 BindingContext[foo].Current' return "hi" as it should.
23191 * RelatedCurrencyManager.cs: make this code more generic - there's
23192 no reason the parent manager has to be CurrencyManager, and
23193 there's no reason to pass the DataRelation. It suffices to use a
23194 BindingManagerBase and PropetyDescriptor.
23196 * RelatedPropertyManager.cs: make a similar change here.
23198 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23199 flower I knew it could be.
23201 2006-06-20 Chris Toshok <toshok@ximian.com>
23203 * PropertyManager.cs: the PropertyChangedHandler is invoked when
23204 data in the source has changed and we need to update the control,
23205 so s/PullData/PushData.
23207 * CurrencyManager.cs: Refresh is meant to update the control from
23208 data in the datasource. So, s/PullData/PushData.
23210 * BindingContext.cs: add more ugliness (we weren't handling the
23211 case where data_source = DataTable and data_member = column_name).
23213 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
23214 from the perspective of the datasource. PullData pulls from the
23215 control, PushData pushes to the control.
23217 2006-06-20 Chris Toshok <toshok@ximian.com>
23219 * BindingContext.cs: rewrite the CreateBindingManager code to
23220 handle navigation paths more or less properly. This could
23221 definitely stand some more work, in particular to push the
23222 recursion up to the toplevel. But that relies on fixes in other
23223 places (System.Data comes to mind).
23225 Also, move to a flat hashtable (and encode the twolevel nature of
23226 the dictionary into the hash key). This lets us implement the
23227 IEnumerable.GetEnumerator method.
23229 * RelatedCurrencyManager.cs: new class. Update our view based on
23230 our relation and our parent CurrencyManager's position.
23232 * CurrencyManager.cs: split out some logic from the ctor into
23233 SetView, so it can be called from the new RelatedCurrencyManager
23236 * RelatedPropertyManager.cs: new class. Update our datasource
23237 based on the position of our parent CurrencyManager.
23239 * PropertyManager.cs: split out some logic from the ctor into
23240 SetDataSource, so it can be called from the new RelatedDataSource
23241 subclass. Also, make the Current getter return the value
23242 of the PropertyDescriptor, not the data_source.
23244 * Binding.cs: no need to duplicate the string splitting code here.
23246 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23249 - set_Enabled: OnEnabledChanged is not called if the inherited state
23250 of the control is not altered, even though we might be changing the
23251 internal state of the control (#78458)
23252 - set_Enabled: (Re)Moved the enabling/disabling of the window to
23253 OnEnabledChanged, to allow easy altering of any child window state
23254 - OnEnabledChanged: Added code to enable/disable driver window state
23255 - OnParentEnabledChanged: Instead of firing the event, call
23256 OnEnabledChanged, which will fire the event and also a) set driver
23257 window state and pass the enabled state to any grandchildren (#78458)
23259 2006-06-19 Jackson Harper <jackson@ximian.com>
23261 * InternalWindowManager.cs: We don't set the cursor explicitly
23262 thats done via the response to NCHITTESTs.
23263 - Don't need to adjust for titlebar heights anymore, the
23264 coordinates are coming in the correct coordinates now (see peters
23268 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23270 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23271 being translated relative to whole window, instead of client window.
23272 That caused broken offsets on mouseclick (and caused gas for our
23273 InternalWindowManager)
23275 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23278 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23279 - Undo(): Added replay of cursor move on DeleteChars action; added
23280 calling Undo() again if a recorded cursor move is invalid (to
23281 ensure that some action is performed on Undo)
23282 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23284 2006-06-16 Jackson Harper <jackson@ximian.com>
23286 * MdiClient.cs: Instead of just sizing maximized windows when
23287 there is a resize we also have to adjust the Y of minimized
23288 windows, so they stay pinned to the bottom of the mdi container.
23289 - Eliminate separate tracking of the active control, we can just
23290 get this from the controls collection.
23291 - Paint the decorations for the newly activated titlebar so we get
23293 * InternalWindowManager.cs:
23294 * ThemeWin32Classic.cs: Minimized windows get all three buttons
23295 even if they are a tool window.
23297 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23299 * TextControl.cs (Undo): Handle non-existent cursor locations in the
23300 undo buffer, these can happen when text was deleted and the cursor
23301 was recorded first. Since we will also have a recorded cursor
23302 after the delete this is not an issue. (Fixes #78651)
23304 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
23306 * AccessibleObject.cs: Remove dependence on Control.is_selected;
23307 instead properly track control states internally (allows us to
23308 remove is_selected from Control)
23310 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23312 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23313 whose width is not a multiple of 8.
23315 2006-06-13 Jackson Harper <jackson@ximian.com>
23317 * MdiClient.cs: Only maximize the next child if the current one
23320 2006-06-13 Chris Toshok <toshok@ximian.com>
23322 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23323 modified. Also, guard against grid or grid_drawing being null in
23326 * DataGrid.cs: Reformat tons of getters/setters. In the
23327 DataMember setter, just call SetNewDataSource instead of
23328 duplicating some of its functionality. In SetNewDataSource, don't
23329 check ListManager for null, since the property getter creates the
23332 * DataGridTableStyle.cs: don't set TableStyle or call
23333 SetDataGridInternal on the column here, it's done in
23334 GridColumnStylesCollection.Add.
23336 * GridColumnStylesCollection.cs: fix all the explicit interface
23337 implementations to just call our methods. Nuke AddInternal() and
23338 move the body of it to Add(). Also, add a call to
23339 column.SetDataGridInternal to Add().
23341 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23342 base()+duplicate code. Also, use the Format property instead of
23343 format to generate an Invalidate ala MS. Lastly, create the
23344 textbox here, unconditionally.
23345 (set_Format): call Invalidate.
23346 (get_TextBox): no need to call EnsureTextBox.
23347 (Commit): remove the message box.
23348 (Edit) remove the call to EnsureTextBox.
23349 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23350 (EnterNullValue): no need to check textbox for null.
23351 (HideEditBox): no need to check textbox for null.
23352 (SetDataGridInColumn): add the textbox to the grid's controls.
23353 (EnsureTextBox): nuke.
23355 2006-06-13 Jackson Harper <jackson@ximian.com>
23357 * MdiWindowManager.cs: Hook up to the maximized menus paint event
23358 and redraw the buttons when needed. Unhook when the window is
23360 * MainMenu.cs: Add an internal Paint event, the mdi window manager
23361 needs this so that it can redraw its buttons when the menu is
23363 * InternalWindowManager.cs:
23364 * Form.cs: The method order has changed for DrawMaximizedButtons,
23365 so that it can be a PaintEventHandler.
23367 2006-06-13 Jackson Harper <jackson@ximian.com>
23369 * MdiClient.cs: When we close a maximized mdi window, the next mdi
23370 window is activated and maximized, even if it wasn't before.
23371 - When a new window is activated repaint the decorations of the
23372 old one, so that it no longer has the Active "look" (the blue
23374 * InternalWindowManager.cs: Open up CreateButtons to base classes
23375 so they can recreate the buttons on state changes.
23376 - If a window is maximized give it all three buttons
23377 * MdiWindowManager.cs: Create the titlebar buttons when the state
23378 is changed, this is needed because a toolwindow will not have all
23379 three buttons until it is maximized.
23381 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
23383 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23386 2006-06-12 Jackson Harper <jackson@ximian.com>
23388 * KeysConverter.cs: Make sure we handle the Ctrl special case
23389 if its the only key.
23391 2006-06-12 Jackson Harper <jackson@ximian.com>
23393 * Theme.cs: Add a method to get the size of a managed window
23395 * InternalWindowManager.cs: Remove the ButtonSize property, this
23396 should be retrieved from the theme.
23397 * MdiWindowManager.cs: Get the button size from the theme
23398 * ThemeWin32Classic.cs: Make the method to get the managed window
23399 titlebar button size public.
23400 - Handle the different button sizes of maximized toolwindows
23401 (should match any maximized window).
23402 - Get the titlebar height from the theme, not the WM (which gets
23403 it from the theme).
23405 2006-06-12 Jackson Harper <jackson@ximian.com>
23407 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
23408 event down to the mdi window manager.
23409 - Expose some extra stuff to base classes
23410 - Make sure to end the Capture on an NC Mouse up, so that we can
23411 get double clicks properly, and the sizing doens't stick.
23412 - When doing PointToClient contain it in the workable desktop
23413 area, this prevents windows from changing size when the cursor is
23414 pulled outside of the working area while sizing.
23415 * MdiWindowManager.cs: When we get a double click maximize the
23417 - Reset the cursor after handling mode changes.
23419 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
23421 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
23422 current desktop, instead of just assuming a 0, 0 origin. This
23423 is needed for our internal window manager, to know the top
23424 margin of the desktop
23426 2006-06-12 Chris Toshok <toshok@ximian.com>
23428 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
23429 we need this to get rid of the selected background in the bool
23431 (CancelEditing): move the ConcedeFocus call to above the Abort
23432 call. Also, set is_changing to false and invalidate the row
23433 header if we were changing before.
23434 (ProcessKeyPreviewInternal): remove, since noone outside this
23435 class calls it anymore. Roll the code into ProcessKeyPreview.
23436 (EndEdit): remove the internal version.
23437 (InvalidateCurrentRowHeader): make private.
23439 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
23440 Keys.Escape handling (and with it the last call to
23441 DataGrid.EndEdit from outside the class.)
23444 2006-06-12 Chris Toshok <toshok@ximian.com>
23446 * DataGridTextBox.cs (.ctor): isedit defaults to false.
23447 (OnKeyPress): set isedit to true.
23448 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
23449 already handled by the grid.
23451 * DataGrid.cs (set_CurrentCell): more work here. it's still not
23453 (set_DataSource): SetDataSource always returns true, so stop
23454 putting it in an if statement.
23455 (EndEdit): get rid of some {}'s
23456 (ProcessGridKey): return true in case Keys.Escape.
23457 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
23458 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
23459 PositionChanged, stopped connecting to CurrentChanged.
23460 (GetDataSource): simplify this a bunch.
23461 (SetDataSource): change return type from bool to void.
23462 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
23463 to this, and make sure we don't set ListManager.Position inside
23465 (OnListManagerItemChanged): if we're passed an actual index,
23468 * CurrencyManager.cs (set_Position): don't call PullData here.
23470 2006-06-09 Jackson Harper <jackson@ximian.com>
23472 * TreeNode.cs: Recalculate the visible order before doing the
23473 Expand/Collapse Below calls, because those calls generate an
23475 - Reduce calls to the TreeView property, which is mildly expensive
23476 by using a local var.
23477 * Form.cs: Layout the MDI child windows when creating the parent
23479 - Don't use the internal constructor anymore
23480 * MdiClient.cs: use the parent form width/height (if available)
23481 when laying out the child windows, we do this because the
23482 mdiclient isn't docked yet when the initial layout is done.
23483 - Don't need an internal constructor anymore.
23485 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23487 * FileDialog.cs: handle access errors when trying to create a folder
23488 or changing to a directory. No need to initialize out parameters.
23490 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23492 * FileDialog.cs: Append a number when creating a new folder if the
23493 folder already exists (use parenthesis instead of square brackets)
23495 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23498 - Disabled registry support for windows and added better registry
23499 error checking for other systems (need to investigate why it
23500 works perfectly on my system)
23501 - If a folder already exist show an error MessageBox instead of
23502 trying to create an indexed name.
23503 - Fixed a non intentional typo.
23505 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23507 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
23509 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23511 * FileDialog.cs: When creating a new folder don't crash if the
23512 folder already exists.
23514 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23516 * FileDialog.cs: Allmost a complete rewrite.
23517 - added a "virtual" file system that handles the differences
23518 between unix and windows file systems (especially the directory
23519 structure). Moved most of the directory and file handling code
23521 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
23522 UnixFileSystem and FSEntry.
23523 - Recently used folder/directory, size, location and used file names
23524 (file name ComboBox) are now stored in the registry and get read
23525 before the dialog shows up (fixes part 6 of bug #78446).
23526 - Creation of new folders/directories is now possible (context menu
23527 or ToolBar). Added TextEntryDialog for this that fills in the gap
23528 until ListView.LabelEdit works.
23529 - Fixed cursor handling (bug #78527) and focus handling for
23531 - Various "Search in" ComboBox enhancements. The content of the
23532 dropdown listbox now almost matches ms.
23533 - Changed the behaviour when the user switches to SpecialFolder
23534 Recent to show the ListView in View.Details.
23535 - Beside using the ToolBar to change the View property of the
23536 file ListView it is now possible to use the context menu too.
23538 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23540 * ComboBox.cs: Don't create a new ObjectCollection when an item
23541 gets inserted. Just insert the item in the existing object_items
23544 2006-06-08 Jackson Harper <jackson@ximian.com>
23546 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
23547 that the treeview and root node checks are done also, this fixes a
23548 regression i caused in the unit tests.
23550 2006-06-07 Wade Berrier <wberrier@novell.com>
23552 * RichTextBox.cs: More ISO8859-1 -> unicode
23554 2006-06-07 Mike Kestner <mkestner@novell.com>
23556 * ComboBox.cs : use items to hold highlight/selection so that
23557 collection insertions don't require synchronization.
23559 2006-06-07 Jackson Harper <jackson@ximian.com>
23561 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
23562 routine. We now always keep the sized edge at the cursor instead
23563 of computing movement and adjusting rects. There is one buglet
23564 with this method though when the cursor is moved over area that
23565 the window can not expand too (such as the toolbars on the desktop).
23567 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23569 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
23570 here. Fixes crash on startup in AlbumSurfer.
23572 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
23574 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
23577 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23579 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
23580 statement to avoid calling XNextEvent which will block if another thread
23581 took the event that we were expecting. Fixes bug #78605.
23583 2006-06-07 Mike Kestner <mkestner@novell.com>
23585 * ListView.cs : isolated checkbox clicking from the selection logic.
23586 Toggle check state on item doubleclicks. Really fixes #78454 part2.
23588 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23590 * Form.cs: Check that the value passed to Form.DialogResult
23591 is a valid enum value.
23593 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23595 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
23596 Computer'. Clicking it in the network view goes to 'My Computer'.
23597 Added CIFS filesystem type. Display the mount point of filesystems.
23598 Avoid duplicate mount points (happens for me with CIFS);
23600 2006-06-06 Jackson Harper <jackson@ximian.com>
23602 * InternalWindowManager.cs: Draw the maximized windows buttons
23605 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23607 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
23608 all other dialogs. Fixes bug #78585.
23610 2006-06-06 Mike Kestner <mkestner@novell.com>
23612 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
23613 Only invalidate checkbox on checkstate changes to avoid flicker.
23614 * ListBox.cs : avoid unselect/select when clicking selected item.
23615 avoid reselection flicker for already multiselected items.
23618 2006-06-06 Jackson Harper <jackson@ximian.com>
23620 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
23621 the parent form so that the menu is removed if needed.
23623 2006-06-06 Mike Kestner <mkestner@novell.com>
23625 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
23626 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
23628 2006-06-06 Mike Kestner <mkestner@novell.com>
23630 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
23633 2006-06-06 Jackson Harper <jackson@ximian.com>
23635 * Control.cs: Use the property (instead of the field) to get the
23636 default cursor so it is instantiated correctly.
23637 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
23638 resizes so we need to manually repaint the window decorations here.
23639 - Set the titlebar button locations as soon as they are created,
23640 otherwise they are not set correctly on win32.
23642 2006-06-06 Chris Toshok <toshok@ximian.com>
23644 * CurrencyManager.cs (set_Position): call PullData before
23646 (AddNew): after calling IBindingList.AddNew, update our
23647 listposition, and call OnCurrentChanged/OnPositionChanged (without
23649 (OnCurrentChanged): remove the call to PullData from here.
23650 (OnItemChanged): remove the call to PushData from here.
23651 (OnPositionChanged): change the test from == null to != null to
23652 match the other methods.
23653 (ListChangedHandler): the grossest part of the patch. Implement
23654 this such that it passes the unit tests in CurrencyManagerTest and
23655 the output more or less matches that of MS's implementation.
23657 2006-06-06 Mike Kestner <mkestner@novell.com>
23659 * ListView.cs : only update check state on single click.
23660 * ThemeWin32Classic.cs : fix focus drawing for details view without
23661 fullrowselect. Fixes #78454.
23662 * XplatUIX11.cs : fix for double click emission.
23664 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
23666 * PropertyGridView.cs : Applied Atsushi's patch to fix
23667 font dialog bug (#78197).
23669 2006-06-05 Jackson Harper <jackson@ximian.com>
23671 * TreeNode.cs: Compute the next node for expanding/collapsing
23672 correctly. We now factor in nodes without a NextNode
23673 correctly. (Fixes somes cases in nunit-gui).
23674 * InternalWindowManager.cs: Set the bounds when updating the
23675 virtual position of a tool window.
23677 2006-06-05 Chris Toshok <toshok@ximian.com>
23679 * DataGrid.cs: rename cached_currencymgr to list_manager.
23680 (set_CurrentCell): move SetCurrentCell code here, and clean it up
23682 (CurrentRow, CurrentColumn): single accessors so we can make the
23683 cursor movement code a lot easier to understand.
23684 (CurrentRowIndex): implement this in terms of CurrentRow.
23685 (BeginEdit): clean this up a bit.
23686 (CancelEditing): sort out the is_editing/is_changing/is_adding
23688 (EndEdit): minor changes.
23689 (OnKeyDown): add a comment about a (most likely) unnecessary
23691 (OnMouseDown): cancel editing when we click on a row header. And
23692 use the CurrentRow setter, not CurrentCell.
23693 (ProcessDialogKey): directly call ProcessGridKey.
23694 (UpdateSelectionAfterCursorMove): factor out this common block of
23695 code (it's used everywhere that we move the cursor by updating row
23697 (ProcessGridKey): pretty substantial overhaul. Use the
23698 CurrentRow/CurrentColumn properties to make the code a lot more
23699 readable. Only use the CurrentCell property when we have to
23700 modify both row and column at once. Tab behavior is still broken,
23701 and Delete is untested.
23702 (Select): if we have no selected rows, set selection_start to
23704 (EditCurrentCell): rename EditCell this. It was only ever invoked
23705 with CurrentCell as the arg, so drop the arg and rename it.
23707 * DataGridColumnStyle.cs: clean up the constructors a little, and
23708 drop CommonConstructor().
23710 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
23711 actually get notified when the user hits it.
23712 (ProcessKeyMessage): *substantially* simplify this method.
23713 There's no reason (that I can see) for the textbox to be making
23714 calls into the datagrid at all. Remove all of them but the ones
23715 for Enter handling. those will take some more work.
23717 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
23718 calling HideEditBox.
23719 (HideEditBox): if we have an active textbox, render it invisible
23720 without causing a re-layout of the datagrid.
23722 2006-06-05 Mike Kestner <mkestner@novell.com>
23724 * ListView.cs : fix NRE crasher when focuseditem is cleared by
23725 collection changes by resetting it to Items[0]. Fixes #78587.
23727 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23729 * MessageBox.cs: if the height of the text is larger than the icon_size,
23730 use that. Fixes bug #78575.
23732 2006-06-05 Jackson Harper <jackson@ximian.com>
23734 * TreeView.cs: Fix line drawing when scrolling. To do this each
23735 node is basically responsible for drawing its entire horizontal
23736 area. When drawing a node it draws its parent node lines if
23738 - Adjust the clip area to the viewport rectangle
23739 - Fix Left/Right key handling to match MS. (It expand/collapses
23740 and moves to parents/first child but does not move selection to
23742 - Fix SetTop to work with new bound calculation code
23743 - When scrollbars are no longer needed we need to reset scrolling
23744 vars and recalculate the visible order so the redraw is correct
23745 * TreeNode.cs: We can't expand/collapse nodes with no children.
23747 2006-06-03 John Luke <john.luke@gmail.com>
23749 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
23750 so the colors work without dev packages
23752 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
23755 - Select: Implemented to just use activate. Seems to match MS
23756 behaviour closest. Documented to only do actual control walking
23757 based on it's parameters if in a container control so I moved
23759 - Removed selection check logic from our internal Select() method
23760 * ContainerControl.cs:
23761 - Select: Moved selection logic from Control here, since MS documents
23762 that containers obey the bool arguments. No longer calling base
23764 2006-06-02 Jackson Harper <jackson@ximian.com>
23766 * TreeView.cs: If the selected node isn't changed when we get
23767 focus update the previously selected node so that we see the
23770 2006-06-02 Mike Kestner <mkestner@novell.com>
23772 * ComboBox.cs: restructure grab and general mouse event handling.
23773 Make the composite control raise mouse events like it was a single
23774 control for leaves/enters/motion/up/down events. fix dropdown list
23775 coordinate mangling and refactor it into the scrollbar subclass to
23776 reduce code duplication. Fixes #78282 #78361 and #78457.
23778 2006-06-02 Mike Kestner <mkestner@novell.com>
23780 * ScrollBar.cs: remove Capture setting/clearing, as it happens
23781 automatically in the Control.WndProc.
23783 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23785 * FileDialog.cs: fix crash when running SharpChess, which sets the
23786 FilterIndex to 2 with only one Filter.
23788 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23790 * ToolBar.cs: add SizeSpecified property.
23791 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
23792 try to figure out our real size, otherwise fallback to what the
23795 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
23797 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
23798 * Control.cs (WndProc): MS always calls the DefWndProc to pass
23801 2006-06-01 Mike Kestner <mkestner@novell.com>
23803 * ListView.cs: revamp the focus management in ListView. It still
23804 causes churn of LostFocus/GotFocus emissions on clicks, but it's
23805 better than not handling focus at all. Will revisit when pdb feels
23806 the general focus handling is solid. Fixes #78526.
23808 2006-06-01 Jackson Harper <jackson@ximian.com>
23810 * TreeView.cs: Set the default border style in the constructor.
23811 - Move painting to use OnPaintInternal instead of capturing
23812 WM_PAINT, this is the correct way of doing things
23813 - UpdateBelow shouldn't invalidate the scrollbar area
23814 - Cap the top on update below in case the node was above the top
23815 of the viewport rectangle.
23816 - ExpandBelow and Collapse below need to obey Begin/End Update.
23817 * TreeNode.cs: Make is_expanded internal so the treenode
23818 collection can change it without firing the whole event chain.
23819 * TreeNodeCollection.cs: When clearing all the child nodes make
23820 sure to recalc the visible order.
23821 - Improve algo for remove the top node
23823 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
23825 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
23826 SendMessage directly calling window procedures, which in turn might
23829 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
23831 * Control.cs: Don't handle WM_SETFOCUS if the same window already
23832 has focus (works around X11 sending a FocusIn after our SetFocus)
23833 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
23835 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
23837 * Mime.cs: Fix for the NET_2_0 build.
23838 NameValueCollection needs StringComparer now.
23840 2006-05-31 Chris Toshok <toshok@ximian.com>
23842 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
23843 return (via an out parameter) the starting X of the column.
23844 (UpdateVisibleColumn): track change to FromPixelToColumn.
23845 (HitTest): add a ColumnResize case here.
23846 (DrawResizeLine): new function, probably poorly named.
23848 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
23849 only need to keep one reference.
23850 (set_ListManager): same.
23851 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
23852 Also, add support for HitTestType.ColumnResize.
23853 (OnMouseMove): add column resize behavior here, and change the
23854 cursor to the correct one as we move around the datagrid.
23855 (OnMouseUp): terminate the column resize if we're resizing.
23856 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
23857 for the current cell.
23858 (ConnectListManagerEvents): use cached_currencymgr.
23859 (DisconnectListManagerEvents): fill this in, using
23860 cached_currencymgr.
23861 (SetCurrentCell): remove cached_currencymgr_events handling.
23862 (SetDataMember): only call DisconnectListManagerEvents if
23863 cached_currencymgr is != null.
23864 (SetDataSource): same.
23865 (OnListManagerCurrentChanged): cached_currencymgr_events ->
23866 cached_currencymgr.
23868 2006-05-31 Jackson Harper <jackson@ximian.com>
23870 * BindingManagerBase.cs: Remove somedebug code that creeped into
23872 * TreeNode.cs: We get the indent level dynamically right now, so
23873 don't track it as a member.
23874 * TreeNodeCollection.cs: Make sure all nodes added to the list
23875 have parents, treeviews/topnodes setup properly.
23876 - Don't attempt to track indent level.
23878 2006-05-30 Jackson Harper <jackson@ximian.com>
23880 * BindingContext.cs: Create the currency manager tables here.
23881 This allows us to more easily create null tables (when bad data
23882 members are used), and more easily create related currency
23884 * CurrencyManager.cs: All the table creation stuff is done by the
23885 binding context now.
23886 - Current should throw an exception if listposition is -1.
23887 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
23890 2006-05-30 Mike Kestner <mkestner@novell.com>
23892 * ListView.cs: allow reexpansion of zero-width column headers.
23895 2006-05-28 Chris Toshok <toshok@ximian.com>
23897 * CurrencyManager.cs (get_Current): after the late binding
23898 listposition = -1 fix, we need to guard against it here and return
23899 null, otherwise we raise an exception (which is swallowed
23900 elsewhere, and breaks datagrid databinding.)
23902 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
23904 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
23905 than WM_SYSKEY, don't throw if get something unexpected (#78507)
23907 2006-05-26 Jackson Harper <jackson@ximian.com>
23910 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
23911 values, it's faster and it's all we care about (we don't care if
23912 the names aren't equal).
23913 * KeyboardLayouts.cs: Eliminate some dead code.
23915 * X11Keyboard.cs: Lazy init keyboard detection.
23916 - Cleanup access modifiers a little.
23918 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
23920 * XplatUIX11.cs: Once again, attempting to get layout just right.
23922 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
23924 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
23925 the sizes of each link section, that will result in sizes that
23926 match DrawString's layout (Fixes #78391)
23928 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
23930 * FileDialog.cs: If AddExtension property is true autocomplete the
23931 extensions in SaveFileDialog correctly. Fixes bug #78453.
23932 Set MyNetwork and MyComputer to "C:\" for windows. This should
23933 fix part 8 of bug #78446 for now.
23935 2006-05-26 Chris Toshok <toshok@ximian.com>
23937 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
23938 invalidate the current row header if we need to, but presumably
23939 we'll invalidate the row corrsponding to the bounds or
23941 (GridHScrolled): switch back to this method, as it's part of the
23942 public api. *sigh*.
23943 (GridVScrolled): same.
23944 (OnMouseWheel): hack up something that more or less works. Call
23945 GridHScrolled/GridVScrolled directly, instead of duplicating much
23946 of their code here.
23947 (EnsureCellVisibility): reinstate a bunch of this code, since we
23948 can't just set the scrollbar Value and expect to do all the work
23949 in the ValueChanged handler. Also, Call Update() after scrolling
23950 in one direction so the other XplatX11.ScrollWindow call has the
23951 proper stuff in the proper places.
23952 (EditCell): set is_editing to true before calling .Edit.
23954 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
23955 don't bother comparing first.
23956 (OnKeyPress): call grid.ColumnStartedEditing before calling
23957 base.OnKeyPress. this will set is_changing and invalidate the row
23958 header if necessary.
23959 (ProcessKeyMessage): for WM_CHAR messages, call
23960 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
23963 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
23964 it's done in the DataGrid.
23965 (NextState): call grid.ColumnStartedEditing, which takes care of
23966 invalidating the row header (and setting is_changing).
23968 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
23969 here. it's done in the DataGrid.
23971 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23973 * Control.cs: allow changing the cursor when the mouse position is
23974 out of bounds but Capture is set.
23975 * LinkLabel.cs: handle the case when the mouse button is pressed on the
23976 linklabel but released somewhere else.
23978 2006-05-25 Jackson Harper <jackson@ximian.com>
23980 * TreeView.cs: When we get focus if there is no selected node make
23982 - Remove some uneeded setup code from Draw.
23983 * TreeNodeCollection.cs: If the tree doesn't have a top node when
23984 a new node is inserted make the new node the top.
23986 * Timer.cs: Use Utc time so that no local time zone stuff needs to
23987 be used (should be faster).
23989 2006-05-25 Chris Toshok <toshok@ximian.com>
23991 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
23992 problem with the last commit.
23994 2006-05-25 Chris Toshok <toshok@ximian.com>
23996 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
23997 need the invalidate call here, while scrolling right-to-left via
23998 the left arrow key (i.e. moving the editing cell while scrolling).
24000 * DataGrid.cs (.ctor): remove the initialization of
24001 ctrl_pressed/shift_pressed. We no longer track them using key
24002 up/down handlers, but by using Control.ModifierKeys. Also, switch
24003 to using ValueChanged handlers on the scrollbars instead of
24004 Scrolled event handlers. This simplifies a bunch of the scrolling
24006 (GridHValueChanged): rename from GridHScrolled, and change it to
24007 work with the new event args.
24008 (GridVValueChanged): same.
24009 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24010 (OnMouseWheel): actually scroll the datagrid. Don't change the
24012 (ProcessGridKey): correct all the keyboard navigation stuff I
24013 could find. Ctrl up/down/left/right/home/end work now.
24014 (EnsureCellVisibility): correct method name spelling. Also,
24015 simplify this a touch by not explicitly calling the
24016 ScrollToRow/ScrollToColumnInPixels methods. We just set the
24018 (OnKeyUpDG): no need for this method now.
24020 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24022 * LinkLabel.cs: display the OverrideCursor when hovering the label.
24025 2006-05-25 Chris Toshok <toshok@ximian.com>
24027 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24030 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24032 * Application.cs: Moved setting of is_modal and closing to before
24033 we create the control, to allow the event handlers called as a
24034 result of creation affect closing. Also removed Gonzalo's previous
24035 change to setting DialogResult, the behaviour has been moved to
24038 - ShowDialog(): Removed explicit creation of the form, let RunLoop
24040 - ShowDialog(): If no dialog result is set, we need to return Cancel
24041 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24042 the close is cancelled
24044 2006-05-25 Jackson Harper <jackson@ximian.com>
24046 * StatusBar.cs: We only need to update the sizes of the other
24047 panels when we have auto size contents. Also we are only updating
24048 the contents of the panel, not the borders, so compensate for the
24049 border width (TODO: get this width from the theme somehow).
24050 * TreeView.cs: Scrollable is true by default
24051 - Use invalidate instead of refresh where needed
24052 - Factor the scrollable value into scrollbar updating
24053 - Update the scrollbars if the Scrollable property is altered
24054 - Update the selected node if its ImageIndex is changed
24055 - Handle null nodes in UpdateNode (mainly so we don't have to
24056 check if selected is null when updating it
24057 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24058 are factored into the visible count
24059 - Use VisibleCount for clarity in the code
24060 - When the font is changed we need to recurse through all the
24061 nodes and invalidate their sizes
24063 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24065 * Application.cs: set the DialogResult to fixed when the main form is
24066 hidden or destroyed while being modal.
24068 2006-05-25 Miguel de Icaza <miguel@novell.com>
24070 * Theme.cs: Use Tangoified messagebox icons.
24072 (GetSizedResourceImage): Also cope with width = 0 and do not
24073 trigger a warning in that case (0 means "give me your icon from
24074 the resouce, no special size needed).
24076 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24078 * Application.cs: Leave runloop if the the main modal form is
24079 hidden (fixes #78484)
24081 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
24083 * BindingContext.cs : reject null datasource in Contains() and
24085 * CurrencyManager.cs : check data_member validity when data_source
24086 is dataset. When it is late binding, the initial position is -1.
24088 2006-05-24 Jackson Harper <jackson@ximian.com>
24090 * TreeNodeCollection.cs: Dont't recalculate the visible order on
24091 inserted nodes that aren't visible. This changes the
24092 max_visible_order which confuses scrollbar settings.
24093 - Use the enumerator to get the prev node instead of duplicating
24095 * TreeView.cs: Use new method for setting scrollbar values
24096 - Don't set the bounds every time the scrollbar is updated
24097 - When updating below the root node use an invalidate instead of a
24098 refresh to prevent the child controls (scrollbars) from being
24099 refreshed. (UpdateBelow still needs to be reworked anyways).
24100 - Reenable SetBottom now that visible orders are set correctly,
24101 added some debug code incase we ever get bad values there again.
24102 - Set the scrollbar max to 2 less then the max value, this
24103 compensates for the max value being one above the node count, and
24104 for scrollbars adding one extra "notch".
24105 - When drawing image nodes if there is an imagelist we draw the
24106 first image in the list if the supplied image index is out of the
24107 image list's bounds.
24109 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24111 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
24112 we receive a size change from the WM (Fixes #78503)
24114 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24116 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
24117 rectangle (Fixes #78501)
24119 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24122 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
24124 - Fixed MouseMove to no longer switch pressed state unless the left
24125 mouse button is pressed. Atsushi provided the original patch (#78485)
24127 2006-05-24 Jackson Harper <jackson@ximian.com>
24129 * ScrollBar.cs: New internal methods that allow us to change a
24130 couple values on the scrollbar (the most common case is maximum
24131 and large change) without getting multiple invalidates.
24133 2006-05-24 Chris Toshok <toshok@ximian.com>
24135 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24136 (Edit): save off the original state in oldState, and set
24137 grid.is_editing to true.
24138 (OnKeyDown): abort editing if escape is pressed. also, call
24139 NextState if space is pressed.
24140 (OnMouseDown): call NextState.
24141 (NextState): factor out shared code from OnKeyDown and OnMouseDown
24142 here. Also, only invalidate the row header once (on the initial
24143 is_changing switch) to save on redraws.
24145 2006-05-24 Chris Toshok <toshok@ximian.com>
24147 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24148 if the value in the cell is different than it was before. This
24149 keeps us from triggering a layout when we move around a datarid
24150 with a highlighted cell.
24151 (Edit): suspend layout when creating/positining the text box, and
24152 resume passing false so we don't ever actually re-layout.
24153 (ReleaseHostedControl): same.
24154 (EnsureTextBox): reformat slightly, and set WordWrap to false.
24156 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24157 control-key sequences should go to the datagrid - remove that
24158 lock. Also, modify the conditions under which we move between
24159 cells when moving the cursor within a cell, and remove the "this"
24160 and "base" from field accesses. We weren't even consistent, given
24161 they all were in the base class.
24163 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
24165 * Binding.cs : (.ctor)
24166 An obvious NRE fix for BindingTest.CtorNullTest().
24168 2006-05-23 Chris Toshok <toshok@ximian.com>
24170 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24171 them between lines. This fixes some quirks editing cells in the
24174 2006-05-23 Jackson Harper <jackson@ximian.com>
24176 * TreeView.cs: Use begin/end update when doing expand/collapse all
24177 so that we don't get flicker on the scrollbar.
24179 2006-05-23 Jackson Harper <jackson@ximian.com>
24181 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
24182 treenode calculations to be independant of the painting code. To
24183 do this nodes track a visible order which is calculated by the
24185 - Call new methods for expanding/collapsing nodes. These methods
24186 use scrollwindow so we don't have to update everything below the
24188 * TreeView.cs: Refactored drawing and scrolling code. We don't
24189 need to update nodes when drawing anymore or calculate scrollbar
24191 - Added new methods for expanding/collapsing nodes. These methods
24192 use ScrollWindow so as to not have to redraw all the nodes below.
24193 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24194 we add/remove nodes or sort.
24195 - Handle removing the selected and the top node properly.
24197 2006-05-23 Chris Toshok <toshok@ximian.com>
24199 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24200 maybe this should actually happen in the datagrid code?
24201 (EndEdit): no need to invalidate anything, given that
24202 ReleaseHostedControl causes the datagrid to relayout, which
24203 invalidates everything anyway.
24205 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24206 in SetCurrentCell).
24207 (set_SelectionBackColor): call InvalidateSelection instead of
24209 (set_SelectionForeColor): same.
24210 (BeginEdit): Flesh this out a bit.
24211 (CancelEditing): only do any of this if we're editing/adding.
24213 (OnMouseDown): there's no need to cancel editing here, it's done
24215 (SetCurrentCell): only invalidate the current row header if it's a
24216 different row than the new one.
24217 (ShiftSelection): fix this to work like MS does.
24218 (ResetSelection): factor out the invalidation of selected_rows to
24219 InvalidateSelection.
24220 (SetDataSource): cancel any editing that's going on.
24222 * DataGridColumnStyle.cs
24223 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24224 call the non-interface version.
24226 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24227 header rectangle with the clip rectangle so we don't redraw the
24228 entire header for just a small area. Gets rid of the last flicker
24229 when horizontally scrolling.
24230 (DataGridPaintRow): same.
24232 2006-05-23 Mike Kestner <mkestner@novell.com>
24234 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24235 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
24236 poorly placed checkbox on the MS control. Fixes Alex's unfiled
24237 Critical bug report.
24239 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24241 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24242 and this fixes #78493
24244 2006-05-23 Miguel de Icaza <miguel@novell.com>
24246 * Theme.cs (GetSizedResourceImage): Scale images if the proper
24249 * FileDialog.cs: Do not change the background for the side bar as
24250 it wont work nicely with the theme, and also reduces the artifacts
24251 in rendering the icons (which I want to fix too).
24253 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24254 resources, not resgen resources.
24256 (PlatformDefaultHandler): Pull images using the new API.
24258 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24260 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24261 a reference to the hwnd and will not remove it unless there are
24262 no pending exposures (fixes #78341)
24263 * XplatUI.cs: Improved debug
24265 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
24267 * MenuAPI.cs : don't handle OnClick event when it was not the left
24268 button. Fixed bug #78487.
24270 2006-05-23 Mike Kestner <mkestner@novell.com>
24272 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24273 prefer submenus to the top menu for item lookup, to avoid popping down
24276 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
24278 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24279 Graphics.FillRectangle as the visual results are really bad (even
24280 on win). We now draw perfect arrows (and perfect shadows when the
24281 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24282 Pen.DashPattern to draw the dots of each line.
24284 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
24286 * FileDialog.cs: Update the filename combobox when navigating through
24287 the ListView with the cursor keys. Fixes part 7 of bug #78446.
24289 2006-05-22 Mike Kestner <mkestner@novell.com>
24291 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24294 2006-05-22 Mike Kestner <mkestner@novell.com>
24296 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24297 requests. Fix a misspelled parameter and a copy paste exception error
24300 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
24302 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24303 to get the same width/height (5/13) on X11 as the default font has on
24304 win32. This means that our DefaultFont emSize is smaller than the
24305 the MS SWF equivalent (even thought the width/height stays the same)
24307 2006-05-20 Jackson Harper <jackson@ximian.com>
24310 * MdiWindowManager.cs:
24311 * InternalWindowManager.cs: Make sure to use the border width from
24314 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
24316 * PrintDialog.cs: Implements printer details
24318 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
24320 * FileDialog.cs: Added focus handling for PopupButtonPanel.
24321 Fixes part 1 and 2 of bug #78446
24323 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
24325 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24326 instead of sticking to the first ever calculated value
24328 2006-05-19 Mike Kestner <mkestner@novell.com>
24330 * ComboBox.cs: fix mouse motion selection to use MousePosition and
24331 PointToClient, since Capture is set. Fixes #78344.
24333 2006-05-19 Mike Kestner <mkestner@novell.com>
24335 * ListView.cs: match MS behavior in Details view where items are not
24336 drawn if Columns.Count == 0.
24337 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24338 Use a separate pen to draw the check, since changing the width affects
24339 the box as well. Fixes #78454.
24341 2006-05-18 Miguel de Icaza <miguel@novell.com>
24343 * ListView.cs: ArgumentOutOfRangeException, single versions of the
24344 exception should throw the name of the invalid argument.
24346 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24347 there are no files listed.
24349 2006-05-18 Jackson Harper <jackson@ximian.com>
24351 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24354 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24356 * Control.cs: Brought back our old UpdateZOrder method as a private
24357 function and switched our calls from UpdateZOrder to the new one.
24358 This fixes the Paint.Net canvas disappearing bug.
24360 2006-05-18 Jackson Harper <jackson@ximian.com>
24363 * ThemeWin32Classic.cs:
24364 * InternalWindowManager.cs: Move the drawing into the theme,
24365 expose everything the theme should need from the window manager.
24367 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24369 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
24370 from the call to NativeWindow to avoid walking up the parent chain
24371 further than needed (speeds up setting cursors and avoids setting
24372 the wrong cursor if a parent has another cursor defined)
24373 * Cursor.cs: When loading an icon as cursor, MS uses the center of
24374 the icon as hotspot, not what's contained as hotspot in the icon
24375 file. This fixes the perceived drawing offset seen with Paint.Net
24377 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24380 - Store the calculated rectangle in Hwnd object and use it when
24381 setting the client size
24382 - Force Toolwindows to always be type Dock, to ensure they're on top
24384 2006-05-18 Mike Kestner <mkestner@novell.com>
24386 * ComboBox.cs: first pass at ComboBox rework. Layout is more
24387 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
24388 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
24389 Substantial refactoring to remove confusing nested classes. Coding
24390 standard and Get+Set->property refactorings. Shift to index based
24391 highlighting in ComboListBox instead of constantly using IndexOf and
24392 Items[]. Add invalidations on resize for DropDownList to fix ugliness
24393 in FileDialog growth. Draw borders manually since Simple mode needs
24394 to look like two independent controls. Make listbox border
24395 conditional to DropDownStyle. Improved OwnerDraw support.
24397 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
24399 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
24400 Don't set the disposed graphics to null, so we can throw the "right"
24401 exception if the graphics is reused later (added a flag to avoid
24402 double disposing). Some behaviours are different under 2.0 and are
24403 filled under bug #78448.
24405 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24407 * Control.cs: When double-buffering is enabled, we need to reset
24408 our graphics context between paint calls. Otherwise, any
24409 transformations and other alterations on the context will
24410 become cumulative (#77734)
24412 2006-05-18 Mike Kestner <mkestner@novell.com>
24414 * ListView.cs: do focused item selection like MS on clicks.
24415 Rework focus handling for ItemControl so LostFocus invalidates as
24417 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
24418 the ListView ItemControl has focus.
24420 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
24422 * XplatUIX11.cs: If client_window ends up being width or height zero
24423 due to border settings, move it off window inside whole_window (#78433)
24425 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24427 * Mime.cs: Shrink the mime file cache correctly.
24429 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24431 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
24433 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24435 * XplatUIX11.cs (AddExpose): More sanity checks
24437 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24440 - AddExpose: Don't add expose ranges outside the size of our
24442 - Cast opacity values to Int32 to avoid crashes with certain
24444 - Added disabled code paths that protect against illegal cross-
24445 thread painting (Developers.exe)
24447 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24449 * ProgressBar.cs: Invalidate the control when it's resized
24450 since block size is based on control size. (#78388)
24452 2006-05-16 Miguel de Icaza <miguel@novell.com>
24454 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
24455 of setting the incoming argument to the "reset" value, we set the
24456 this.datamember to string.empty (before we were invalidating the
24461 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24463 * Form.cs: Only apply transparency settings after the form
24464 is created. (Fixes #77800)
24466 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24468 * ApplicationContext.cs: Grab the HandleDestroyed event so
24469 we know when to fire OnMainFormClosed
24471 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24473 * Application.cs: Introduced sub-class to allow tracking of
24474 threads and centralized triggering of the event mess for
24475 ThreadExit, AppExit, etc.. (#76156)
24477 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
24480 - Do not return a null icon index value for a mime subclass.
24481 Instead try the main mime type class too.
24482 - Seems that some newer distributions don't have a link to some
24483 gnome default icons anymore. So check the default gnome dir too.
24486 2006-05-16 Jackson Harper <jackson@ximian.com>
24488 * MdiClient.cs: Don't paint the parent background image if we have
24489 our own background image.
24491 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24494 - PerformLayout: Do not shrink space filled by DockStyle.Fill
24495 controls, all filled controls are supposed to overlap (#78080)
24496 - UpdateZOrder is supposed to update the control's z-order in the
24497 parent's z-order chain. Fixed to behave like that
24498 - BringToFront: Removed obsolete code
24499 - SendToBack: Simplyfied
24500 - SetChildIndex: Trigger layout calculations when Z-order changes
24501 since layout is done by z-order
24503 2006-05-16 Chris Toshok <toshok@ximian.com>
24505 [ fixes bug #78410 ]
24506 * DataGrid.cs (set_AlternatingBackColor): use
24507 grid_drawing.InvalidateCells instead of Refresh().
24508 (set_BackColor): call grid_drawing.InvalidateCells.
24509 (set_BackgroundColor): use Invalidate instead of Refresh.
24511 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
24512 invalidate the cell area.
24514 2006-05-15 Chris Toshok <toshok@ximian.com>
24516 [ fixes bug #78011 ]
24517 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
24518 on to DataGridPaintRow.
24519 (DataGridPaintRow): take a clip argument, and only draw the cells
24520 which intersect it. same with the not_usedarea.
24522 * Theme.cs (DataGridPaintRow) add @clip parameter.
24524 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
24525 XplatUI.ScrollWindow.
24526 (ScrollToRow): same.
24528 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
24529 with last column which was causing a gray swath to appear with the
24530 XplatUI.ScrollWindow code.
24532 2006-05-15 Chris Toshok <toshok@ximian.com>
24534 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
24535 use XplatUI.ScrollWindow.
24536 (VerticalScrollEvent): use XplatUI.ScrollWindow.
24538 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24540 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
24542 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24544 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
24545 file since there are no equivalent X11 cursors
24547 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
24549 * MonthCalendar.cs : DateTimePicker should reflect selected date
24550 on mouse*up*, not mouse*down*. Fixed originally reported part of
24553 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
24555 * TabControl.cs : When argument index is equal or more than tab
24556 count, just ignore. Fixed bug #78395.
24558 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24560 * Control.cs: Dispose all child controls when control is diposed (#78394)
24562 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24564 * ColorDialog.cs: Finally it is possible to select the color with
24567 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24569 * PrintDialog.cs: Fix typo
24571 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24573 * PrintDialog.cs: PrintDialog is not resizable
24574 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
24575 color. Made some ToolBar drawing methods protected virtual.
24577 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
24579 * PrintDialog.cs: Implementation of the PrintDialog
24581 2006-05-12 Chris Toshok <toshok@ximian.com>
24583 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
24584 thumb, instead use MoveThumb. This has the side effect of making
24585 most of the other thumb moving machinery use MoveThumb as well.
24586 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
24587 need to actually invalidate the rectangle where the new thumb will
24589 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
24590 We force an Update() after, so it's not as fast as it could be,
24591 but at least there's zero flicker and no droppings.
24592 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
24593 (UpdateThumbPos): add another argument (dirty), which says whether
24594 or not to calculate/add dirty regions which we later invalidate.
24595 For cases where we know we're going to use MoveThumb, we pass
24596 false for this. Otherwise, pass true.
24598 2006-05-12 Jackson Harper <jackson@ximian.com>
24600 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
24603 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
24605 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
24606 and GetClipRegion methods and UserClipWontExposeParent property.
24607 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
24608 overriding UserClipWontExposeParent property, setting to false, since
24609 Win32 handles the required expose messages to draw our clipped parent
24611 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
24612 PaintEventStart to set the user clip region if set.
24614 - Now internally tracking the Region for the control since we need to
24615 store it if the handle is not yet created and only set it when it
24616 becomes created. Before setting the region forced handle creation
24617 - Added code to draw the parents underneath a user-clipped region
24618 * Hwnd.cs: Added UserClip property
24620 2006-05-12 Chris Toshok <toshok@ximian.com>
24622 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
24623 (set_Maximum): same.
24624 (set_Minimum): same.
24625 (set_SmallChange): same.
24626 (OnMouseUpSB): remove the call to refresh when releasing the
24627 thumb. We shouldn't need it.
24629 2006-05-12 Miguel de Icaza <miguel@novell.com>
24631 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
24632 AutoSize set to None, we do not need to relayout everything, we
24633 just need to invalidate the current region.
24635 (Draw): Do not draw the entire ClientArea, just redraw the
24636 clip area being passed.
24638 * MdiClient.cs: Make MdiClient constructor with the Form argument
24641 2006-05-12 Jackson Harper <jackson@ximian.com>
24643 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
24644 parents background image, but strangely not their own.
24645 - (DrawStatusBarPanel): Take into account horizontal alignment
24646 when drawing the strings and icons.
24648 2006-05-12 Mike Kestner <mkestner@novell.com>
24650 * ListBox.cs: avoid invalidations for focus when the collection is
24653 2006-05-12 Chris Toshok <toshok@ximian.com>
24655 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
24656 invalidate the entire thumb area. Call InvalidateDirty which
24657 limits the redraw to the thumb itself and surrounding pixels.
24659 * XplatUIX11.cs (ScrollWindow): optimize copying.
24661 2006-05-12 Chris Toshok <toshok@ximian.com>
24663 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
24664 Figure out the positioning/layout in a single pass instead of
24665 multiple recursive invocations. Speeds up the initial display of
24666 the data grid. Also, make many things private that were
24667 originally public but unused outside this class.
24669 2006-05-11 Jackson Harper <jackson@ximian.com>
24671 * MdiClient.cs: Improved layout code.
24673 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
24675 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
24676 not SelectedObject.
24678 2006-05-11 Chris Toshok <toshok@ximian.com>
24680 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
24681 union of that will always be {0,0,width,height}.
24683 2006-05-11 Jackson Harper <jackson@ximian.com>
24685 * Form.cs: Match MS's DefaultSize for forms (they must have
24686 changed the size in sp2).
24688 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
24690 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
24692 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
24694 * TextControl.cs : Fixed bug #78109. This incorrect position
24695 comparison caused crash on automatic line split.
24696 * TextBoxBase.cs : reduce duplicate code.
24698 2006-05-10 Jackson Harper <jackson@ximian.com>
24700 * MdiClient.cs: Active form is only sent to the back when using
24701 the Next form functionality, when a form is clicked the current
24702 active shouldn't be sent to the back.
24703 - Layout the mdi windows when the container is first made visible.
24704 * Form.cs: Give the MdiClient a ref to the containing form when we
24707 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
24709 * LinkLabel.cs : link_font could be uninitialized, so populate one
24710 before actual use. Fixed bug #78340.
24712 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
24714 * XplatUIX11.cs : clipboard format native value is IntPtr.
24717 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
24720 - Instead of showing context menus directly we send WM_CONTEXTMENU,
24721 which is passed up the parent chain by DefWndProc
24722 - We now handle WM_CONTEXTMENU to display any menu, or pass it
24723 to DefWndProc (#77956)
24724 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
24726 2006-05-10 Jackson Harper <jackson@ximian.com>
24728 * MdiClient.cs: We need to remove the controls from the mdi
24729 collection, when we close the window.
24730 * MdiWindowManager.cs: Special handling of closing mdi windows.
24731 * InternalWindowManager.cs: Make the close method virtual so the
24732 mdi window manager can handle it specially.
24734 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
24737 - Recalculate grid when the data source has changed
24738 - Matches styles provided by user from all data sources types
24739 * DataGridTableStyle.cs: For columns that provided by the user set the
24740 with the preferred value is there was unassigned.
24741 * CurrencyManager.cs: throw OnItemChanged event
24743 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
24745 * PictureBox.cs: Don't animate until handle is created. Start animation
24746 when handle is created.
24748 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
24750 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
24752 * XEventQueue.cs: We don't need to provide the extra info
24754 2006-05-10 Jackson Harper <jackson@ximian.com>
24756 * MdiClient.cs: If the mdi clients parent form has a background
24757 image set, we draw that background image for the mdi area's
24760 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
24762 * TextBoxBase.cs: Set IBeam cursor (#78347)
24764 2006-05-10 Mike Kestner <mkestner@novell.com>
24766 * ToolBar.cs: fix some text padding issues with ButtonSize
24767 calculation. Update the default size to match MS documentation.
24768 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
24769 button size. Fixes #78296.
24771 2006-05-10 Mike Kestner <mkestner@novell.com>
24773 * ListBox.cs: use is_visible for scrollbar positioning in case the
24774 control isn't on screen yet. Fix off by one with Right vs Width
24775 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
24777 2006-05-10 Jackson Harper <jackson@ximian.com>
24779 * X11Dnd.cs: Drop to a control with another control on top of it.
24780 * ToolBar.cs: Work on a copy of the buttons list, so that it can
24781 be modified in click handlers. TODO: Look for similar problems in
24784 2006-05-09 Jackson Harper <jackson@ximian.com>
24786 * Form.cs: Window managers need the old window state when setting
24788 * InternalWindowManager.cs: Allow the base mdi window manager to
24789 handle more of the MDI only stuff (like maximize buttons).
24790 * MdiWindowManager.cs: Fix some snafus in changing the window
24791 state. Add all the menu functionality, for both popup and
24793 * MdiClient.cs: When a new form is selected the currently
24794 activated form is sent to the back, this matches MS.
24795 - Implement a new method to activate the next mdi child window.
24797 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
24800 - Added new InternalCapture method to allow controls to prevent
24801 the capture behaviour on the click handlers
24802 - Switched to use InternalCapture
24804 - Using InternalCapture to prevent mouse captures from being released
24805 on mouse button release (Fixes #78100)
24806 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
24807 returns Form borders if a caption is present. (Fixes #78310)
24809 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
24811 * TreeNode.cs: Changed serialization .ctor to not require every field
24812 to be present. (#78265)
24813 * OwnerDrawPropertyBag.cs: Added serialization .ctor
24815 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
24817 * MimeIcon.cs: for is faster than foreach for strings.
24819 2006-05-05 Mike Kestner <mkestner@novell.com>
24821 * CheckedListBox.cs: update check handling code to not use selected.
24822 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
24823 behavior for visual feedback, motion response, shift/ctrl handling,
24824 and properly deal with all 4 selection modes. Updates to bounds
24825 handling logic. Add scroll wheel support. [Fixes #77842]
24827 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
24830 - Moved adding of Implicit controls into .ctor. That way, subsequent
24831 creation of the controls will not cause them to think they are
24832 toplevel windows (fixes #78200 header problem)
24833 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
24834 - Switched visibility setting of header control to use internal field
24835 to avoid triggering handle creation
24836 - Now checking if handle is created before causing a refresh when items
24837 are added (This makes us now match handle creation time with MS)
24838 * Splitter.cs: Removed loading of private splitter cursor, switched to
24839 Cursors version now that that is loading the right ones
24840 * Cursors.cs: Load proper splitter cursors from resources
24841 * Cursor.cs: Added second method of loading resource cursors for the
24842 VS.Net users amongst us
24844 2006-05-05 Mike Kestner <mkestner@novell.com>
24846 * ListView.cs: give header_control a minimum size based on the
24849 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
24851 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
24852 window seems to do that with metacity, so set that type. (#78120)
24854 2006-05-05 Mike Kestner <mkestner@novell.com>
24856 * ListViewItem.cs: fix Details mode checkbox layout bug.
24857 * ThemeWin32Classic.cs: draw a ListView column header for unused space
24858 at the end of the header, if it exists. [Fixes for #78200]
24860 2006-05-04 Jackson Harper <jackson@ximian.com>
24862 * MdiClient.cs: Add a helper property to get the container form.
24863 * MdiWindowManager.cs: We have to make sure to use the menu origin
24864 when drawing the icons and buttons, this fixes maximized window
24865 icons/buttons on win32.
24866 * InternalWindowManager.cs: Reset the restore captions when a
24867 window goes from Maximized to Minimized and vice versa. Move the
24868 DrawMaximizedButtons into the MdiWindowManager source, tool
24869 windows can't be maximized. NOTE: This could use a little
24870 refactoring if time ever permits.
24872 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
24874 * TextBox.cs: Add MWFCategoryAttributes
24875 * TextBoxBase.cs: Add MWFCategoryAttributes
24876 * Form.cs: Add MWFCategoryAttributes
24878 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
24880 * Control.cs: Add MWFCategoryAttributes
24881 * ScrollableControl.cs: Add MWFCategoryAttributes
24883 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
24885 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
24886 Divider is true. Fix a little glitch in PropertyToolBar
24889 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
24892 - Dispose: Call base.Dispose, this causes the disposed event
24893 to be fired (and probably other, more important stuff)
24894 - SetVisibleCore: Set is_visible to true after creating the
24895 window so that the window still gets created invisible (if
24896 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
24897 to generate a WM_ACTIVE message
24898 * Form.cs: Call Dispose when we want to destroy the window, instead of
24899 just destroying the handle (Dispose will do that for us)
24901 - RootWindow also needs a queue, so we can properly process the
24902 property change events from RootWindow (like Activate)
24903 - Generatic synthetic WM_ACTIVE message when the active window is
24906 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
24908 * LinkLabel.cs: Trigger a recalc of our label dimensions when
24911 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
24913 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
24914 for determining width and height (image might not be assigned if
24915 we're drawing an imagelist)
24917 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
24919 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
24920 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
24922 * Theme.cs: No longer returns hardcoded menu height, instead calls
24924 * Form.cs (OnLoad): Scaling happens before triggering Load events
24927 2006-05-01 Mike Kestner <mkestner@novell.com>
24929 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
24931 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
24933 * TextBoxBase.cs: Removed Fixme
24934 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
24936 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
24939 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
24940 the rectangle relative to the parent, considering borders. We
24941 don't really want that.
24942 - ScrollWindow: Fixed warning to be more understandable
24943 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
24944 scrollbars and scroll only the visible area
24945 * RichTextBox.cs: Removed debug output
24947 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24949 * NumericUpDown.cs (Text): Just use base
24950 * UpDownBase.cs: Ensure txtView is created before using it
24952 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24954 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
24955 casting to IntPtr to avoid 64bit overflow errors
24957 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24960 - AllowDrop: Don't force handle creation.
24961 - CreateHandle: Added call to tell driver if we're allowed to drop
24963 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24965 * FileDialog.cs: Remember the last directory not only for the
24966 current instance but also for new FileDialog instances.
24968 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24970 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
24971 broke sending async messages
24973 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24976 - ScrollWindow: Fixed method. We finally generate expose events again
24977 for scrolled areas. This was causing 'garbage' when scrolling
24978 textbox and other controls that used ScrollWindow
24979 - Switched from using the regular queue for paint events to the MS
24980 model of 'generating' paint events when the queue is empty.
24981 We use the new XQueueEvent.Paint subclass to store which windows
24983 - AddExpose now takes the x/y/width/height of the exposed area
24984 and inserts the window into the paint queue if not already there
24985 - InvalidateWholeWindow: Switched to use new AddExpose method
24986 - UpdateMessageQueue: Added which queue to monitor for paint events
24987 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
24988 the unlikely case nothing above handles it. We reset the expose
24989 pending states to get them off the queue.
24990 - GetMessage: Now pulls a paint event if no other events are in the
24992 - Invalidate: Switched to new AddExpose method
24993 - PeekMessage: Updated to understand pending paint events
24994 - UpdateWindow: Fixed logic bug. We were only updating if the window
24995 didn't need updating. Also switched to sending WM_PAINT directly,
24997 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
24998 and random access Remove(). The random access is needed to handle
24999 UpdateWindow() where a WM_PAINT is sent directly without accessing
25001 * ScrollBar.cs: Added Update() calls to cause immediate updates to
25002 allow for better feedback when scrolling. Scrollbars are small and
25003 the immediate update should make it 'feel' more responsive without
25004 slowing things down. ScrollBar still needs it's invaliate logic
25005 updated to not always invalidate the whole bar on certain changes.
25007 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25010 (BackColor): if the control does not support a transparent background,
25011 return the default backcolor when the parent backcolor is transparent.
25013 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
25015 * Application.cs: Updated to new StartLoop/GetMessage API
25016 * RichTextBox.cs: Provide some output on RTF parsing errors
25017 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25018 new queue_id argument to GetMessage and PeekMessage to allow faster
25019 handling of per-thread queues in drivers.
25020 * Hwnd.cs: Added Queue tracking and property
25021 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25022 * XEventQueue.cs: Added thread trackingA
25023 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25025 - Implemented new per-thread queue
25026 - GetMessage: Fixed return/break behaviour on several cases. We were
25027 returning stale messages in some cases, instead of just processing
25030 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25032 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25034 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
25036 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25037 fixed off-by-one comparisons between Width/Height and Right/Bottom.
25039 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25041 * PropertyGridView.cs: Fix drop down width.
25043 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25045 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25046 a mess in DrawToolBar, so I removed one of them.
25048 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25050 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25051 needed (clip). Otherwise we get artifacts.
25053 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25055 * FixedSizeTextBox.cs: Added constructor to allow specifying which
25057 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25058 and switched FixedSizeTextBox to only be fixed vertical (#78116)
25059 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25060 if it matches the scale base font (avoids unneeded scaling)
25062 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25064 * X11DesktopColors.cs: One gtk_init_check should be enough
25066 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25068 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25071 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25074 - Generate OnTextChanged for Backspace even if we're only deleting
25075 the current selection
25076 - When setting the Text property, only select all text if the
25077 control does not have focus when it is being set. Otherwise
25078 just place the cursor at the beginning of the control
25080 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25082 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25083 Added a little helper to draw PropertyGrid ToolBar with a different
25084 border and a different BackColor.
25085 * PropertyGrid.cs: Some background parts didn't get painted with the
25086 correct background color. Added a class that helps us to draw the
25087 correct border for PropertyGridView and a class that helps us to
25088 draw ToolBars with a different backcolor
25089 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25091 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
25093 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25094 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25096 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25098 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25099 into the palette entries. Also, since we're working on a copy
25100 we needed to copy the palette back onto the bitmap.
25101 * Cursor.cs: Same fix as XplatUIWin32.cs.
25103 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25105 * ImageListStreamer.cs: Need to read the var (or we're off)
25107 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25109 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
25110 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25111 TextBoxBase.cs: Unused var fixes
25112 * AxHost.cs: Small 2.0 fix
25113 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
25114 as it seems that is what at least Metacity expects. This will make
25115 icons show up on 64bit platforms. We still have some 64bit size
25116 issues, though, since the startup app window size still won't match.
25118 2006-04-25 Mike Kestner <mkestner@novell.com>
25120 * *.cs: cleanup newly reported exception var unused warnings.
25122 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25124 * ThemeWin32Classic.cs: Button image alignment now matches exactly
25127 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25129 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25130 image. The image position is always the same, no matter if the
25131 button is pressed or not.
25133 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25135 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25136 selection and set the correct filename for SaveFileDialog.
25137 Patch by Emery Conrad.
25139 2006-04-24 Mike Kestner <mkestner@novell.com>
25141 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25142 check for item.X outside the ClientRect instead of item.Y. Fixes
25145 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25147 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25148 trust that value blindly and do some sanity check. Fixes bug #77814.
25150 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25152 * ImageListStreamer.cs: save the mask as a 1bpp image.
25154 2006-04-21 Mike Kestner <mkestner@novell.com>
25156 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25157 pass Checked and Indeterminate to the Theme Engine. Improve
25158 encapsulation with ListBox.
25159 * ListBox.cs: Keep a StringFormat instead of calculating it every item
25160 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25161 nested types. Move all CheckState functionality to CheckedListBox.
25162 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
25163 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
25164 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25165 single base list. Fix scrollbar sizing and placement to mirror MS.
25166 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25168 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25169 for CheckedListBox by using new DrawItemState info. Center the
25170 checkboxes on the items. Use new StringFormat property.
25172 2006-04-18 Jackson Harper <jackson@ximian.com>
25174 * Form.cs: MdiChildren don't do default locations the same way as
25175 regular forms. This prevents a crash when trying to position the
25178 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
25180 * PropertyGridTextBox.cs: Formatting, copyright
25181 * PropertiesTab.cs: Formatting
25182 * PropertyGrid.cs: Formatting
25183 * PropertyGridView.cs: Formatting, fix drop down, enabled double
25184 click toggling of values
25186 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
25188 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25189 * Control.cs (.ctor): verify_thread_handle is static, don't reset
25190 every time a control is created
25191 * Application.cs: Removed obsolete EnableRTLMirroring method
25193 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
25195 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25196 SelectedIndex to -1. Fixes bug #78121.
25198 2006-04-17 Jackson Harper <jackson@ximian.com>
25200 * Binding.cs: Handle null values for Current and BindingContext.
25201 This occurs when binding is a little delayed.
25202 * CurrencyManager.cs: return null for Current when there are no
25204 - Hookup to the listchanged event on the DataView and update
25205 bindings when the list is changed. This fixes late binding of
25208 2006-04-17 Jackson Harper <jackson@ximian.com>
25211 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25214 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
25216 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25218 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25219 with the correct ButtonState
25221 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
25223 * XplatUIX11.cs: Improved distinguishing between window types to
25224 tell the WM a type closer to what the app wants (Fixes #78107)
25226 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25228 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25231 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25233 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25234 drawing code to reflect the size grip changes
25236 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25238 * ImageListStreamer.cs: fix handling of the mask that follows the main
25239 bitmap when deserializing and serialize it properly. The generated mask
25240 should better be a 1bpp image, but I'll do that later.
25242 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25244 * FileDialog.cs: Show something in the DirComboBox on *nix if the
25245 path doesn't fit into some of our Current.Places
25247 2006-04-13 Jackson Harper <jackson@ximian.com>
25249 * ComboBox.cs: Use borders instead of drawing our own decorations,
25250 try to obey correct rules for heights.
25253 * ThemeClearLooks.cs:
25254 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25255 this is now handled by borders.
25256 - Remove unused DrawListBoxDecorationSize method.
25258 2006-04-13 Mike Kestner <mkestner@novell.com>
25260 * MenuAPI.cs: null guarding for the disbled click check fixes crash
25263 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25265 * ThemeWin32Classic.cs:
25266 - Fixed CPDrawStringDisabled
25267 - Corrected drawing of disabled menu items
25268 - Fixed drawing of disabled radio buttons (bug #78095)
25269 - Draw check in a disabled CheckBox with color ControlDark
25271 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25273 * Form.cs: Use the provided width when calculating the menu size;
25274 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25275 and ClientSize.Width won't be updated yet
25276 * Application.cs: Use Visible instead of Show() to make form visible,
25277 this way we create the handle later and menusize is considered
25279 2006-04-12 Mike Kestner <mkestner@novell.com>
25281 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25284 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25286 * TextBox.cs: Implemented context menu
25288 2006-04-12 Mike Kestner <mkestner@novell.com>
25290 * ListView.cs: implement box selection. fixes #77838.
25291 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25293 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25295 * XplatUIX11.cs: Added setting of window type when transient window
25296 is created (metacity would move it otherwise)
25297 * X11Structs.cs: Added WINDOW_TYPE atoms
25298 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25299 background (the control is Opaque but still wants transparent
25302 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25304 * Control.cs: Added OnPaintBackgroundInternal to allow controls
25305 that set Opaque but don't mean it (like all ButtonBase-derived
25306 controls) to still draw their background
25307 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25310 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25312 * Control.cs (PaintControlBackground): Set the graphics object
25313 on our PaintEvent to null to prevent it from being disposed
25314 when the PaintEvent gets disposed
25316 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
25318 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25319 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25321 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25324 - Added transparency check to BackColor property. Transparent
25325 backgrounds are only allowed if the control styles permit it
25326 - Added recursive painting of parent control background and
25327 foreground if a control with a transparent backcolor is drawn
25328 (Thanks to Tim Ringenback for providing his 'hack' as a base
25329 for this patch) Fixes #77985 and #78026.
25330 - Added Opaque style check before calling OnPaintBackground, no
25331 need to draw the background if the control is opaque
25332 - Removed ControlAccessibleObject owner variable (inherited from
25333 base, no need to define again)
25334 - Added some documentation links explaining the drawing events
25337 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25339 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25340 that the affected control is the located at the left border of our
25341 parent (Fixes #77936)
25343 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25345 * TextBoxBase.cs: When rendering disabled or readonly controls,
25346 draw the background with 'Control' instead of 'Window' color as
25347 long as the user hasn't specifically set a color
25349 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25351 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25352 since that won't be updated if the user types text (only if it's
25353 programatically set)
25355 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25357 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25358 layout changes do to app-triggered resizes will have the proper
25359 display rectangle for layout
25361 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
25363 * ThemeWin32Classic.cs:
25364 - Make use of the SystemBrushes and SystemPens wherever possible
25365 - Corrected some highlight colors
25366 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25368 * Theme.cs: Added Empty field to CPColor struct
25370 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25372 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25373 is displayed when calculating the display rectangle. Thanks to Mike
25374 for teaching me the err of my ways.
25376 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
25378 * ScrollableControl.cs:
25379 - Rewrote DisplayRectangle code, now returning the proper x/y coords
25380 (instead of 0,0) and we now return the real width/height instead of
25381 just the clientrectangle, adjusted for padding. The rectangle is
25382 now cached and created by the new CalculateDisplayRectangle method.
25383 - Created new CalculateDisplayRectange method, which basically does
25384 what get_DisplayRectangle() did originally, but now using the
25385 right edge instead of DisplayRectangle to determine the size of
25387 - get_Canvas(): Fixed it to properly calculate canvas for
25388 right/bottom controls which seem to be placed to the right/bottom
25389 of any controls that have a fixed location
25390 - Removed TODO that's taken care of
25391 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25392 and SetDisplayRectLocation according to new MSDN2 docs
25393 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25394 event when that is called, this is added for compatibility
25395 - ScrollControlIntoView(): Implemented.
25396 - Switched scrollbars to be implicit, they shouldn't be selectable
25397 * ContainerControl: Now that ScrollControlIntoView is implemented, we
25398 call it when the active control is set/changed
25399 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25400 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
25401 implicit_control variable (used for native Win32 message generation)
25402 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
25403 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
25404 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
25405 * XplatUIStructs.cs: Added ScrollBarCommands enum
25407 2006-04-10 Jackson Harper <jackson@ximian.com>
25410 * CheckedListBox.cs:
25417 * PrintPreviewControl.cs:
25423 * UpDownBase.cs: Fixup base event overrides.
25425 2006-04-06 Mike Kestner <mkestner@novell.com>
25427 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
25428 all user-initiated value changes to min <= value <= max-thumbsz+1.
25429 (set_Value): check for vert/horiz when calculating new thumb position.
25430 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
25432 (OnMouseMoveSB): refactor the thumb dragging code and refine
25433 invalidation logic to reduce flicker.
25434 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
25435 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
25436 (UpdateThumbPosition): small code readability cleanup
25438 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
25440 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
25443 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25445 * ThemeNice.cs: Use a better graphics effect when a button is pressed
25447 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25449 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
25450 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
25451 This dramatically reduces the number of Pen.Dispose calls.
25452 Where possible call ResPool methods only once instead of calling it
25453 over and over again (for example for the same color).
25455 2006-04-06 Mike Kestner <mkestner@novell.com>
25457 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
25458 Also remove an unused private field on the collection. Fixes #77972.
25460 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25462 * ThemeNice.cs: Added ToolBar drawing code
25464 2006-04-06 Mike Kestner <mkestner@novell.com>
25466 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
25467 I'm assuming that means we need to look up the toplevel for the
25468 provided control. Fixes the crash trace in #77911 but exposes another
25469 crash in some strange reflection usage in NDocGui.
25471 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25473 * ThemeNice.cs: Gave it a little silver touch and added Images
25475 * FontDialog.cs: FontDialog is not resizable
25476 * FileDialg.cs: Added SizeGripStyle.Show
25478 2006-04-05 Jackson Harper <jackson@ximian.com>
25480 * KeyboardLayouts.cs: Remove warning.
25482 2006-04-05 Jackson Harper <jackson@ximian.com>
25484 * Control.cs: Enable OnPaintInternal so we can use it for drawing
25485 all of our controls instead of Paint +=.
25500 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
25501 use OnPaintInternal. Remove Width/Height and Visible checks in
25502 paint handler, this is done at a higher level now.
25503 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
25504 * PaintEventArgs.cs: Add a handled flag so controls that don't
25505 want anymore painting after OnPaintInternal can make sure OnPaint
25508 2006-04-05 Mike Kestner <mkestner@novell.com>
25510 * Form.cs: fix the menu WndProc hacks to respect the native enabled
25511 state of the form, so that we don't process events when Modal dialogs
25512 are up. Fixes #77922.
25514 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
25516 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
25519 2006-04-05 Mike Kestner <mkestner@novell.com>
25521 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
25523 2006-04-05 Mike Kestner <mkestner@novell.com>
25525 * ListView.cs (HeaderMouseMove): null guarding for the over column
25526 when setting up the drag_to_index. Fixes #78015.
25528 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25530 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
25531 in the taskbar. Transient windows seem to accomplish that.
25533 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25536 - Re-enabled CreateParams.X/Y code for FormStartPosition
25537 - Added code for manual placement when creating the Control
25538 - Incomplete patch to treat MDI forms differently when
25539 setting the ClientSizeCore. (Still need to figure out handling
25542 - When we're explicitly setting the X/Y position of a non-Child
25543 window, let the WM know. Metacity really wants this.
25545 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25547 * ThemeNice.cs: Added CPDrawButton
25549 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25551 * ThemeNice.cs: Changed the color for focused buttons and activated
25552 the arrows for small scroll buttons.
25554 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25556 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
25557 anymore. Changed some method modifiers to protected (virtual)
25558 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
25560 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
25561 Updated drawing of menus, buttons and progressbars; added
25564 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25566 * ImageListStreamer.cs: implemented serialization/deserialization
25569 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
25571 * ThemeWin32Classic.cs:
25572 - Removed all the DrawFrameControl stuff; CPDrawButton,
25573 CPDrawCheckBox and CPDrawRadioButton are now handled directly
25575 - Updated and corrected the drawing code of CPDrawButton,
25576 CPDrawCheckBox and CPDrawRadioButton to better match ms
25577 - Updated theme checkbox and radiobutton code to use the CP*
25580 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25582 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
25585 2006-03-31 Jackson Harper <jackson@ximian.com>
25587 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
25589 * UpDownBase.cs: Don't CreateGraphics manually, use a
25590 Refresh. Ideally we would invalidate the correct areas here.
25592 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25595 - We now track the mapping state of windows. If a window (or
25596 one of it's parents) is not mapped we no longer permit
25597 WM_PAINT messages to be generated since we'd otherwise get
25598 lots of BadMatch X errors. Jackson did all the work figuring
25600 - Destroying the caret if the window it's contained in is
25601 destroyed. Can't use regular DestroyCaret method since it
25602 might fall into a drawing function (trying to remove the
25603 caret) and with that generate new BadMatch errors. Again,
25604 Jackson tracked this down.
25605 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
25606 make sure we send the messages to all windows. (The old code
25607 would send the WM_DESTROY to the window, and then all child
25608 windows would be 'gone' because the WM_DESTROY handle lookup
25609 would no longer find the destroyed window)
25610 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
25611 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
25613 2006-03-31 Jackson Harper <jackson@ximian.com>
25615 * ScrollableControl.cs: Dont recalc if we are not visible.
25617 2006-03-31 Mike Kestner <mkestner@novell.com>
25619 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
25620 the visibility branch.
25622 2006-03-31 Jackson Harper <jackson@ximian.com>
25624 * ScrollBar.cs: Cap values when incrementing/decrementing.
25626 2006-03-31 Mike Kestner <mkestner@novell.com>
25628 * MenuAPI.cs: setup menu.tracker for popup/context menus.
25629 * ToolTip.cs: guard against timer expirations with no active control.
25630 Not sure why it happened.
25632 2006-03-31 Mike Kestner <mkestner@novell.com>
25634 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
25636 * ToolTip.cs: Position the tooltip based on where the cursor is at
25637 popup time, not at MouseEnter time. Add a Down state so that we don't
25638 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
25639 positioning offset. Lookup DisplaySize at positioning time, since it
25640 can theoretically change during invocation.
25641 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
25642 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
25644 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25646 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
25647 Fixes behaviour when the Text property of the box is String.Empty
25649 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25651 * XplatUIX11.cs: Only send mouseleave for our client windows, not
25652 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
25655 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25657 * FileDialog.cs: Visual enhancement for the popup buttons in
25660 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25662 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
25665 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
25667 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
25668 highlighted menu items to match ms
25670 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
25672 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
25674 2006-03-30 Mike Kestner <mkestner@novell.com>
25676 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
25677 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
25678 go active to account for HotLight to Selected transition.
25679 * MenuItem.cs: add internal Selected prop. Fill out the Status
25680 property by calculating it from item info. Add HotLight,
25681 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
25683 2006-03-30 Mike Kestner <mkestner@novell.com>
25685 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
25687 2006-03-29 Jackson Harper <jackson@ximian.com>
25689 * Form.cs: Implement TODO.
25691 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
25693 * PrintPreviewDialog.cs: Implemented missing methods and events; still
25694 missing proper dialog setup in the constructor
25696 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
25698 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
25700 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
25701 - Fixed ResetBindings and removed TODO
25702 - Added check for cross-thread calls to get_Handle()
25703 - Added Marshaller attribute for set_Font to satisfy class status
25704 * FontDialog.cs: Removed TODOs that seemed implemented
25705 * UpDownBase.cs: Removed unneeded TODO and Fixme
25706 * MessageBox.cs: Implemented support for Default button and removed TODO
25707 * FileDialog.cs: Removed obsolete TODO
25708 * DomainUpDown.cs: Removed obsolete TODO
25709 * ButtonBase.cs: Removed obsolete TODO
25710 * XplatUIWin32.cs: Removed obsolete TODO
25712 - Removed obsolete TODO
25713 - Calling CheckAcceptButton when the acceptbutton is changed to allow
25714 internal status updates
25715 - Making sure the active control is selected when the control is created
25716 * CurrencyManager.cs: Removed obsolete TODO
25718 2006-03-29 Mike Kestner <mkestner@novell.com>
25720 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
25721 of PrintPreviewDialog and RichTextBox.
25723 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
25725 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
25726 DarkDark, Light and LightLight colors for a specific color
25727 * ThemeWin32Classic.cs:
25728 - Use Button drawing code to draw RadioButtons and CheckBoxes with
25729 Appearance = Button
25730 - Make use of the new ResPool helper CPColor
25731 - Draw ProgressBar and StatusBar with correct 3D borders
25733 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
25735 * ColorDialog.cs: Return selected color. Fixes bug #77940.
25737 2006-03-28 Mike Kestner <mkestner@novell.com>
25739 * ListView.cs: fix Icon layout to plan for scrollbar widths when
25740 calculating col/row counts.
25742 2006-03-28 Mike Kestner <mkestner@novell.com>
25748 switch to explicit interface method implementation for some methods
25749 corcompare identifies as inconsistent with MS.
25751 2006-03-28 Mike Kestner <mkestner@novell.com>
25755 add a few missing methods from the class status output.
25757 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
25759 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
25762 2006-03-28 Mike Kestner <mkestner@novell.com>
25764 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
25766 2006-03-27 Mike Kestner <mkestner@novell.com>
25768 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
25769 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
25771 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
25773 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
25775 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
25777 * ThemeWin32Classic.cs:
25778 - GroupBox: Inserted a little gap between the text and the lines
25780 - Made the code in CPDrawBorder3D more readable
25781 - Corrected the drawing location of the up and down arrows in
25784 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
25786 * ControlPaint.cs: Corrected line widths in DrawBorder for
25787 ButtonBorderStyle Inset and Outset
25789 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
25791 * ThemeWin32Classic.cs:
25792 - Rewrote the totally broken CPDrawBorder3D method. That was
25793 one of the main problems for the terrific ThemeWin32Classic
25795 - Updated and corrected Button drawing
25796 - Correct the dimensions of the SizeGrip to match ms ones
25797 - Removed a small drawing glitch in DrawComboBoxEditDecorations
25798 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
25799 Border3DStyle.Sunken to match ms.
25801 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
25803 * ThemeWin32Classic.cs: First small part of the "de-uglify
25804 ThemeWin32Classic" effort, SizeGrip
25806 2006-03-24 Jackson Harper <jackson@ximian.com>
25808 * XplatUIX11.cs: Give a max idle time of one second, this matches
25809 MS and forces an Idle event every second when there are no other
25810 events in the queue.
25812 2006-03-24 Mike Kestner <mkestner@novell.com>
25814 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
25815 * ListView.Item.cs: fix layout issues with null image lists and images
25816 smaller than checkbox size.
25817 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
25818 mode like MS does. It's weird, but consistent. ;-)
25821 2006-03-24 Mike Kestner <mkestner@novell.com>
25823 * ListView.cs: Scroll wheel support for the item control. Fixes
25826 2006-03-23 Jackson Harper <jackson@ximian.com>
25828 * ScrollableControl.cs: Special case negative sized areas, not
25830 * MonthCalendar.cs: Save the rect of the clicked date so we can
25831 use it for invalidation.
25832 - Try to cut down on the number of invalidates
25833 - Invalidate the rect the mouse is over and was over when moving
25834 the mouse, so we get the focus box following the cursor.
25836 2006-03-23 Mike Kestner <mkestner@novell.com>
25838 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
25839 focus rectangle drawing. Fixes #77835.
25841 2006-03-23 Mike Kestner <mkestner@novell.com>
25843 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
25844 the if and else if and reverting back to the original == check on the
25847 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
25849 * FontDialog.cs: Update the example panel if the selected index of
25850 the fontListBox changes.
25852 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
25854 * FileDialog.cs: Make FileDialog remember which directory it was in
25855 last in the same execution.
25857 2006-03-22 Mike Kestner <mkestner@novell.com>
25859 * FileDialog.cs: make the DropDownMenu on the toolbar display
25860 RadioChecks since they are mutually exclusive and that's what MS does.
25862 2006-03-22 Mike Kestner <mkestner@novell.com>
25864 * Theme.cs: add Color param to CPDrawMenuGlyph.
25865 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
25866 checks and radio marks and arrows are visible on highlighted items.
25867 * ControlPaint.cs: update to use new Theme signature.
25869 2006-03-22 Mike Kestner <mkestner@novell.com>
25871 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
25872 is active. Fixes #77870.
25874 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
25876 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
25877 to be focused/selected after startup
25879 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
25882 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
25883 CustomColors and ShowHelp properties
25884 - Some internal rewrites to get better results when using the
25887 2006-03-22 Mike Kestner <mkestner@novell.com>
25889 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
25890 HoverSelection. Fixes #77836.
25892 2006-03-22 Mike Kestner <mkestner@novell.com>
25894 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
25895 ToggleButtons. (De)Sensitize the Back button around a stack count of
25896 1, not 0. Update ButtonSize based on a pixel count of the win32
25897 control. Adjust the toolbar size/location for new button size.
25899 2006-03-22 Jackson Harper <jackson@ximian.com>
25901 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
25903 * ScrollBar.cs: When doing increments and decrements we need to
25904 set the Value property so that ValueChanged gets raised. A
25905 possible optimization here would be to make an internal SetValue
25906 that doesn't invalidate immediately.
25907 * ToolTip.cs: Tooltips get added to their container (when
25908 supplied) so they get disposed when the container is disposed.
25909 - Don't create tooltips for String.Empty. This prevents all these
25910 little 2-3 pixel windows from showing up when running nunit-gui
25911 and driving me mad.
25912 * Form.cs: Don't set topmost when setting the owner if the handles
25913 haven't been created yet. The topmost set will happen when the
25914 handles are created.
25916 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
25919 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
25920 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
25921 visible (to allow them to recalculate their sizes)
25923 2006-03-21 Mike Kestner <mkestner@novell.com>
25925 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
25926 methods. Removed a ton of redundant code. Still not really happy with
25927 the border rendering, but I think that's mainly because of the
25928 ControlDarkDark being black instead of a dark grey. Depending on how
25929 close we want to be, we might want to revisit those color choices.
25930 Among the new features added during the refactor were DropDownArrow
25931 pressed rendering, Disabled image rendering. Proper flat appearance
25932 boundary rendering. Removed the Divider and Wrapping dividers since I
25933 can't figure out any combination of themes and conditions to make the
25934 MS control draw a horizontal line on a toolbar despite what the
25935 Divider property docs indicate.
25936 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
25937 conditions and incorrect layout. Updated to coding standard.
25938 * ToolBarButton.cs: refactored layout and positioning code from
25939 ToolBar to here. Invalidate wherever possible instead of forcing
25940 redraws of the whole toolbar.
25941 (Known remaining issues: explicit ButtonSize smaller than provided
25944 2006-03-21 Mike Kestner <mkestner@novell.com>
25946 * ContextMenu.cs (Show): use the position parameter instead of just
25947 showing at the MousePosition.
25949 2006-03-21 Jackson Harper <jackson@ximian.com>
25951 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
25952 control handle this.
25953 * TreeNodeCollection.cs: If we are clearing the root node we need
25954 to reset top_node so calcs can still happen.
25955 * ThemeWin32Classic.cs: This is a Flags so we need to check
25958 2006-03-21 Jackson Harper <jackson@ximian.com>
25960 * DataGrid.cs: Create columns when the binding context has been
25962 * X11Structs.cs: Keysyms are uints.
25963 - Add size to fix build.
25965 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
25967 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25969 - Added ResetMouseHover method to allow controls to retrigger
25970 hovering if they need it more than once
25971 - Implemented MouseHoverTime and MouseHoverSize properties
25972 * Timer.cs: Start() must reset the interval
25973 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
25976 2006-03-21 Jackson Harper <jackson@ximian.com>
25978 * X11Keyboard.cs: improved layout detection. Move the nonchar
25979 tables into this file.
25980 * KeyboardLayouts.cs: Move the tables into resource files.
25982 2006-03-21 Mike Kestner <mkestner@novell.com>
25984 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
25986 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
25988 * Mime.cs: Various speed optimizations. Looking up mime types
25989 is now 2 times faster than before
25991 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
25993 * CreateParams.cs: Added internal menu field
25995 - Switched call order for UpdateBounds; now we always call
25996 the one that also takes ClientSize, and we're calculating the
25997 client size via driver method in the others. The previous
25998 method of tracking client size by difference wasn't working
25999 for forms where even the starting client size wouldn't match
26000 the overall form size (due to borders) (Part of fix for #77729)
26001 - CreateParams(): Do not use parent.Handle unless the handle is
26002 already created. Causes havoc with Nexxia and throws off our
26003 creation of controls
26005 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26006 - Switched handling of ConfigureNotify over to new PerformNCCalc
26007 method (consolidates code)
26008 - Changed RequestNCRecalc to use new PerformNCCalc method
26009 - Added calls to RequestNCRecalc when menus and borders are changed
26010 to allow app to set NC size. (Part of fix for #77729) This matches
26011 when MS send a WM_NCRECALC on Win32 windows.
26012 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26013 (Part of fix for #77729). This matches what MS does, they also
26014 send that message when the form is made visible.
26015 - XException.GetMessage: Improved usability of X errors by including
26016 a translation of the window into Hwnd and Control class
26017 - Improved debug info for window creation, reparenting and destruction
26018 - Created helper method WindowIsMapped() [Currently not used]
26019 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26021 - CreateParams: Now setting our menu on the new internal menu field
26022 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26023 avoid calculating the same property twice
26025 - Improved usability of ToString() for debugging purposes
26026 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26027 determine the height of the menu, instead of just the font. This
26028 required to also create a graphics context and to keep a bmp
26029 around (for performance reasons)
26031 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26033 * MenuAPI.cs: Added OnMouseUp method
26035 - Now remembering the requested client size, avoids size errors
26036 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26037 instead of base if the menu is active. This is required due to
26038 control now capturing and releasing on down/up and it would
26039 prematurely release our menu capture
26041 2006-03-17 Jackson Harper <jackson@ximian.com>
26043 * KeyboardLayouts.cs: Add the czech layouts.
26045 2006-03-16 Jackson Harper <jackson@ximian.com>
26047 * Control.cs: Use the viewport space when sizing not the controls
26048 client size, so things like ScrollableControl that effect the
26049 viewport size (when scrollbars are added) are computed correctly.
26050 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26052 - Handle creating BindingManagers for null data sources.
26053 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26054 source, otherwise when rows are added they are added to the 'fake'
26055 datasource and we will crash when trying to set the position in
26057 - Use Implicit scrollbars on the datagrid so they arent
26060 2006-03-16 Jackson Harper <jackson@ximian.com>
26063 * InternalWindowManager.cs:
26064 * MdiWindowManager.cs:
26065 * X11Keyboard.cs: I really want Mike to love me again (fix
26066 compiler warnings).
26068 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26071 - OnMouseDown: Switch to editing mode when clicking on the cell
26072 even if we're clicking on the cell that's currently
26074 - ProcessGridKey: Left/Right now wrap like MS.Net does
26075 - ProcessGridKey: Tab now knows to add a new row when tab is
26076 pressed in the cell of the last column of the
26078 - ProcessGridKey: Enter now adds another row if pressed in the last
26079 row and selectes the new row, same column cell
26080 - ProcessGridKey: Home/End navigate columns, not rows, like
26081 originally implemented
26082 - Broke ProcessKeyPreview code out into an extra Internal method
26083 so it can be called from the edit code
26084 * DataGridTextBox.cs (ProcessKeyMessage):
26085 - Switched to accept Tab keypresses
26086 - Added F2 handling to allow jumping to the end of the edited cell
26087 - Added logic to allow moving caret left/right inside edited cell
26088 and making the edited cell jump when the caret hits cell borders
26089 - Tab and Enter are now passed to the datagrid after being handled
26091 - Removed capture code now that Control handles it
26092 - set_SelectionStart now ensures caret is visible
26094 2006-03-16 Jackson Harper <jackson@ximian.com>
26096 * TrackBar.cs: Debackwards the increment/decrement for handling
26097 mouse clicks on the bar with vertical trackbars.
26098 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26099 bottom to match MS.
26101 2006-03-16 Mike Kestner <mkestner@novell.com>
26103 * ListView.cs: make shift/ctrl keyboard and mouse selection
26104 consistent with the MS control. Fix a bug in
26105 SelectedListViewItemCollection.Clear that was pissing me off for the
26106 better part of a day because the collection was being altered
26107 underneath us as we walked the list.
26109 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26111 * Control.cs: Not sure how we could miss this so long, but it seems
26112 that MS.Net has Capture set all the way from before calling
26113 OnMouseDown through sending the mouse events until after
26114 OnMouseUp. This will fix DataGrid's selection being set to end
26115 at the location of the MouseUp.
26117 2006-03-15 Jackson Harper <jackson@ximian.com>
26119 * BindingContext.cs: Check the binding after its added so that it
26120 can initialize the binding managers and hookup to events.
26121 * Binding.cs: Data members seem to sometimes include rows/cols in
26122 the format Row.Column we now take this into account.
26123 - Hookup to the position changed event so we can update the
26124 control when the position has changed in the data set.
26125 * CurrencyManager.cs: Take into account the row/col naming
26126 convention when creating dataset tables.
26127 * BindingContext.cs: Using a newer better way of storing
26128 datasource/datamember pairs. Hopefully this better matches MS for
26129 looking up binding managers.
26132 2006-03-15 Jackson Harper <jackson@ximian.com>
26134 * BindingContext.cs: The currency manager needs the data member
26135 name, if the member is a data set we use the name to find the
26137 * CurrencyManager.cs: When creating the list prefer an IList over
26139 - Attempt to create a DataTable from a DataSet (TODO: might need
26140 some better error checking here, although MS doesn't seem to have much)
26141 - If we have a DataTable create a view and use it as our list.
26143 2006-03-15 Mike Kestner <mkestner@novell.com>
26145 * ListView.cs: keep a matrix of the icon mode layout to facilitate
26146 keyboard navigation. Support Up/Down/Left/Right selection correctly
26147 for all 4 View modes.
26148 * ListViewItem.cs: add internal row/col fields for icon layouts.
26150 2006-03-15 Jackson Harper <jackson@ximian.com>
26152 * TabControl.cs: Redraw the tabs when we resize so their newly
26153 calculated sizes are drawn on screen.
26154 * X11Keyboard.cs: Begginnings of XIM support. We also now support
26155 composite characters.
26156 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26157 - filter events so that composite characters can be created
26159 * X11Structs.cs: Add XIMProperties enum.
26161 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26163 * Control.cs (BringToFront, SendToBack): Don't use window or handle
26164 unless it's created
26166 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26168 * Control.cs (PerformLayout): We don't need to consider visiblity
26169 for anchoring, only for docking. This fixes 'whacky' alignment
26170 in listbox and other controls that use implicit scrollbars after
26171 the previous PerformLayout patch
26172 * ListBox.cs: Switched to use implicit scrollbars
26174 2006-03-14 Mike Kestner <mkestner@novell.com>
26178 - chain up the "new event" overrides to base and use
26179 OnEvent to raise them. Part of fix for bug #76509.
26181 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
26183 * FileDialog.cs: Do not select an item in the parent directory
26186 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26188 * Control.cs (PerformLayout): It would seem that we considered
26189 invisible windows for our layout. Not quite the right thing
26190 to do. Now we don't any longer, thereby fixing bug #76889.
26192 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26194 * Control.cs (CanFocus): I goofed. A control can have focus
26195 even though it's not selectable. Made it match MS docs.
26197 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26199 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26200 center by default (fixes #76895)
26201 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
26202 all uses of Border3DSides.All with the explicit ORd together
26203 Left|Right|Top|Bottom because I assume that nobody was aware
26204 that All also implies a center fill. Most places I checked had
26205 a fill right above.
26206 * ProgressBarStyle.cs: Added
26208 2006-03-13 Mike Kestner <mkestner@novell.com>
26210 * ListView.cs: fix breakage in drag shadow header positioning
26211 from Peter's csc compilation fix.
26213 2006-03-13 Mike Kestner <mkestner@novell.com>
26215 * ListView.cs: fix NRE produced by backspacing twice in a focused
26218 2006-03-13 Mike Kestner <mkestner@novell.com>
26220 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26222 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26224 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26226 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26227 the allowed size before making programmatic size changes
26229 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26231 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
26232 set, metacity is broken and will still use the emty sizes in
26233 the struct. (Fix for #77089)
26235 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26237 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
26238 WindowExStyles and marked both enums as Flags
26239 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26240 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26241 to match WindowStyles split
26243 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26244 - Updated to match WindowStyles split
26246 - Fixed FosterParent creation, was using ExStyle on the Style field
26247 (This should help with Popup focus issues)
26248 - Updated to match WindowStyles split
26250 2006-03-13 Jackson Harper <jackson@ximian.com>
26252 * MdiWindowManager.cs: Use the system menu height. Fixes some
26253 strange sizing issues.
26255 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26257 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26259 - Scroll to caret after inserting text (#77672)
26260 - Make scroll range one pixel higher, fixes off-by-one error (and
26261 makes underlines visible on the last line)
26263 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26265 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26266 the keyboard state from being stuck with keys in 'pressed' state when
26267 focus is switched away via keyboard
26268 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26269 reset the keyboard if no X11 KeyUp events are expected to come
26270 * X11Structs.cs: Switched type of Visible to bool to match driver
26272 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26275 - Switched caret to be just 1 pixel wide, matches MS and looks less
26277 - Moved caret display 1 pixel down from the top of the control
26279 - InsertCharAtCharet: Update the selection start if moving the caret
26280 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26281 - No longer always creating the caret when the caret methods are
26282 called. Only the actual ShowCaret/HideCaret will do that now
26283 - Only setting caret visible if the owner control has focus
26284 - UpdateView: Added invalidation-shortcut logic for center and right
26285 aligned text. Previously we'd update all according to the left
26286 logic which caused drawing errors. Also fixed height of invalidated
26287 areas, now properly invalidating the whole area (was off-by-one)
26288 - owner_HandleCreated: Always generate the document when the
26289 handle is created; this ensures that
26291 - Fixed situation where caret would disappear under the right
26292 window border, also improved scrolling behaviour on left-
26294 - Fixed right-aligned textboxes to have a border to the
26295 right instead of the caret being under the right border
26297 - Switched from 'nested' to simple visible/not visible tracking
26298 for caret (part of fix for #77671)
26299 - No longer passing through translated FocusIn/FocusOut messages
26300 since we were notifying too often and the wrong windows. Instead
26301 we just notify our focussed window of receiving or loosing focus
26302 * XplatUIWin32.cs: Switched from 'nested' show/hide
26303 counting for caret to simple visible yes/no behaviour (part of
26306 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26308 * Mime.cs: Remove debug code...
26310 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26312 * MimeGenerated.cs: Removed
26313 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26314 and subclasses) from /usr/(local/)share/mime and
26315 $HOME/.local/share/mime.
26317 2006-03-10 Jackson Harper <jackson@ximian.com>
26319 * MdiWindowManager.cs: Recalc the NC area when a window is
26320 maximized/restored so that the menu area is drawn on forms that
26323 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26325 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26326 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26327 us to force a WM_NCCALCRESIZE message being sent. This is needed
26328 for MDI maximizing.
26330 2006-03-10 Jackson Harper <jackson@ximian.com>
26332 * Form.cs: We need to use the ActiveMenu when calculating menu
26334 - Fix nullref when the window manager hasn't been created yet.
26335 * Control.cs: Fix nullref when we try to bring a control to the
26336 front that has no parent.
26337 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26339 - Add a dummy item to the maximized menu so it always has the
26340 correct height. Otherwise when there are no menus we don't get our
26344 2006-03-10 Jackson Harper <jackson@ximian.com>
26346 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26348 * Form.cs: Make the window_state internal so the window managers
26350 - When an MDI child is maximized let its window manager create the
26351 main menu (so it can add its icon).
26352 - Notify the window managers of state changes
26353 - Let the window manager paint its buttons and handle button
26354 clicks on the menu when it is maximized.
26355 * InternalWindowManager.cs: Move the prev_bounds into the mdi
26356 window manager, since tool windows don't use it, only mdi windows.
26357 - Tell the main form that we don't want it to handle NCPAINT
26358 itself to avoid extra painting.
26359 - Handle clicks on a maximized windows menu.
26360 - Handle window state changes
26361 - Handle minimize/maximize clicks correctly by setting the window state.
26362 * MdiWindowManager.cs: Add an icon menu that (the menu you get
26363 when clicking on the forms icon).
26364 - New method to create a forms maximized menu. This is its normal
26366 - Handle window state changes.
26367 - Handle sizing of maximized windows. Maximized windows are just
26368 drawn bigger then the parent visible area. All controls are still
26369 there, they are just outside the visible area (this matches windows).
26370 * MdiClient.cs: No scrollbars when a child window is maximized.
26371 - Let the children windows figure out how big they should be when
26372 sizing maximized windows.
26373 - Implement a version of ArrangeIconicWindows somewhat similar to
26374 Windows version. There are some little differences, but I don't
26375 think any app will rely on the layout of minimized mdi windows.
26377 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26379 * Padding.cs: Several fixes to allow compiling with csc 2.0
26381 2006-03-09 Jackson Harper <jackson@ximian.com>
26384 * MenuItem.cs: Cheap hack so we can add items to the list without
26385 the events being raised. This allows adding mdi items during
26386 drawing. TODO: Should probably find a better time to add the items.
26388 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26390 * ThemeWin32Classic.cs:
26391 - CheckBox_DrawText: Added logic to not wrap if not enough space
26392 is available (Fix for bug #77727)
26393 - RadioButton_DrawText: Added logic not to wrap if not enough
26394 space is available (Fix for bug #77727). Also removed some
26395 duplicate code, DrawString always drawing the regular text
26396 before hitting the if statement.
26398 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26400 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
26402 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26404 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
26405 * ContainerControl.cs: Partial implementation of some 2.0 scaling
26406 methods. Moved the new 2.0 properties into alphabetical order with
26407 other properties and added MonoTODO tags
26409 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26411 * AutoScaleMode.cs: Added. Fix build.
26413 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26415 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26416 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
26417 and was requiring premature handle creation for calls from above
26418 * Form.cs, Control.cs: Removed handle arguments from calls to
26419 CalculateClientRect()
26421 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26423 * ListView.cs (HeaderMouseMove): Fix csc compilation.
26424 drag_column.column_rect is MarshalByRef and can't be used that way
26426 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26428 * AxHost.cs: Added deserialization constructor for
26429 AxHost+State (fixes 77743)
26431 2006-03-09 Mike Kestner <mkestner@novell.com>
26434 - Added column drag reordering for details view.
26435 - fixed behavior when mouse is dragged off column and
26436 AllowColumnReorder is false.
26437 * ColumnHeader.cs: clone the format too in Clone.
26438 * Theme.cs: add DrawListViewHeaderDragDetails method.
26439 * ThemeWin32Classic.cs:
26440 - impl new method for drawing drag column shadows and targets.
26441 - support column offset for details mode in DrawListViewItem.
26443 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26445 * TextControl.cs: Reset the char_count when the document is cleared
26446 (Fixes bug reported on mono-winforms mailing list)
26448 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26450 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
26451 of calling base we simply process the key ourselves, since both
26452 DefWindowProc and the handled method would set m.Result.
26455 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26457 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
26458 method also moves the window; instead implemented a copy of
26459 Control.ScaleCore (Part of fix for #77456)
26461 - Created new CreateGraphicsInternal method to allow providing
26462 a graphics context when no handle is created without triggering
26463 handle creation. (Part of fix for #77456)
26464 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26466 - Switched Constructor to require TextBoxBase instead of Control (to
26467 allow uncast access to CreateGraphicsInternal)
26468 - Safeguarded use of owner.Handle property. No longer accessing it
26469 unless the handle is already created.
26470 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26471 - Now triggering a recalc when owning control becomes visible
26472 * TextBox.cs, RichTextBox.cs: Switched to use new internal
26473 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
26474 premature handle creation (Part of fix for #77456)
26476 - We now only destroy our double-buffering buffers when the
26477 control is resized or disposed, but not when visibility
26478 changes. (The code even re-created them twice every time)
26479 - Now requiring a redraw of the buffer on visibility changes
26480 (fixes bug 77654 part 2)
26481 - Not passing OnParentVisibleChanged up unless the control
26483 - CanFocus: Fixed to match MS documentation
26484 - Focus: Fixed to return actual focus state and to check if
26485 setting focus is legal before setting it
26487 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
26489 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
26490 when to draw focus rectangle by looking at parent focus and
26491 selected state instead. This fixes TabPages on Linux sometimes
26492 having none or multiple focus rectangles.
26493 * XplatUIX11.cs (SetFocus):
26494 - Don't set the focus if the same window already has focus
26495 - Use SendMessage instead of PostMessage (like it's Win32
26496 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
26497 to match MS behaviour
26498 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
26499 are not selectable.
26501 2006-03-07 Jackson Harper <jackson@ximian.com>
26503 * PictureBox.cs: Revert line I accidently committed last week.
26505 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
26508 - Added new IsRecreating and ParentIsRecreating properties to
26509 allow testing if RecreateHandle has been called on ourselves
26510 or one of our parents
26511 - WndProc(WM_DESTROY): If our control handle is being recreated
26512 we immediately need to create the handle when receiving the
26513 destroy, that way our child windows find a valid parent handle
26514 when they themselves are being recreated upon WM_DESTROY receipt
26515 (fix for bug #77654 part 1)
26517 - DestroyWindow: WM_DESTROY must be sent to our own window before
26518 notifying any child windows. MS documents that child windows
26519 are still valid when WM_DESTROY is received. (Control now relies on
26521 - Added some fine-grain debug options
26523 2006-03-06 Jackson Harper <jackson@ximian.com>
26525 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
26526 box and base calculations off this.
26527 * MdiChildContext.cs:
26528 * MdiWindowManager.cs: Don't need to ensure scrollbars here
26531 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
26533 * Splitter.cs: In situations where the affected control is added
26534 to the parent's control list after the splitter, we would not
26535 populate affected. Now we try populating it on mousedown, if
26536 it's not already set, and force it to be re-set whenever our
26539 2006-03-03 Matt Hargett <matt@use.net>
26541 * Control.cs: implement Control.Padding
26542 * Padding.cs: -Padding.All returns -1 when constructing with the
26543 implicit default ctor
26544 -Padding.ToString() matches MS.NET
26545 * ContainerControl.cs: implement
26546 ContainerControl.AutoScaleDimensions
26547 * ListControl.cs: implement ListControl.FormattingEnabled
26548 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
26550 * TabPage.cs: Implement UseVisualStyleBackColor.
26551 * PictureBox.cs: Implement PictureBox.InitialImage.
26553 2006-03-03 Mike Kestner <mkestner@novell.com>
26555 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
26556 event declarations to proxy to base event.
26557 * ListViewItem.cs: update to use ItemControl.
26558 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
26559 * ThemeWin32Classic.cs: update to new ListView theme API and fix
26560 column header label rendering for 0 width columns.
26562 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
26564 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
26565 that causes the control to be created. Fixes #77476.
26567 2006-03-02 Jackson Harper <jackson@ximian.com>
26569 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
26572 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
26574 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
26575 passed in for the EventArgs (fixes #77690)
26577 2006-03-01 Jackson Harper <jackson@ximian.com>
26579 * ScrollBar.cs: Refresh afterbeing resized.
26581 2006-02-28 Mike Kestner <mkestner@novell.com>
26583 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
26584 Clean up a tracker compile warning.
26585 * MenuItem.cs: add internal PerformPopup method.
26588 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
26590 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
26591 implicit expose) when the text is set to null
26593 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
26595 * RichTextBox.cs (FlushText): When newline is true, we always
26596 need to split the line, even if no text is on it and we may
26597 never eat newlines. (Fixes #77669)
26599 2006-02-28 Mike Kestner <mkestner@novell.com>
26601 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
26602 and set Selected instead.
26603 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
26606 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
26608 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
26610 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
26613 - Got rid of the panel. All controls are now directly added to
26615 - It is now possible to set a font with the Font property
26616 - MinSize and MaxSize property do now what they should
26617 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
26618 - Searching and selecting a font with the font textbox works now,
26619 the same applies to the style and size textbox
26620 - Draw the correct 3D border in the example panel
26621 - Fixed a little mem leak (unused fonts didn't get disposed)
26622 - Many other internal updates/rewrites...
26625 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
26628 - InsertRTFFromStream: Added 'number of characters inserted' argument
26629 - set_SelectedRTF: Now using the number of characters to calculate
26630 the new location for the selection and cursor (x/y cannot be used
26631 due to potentially already wrapped text)
26633 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
26635 * TextControl.cs: Added property and implemented means to allow
26636 disabling recalculation of a document (can be used to speed up
26637 multiple inserts and is needed to make RTF inserts predictable, see
26639 * RichTextBox.cs: Using the new NoRecalc property of Document to
26640 keep x/y insert locations predictable. Also makes it faster inserting
26641 large chunks of RTF
26643 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
26645 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
26646 it's easier for a child control to handle the other messages without
26647 having to duplicate the special functionality
26649 - WndProc: Removed calling base handler for WM_KEYDOWN and added
26650 code to handle processing the key ourselves, in order to get
26651 access to the result of KeyEventArgs.Handled. We now only call
26652 ProcessKey if they key hasn't been handled already. Fixes #77526.
26653 - set_Text: If null or empty string is given, just clear the
26654 document. Fixes part of #77526
26656 2006-02-27 Jackson Harper <jackson@ximian.com>
26658 * SizeGrip.cs: Paint the background color before painting the grip
26659 so things look right.
26660 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
26662 2006-02-27 Mike Kestner <mkestner@novell.com>
26665 - Restructure layout and invalidation model to remove a ton of
26666 flicker from the control and speed up performance in general.
26667 - Add manual column resize, flickers like crazy, but I already have
26668 some ideas on how I'll fix that. (#76822)
26669 - Merge the three Icon-based views into a single layout method.
26670 - Move item selection interaction logic from the item since
26671 interaction with the collections is more appropriate to the view.
26672 - Deselection on non-item clicks.
26674 - Encapsulate most of the layout. Add some internal props to trigger
26675 layout. Move to a model where Items invalidate themselves instead
26676 of just invalidating the whole control every time something changes.
26677 - Invalidate on Text/Caption changes.
26678 - switch to an offset based layout model to avoid having to absolute
26679 position every element on item moves.
26680 - correct checkbox layout to conform to MS layout.
26681 * ThemeWin32Classic.cs:
26682 - refactor some column header drawing code.
26683 - fix string justification for column headers (#76821)
26684 - make SmallIcon labels top justified for compat with MS impl.
26685 * ThemeClearlooks.cs:
26686 - adjust to new ListViewItem internal checkbox bounds api.
26688 2006-02-27 Jackson Harper <jackson@ximian.com>
26690 * Control.cs: Change where implicit controls fall in the zorder.
26691 They are now on top of all children.
26692 - Synced AddImplicit code with Add
26693 - Removed unused enumerator.
26694 * SizeGrip.cs: Remove the TODO as its been TODONE.
26696 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
26698 * TextControl.cs(Insert): Combine the last lines unless the insertion
26699 string ends with \n\n, otherwise we leave one line too many (Fixes
26700 something I noticed with the testapp for #77526; the bug itself was
26701 already fixed in the previous checkin)
26703 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
26706 - SelectionColor and SelectionFont methods no longer set absolute
26707 styles. Instead, the keep font or color respectively (This
26708 resolves a long-standing FIXME in the code)
26709 - When flushing RTF text, the insert code now considers text trailing
26710 behind the insertion point (Fixes the bug where when replacing
26711 the selected text via SelectedRTF the remainder of the line behind
26712 the selection would stay on the first insertion line)
26714 - AppendText now updates the selection points after inserting text
26715 - AppendText now ensures that the last tag (sometimes 0-length) of
26716 the document is used for the style information (Fixes part of
26719 - Created new FontDefiniton class to allow describing partial style
26721 - StreamLine() now takes a lines argument, to allow it to decide
26722 whether an encountered zero-length tag is the last in the document
26723 (which must be kept to not loose the font/color contained in it,
26725 - Created Combine() and Split() methods for Marker structs, to
26726 support marker updates due to reformatted documents (soft line
26728 - Implemented Document.CaretTag setter
26729 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
26730 of the last line (Not the cause, but also exposed by bug #77220)
26731 - Added LineTag argument to InsertString method, to allow callers
26732 to force a certain tag to be used (required to force use of the
26733 trailing zero-length tag of a document)
26734 - Now updating markers in Combine(), to avoid stale tag markers
26735 - Added some method descriptions to aid maintenance
26736 - Implemented new FormatText concept, allowing additive/subtractive
26737 formatting by only specifying the components that are to be
26738 changed. This was needed for resolving the RTB.SelectedColor/
26739 RTB.SelectedFont fixmes
26740 - Added Break() support method to allow breaking up linetags (used
26741 for partial formatting)
26742 - Added GenerateTextFormat() method. It is used for partial
26743 formatting and allows to generate a full font/color from given
26744 attributes and an existing tag.
26746 2006-02-26 Jackson Harper <jackson@ximian.com>
26748 * XplatUIX11.cs: Use the correct caption height.
26749 - Translate hittest coordinates to screen coords to match MS.
26750 * XplatUIWin32.cs: When we create MDI windows we need to reset
26751 some of the style flags, so we get a nice blank window, and can
26752 draw all the decorations ourselves.
26753 - Set a clipping rectangle on the non client paint event, the
26754 window manager drawing code needs one.
26755 * Form.cs: The window manager needs to know when the window state
26757 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
26758 don't need to factor in border and title sizes in these
26759 methods. TODO: Remove the args and fix the call points.
26760 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
26762 - Let the driver set the cursors.
26763 - Improve active window handling
26764 - Correct sizes for title bars and buttons.
26765 - Match MS drawing better
26766 * MdiWindowManager.cs: We don't need to handle border style
26767 updates specially anymore.
26768 - Check for scrollbars when windows are done moving
26769 - Handle Active properly.
26770 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
26771 correctly. I am spewing the exception though, so we don't hide the
26774 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
26776 * DataGridViewRowPostPaintEventArgs.cs,
26777 DataGridViewCellPaintingEventArgs.cs,
26778 DataGridViewRowCollection.cs,
26779 DataGridViewRowPrePaintEventArgs.cs,
26780 DataGridViewCell.cs: Clear a few warnings and implement a few
26781 exceptions that should be thrown.
26783 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
26785 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
26786 'inheriting' our parent's (non-default) cursor. (Part of
26787 the fix for #77479)
26789 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
26791 * XplatUIX11.cs: Fixed cast to make csc happy
26793 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
26795 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
26796 it's for the client area (part of fix for #77479 and needed
26797 for MDI window cursor handling)
26799 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
26800 the appropriate default cursors and also passing the message
26801 up the parent chain
26802 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
26803 for non-client areas
26805 2006-02-15 Jackson Harper <jackson@ximian.com>
26807 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
26808 is a real MDI window
26810 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
26812 * X11DesktopColors.cs: Instead of checking the desktop session
26813 string for "KDE" check if it starts with "KDE"
26815 2006-02-10 Jackson Harper <jackson@ximian.com>
26817 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
26820 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
26822 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
26825 - Got rid of the panel. All controls are now directly added to
26827 - Changed to mono coding style
26829 2006-02-10 Jackson Harper <jackson@ximian.com>
26831 * InternalWindowManager.cs: We don't need the set visibility to
26832 false hack anymore now that peter has written beautiful shutdown
26835 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
26837 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
26838 where already explicitly destroyed
26840 2006-02-10 Jackson Harper <jackson@ximian.com>
26842 * MdiClient.cs: Handle the case where windows are too high or to
26843 the left and we need scrollbars.
26845 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
26847 * MimeIcon.cs: Added some icons
26850 - Got rid of the panel. All controls are now directly added to
26852 - Changed to mono coding style
26853 - On Linux "My Computer" and "My Network" will now show some
26854 more usefull information. A new class, MasterMount, gathers
26855 this information from /proc/mount. Updated MWFFileView to make
26856 use of this information
26857 - Fixed a bug that caused FileDialog to crash when
26858 ".recently_used" file had a zero size
26859 - FilterIndex does now what it should
26861 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
26864 2006-02-09 Jackson Harper <jackson@ximian.com>
26866 * ComboBox.cs: Don't touch if null.
26868 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
26870 * Cursor.cs: 64bit safeness fix
26871 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
26873 2006-02-09 Jackson Harper <jackson@ximian.com>
26875 * Form.cs: If a form is made into an MDI form update the styles so
26876 all the props can get set correctly.
26877 - Kill the mdi_container when we dont need it anymore.
26878 * InternalWindowManager.cs: Add missing NOT
26880 2006-02-08 Jackson Harper <jackson@ximian.com>
26882 * InternalWindowManager.cs: Respek clipping when drawing MDi
26885 2006-02-08 Jackson Harper <jackson@ximian.com>
26887 * Hwnd.cs: Add bits to track non client expose events.
26888 * XplatUIX11.cs: Track non client expose events on the hwnd. This
26889 gives us a proper invalid rect and will allow for some nice
26890 optimizations with NC client drawing
26891 - MDI windows are children windows, so move their style handling
26892 into the child window block.
26893 * InternalWindowManager.cs: Remove a state reset that was
26894 getting invoked at the wrong time. Fixes managed windows getting
26895 into a 'stuck' captured state.
26897 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
26899 * TextControl.cs (Document.ctor): Now initializing
26900 selection_anchor. Fixes #77493
26902 2006-02-07 Jackson Harper <jackson@ximian.com>
26904 * TrackBar.cs: The increment/decrements were backwards.
26906 2006-02-07 Mike Kestner <mkestner@novell.com>
26908 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
26909 to the instance itself.
26911 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
26913 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
26914 on ulongs and pointers, the size differs between 32bit and 64bit
26917 2006-02-07 Mike Kestner <mkestner@novell.com>
26919 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
26920 for 64 bit platforms to work around a metacity bug.
26922 2006-02-07 Jackson Harper <jackson@ximian.com>
26924 * TrackBar.cs: Process the input keys we need, and hookup to
26925 KeyDown instead of using WndProc, so we get key messages.
26927 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
26929 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
26931 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
26932 we need to translate the XdndVersion atoms array before sending it
26934 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
26937 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
26938 number of bits for the property, not the number of bytes. The
26939 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
26940 but would not crash since it specified 8 bits instead of 4 bits)
26941 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
26942 defined as XID -> long in the C headers)
26943 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
26944 references since those are now IntPtr to begin with
26945 - Switched all Atom.XXX 'int' casts to IntPtr casts
26946 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
26947 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
26948 - Added XChangeActivePointerGrab DllImport (for X11DnD)
26950 - Changed 'int' type for Atoms in XEvent structures to IntPtr
26951 - Changed atom in HoverStruct to be IntPtr
26953 - Removed local DllImports, switched code to use those from XplatUIX11
26954 - Removed/fixed casts related to the switch of Atom to be a IntPtr
26956 2006-02-06 Mike Kestner <mkestner@novell.com>
26958 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
26959 method signatures in the import region. There may still be some
26960 lingering struct marshaling issues, as I didn't drill down into those.
26963 2006-02-06 Jackson Harper <jackson@ximian.com>
26965 * ComboBox.cs: Dont manually set the top_item, this is computed
26966 when the scrollbar position is set.
26968 2006-02-06 Mike Kestner <mkestner@novell.com>
26970 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
26971 startup crashes on amd64. There's other fixes needed. All pinvoke
26972 usage of Atom needs to be mapped to IntPtr for example. And there are
26973 likely other int/long issues to be addressed.
26975 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
26977 * FileDialog.cs: One more...
26979 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26981 * FileDialog.cs: Next try
26983 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26985 * FileDialog.cs: First part of fix for #77464
26987 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26989 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
26990 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
26991 AcceptButton border drawing.
26993 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
26995 * Form.cs: Moved positioning of form after auto scaling is applied,
26996 otherwise it would possibly use wrong form size.
26998 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27000 * Control.cs (RecreateHandle): No need to re-create any child
27001 controls, the child windows will get destroyed automatically by
27002 the windowing system or driver, and re-created when the handle
27003 is being accessed the first time. Fixes #77456
27004 * Form.cs: No longer setting the form to closing if the handle is
27005 being recreated. This seems like the right thing to do, don't
27006 have a bug or testcase for this, though.
27008 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27010 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27011 controls to avoid unwanted side effects
27013 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27016 - ScaleCore needs to scale the bounds, not the ClientSize of the
27017 control. Fixes #77416.
27018 - DefaultSize is 0,0 for control
27020 - DefaultSize is 100, 20
27021 - SetBoundsCore: Now enforcing the height, no matter if the provided
27022 height is more or less than the preferred one, as long as AutoSize
27024 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27026 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27029 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27030 call unless both performLayout is true *and* we have a pending
27032 - ResumeLayout: MS does not completely nest Suspend and Resume,
27033 they bottom out at 0, fixed our code to match that.
27034 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27035 SetBoundsCore, we were updating even when we shouldn't. This fixes
27036 swf-anchors mis-anchoring when resizing the app fast and lots.
27037 - UpdateDistances: Now only setting the left and top distance if
27038 we have a parent and are not suspended, this is based on
27039 a suggestion by Don Edvaldson in bug #77355.
27040 - OnVisibleChanged: Fixed logic when to create the control. We may
27041 not create the control if we have no parent or if it's not visible;
27042 switched to using Visible property instead of is_visible field
27043 since the property also considers parent states. This fixes a bug
27044 when starting Paint.Net
27046 2006-02-02 Jackson Harper <jackson@ximian.com>
27048 * Form.cs: If the forms handle hasn't been created yet don't call
27049 into xplatui to make it top most, just set the topmost flag on the
27050 form in CreateParams
27051 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27053 2006-02-01 Jackson Harper <jackson@ximian.com>
27055 * ScrollableControl.cs: Refactored the Recalculate method a
27056 little, this wasn't handling all the variants of bottom and right
27057 bars needed to be added and added/removed based on their
27058 counterparts being added/removed (which changes the drawable
27059 size). Also we special case client widths and heights of 0 and
27060 don't add the scrollbar for those.
27062 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
27065 - Added method to get AbsoluteGeometry(); currently unused, but might
27066 be used in the future, if we try again to figure out toplevel
27067 coordinates with some more crappy window managers
27068 - Added FrameExtents() method to retrieve the WM set decoration size
27069 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
27070 to deal with at least KDE, FVWM and metacity (Fixes #77092)
27072 - Added whacky_wm tracking var for metacity
27073 - Added logic to have default menu height if the actual menu height
27074 has not yet been calculated (part of fix for #77426)
27075 * Form.cs: Keep track whether client size has been set and re-set
27076 it if a menu is added/removed afterwards (Fixes #77426)
27078 2006-01-31 Jackson Harper <jackson@ximian.com>
27080 * Control.cs: When a new Site is set on the component attempt to
27081 pull the AmbientProperties from it.
27083 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
27085 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27086 in the background of the owning form. Fixes #77332
27088 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27090 * MimeIcon.cs: Fix for #77409
27092 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27094 * XplatUIX11GTK.cs: Initial import
27096 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
27098 * FixedSizeTextBox: fixes class signature
27100 2006-01-30 Jackson Harper <jackson@ximian.com>
27102 * FixedSizeTextBox.cs: New internal class that represents a
27103 textBox that will not be scaled.
27106 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27109 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27111 * XplatUIX11.cs: Retrieve default screen number instead of
27112 assuming 0. Attempted fix for #77318
27114 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27117 - GetWindowPos: When a window is parented by FosterParent, use
27118 the desktop instead of FosterParent as the base to get coordinates
27119 - CreateWindow: Don't make FosterParent the parent window for Popups
27120 if we don't want a taskbar entry, Popups automatically don't get one
27121 * Hwnd.cs: Need to call remove to actually remove the key from the
27124 2006-01-30 Mike Kestner <mkestner@novell.com>
27126 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27128 2006-01-30 Jackson Harper <jackson@ximian.com>
27131 * TreeNode.cs: Raise events no matter how the treenode is
27132 checked. Patch by Don Edvalson.
27134 2006-01-30 Jackson Harper <jackson@ximian.com>
27136 * TreeNode.cs: Signature fix.
27138 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
27140 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27142 2006-01-20 Mike Kestner <mkestner@novell.com>
27144 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27145 event forwarding when menus are active.
27146 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
27147 Most of the patch is pdb's with a little rework.
27149 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27151 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
27152 Removed GetMenuDC and ReleaseMenuDC methods; replaced
27153 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27154 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27155 * InternalWindowManager.cs: Added use of PaintEventStart/End to
27156 handling of WM_NCPAINT message, now passing the PaintEventArgs to
27157 the PaintWindowDecorations method
27158 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27159 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27160 * MenuAPI.cs: Made tracker window invisible
27162 - Removed GetMenuDC and ReleaseMenuDC methods
27163 - Implemented the client=false path for PaintEventStart and
27166 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27168 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27169 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27172 - MaximizeBox, MinimizeBox: Recreate the handle when setting
27174 - CreateParams: Reworked the styles to match MS look'n'feel,
27175 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27176 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27178 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27180 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
27181 window is not mapped, since otherwise every form that's being
27182 created is considered minimized, which is wrong.
27183 * Form.cs: Catching the exception and returning our internal value
27186 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27188 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27189 SetWindowMinMax() to have means to tell the driver about the minimum,
27190 maximum and maximized state window sizes. (Part of the fix for #76485)
27192 - Implemented tracking of minimum and maximum window size, now calling
27193 new SetWindowMinMax() driver method to tell the driver (Part of the
27195 - Finished handling of WM_GETMINMAXINFO method, now setting all values
27196 (Completes fix for #76485)
27197 - Calling new SetWindowMinMax driver method when the handle for a
27198 form is created, to make sure the driver knows about it even if
27199 the values have been set before the window was created
27200 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27201 to avoid messing up our anchoring calculations (partial fix
27203 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27205 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27206 - Improved GetWindowState() to detect 'Minimized' state on Metacity
27207 (and presumably other freedesktop.org compliant WMs). Left the
27208 assumption unmapped=minimized, needed for SetVisible to work.
27209 - Now setting the window state when creating windows
27210 - Fixed SetVisible to consider/set the window state when mapping
27211 a Form. We cannot set the state before it's mapped, and we cannot
27212 use Form.WindowState once it's mapped (since it would ask the
27213 driver and get 'normal'. Therefore, we grab the state before
27214 mapping, map, and then set state.
27215 - Implmemented SetWindowMinMax method; Metacity does not seem to
27216 honor the ZoomHints, though.
27218 - Removed MINMAXINFO (moved to XplatUIStructs)
27219 - Added SetWindowMinMax stub (on Win32 the only way to set that
27220 information is in response to the WM_GETMINMAXINFO message, which
27221 is handled in Form.cs)
27222 - Added logic to SetVisible to set the proper window state when a
27223 form is made visible (fixes #75720)
27225 2006-01-26 Jackson Harper <jackson@ximian.com>
27227 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27228 same way we handle them with Invoke.
27230 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
27233 - Added tracking of window state so CreateParams can return
27234 the appropriate style
27235 - Moved setting of WS_CAPTION style in CreateParams to allow
27236 styles without caption
27237 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
27238 control if the TextBox property is accessed. Fixes #77345
27240 - get_Created: now uses is_disposed and is_created to determine
27241 return value (suggested by Jackson)
27242 - CreateHandle: No longer exits if the handle is being recreated
27243 - RecreateHandle: If the handle is not yet created call the
27244 appropriate method to create either control or handle. If the
27245 control is already created CreateHandle will simply exit instead
27246 of just creating the handle
27247 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27248 now SendMessage WM_DESTROY directly to the control when DestroyWindow
27251 - When DestroyWindow is called, instead of waiting for the
27252 DestroyNotification from X11, we directly post it to the WndProc
27253 and immediately dispose the hwnd object.
27254 Same applies to DestroyChildWindows, and this obsoletes the
27255 expose_pending tracking. Contrary to Win32 behaviour we destroy our
27256 child windows before our own, to avoid X11 errors.
27257 - Removed the direct sending of WM_PAINT on UpdateWindow
27259 - Reworked DoEvents and GetMessage to allow access to internal queue
27260 even when trying non-blocking access to the queue. Fixes #77335.
27261 Based on a patch suggestion by Don Edvalson. The new private
27262 GetMessage can now also be used as a backend for a PeekMessage
27264 * XplatUI.cs: Improved debug output for CreateWindow
27266 2006-01-25 Jackson Harper <jackson@ximian.com>
27268 * Help.cs: Allow param to be null. Patch by Don Edvalson.
27270 2006-01-24 Jackson Harper <jackson@ximian.com>
27272 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27273 when we have a MaxDropItems lower then the selected index.
27275 2006-01-24 Jackson Harper <jackson@ximian.com>
27277 * Control.cs: Don't allow selection of non visible controls, allow
27278 selection of controls without parents.
27280 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27282 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27283 * DataGridDrawingLogic.cs: Add editing row only when is necessary
27285 2006-01-23 Jackson Harper <jackson@ximian.com>
27287 * UpDownBase.cs: Make the textbox handle all the selection and
27288 tabbing. This fixes tabing to updown controls.
27290 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27292 * TextBoxBase.cs: fixes exception thown the object was null
27294 2006-01-23 Jackson Harper <jackson@ximian.com>
27296 * ButtonBase.cs: Just use the base CreateParams. They set
27297 visibility and enabled correctly.
27300 * MonthCalendar.cs: Lets let the base set as much of the
27301 createparams as possible so we don't have duplicate code all over
27304 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
27306 * ThemeGtk.cs: Added TrackBar and some experimental code to
27307 get double buffering back
27309 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
27311 * DataGrid.cs: Allows row number set internally higher than the last
27312 when creating a new row. Restores the editing functionality.
27314 2006-01-20 Mike Kestner <mkestner@novell.com>
27316 * MimeIcon.cs: delay Image creation until the icons are accessed
27317 instead of creating 190 scaled images on GnomeHandler startup.
27319 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27321 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27322 first call base before processing the event. Fixes #77279
27324 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27326 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27327 that the stride for the GDI bitmap would match the stride of
27330 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
27332 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27334 2006-01-19 Jackson Harper <jackson@ximian.com>
27336 * ComboBox.cs: Hookup the text controls keydown event so we get
27337 those when the text control has the focus.
27339 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27341 * Label.cs: Now using the base events instead of defining new ones;
27342 this allows us to just call the base properties without having to
27343 duplicate all base property logic
27345 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27347 * Label.cs: A label by default is not a tabstop (Fixes one of our
27348 failing nunit tests)
27350 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27352 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27353 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27355 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27357 * Cursor.cs: Reimplemented creating cursor bitmaps without using
27358 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27361 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
27362 constructor creates images that can't be saved. Part of the fix
27364 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27365 - SetWindowState: Switched ShowWindow flags (part of an upcoming
27366 bug fix for handling window state in forms properly)
27368 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27370 * ThemeGtk.cs: Simplify ScrollBar drawing
27372 2006-01-18 Jackson Harper <jackson@ximian.com>
27374 * Splitter.cs: Set the default dock style for the splitter control
27375 in the constructor.
27377 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27379 * ThemeGtk.cs: Corrected StateType and ShadowType for
27382 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27384 * Control.cs: Make use of Theme.DoubleBufferingSupported
27386 - Added drawing for flat style buttons
27387 - Added ScrollBar drawing
27389 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27391 * ThemeClearlooks.cs: Removed some unneeded code.
27392 * ThemeGtk.cs: First part of ThemeGtk enhancements.
27394 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27396 * LinkLabel.cs: We need to update the hover drawing when
27397 leaving the control as well.
27399 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
27401 * DataGrid.cs: Clicking on non empty areas in the columns
27402 area was giving an exception
27404 2006-01-17 Jackson Harper <jackson@ximian.com>
27406 * ThemeWin32Classic.cs:
27407 * ListView.cs: Do not draw/clip the headers when the header style
27410 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27412 * DataGrid.cs: Fixes 77260
27414 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27416 * DataGrid.cs: Clicking on a column on a empty grid was giving
27419 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27421 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
27422 or any keypress will crash the grid.
27424 2006-01-17 Mike Kestner <mkestner@novell.com>
27426 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
27427 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
27428 invisible/previously-visible items.
27431 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
27433 * ThemeClearlooks.cs:
27434 - Added CL_Draw_Button method; now other theme controls that are
27435 not derived from button or do not have a button can draw buttons
27437 - Updated ComboBox drawing
27438 - Beautified RadioButton drawing
27439 - Corrected drawing of bottom and left tabs
27440 - Beautified DateTimePicker and MonthCalendar
27441 - Added CPDrawButton and CPDrawRadioButton
27443 2006-01-16 Jackson Harper <jackson@ximian.com>
27445 * ComboBox.cs: Set the initial value of the scrollbar to the
27446 current index. Reduce the numbers of refreshs and IndexOfs called.
27448 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
27450 * FileDialog.cs: When the file listview is focused hitting the
27451 backspace key moves the fileview to the parent directory
27453 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27456 - Added RecreateHandle call when changing taskbar visibility to
27457 trigger reparenting in Win32 driver (Fixes #75719)
27458 - If a window has minimize or maximize buttons, it cannot have
27461 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
27462 the toplevel form with FosterParent (A toolwindow not on the
27463 taskbar) (Fixes #75719)
27464 - Made FosterParent a toolwindow
27466 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27468 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
27470 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27472 * ToolTip.cs: If SetToolTip is called from a control and the mouse
27473 is currently over that control, make sure that tooltip_window.Text
27476 2006-01-13 Mike Kestner <mkestner@novell.com>
27478 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
27480 2006-01-13 Jackson Harper <jackson@ximian.com>
27482 * TreeView.cs: On MS GetNodeAt never actually factors in the X
27483 value passed. Also redraw the selected node when we recieve
27484 focus, so tabbing between trees works correctly.
27486 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27488 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
27489 ~/.gconf/%gconf-tree.xml, so use
27490 .gconf/desktop/gnome/interface/%gconf.xml
27492 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27494 * TextControl.cs: Draw text in gray if control is disabled
27496 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27498 * TreeView.cs: Draw the focus rectangle outside the highlight, to
27499 make sure it's always visible. Fixes #76680.
27501 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27503 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
27505 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
27507 * PageSetupDialog.cs: Added.
27508 * PrintDialog.cs: Attributes.
27509 * PrintPreviewControl.cs: Updates.
27510 * PrintPreviewDialog.cs: Updates.
27512 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27514 * Control.cs: Undid my selection check fix, since it's not needed
27516 - Now considering the presence of hscroll/vscroll when sizing
27517 vscroll/hscroll respectively. Fixed bug #77077
27518 - Added Left/Up/Down/Right to IsInputKey list to prevent
27519 ContainerControl from stealing them. This fixes what I broke
27520 with my last checkin.
27522 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27524 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
27525 I finally understand how the property can be set without a setter :-)
27527 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27530 - Switched RunLoop to use static Message.Create to create a
27532 - Added PreProcessMessage call in runloop for keyboard events; this
27533 is part of the fix for #77219, I overlooked this originally in the
27534 MSDN doc for PreProcessMessage
27536 - Removed call to PreProcessMessage from handling of keyboard
27537 messages; it's supposed to be done in the message pump
27538 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
27539 per MSDN documentation.
27540 - IsInputChar: All chars are input chars by default; removed the
27541 parent calling chain, MS does not document that
27542 - PreProcessMessage: If IsInputChar is true, we want to return false
27543 to allow dispatching of the message
27544 - When selecting the next control, now also check that we're not
27545 selecting ourselves again and therefore return a false positive.
27547 - Tried to match return values for IsInputKey and ProcessDialogKey
27548 to what MS returns; moved processing of our special keys outside
27549 ProcessDialogKey since MS does not seem to return true on those.
27550 - Moved code that previously was in ProcessDialogKey into new private
27551 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
27552 - Reworked handling of WM_CHAR to not have to duplicate code from
27553 Control.cs anymore, instead we simply call down to base.
27555 2006-01-12 Jackson Harper <jackson@ximian.com>
27557 * ComboBox.cs: We always need to refresh the text area when
27558 EndUpdate is called. Fixes the combobox in the file dialog.
27559 * Control.cs: Don't create the creator_thread until the controls
27560 handle is created. Also in InvokeRequired we check if the
27561 creator_thread is null. This gives the effect of InvokeRequired
27562 returning true if the controls handle is not created yet, and
27565 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27568 - Added StartLoop() driver method. This is used to allow drivers to
27569 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
27570 loop for a particular thread
27571 - Added EndLoop() driver method. This is called once the message
27572 pump for the thread is shut down
27573 - Added SupportsTransparency method to allow the driver to indicate
27574 opacity support for windows
27576 - Removed TODO attribute, completed AllowTransparency property
27577 - Added documented logic to Opacity
27578 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
27579 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
27580 versions of CompatibleTextRendering
27581 * X11Structs.cs: Added opacity atom to our atom enumeration
27582 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
27583 of a form might be set before it's reparented by the WM, and we need
27584 the opacity value without calling up to Form)
27585 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
27586 SupportsTransparency() driver methods
27587 * Application.cs: Now calling StartLoop and EndLoop driver methods
27589 - Added opacity atom registration
27590 - Added StartLoop()/EndLoop() methods. They're empty right now but
27591 will need to get implemented when we switch to a per-thread queue
27592 - Implemented SupportsTransparency() method
27593 - Implemented SetWindowTransparency() method
27594 - Added support for setting the opacity value when a window is
27595 reparented (since the opacity needs to be set on the WM frame)
27596 * XplatUIOSX.cs, XplatUIWin32.cs:
27597 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
27599 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
27601 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
27603 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
27605 * FileDialog.cs: Added ToolTip for MWFFileView
27606 * MimeIcon.cs: Rewrote GnomeHandler.
27607 - Get currently used gnome icon theme from
27608 ($HOME)/.gconf/%gconf-tree.xml
27609 - Make use of inherited icon themes
27610 - Support SVG icon themes like Tango via librsvg
27612 2006-01-12 Miguel de Icaza <miguel@novell.com>
27614 Revert's Jackson's revert which broke 2.0 builds. Fix both
27617 * Application.cs: Move the use_compatible_text_rendering outside
27618 the NET_2_0 define. If we ever need to use the
27619 use_compatible_text_rendering on the individual controls they will
27620 access the variable from the common shared code paths.
27622 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27625 - Added more granular debug options
27626 - Added method to print both window text and id
27627 - Switched debug output to use new Window() debug method
27628 - Added IsEnabled() driver method
27629 - Added EnableWindow() driver method
27631 - Removed end_modal; no longer needed, new loop handles termination
27632 via 'closing' variable
27633 - If form is modal, setting DialogResult will now initiate loop
27634 termination via 'closing' variable
27635 - Added support for is_enabled/WS_DISABLED to CreateParams
27636 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
27638 - Removed code that's now in RunLoop from ShowDialog()
27639 - Added various documented sanity checks to ShowDialog()
27640 - Added handling of WM_DESTROY message; we set 'closing' on getting
27641 the message to indicate the message pump to terminate
27642 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
27643 send by the Application.ExitThread method. (We send the message
27644 to destroy the window after all other events have been
27645 processed through the queue, instead of destroying the handle
27647 - Moved code from Close() method to WM_CLOSE handler; added logic
27648 to only send close-related events if the form is not displayed
27650 * Splitter.cs (..ctor): Fixed typo in resource name
27652 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
27654 - set_Cursor: Now only setting calling into XplatUI if the handle for
27655 the control is already created; this avoids implict handle creation
27656 or crashes if it's not created
27657 - set_Enabled: Now setting the enabled state via the new driver method
27658 instead of just tracking it
27659 - CreateParams: Added logic to set WS_DISABLED based on enabled state
27660 - CreateControl: Reordered event firing and method calls to more
27661 closely fire events in the order MS does. Now setting the
27662 enabled state in the driver when creating the control.
27663 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
27665 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
27666 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
27667 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
27669 - Added tracking of window enabled state (get_Enabled/set_Enabled)
27670 - Added EnabledHwnd property to easily allow a driver to find the
27671 handle of the first enabled window in the parent chain (this is
27672 used by drivers to pass up input events of disabled windows)
27673 * XplatUIDriver.cs: Added IsEnabled() method
27675 - Removed crude and obsolete exiting tracking variable
27676 - Removed internal ModalRun(); replaced by RunLoop()
27677 - Implemented private CloseForms() method to allow closing all
27678 windows owned by a particular (or all) threads
27679 - Exit() now properly closes all windows without forcing the message
27681 - Removed obsolete InternalExit() method
27682 - Changed Run() methods to use new RunLoop() message pump
27683 - Implemented new RunLoop() method for both modal and non-modal forms
27685 - get_CreateParams: Added setting of WS_DISABLED
27686 - Simplified ShowDialog(); now all the work is done in RunLoop(),
27687 invoked via Form.ShowDialog()
27688 * NativeWindow.cs: We don't remove the window from the collection when
27689 the handle is destroyed; there might still be messages for it in the
27690 queue (mainly the resulting WM_DESTROY); instead it will be removed
27691 when Control calls InvalidateHandle in the WM_DESTROY handler
27693 - CreateWindow: Added logic to handle the WS_DISABLED window style
27694 - EnableWindow: Implemented based on Hwnd.Enabled
27695 - GetMessage: Reset PostQuitState so the method can be called again
27696 - Implemented support for disabled windows (passing messages to the
27697 first enabled parent) in handling all input messages
27698 - Added optimizations for handling Expose events
27699 - Implemeted new driver method IsEnabled()
27700 - Now always resetting paint pending tracking vars when we start paint
27701 - Re-implemented UpdateWindow via just sending a WM_PAINT message
27702 * XplatUIOSX.cs: Added IsEnabled method stub
27703 * XplatUIWin32.cs: Implemented new IsEnabled() method
27705 2006-01-11 Jackson Harper <jackson@ximian.com>
27707 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27708 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
27709 variables a little.
27710 * ColorDialog.cs: Clear out the old form before adding the new
27713 2006-01-11 Jackson Harper <jackson@ximian.com>
27715 * X11Dnd.cs: Make sure to add all the text formats when adding
27716 strings to the data object.
27717 * TreeNodeCollection.cs: When adding to a sorted tree we need to
27718 do some redrawing too. Also change the UpdateNode to an
27719 UpdateBelow so the newly added node gets painted.
27721 2006-01-11 Miguel de Icaza <miguel@novell.com>
27723 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27724 LinkLabel.cs, PropertyGrid.cs: Implement the
27725 UseCompatibleTextRendering property for 2.x
27727 * Application.cs (SetCompatibleTextRenderingDefault): Add.
27729 2006-01-11 Jackson Harper <jackson@ximian.com>
27731 * TreeView.cs: Use the property for setting the selected node so
27732 the correct events get raised.
27733 * TreeNode.cs: Update the tree when the fore/back colours of a
27736 2006-01-10 Jackson Harper <jackson@ximian.com>
27738 * TreeView.cs: Allow setting SelectedNode to null.
27740 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27742 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
27744 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27746 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
27748 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27750 * PrintDialog.cs: Added attributes and set default property values.
27752 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27754 * PrintControllerWithStatusDialog.cs:
27755 Added PrintControllerWithStatusDialog.
27757 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27759 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
27760 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
27762 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27764 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
27766 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
27768 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
27769 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
27771 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
27773 * MimeIcon.cs: Added internal class SVGUtil.
27775 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
27777 * FileDialog.cs: Don't crash if there are two files with the
27778 same name but different locations.
27780 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
27782 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
27783 dates across multiple month grids. Used to not highlight entire
27784 month, but does now.
27786 2006-01-06 Jackson Harper <jackson@ximian.com>
27788 * MonthCalendar.cs: Removed DoEvents call to prevent a running
27789 message loop. Change timer intervals to numbers that seem more
27792 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
27794 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
27795 object for location info since screen object is now implemented.
27797 2006-01-05 Jackson Harper <jackson@ximian.com>
27799 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
27800 * AsyncMethodResult.cs: We no longer use a WeakReference for the
27801 AsyncMethodResult, this is because we ALWAYS want the
27802 ManualResetEvent to get set.
27803 * Control.cs: When disposing use an async invoke to call shutdown
27804 code, so that thigns don't block on the finalizer thread. Also
27805 check if we even have a message loop before trying to send
27806 messages, if we don't then don't bother sending messages.
27807 - No more weak references for async methods
27808 * XplatUIDriver.cs: No more weak references for async methods.
27810 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
27812 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
27813 returns two FontFamily with the same name
27815 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
27817 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
27818 drawing disabled text. Instead using the ColorGrayText color
27820 2006-01-04 Jackson Harper <jackson@ximian.com>
27822 * TreeNode.cs: redraw the node when its image index is changed.
27824 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
27826 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
27827 time I checked there are no others like it.
27829 2006-01-04 Jackson Harper <jackson@ximian.com>
27831 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
27832 this gives the behavoir I was looking for.
27833 * Control.cs: Special case Invoking EventHandlers, this matches MS
27834 and fixes part of bug #76326.
27836 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
27838 * ThemeClearlooks.cs, FileDialog.cs:
27839 - Reflect the latest Theme class changes
27840 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
27843 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
27845 * Theme.cs: Cache UI resource images and resize them if needed
27847 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
27849 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
27850 is called. This fixes the crash in Nexxia when setting the font
27851 attributes in the chat. [However, RTF needs a look-over to make sure
27852 that all SelectionXXX methods handle the special case that selection
27853 is empty and therefore the change must be applied to all text starting
27854 at the cursor/selection start]
27856 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
27858 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27859 XplatUIOSX.cs: Added SendMessage and PostMessage methods
27860 * X11Keyboard.cs: Switched to new way of calling PostMessage
27862 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
27864 * Theme.cs: Added theme interface for images to allow the theme to
27865 control what images are used for things like FileDialog, MessageBox
27867 * MessageBox.cs: Now uses the new Theme icon/image interfaces
27869 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
27872 - Removed some dead code
27873 - Opening a recently used file does work now
27874 - Small UI enhancements
27877 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
27879 * FileDialog.cs: Forgot too add __MonoCS__
27881 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
27883 * FileDialog.cs: We are able to read recently used files now let's
27884 go on and write them.
27886 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
27888 * FileDialog.cs: Breathe some life into "last open"/"recently used"
27890 * MimeIcon.cs: Do a check for the top level media type also
27892 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
27894 * ThemeClearlooks.cs:
27895 - Added CPDrawStringDisabled
27896 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
27897 some chars if the text doesn't fit into text_rect
27898 - DrawListViewItem: If View = View.LargeIcon center the image;
27899 rewrote the drawing of ListViewItem.Text if View =
27902 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
27904 * MimeIcon.cs: Use default KDE icon theme if there is no
27905 "48x48" directory for the current icon theme, fixes #77114
27906 * Mime.cs: Disable not working and actually not used code.
27907 * ThemeWin32Classic.cs:
27908 - Replace "new SolidBrush" in GetControlBackBrush and
27909 GetControlForeBrush with ResPool.GetSolidBrush
27910 - Changed DrawListViewItem from private to protected virtual
27912 - Added form.MaximizeBox = true
27913 - Don't throw an exception if there is a broken symbolic link
27915 2005-12-23 Jackson Harper <jackson@ximian.com>
27917 * TabControl.cs: Give the panels focus, keyboard navigation is
27918 fixed so this works correctly now.
27919 - We need these key events also.
27920 * ToolBar.cs: Remove some of the poor mans double buffering.
27922 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
27924 * ComboBox.cs: The internal TextBox now returns the focus.
27926 2005-12-23 Jackson Harper <jackson@ximian.com>
27928 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
27930 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27932 * Control.cs: Removed debug code
27933 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
27936 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27938 * Control.cs: When creating the control, update the Z-order after
27939 all it's children are created, too. (Fixes nexxia not showing
27942 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27944 * Control.cs: Do not update the anchoring distances if layout is
27945 suspended, instead do it once layout is resumed
27947 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27950 - After many hours of debugging, for both Jackson and
27951 myself, it turns out that it helps to set the parent of a control
27952 if you want to actually see it onscreen. In the spirit of that
27953 discovery, we're now setting the parent of the control and
27954 it's children when the control's handle is created. This fix
27955 will make Lutz Roeder's Reflector run happily.
27956 - now just creating the handle instead of the whole control when
27957 getting a graphics context for the control.
27959 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27961 * ScrollableControl.cs: When calculating the canvas, don't consider
27962 the scrollbar widths. Instead, predict if horizontal scrollbar
27963 will affect canvas when deciding on vertical display and vice versa.
27965 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27967 * RichTextBox.cs: Set default RTF font for documents that don't
27968 have a font table (Fixes #77076)
27970 2005-12-22 Jackson Harper <jackson@ximian.com>
27972 * TextBoxBase.cs: It's difficult to do, but you can have an empty
27973 clipboard. This prevents a NullRef in that case.
27974 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
27975 clipboard. PRIMARY is for the currently selected text only. (We
27976 should implement PRIMARY at some point.
27978 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27980 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
27981 a Unicode function with a structure that was defined in Ansi way.
27984 2005-12-21 Jackson Harper <jackson@ximian.com>
27986 * StatusBar.cs: Statusbar handles its fore/back colours on it's
27987 on. Because thats how it rolls. (and this avoids it using ambient
27989 * ThemeWin32Classic.cs: Use the proper back color for filling.
27990 * Menu.cs: Use the system menu bar color for drawing menu
27991 bars. Using the window back color will bring ambient colours into
27994 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
27996 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
27997 Bitmaps were created and not disposed.
27999 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28001 * Control.cs (CreateControl): Don't do anything if the control is
28002 already created, otherwise we'd fire the OnCreated event more than
28005 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28007 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28008 will always match. Instead return -1. Fixes #76464.
28010 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28012 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28013 neither the beginning nor the end of the line (Fixes bug #76479)
28015 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28018 - ControlNativeWindow.ControlFromHandle(): Now handling situation
28019 where handle is invalid
28020 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28021 instead of slower linear search
28022 * NativeWindow.cs: Don't remove the window from the hashtable until
28023 after the driver has destroyed it (since the driver might use
28024 Control.FromHandle to lookup the control object
28025 * Hwnd.cs: Added DestroyPending property to track if a window is
28026 already destroyed as far as the driver is concerned and only hasn't
28027 yet notified the control
28029 - Activate(): Check if the window is still valid before using the
28031 - Implemented DestroyChildWindow() method to mark child windows as
28032 destroyed when a window is destroyed. This prevents situations
28033 where we might call an X method based on queued events for a
28034 window that already has been destroyed but we haven't yet pulled
28035 the destroy method from the queue.
28036 - Added a call to the new DestroyChildWindow() method to the drivers
28037 DestroyWindow code. Also now marking the destroyed window itself
28040 2005-12-20 Jackson Harper <jackson@ximian.com>
28043 * StatusBarPanel.cs: Don't calculate panel sizes on draw
28044 anymore. Just do them when needed, also track the rects of panels
28045 so that we can optimize refreshing more in the future.
28047 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
28049 * ColorDialog.cs: Fixed focus drawing in small color controls
28051 2005-12-19 Jackson Harper <jackson@ximian.com>
28053 * InternalWindowManager.cs:
28054 * MdiWindowManager.cs: Cleanup some coordinate system changes so
28055 moving windows works properly.
28057 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
28060 - Removed call to InitLayout() from SetBoundsCore(); doc says
28061 it's only called when a control is added to a container
28062 - Split InitLayout logic, moved to separate UpdateDistances() method
28063 since we need to perform those calculations more often than just
28064 when adding the control to a container. (Needed to fix #77022)
28065 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28066 - Reduced the OnBindingContextChanged events count, don't send them
28067 unless the control is created, we still aren't totally matching
28068 MS, but I can't quite figure out some of their rules
28070 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28072 * ThemeClearlooks.cs: Corrected distance between ProgressBar
28075 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28077 * ThemeClearlooks.cs:
28078 - Updated ProgressBar drawing
28079 - Corrected drawing of ScrollBars and scroll buttons
28080 - Some temporary fixes for minor pixel artefacts
28082 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
28085 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28086 cause events to be sent in the same order as MS does.
28087 - Added ChangeParent() method to trigger various OnXXXChanged events
28088 that need to be fired when a parent changes (This is a reworking
28089 of the patch from r54254, with the X11 errors fixed)
28090 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28091 since on MS we get OnLayoutChanged events when calling Clear()
28092 - Changed Enabled property to consider parent state as well, if a
28093 parent is not enabled, the control will not be either
28094 - Changed Parent property to simply call Controls.Add() since that
28095 now does all the work required, this way we avoid code duplication
28096 - Threw in a few OnBindingsContextChanged calls to try and match
28097 when MS sends them. We seem to send a few too many, though.
28098 - Added call to CreateControl when adding the control to a parent.
28099 We were never calling CreateControl. Still needs some work, in
28100 some places we treat HandleCreated and ControlCreated as equal,
28102 - Removed obsolete commented out code from UpdateZOrder()
28104 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28106 * ThemeClearlooks.cs: Updated TrackBar drawing.
28108 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28110 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28112 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28114 * FileDialog.cs: Add the Help button and the open readonly
28115 checkbox only if needed
28117 2005-12-16 Jackson Harper <jackson@ximian.com>
28119 * Control.cs: Make sure we have an active menu before trying to
28120 process commands on it. Prevents menu-less forms from crashing
28121 when Alt is pressed.
28122 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28124 * RichTextBox.cs: Expand statement to help out gmcs and fix the
28127 2005-12-16 Jackson Harper <jackson@ximian.com>
28129 * InternalWindowManager.cs: Don't translate tool windows screen
28130 coordinates. This fixes windows 'bouncing' around when being moved.
28132 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28135 - MaxLength now treats 2^31-1 equal to unlimited length (this is
28136 not quite MS compatible, MS uses that number only for single line
28137 and 2^32-1 for multi-line, but I figure it won't hurt keeping
28139 - Now enforcing the MaxLength limit when entering characters
28140 - Added argument to internal Paste() method to track if it's called
28141 from programatically or via keyboard, since keyboard driven pastes
28142 need to enforce max-length
28143 - Added logic to Paste to only paste as many chars as MaxLength
28145 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28147 - Added Length property to return number of characters in document
28148 - Added private CharCount property which only tracks actual chars
28149 in the document (no linefeeds) and fires event when CharCount
28151 - Added tracking of character count to all methods that alter it
28152 - Added LengthChanged event to allow applications to subscribe
28153 to any changes to the document
28155 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28158 - Removed local password_char field (moved to TextBoxBase)
28159 - Now setting the document's password var when password is
28162 - Added password_char field (needed here so MultiLine can
28164 - Added logic to MultiLine property setter to set the document's
28165 variable when password display is allowed
28166 - Removed debug code and made some debug code conditional
28168 - Added RecalculatePasswordLine() method to handle special password
28170 - Added PasswordChar property, also added related tracking vars
28171 - Draw() method now uses local text var for grabbing text to draw,
28172 this var is set to line.text unless we're doing password display,
28173 then it is set to the pre-generated all-password-chars line
28174 - Added calling RecalculatePasswordLine() method for password lines
28176 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28179 - Added Reparented property to allow tracking of Window Manager
28180 reparenting actions (which affect X/Y calculations of toplevel
28182 - Made ToString() print window handles in hex
28184 - AddConfigureNotify(): Now uses reparented state off Hwnd to
28185 determine if X/Y needs offsetting
28186 - AddConfigureNotify(): Fixed offset calculations
28187 - Now adds ReparentNotify messages into the queue
28188 - Now processes ReparentNotify messages and causes a
28189 WM_WINDOWPOSCHANGED message to be sent upstream if a window
28190 is reparented (as most likely it's X/Y coordinates are changed
28193 2005-12-14 Jackson Harper <jackson@ximian.com>
28195 * XplatUIX11.cs: Tool windows still need to respek focus.
28197 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28199 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28200 have a working release
28202 2005-12-13 Jackson Harper <jackson@ximian.com>
28204 * Form.cs: Update styles after setting the border style regardless
28205 of whether or not the window is using a window manager.
28207 2005-12-13 Jackson Harper <jackson@ximian.com>
28209 * Form.cs: We now hook into an internal window manager instead of just an
28210 MDI subsystem, this is so we can have properly behaving tool windows.
28211 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28212 * InternalWindowManager.cs: New internal class that acts as a
28213 window manager for tool windows and as a base for mdi windows.
28214 * MdiWindowManager.cs: New class that acts as a window manager for
28217 2005-12-12 Jackson Harper <jackson@ximian.com>
28219 * Control.cs: Updates so we match behavoir for for implicit
28220 controls. Fixes explosions in MDI.
28222 2005-12-12 Jackson Harper <jackson@ximian.com>
28224 * Control.cs: Implement Invalidate (Region).
28226 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
28229 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
28230 the same events as MS does. MS fires events for each property
28231 except, for unknown reasons, Cursor, when the control is reparented.
28232 I can't seem to totally match add/remove since MS also fires some
28233 VisibleChanged events, which makes no sense. Consolidated the
28234 parenting code into a separate method so it can be called from
28235 both Add and Remove. set_Parent no longer needs any special logic
28236 as it calls the parent's add method which implicitly fires
28238 - Removed some obsolete code and debug output
28239 - Enabled state is inherited from parents, if this is enabled
28241 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28243 * Form.cs: Removed commented out code
28245 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28248 - Added internal version of Invoke, with additional argument
28249 indicating if we're calling it from a Dispose() handler. That
28250 way we can avoid BeginInvoke throwing an exception if we're
28251 calling for an already destroyed window.
28252 - Added a dispose argument to BeginInvokeInternal, and made the
28253 check if a valid window handle chain exists conditional on
28254 it not being a dispose call
28255 - Removed code in DestroyHandle to destroy our children. Since we
28256 now handle the WM_DESTROY message we will catch all our children
28258 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28260 - Added a field to track the application context of the form.
28261 - No need to set closing variable as response to WM_CLOSE, instead
28262 we destroy the window. We also call PostQuitMessage if the form
28263 has an application context (which makes it the main app form,
28264 which, when closed terminates the app)
28266 - Dropped Exit() method, it's naming was confusing
28267 - Added PostQuitMessage() which causes GetMessage to return false
28268 once the message queue is empty
28269 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
28271 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28272 no longer a valid XplatUI method, but left it in since it's used
28273 internally. Added empty PostQuitMessage() method.
28274 * MenuAPI.cs: Replaced call to Exit() with call to
28275 PostQuitMessage, even though this is probably no longer needed.
28276 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28277 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28279 - Replaced call to XplatUI.Exit() with PostQuitMessage()
28280 - Removed old debug code that would call XplatUI for exception
28281 display, enabled standard exception handling (Still not enabled
28282 though, until NativeWindow's ExternalExceptionHandler define
28285 - Added internal method to allow control to update NativeWindow
28286 after a window has been destroyed
28287 - Added handling of already destroyed windows when calling i
28289 - Added removal of handle from list on ReleaseHandle
28291 - Dropped GetMessageResult var and related code
28292 - Added PostQuitState to field to track if PostQuitMessage has been
28294 - Dropped Exit() method
28295 - Added PostQuitMessage() method
28296 - GetMessage now will return false if PostQuitState is set and no
28297 more messages are in the queue.
28298 - Expose handler will no longer generate WM_PAINT messages if we are
28299 in PostQuitState since it's very likely any windows have already
28300 been destroyed, and since Hwnd won't get updated until we have
28301 processed the DestroyNotify we'd be causing X errors.
28303 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28305 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28306 Thanks to Mike for pointing out the err of my ways.
28308 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28310 * Control.cs(PreProcessMessage): Moved menu handling back, but
28311 after all other key handling, to match MS (who handles Menu in
28313 * Menu.cs (WndProc): Removed my brainfart
28315 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28317 * Control.cs(PreProcessMessage): Removed special menu handling
28318 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28320 2005-12-07 Mike Kestner <mkestner@novell.com>
28322 * Control.cs : special case SYSKEYUP so that we can adjust keynav
28323 state according in tracker.
28324 * Menu.cs : promote tracker field to base class and provide a tracker
28325 lookup capability. Add/Remove shortcuts dynamically if the top menu
28326 has a tracker. Unparent items that are removed from the collection.
28327 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28328 * Theme*.cs: add always_show_hotkeys field to support configurability
28329 of mnemonic display. win32 doesn't show mnemonics until Alt is
28332 2005-12-07 Jackson Harper <jackson@ximian.com>
28334 * MdiChildContext.cs: Use Control.ResetCursor.
28335 * Control.cs: ResetCursor needs to set the property so that the
28336 correct XplatUI call gets made.
28338 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28340 * Control.cs: More fixes to make our key events match MS. We
28341 were not setting the modifier state on KeyData, and we were
28342 not generating any events when Alt was pressed with a key
28343 since handling of WM_SYSxxx was missing for the OnKey methods.
28345 2005-12-07 Jackson Harper <jackson@ximian.com>
28347 * MdiChildContext.cs: reenable the sizing code.
28348 - When the mouse leaves a window reset its cursor.
28350 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28352 * ThemeClearlooks.cs: Reflect latest Hwnd changes
28354 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28356 * Hwnd.cs: Now using the theme 3d bordersize to calculate
28357 widths of Fixed3D borders
28359 2005-12-07 Jackson Harper <jackson@ximian.com>
28361 * MdiClient.cs: Fix warnings. Earn Mike's love.
28363 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28365 * ThemeClearlooks.cs:
28366 - Adjusted mouse over button color
28367 - Added first parts of CheckBox drawing
28368 - Added correct color for selected text background
28369 - Fixed ComboBox drawing
28370 - Added CPDrawBorder3D and CPDrawBorder
28372 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28374 * XplatUIX11.cs: Added call to XBell for AudibleAlert
28376 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28378 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28379 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28380 alert users via sound. We could add an enum arg with different
28381 types of alerts in the future
28383 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28385 * Control.cs: Fix behaviour problems pointed out by Mike
28387 2005-12-05 Mike Kestner <mkestner@novell.com>
28389 * StatusBarPanel.cs: add Invalidate method and hook it into all the
28390 prop setters. Calls parent.Refresh for now, but could be maybe be
28391 optimized with an internal method on StatusBar at some point.
28394 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
28396 * RichTextBox.cs: Implemented get_SelectionColor
28398 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
28400 * ThemeClearlooks.cs:
28401 - Removed dead code
28402 - Draw black button border only if button is Form.AcceptButton
28403 - Draw correct button color for pressed RadioButton if the mouse
28404 has entered the button
28405 - Updated ProgressBar drawing!
28406 - Updated CPDrawSizeGrip drawing
28407 - Updated StatusBarPanel drawing
28409 2005-12-05 Mike Kestner <mkestner@novell.com>
28411 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
28412 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
28414 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
28416 * ThemeClearlooks.cs: Initial check-in, activate with
28417 export MONO_THEME=clearlooks
28418 * ThemeEngine.cs: Added ThemeClearlooks
28420 2005-12-03 Mike Kestner <mkestner@novell.com>
28422 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
28425 2005-12-02 Jackson Harper <jackson@ximian.com>
28427 * Form.cs: If the child form has no menu the default main menu is
28428 used as the active menu.
28430 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28432 * ListBox.cs: Check if any items exist before trying to resolve
28433 coordinates into items
28435 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28437 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
28438 as the second color for the background hatch
28440 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28442 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
28443 * RichTextBox.cs: FormatText position arguments are 1-based, now making
28444 sure that what we pass to FormatText is always 1-based. Fixes #76885
28446 2005-11-29 Miguel de Icaza <miguel@novell.com>
28448 * NumericUpDown.cs (EndInit): When we are done initializing,
28449 reflect any updates on the UI.
28451 2005-12-02 Jackson Harper <jackson@ximian.com>
28453 * ImplicitHScrollBar.cs:
28454 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
28455 their container controls.
28456 * TreeView.cs: Use the new implicit scrollbars.
28458 2005-12-02 Jackson Harper <jackson@ximian.com>
28460 * TreeView.cs: Make top_node internal so the TreeNodeCollections
28462 * TreeNodeCollection.cs: If we remove the topnode we need to
28463 update topnode to the next node in line.
28464 - When clearing nodes go through the same process as removing
28465 them, so they get depareneted and checked if they are top node.
28467 2005-12-01 Jackson Harper <jackson@ximian.com>
28469 * TreeView.cs: When imagelists are used the image area is
28470 selectable as well as the text.
28471 - If there are no selected nodes select the first one.
28472 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
28473 so don't do it more then we need to.
28475 2005-12-01 Jackson Harper <jackson@ximian.com>
28477 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
28478 that arrows can be scaled.
28480 2005-12-01 Jackson Harper <jackson@ximian.com>
28482 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
28483 fail. Patch by Dieter Bremes
28485 2005-11-30 Jackson Harper <jackson@ximian.com>
28487 * Form.cs: Property is 2.0 only
28488 * PrintDialog.cs: Signature fix.
28490 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28493 - No longer artificially moves text 2 pixels down (now that we have
28494 borders this is no longer needed)
28495 - Added calcs for left, hanging and right indent
28497 2005-11-23 Mike Kestner <mkestner@novell.com>
28499 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
28501 2005-11-30 Jackson Harper <jackson@ximian.com>
28503 * MdiChildContext.cs: Set the cloned menus forms, as these don't
28504 get cloned as part of CloneMenu ().
28505 * Menu.cs: Make sure the parent of the items get set correctly
28506 when they are added. And the owners are notified of the changes.
28507 * Form.cs: Create an ActiveMenu property, so that when MDI is used
28508 we can change the menu being displayed/handled by the form without
28509 changing the menu assosciated with the form.
28510 - Don't let Mdi children draw/handle menus.
28512 2005-11-30 Jackson Harper <jackson@ximian.com>
28514 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
28515 a MenuChanged event. Just to make the API a little more
28518 * MenuItem.cs: Use the new OnMenuChanged
28519 * MdiChildContext.cs: Handle menu merging.
28520 * Form.cs: Implement MergedMenu.
28522 2005-11-30 Jackson Harper <jackson@ximian.com>
28524 * Menu.cs: We were misusing Add. Add goes behind the specified
28525 index according to the docs, and does not replace the specified
28526 index. So I added an Insert method.
28528 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28530 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
28531 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
28533 * RichTextBox.cs: Added calls to base for DnD events
28535 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
28538 - Fixed drag-selection related crash; style fixes
28539 - Implemented undo class
28540 o Implemented method to capture document state for specified
28541 range in document tree
28542 o Implemented method to restore captured document state
28543 o Implemented cursor tracking
28544 o Implemented basic undo stack
28545 - Added undo cursor tracking to methods altering cursor location
28546 - Added undo tracking to selection deletion (still missing
28547 other text-altering hookups)
28549 - Added SelectionLength property
28550 - Implemented CanPaste()
28551 - Implemented Paste()
28552 - Added missing protected methods
28553 - Fixed RTF->Document conversion; now uses font index 0 and color
28554 index 0 as the default font for the parsed text
28555 - Fixed RTF<->Document font size translation
28556 - Fixed RTF generation, now properly handles cross-tag boundaries
28557 for single line selection
28558 - No longer always appends blank line to generated RTF
28560 - Added missing attributes
28561 - Hooked up undo-related methods
28563 - Implemented Copy()
28564 - Implemented Paste()
28565 - Implemented Cut()
28566 - Fixed caret mis-behaviour on backspace across line-boundaries
28568 2005-11-29 Jackson Harper <jackson@ximian.com>
28570 * MdiClient.cs: Add a method for activating mdi children. Very
28571 basic right now. I imagine someday it might need more girth.
28572 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
28573 children windows names are added to the menu item.
28574 * ThemeWin32Classic.cs: Draw the arrow if the item is an
28575 mdilist. This happens regardless of whether or not there are any
28576 mdi windows to see in the list, and according to my tests happens
28577 before the items are even added. Also happens if there isn't even
28578 an mdi client to get windows from.
28580 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
28582 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
28583 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
28585 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
28587 * DataGridTableStyle.cs:
28588 - Create always the styles for the missing columns even if they are
28589 provided by the user (not default table style)
28592 - Fixes SetDataBinding (always re-attach source)
28593 - Fixes SetNewDataSource (only clear styles if they are not for
28595 - Expands OnTableStylesCollectionChanged to handle style refresh
28596 and remove properly
28598 2005-11-29 Jackson Harper <jackson@ximian.com>
28600 * FileDialog.cs: Implement missing bits, remove some dead
28602 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
28603 creation of the panel so that the options set on the dialog are
28604 seen when the panel is created.
28605 * TreeView.cs: raise a click when items are clicked.
28607 2005-11-29 Jackson Harper <jackson@ximian.com>
28609 * MdiClient.cs: Pass some signature methods through to base.
28611 2005-11-28 Jackson Harper <jackson@ximian.com>
28613 * ListView.cs: Raise the click event when items are clicked.
28615 2005-11-28 Jackson Harper <jackson@ximian.com>
28617 * MdiClient.cs: Make this algorithm even more beautiful. And fix
28620 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
28622 * ThemeNice.cs: - Removed 1 pixel bitmaps
28623 - Use SmoothingMode.AntiAlias where it makes sense
28624 (ScrollButton arrow for example)
28625 - Enhanced Button focus drawing
28626 - Fixed ComboBox drawing (no artefacts anymore, focus
28627 rectangle is back again, reduced size of ComboButton, etc.)
28628 - Fixed RadioButton focus drawing for Appearence.Button
28629 - Slight ScrollButton redesign
28630 - Some LinearGradientBrush size fixes
28631 - GroupBoxes have now rounded edges
28632 - Fixed StatusBar drawing
28634 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
28636 * ThemeNice.cs: - Remove dead code
28637 - use correct background colors for menus, etc.
28638 - Fake pixel drawing with 1 pixel bitmaps
28640 2005-11-24 Jackson Harper <jackson@ximian.com>
28642 * MdiClient.cs: Size the scrollbars when resizing the window.
28643 - Resize the maximized windows when the client is resized
28644 * Form.cs: Make the child context available
28646 2005-11-23 Jackson Harper <jackson@ximian.com>
28648 * MdiChildContext.cs: Don't size windows if they are maximized.
28650 2005-11-23 Mike Kestner <mkestner@novell.com>
28652 * ContextMenu.cs: use MenuTracker.
28653 * Control.cs: remove menu handle usage.
28654 * Form.cs: remove menu handle usage.
28655 * Hwnd.cs: remove menu handle usage.
28656 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
28657 motion and clicks to the new Tracker handlers.
28658 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
28660 * MenuAPI.cs: refactored to combine popup and menubar event handling.
28661 Killed the MENU and MENUITEM data types and associated collections
28662 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
28663 MenuTracker class that exposes the leftovers from the old MenuAPI
28664 static methods. Restructured Capture handling so that only one grab is
28665 done for the entire menu hierarchy instead of handing off grabs to
28666 submenus. Tracker now has an invisible control to Capture when active.
28667 * MenuItem.cs: add sizing accessors, kill Create
28669 * Theme.cs: remove menu handle and MENU(ITEM) usage.
28670 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
28671 MENU(ITEM). remove menu handle usage, use Menu directly.
28672 * XplatUIDriver.cs: remove menu handle usage.
28673 * XplatUIOSX.cs: remove menu handle usage.
28674 * XplatUIWin32.cs: remove menu handle usage.
28675 * XplatUIX11.cs: remove menu handle usage.
28677 2005-11-22 Jackson Harper <jackson@ximian.com>
28679 * Hwnd.cs: Don't compute the menu size for
28680 DefaultClientRectangle.
28681 - Reenable menu sizes being computed for GetClienRectangle.
28682 * Form.cs: Remove comment of trechery
28684 2005-11-22 Jackson Harper <jackson@ximian.com>
28686 * Hwnd.cs: The adjustments for the menu bar are made when it is
28687 attached to the form.
28689 2005-11-19 Jackson Harper <jackson@ximian.com>
28691 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
28692 (just like on windows).
28694 2005-11-19 Jackson Harper <jackson@ximian.com>
28696 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
28697 use real buttons anymore because they are in non client area. The
28698 one TODO here is that I need to somehow invalidate a section of
28699 the non client area.
28701 2005-11-18 Jackson Harper <jackson@ximian.com>
28703 * Control.cs: Put the enum check back in now that MDI doesnt have
28704 to use this to set border styles.
28705 * Form.cs: Only set mdi child windows borders if the handle has
28707 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
28708 this directly on to the driver.
28709 - Get the move start position before adjusting for the titlebar
28710 height, this fixes the windows "skipping" when they are first
28713 2005-11-18 Jackson Harper <jackson@ximian.com>
28715 * XplatUIX11.cs: Just compute the mdi borders separately as they
28716 don't totally match up with normal form borders.
28718 2005-11-18 Jackson Harper <jackson@ximian.com>
28720 * Control.cs: Set WS_ styles for borders, so that the driver does
28721 not have to retrieve the control instance to figure out what kind
28722 of borders it should have.
28723 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
28724 driver can know its an mdi child easily.
28725 * XplatUIX11.cs: Get the border styles and whether the window is
28726 MDI from the Styles and ExStyles params instead of having to get a
28727 control. This prevents a chicken and egg problem.
28729 2005-11-18 Jackson Harper <jackson@ximian.com>
28731 * MdiClient.cs: Fix typo so scrollbars show up correctly.
28733 2005-11-18 Jackson Harper <jackson@ximian.com>
28735 * MdiClient.cs: Calculate when to add and remove scrollbars
28737 * MdiChildContext.cs: Adjust the y position to take the titlebar
28739 - No height for FormBorderStyle.None
28741 2005-11-18 Jackson Harper <jackson@ximian.com>
28743 * Control.cs: Allow non enum values to be used for
28744 InternalBorderStyle. MDI does this to set a special border style.
28745 - New utility methods for converting points to/from client coords
28746 - Add the newly created control to the Controls collection before
28747 updating its style. This way UpdateStyle can walk the control
28748 heirarchy to find the control if needed.
28749 so I don't need to create a new Point object all the time.
28750 * Form.cs: Let MDI windows handle their border styles.
28751 - Set styles on MDI windows so the correct title style is derived.
28752 * MdiChildContext.cs: Move all the painting and window handling
28753 into the non client area.
28754 - Use correct sizing and put correct buttons on frames based on
28755 the FormBorderStyle.
28756 - Notify the mdi client about scrolling
28757 - Need to handle the buttons ourselves now, because they are all
28758 in non client areas and we can't add controls there.
28759 * MdiClient.cs: Halfway to scrolling, this implementation is
28760 somewhat broken though, we need to check to make sure other
28761 windows aren't causing scrolling before removing the bars. Also
28762 the bars need to be drawn on top, maybe I can switch implicit
28763 controls to be on top.
28764 * Hwnd.cs: caption_height and tool_caption_height are now
28765 properties of an hwnd, this way they can be set by the driver
28766 based on the type of window they are. In X11 the window manager
28767 handles the decorations so caption_height is zero unless its an
28769 - Add 3 pixel borders for MDI windows (0xFFFF).
28770 - Get rid of some code duplication, have DefaultClientRectanle
28771 just call GetClientRectangle.
28772 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
28774 - Set border styles differently for mdi windows.
28775 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
28778 2005-11-15 Mike Kestner <mkestner@novell.com>
28780 * Menu.cs: when adding an item to the collection, if item is already
28781 parented, remove it from the parent.
28783 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
28785 * X11DesktopColors.cs: Added KDE support
28787 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
28790 - Clipboard methods now can translate Rtf format
28791 - No longer removes clipboard contents whenever a new format is added
28792 to allow placing multiple formats on the clipboard
28793 * Clipboard.cs: Clipboard now supports getting a IDataObject and
28794 will place all formats contained in it onto the clipboard. Also
28795 now cleans the clipboard before placing a new object onto it
28797 - Implemented set_Rtf
28798 - Implemented set_SelectedRtf
28799 - Created InsertRTFFromStream() method to allow single code base
28800 for all properties and methods that insert RTF into document
28801 - Removed debug output
28803 - Fixed Delete(int) to fix up line numbers
28804 - Fixed ReplaceSelection to combine start and end line
28805 - Fixed serious DeleteChars bug that would leave the document tree
28807 - Improved DumpTree with several logic checks to detect broken
28809 - Removed debug lines
28810 - Fixed Caret.WordForward/WordBack moving code, now always also
28811 updates caret.tag (fixes crash when word-selecting across tag
28812 boundaries via keyboard)
28813 - Added Insert() method for inserting multiline text into documents
28814 - Fixed DeleteChars() calculation errors that would cause a broken
28815 tag chain with multiple tag lines
28816 - DeleteChars() no longer crashes on multi-tag lines if not all tags
28817 - Split() no longer moves caret if split is at caret location
28818 - ReplaceSelection() now updates the cursor and re-displays it
28819 - ReplaceSelection() now uses new Insert() method to avoid code
28821 - FormatText() can now handle formatting partial lines
28823 - Append now uses new TextControl.Insert() method (this avoids
28825 - Implemented Ctrl-X (Cut) (
28826 - Implemented Ctrl-C (Copy)
28827 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
28828 regeneration when pasting text; roundtripping Copy&Paste within
28829 edit control still fails due to some calculation bugs in GenerateRTF)
28830 - The Delete key will now remove the current selection if it is visible
28831 * TextBox.cs: Removed debug lines
28832 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
28833 driver to be initialized and can't therefore be done via a static ctor)
28835 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
28837 * TextControl.cs: Added backend code for finding char arrays and strings
28839 - Added mouse wheel scroll support
28840 - Added support for VScroll and HScroll events
28842 - Implemented all seven Find() variants
28843 - Implemented GetCharFromPosition()
28844 - Implemented GetCharIndexFromPosition()
28845 - Implemented GetLineFromIndex()
28846 - Implemented GetPositionFromCharIndex();
28847 - Implemented SaveFile for PlainText and UnicodeText
28848 - Fixed set_Font, now setting a new font applies that font to
28850 - Implemented generic Document to RTF converter
28851 - Implemented SaveFile for RichText format (still missing unicode
28852 conversion for non-ansi chars)
28853 - Implemented get_Rtf
28854 - Implemented get_SelectedRtf
28856 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
28858 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
28859 to allow any captures to be released before triggering OnClick. This
28860 way a click handler may capture the mouse without interference.
28861 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
28862 This way we send them even though X may not allow a grab (if the window
28863 isn't visible, for example)
28865 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
28867 * DataGridViewRowEventArgs.cs: DataGridView implementation
28868 * DataGridViewElement.cs: DataGridView implementation
28869 * DataGridViewComboBoxCell.cs: DataGridView implementation
28870 * DataGridViewDataErrorContexts.cs: DataGridView implementation
28871 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
28872 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
28873 * ImageLayout.cs: DataGridView implementation
28874 * DataGridViewComboBoxColumn.cs: DataGridView implementation
28875 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
28876 * DataGridViewSelectionMode.cs: DataGridView implementation
28877 * IDataGridViewEditingControl.cs: DataGridView implementation
28878 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
28879 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
28880 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
28881 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
28882 * DataGridViewColumnSortMode.cs: DataGridView implementation
28883 * DataGridView.cs: DataGridView implementation
28884 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
28885 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
28886 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
28887 * Padding.cs: DataGridView implementation
28888 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
28889 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
28890 * DataGridViewRowEventHandler.cs: DataGridView implementation
28891 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
28892 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
28893 * DataGridViewButtonCell.cs: DataGridView implementation
28894 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
28895 * DataGridViewEditMode.cs: DataGridView implementation
28896 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
28897 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
28898 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
28899 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
28900 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
28901 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
28902 * DataGridViewCellEventHandler.cs: DataGridView implementation
28903 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
28904 * DataGridViewCellStyleConverter.cs: DataGridView implementation
28905 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
28906 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
28907 * DataGridViewColumnEventArgs.cs: DataGridView implementation
28908 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
28909 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
28910 * QuestionEventArgs.cs: DataGridView implementation
28911 * IDataGridViewEditingCell.cs: DataGridView implementation
28912 * DataGridViewTriState.cs: DataGridView implementation
28913 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
28914 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
28915 * DataGridViewColumnCollection.cs: DataGridView implementation
28916 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
28917 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
28918 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
28919 * DataGridViewColumn.cs: DataGridView implementation
28920 * DataGridViewCellBorderStyle.cs: DataGridView implementation
28921 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
28922 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
28923 * DataGridViewRow.cs: DataGridView implementation
28924 * DataGridViewImageCellLayout.cs: DataGridView implementation
28925 * DataGridViewImageCell.cs: DataGridView implementation
28926 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
28927 * DataGridViewCheckBoxCell.cs: DataGridView implementation
28928 * DataGridViewHeaderCell.cs: DataGridView implementation
28929 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
28930 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
28931 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
28932 * DataGridViewTextBoxColumn.cs: DataGridView implementation
28933 * QuestionEventHandler.cs: DataGridView implementation
28934 * DataGridViewCellStyleScopes.cs: DataGridView implementation
28935 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
28936 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
28937 * DataGridViewCell.cs: DataGridView implementation
28938 * DataGridViewCellEventArgs.cs: DataGridView implementation
28939 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
28940 * DataGridViewCellStyle.cs: DataGridView implementation
28941 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
28942 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
28943 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
28944 * TextFormatFlags.cs: DataGridView implementation
28945 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
28946 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
28947 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
28948 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
28949 * DataGridViewButtonColumn.cs: DataGridView implementation
28950 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
28951 * HandledMouseEventArgs.cs: DataGridView implementation
28952 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
28953 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
28954 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
28955 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
28956 * DataGridViewRowCollection.cs: DataGridView implementation
28957 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
28958 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
28959 * DataGridViewHitTestType.cs: DataGridView implementation
28960 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
28961 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
28962 * DataGridViewColumnEventHandler.cs: DataGridView implementation
28963 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
28964 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
28965 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
28966 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
28967 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
28968 * DataGridViewContentAlignment.cs: DataGridView implementation
28969 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
28970 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
28971 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
28972 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
28973 * DataGridViewPaintParts.cs: DataGridView implementation
28974 * DataGridViewCellCollection.cs: DataGridView implementation
28975 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
28976 * DataGridViewImageColumn.cs: DataGridView implementation
28977 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
28978 * DataGridViewElementStates.cs: DataGridView implementation
28979 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
28980 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
28981 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
28982 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
28983 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
28984 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
28985 * DataGridViewRowHeaderCell.cs: DataGridView implementation
28986 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
28987 * DataGridViewTextBoxCell.cs: DataGridView implementation
28988 * DataGridViewBand.cs: DataGridView implementation
28989 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
28990 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
28991 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
28992 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
28993 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
28994 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
28995 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
28996 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
28997 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
28998 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
28999 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29001 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
29003 * ThemeWin32Classic.cs:
29004 - Draw the outside focus rectangle around buttons
29005 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29006 doesn't use end caps for every dash of a line anymore. This
29007 workaround ignores the forecolor.
29009 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
29011 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29014 2005-11-07 Jackson Harper <jackson@ximian.com>
29016 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29018 2005-11-07 Jackson Harper <jackson@ximian.com>
29020 * ScrollableControl.cs: Calculate the maximum and change vars
29021 (more) correctly so that scrollbars appear as a sensible size.
29023 2005-11-04 Jackson Harper <jackson@ximian.com>
29025 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29027 * TreeView.cs: When the tree is sorted null out the top_node so
29028 that it is recalculated.
29029 - Use dotted lines instead of dashed lines to match MS better.
29031 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
29034 - Implements key search for items. Useful when browsing files with FileDialog
29035 - When changing view mode or when clear the items reset scrollbar positions
29037 2005-11-04 Jackson Harper <jackson@ximian.com>
29039 * CurrencyManager.cs: Implement the MetaDataChanged event, the
29040 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29041 as to what the method may do as there is no real way of creating a
29042 derived CurrencyManager and calling the method.
29044 2005-11-03 Jackson Harper <jackson@ximian.com>
29046 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29047 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29048 method which seems to just be used internally to refresh the tabs.
29050 2005-11-03 Jackson Harper <jackson@ximian.com>
29052 * TabControl.cs: Implement the remove method. Fix some broken
29055 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29057 * DateTimePicker.cs:
29058 - Added missing DateTimePickerAccessibleObject class
29059 - Added missing events
29060 - Added OnFontChanged method
29061 * Form.cs: Added missing attributes
29062 * TreeView.cs: Added missing attributes
29064 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29066 * GridItemCollection.cs: Fix signatures
29068 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29070 * XplatUI.cs: Updated build rev/date
29071 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
29072 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29073 * Application.cs: Trigger context-specific ExitThread events
29075 2005-11-03 Jackson Harper <jackson@ximian.com>
29079 * GridTableStylesCollection.cs:
29084 * MonthCalendar.cs: Signature fixes
29086 2005-11-03 Jackson Harper <jackson@ximian.com>
29088 * TreeNodeCollection.cs: Remove should not be virtual.
29089 * TreeView.cs: Implement the last of the missing methods.
29091 2005-11-03 Jackson Harper <jackson@ximian.com>
29093 * TreeNodeConverter.cs: Implement to get off my class-status back.
29095 2005-11-03 Jackson Harper <jackson@ximian.com>
29097 * TreeView.cs: Hookup the bits for drag and drop.
29098 * TreeNode.cs: Don't cache the tree_view or index anymore, now
29099 that nodes can be moved from tree to tree easily this just causes
29100 all sorts of problems.
29101 * TreeNodeCollection: Don't need to give treenodes an index and
29102 treeview anymore when they are added, these are computed on the
29103 fly. Also make sure to remove a node before its added.
29105 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29108 - Added CaretSelection enum
29109 - Added comparison methods to Marker struct, makes selection code
29111 - Added SelectionStart and SelectionEnd as 'moveable' location for
29112 the CaretDirection enum and handler
29113 - Added selection_prev variable to track optimized invalidation for
29114 word and line selection
29115 - Added SelectionVisible property (returns true if there is a valid
29117 - Switched CaretHasFocus to only display the caret if there is no
29119 - Avoiding StringBuilder.ToString to retrieve a single char, instead
29120 using the direct character index; should be much faster
29121 - Added various conditional debug statements
29122 - Fixed invalidation calculation for selection ranges
29123 - Added ExpandSelection() method to support word and line selection
29124 - Switched SetSelectionToCaret to use new Marker compare overloads
29125 - Added central IsWordSeparator() method to determine word
29126 separators/whitespace and FindWordSeparator() to streamline common
29127 usage of IsWordSeparator()
29129 - Removed unneeded grabbed variable, it was just mirroring
29131 - No longer firing OnTextChanged event when Text setter is called,
29132 since the base will fire the event for us
29133 - Added handling of Ctrl-Up/Down selection
29134 - Added handling of Shift-Cursorkey selection
29135 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29137 - Added handling of Shift and Ctrl-Shift-Home/End selection
29138 - Removed some debug output
29139 - Added handling for single/double/tripple-click to place caret/
29140 select word/select line respectively (Fixes bug #76031)
29141 - Added support for drag expansion of word/line selection
29142 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29145 2005-11-02 Jackson Harper <jackson@ximian.com>
29147 * X11Dnd.cs: If the drag is going to and from a MWF window just
29148 copy the data instead of sending it out through the X Selection
29151 2005-11-02 Jackson Harper <jackson@ximian.com>
29154 * XplatUIX11.cs: When in a drag we don't want motion notify
29155 messages to get passed on to the other controls. This prevents
29156 mouse move messages from showing up in the drag source.
29158 2005-11-02 Jackson Harper <jackson@ximian.com>
29160 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
29161 the correct button is release to end a drag.
29162 * XplatUIX11.cs: Make the button state internal so the drag system
29163 can access it. Dragging needs to know about all button releases,
29164 not just left button.
29166 2005-11-02 Miguel de Icaza <miguel@novell.com>
29168 * Form.cs (Icon): If the icon is null, reset the icon to the
29171 * Cursor.cs: When writing the AND-mask bitmap do not include the
29172 number of colors, but hardcode those to two (black and white),
29173 fixes the loading of color cursors (Paint Dot Net).
29175 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29176 turn off autoscaling.
29178 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29180 2005-11-02 Jackson Harper <jackson@ximian.com>
29182 * X11Dnd.cs: Make sure to send a status message if the pointer
29183 enters a control that can not accept a drop, otherwise the cursor
29184 isn't updated correctly. Also tried to compress the lines of code
29187 2005-11-02 Jackson Harper <jackson@ximian.com>
29189 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29190 set actions correctly. This isn't perfect as XDND and win32 have
29191 some differences on how you allow actions. I'll clear this up by
29192 adding a path for drag from MWF to MWF windows.
29193 * XplatUIX11.cs: Hook into the dnd system.
29195 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
29197 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29198 previously shown but they are no longer need it. Very obvious when
29199 browsing files with FileDialog.
29201 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
29203 * Control.cs: We always need to call OnPaintBackground. We pretty much
29204 ignore AllPaintingInWmPaint and always do the painting there, whether
29205 it's set or not, since we always ignore the WM_ERASEBKGND message
29206 (which we don't generate on X11). This fixes #76616.
29207 * Panel.cs: Removed unneeded background painting. This happens properly
29208 in Control.cs already
29210 2005-10-31 Mike Kestner <mkestner@novell.com>
29212 * Menu.cs: Add items to collection before setting their index.
29213 * MenuItem.cs : add range checking with ArgumentException like MS.
29216 2005-10-31 Jackson Harper <jackson@ximian.com>
29218 * ListBox.cs: Invalidate if the area is visible at all not just
29219 contained in the visible rect. Fixes unselection of semi visible
29222 2005-10-31 Jackson Harper <jackson@ximian.com>
29224 * Control.cs: Consistently name the dnd methods. Make them
29225 internal so we can override them to match some MS behavoir
29227 * Win32DnD.cs: Use the new consistent names.
29229 2005-10-31 Jackson Harper <jackson@ximian.com>
29231 * TreeView.cs: Don't draw the selected node when we lose focus.
29233 2005-10-31 Jackson Harper <jackson@ximian.com>
29235 * X11Dnd.cs: We still need to reset the state even though a full
29236 reset isn't being done, otherwise status's still get sent all over
29239 2005-10-31 Jackson Harper <jackson@ximian.com>
29241 * Control.cs: Make the dnd_aware flag internal so the dnd
29242 subsystem can check it. Catch exceptions thrown in dnd handlers to
29244 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29245 * X11Dnd.cs: Handle null data in the converters. Set the XDND
29246 version when sending a XdndEnter. Use the control/hwnd dnd_aware
29247 flags to reduce the number of dnd enters/status's sent.
29249 2005-10-31 Jackson Harper <jackson@ximian.com>
29251 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29253 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
29255 * PictureBox.cs: Fixes 76512
29257 2005-10-28 Jackson Harper <jackson@ximian.com>
29259 * X11Dnd.cs: Early implementation to support winforms being a drag
29260 source for data on X11. Also restructured the converters so they
29261 can go both ways now.
29262 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29264 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
29266 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29269 2005-10-27 Jackson Harper <jackson@ximian.com>
29271 * TreeNode.cs: Implement serialization so my DnD examples will work.
29273 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
29275 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29276 TreeView.cs: Don't dispose objects that are not owned.
29278 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
29280 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29281 should retrieve the current cursor and report that, but XplatUI
29282 doesn't (yet) have an interface for that (and I'm not sure I even
29284 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29285 until any message loop processing is done (and the WM_SETCURSOR
29286 replaces the cursor to the proper one)
29288 - Fixed override behaviour, we can't set the cursor globally on X11,
29289 just for our windows.
29290 - Invalidating the System.Drawing X11 display handle when we are
29292 * Control.cs: Fix to make csc happy
29294 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
29297 - get_Text: Add last line (without trailing newline) to returned
29298 value (Fixes 76212)
29299 - get_TextLength: Count last line in returned length
29300 - ToString: Call Text property instead of duplicating code
29302 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
29304 * ImageList.cs: Dispose ImageAttributes objects.
29306 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
29308 * ImageList.cs: Use attribute constructors with less arguments where
29311 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
29313 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29314 Use typeof instead of strings when assembly is referenced. Added
29315 some more comments.
29317 2005-10-21 Jackson Harper <jackson@ximian.com>
29319 * ListView.cs: Raise a double click event. Also tried to somewhat
29320 fix when the selectedindexchanged event is raised. Its still
29323 2005-10-21 Jackson Harper <jackson@ximian.com>
29325 * TreeView.cs: New method to invalidate the plus minus area of a
29326 node without invalidating the whole node (maybe this can be used
29327 in some more places).
29328 * TreeNodeCollection.cs: When adding to an empty node we need to
29329 invalidate its plus minus area so the little block shows up.
29331 2005-10-21 Jackson Harper <jackson@ximian.com>
29333 * TreeView.cs: Make sure that when we invalidate a node the bounds
29334 are big enough to cover the selected box and the focus
29335 rectangle. Use a different colour for the lines connecting nodes
29336 so they show up with all themes.
29338 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29340 * NativeWindow.cs: Don't call anything that could call into the driver,
29341 we might be on a different thread.
29343 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29345 * Control.cs(Dispose): Since Dispose might run on a different thread,
29346 make sure that we call methods that could call into the driver via
29347 invoke, to avoid thread issues
29349 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29351 * XplatUI.cs: Removed finalizer
29352 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29353 not allowing to be called on the finalizer thread.
29355 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
29358 - Reverted r51889 and r51891.
29359 - Added ImageListItem class that stores unmodified image items and image
29360 properties required to create list images until handle is created.
29361 - Added AddItem and moved image creation logic to AddItemInternal.
29362 - Added CreateHandle method that creates images based on unmodified items.
29363 - Added DestroyHandle that changes state to store unmodified items.
29364 - Add and AddStrip methods no more create handle.
29365 - ReduceColorDepth has no return value.
29366 - Dispose destroys handle.
29367 - Modified other methods to reflect the above changes.
29368 - Implemented key support.
29369 - Added profile 2.0 members and attributes.
29370 - Added private Reset and ShouldSerialize methods that provide the same
29371 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29372 them as they are private.
29373 - Added some more comments about implementation details.
29375 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29377 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29379 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29381 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29383 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29385 * DataGridDrawingLogic.cs: Fixes column hit calcultation
29386 * DataGridColumnStyle.cs: Remove debug message
29388 2005-10-20 Jackson Harper <jackson@ximian.com>
29390 * TreeView.cs: We can always get input keys regardless of whether
29391 or not editing is enabled. They are used for navigation.
29393 2005-10-20 Jackson Harper <jackson@ximian.com>
29395 * TreeNode.cs: Use the viewport rect for determining if a node
29396 needs to be moved for visibility. Don't use Begin/End edit. This
29397 calls a full refresh when its done.
29398 * TreeView.cs: New SetBottom works correctly. Make the viewport
29399 rect property internal so the treenodes can see it. When clicking
29400 on a node we need to ensure that its visible because it might just
29401 be partly visible when clicked.
29403 2005-10-20 Jackson Harper <jackson@ximian.com>
29405 * TreeNodeCollection.cs: Remove debug code.
29407 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29409 * Datagrid.cs: Implements column sorting in Datagrid
29410 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
29412 2005-10-20 Jackson Harper <jackson@ximian.com>
29414 * TreeNodeCollection.cs: Remove items properly. Update the correct
29415 area after removing them.
29417 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29419 * Datagrid.cs: Should not call base.OnPaintBackground
29421 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29423 * XplatUIX11.cs (GetMessage):
29424 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
29425 window instead of client window
29426 - Now properly calculates NC_xBUTTONUP message coordinates
29427 - ScreenToMenu now properly calculates it's coordinates of whole
29428 window, since menus are in the whole window, not in the client
29430 - Added WholeToScreen coordinate translation method
29432 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29434 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
29435 want to return a message, loop back to the beginning of the function
29436 and grab the next real message to process instead.
29438 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29440 * Splitter.cs: Properly set limits if no filler control is used
29442 2005-10-19 Jackson Harper <jackson@ximian.com>
29444 * ColorDialog.cs: Don't show the help button if it is not enabled
29445 instead of disabling it (this is what MS does). Don't create the
29446 panel until the dialog is run, otherwise the vars (such as
29447 ShowHelp) are not set yet.
29449 2005-10-19 Jackson Harper <jackson@ximian.com>
29451 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
29452 are reduced when adding nodes.
29454 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
29457 2005-10-19 Jackson Harper <jackson@ximian.com>
29459 * FolderBrowserDialog.cs: End editing our treeview so the window
29460 actually gets refreshed.
29462 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29464 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
29465 Obsoleted handling of WM_ERASEBKGND, now always draws our background
29468 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29470 * MenuAPI.cs: Returns after Hidding window
29471 * XplatUIX11.cs: Added TODO found while debugging menu issues
29473 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29475 * XplatUIX11.cs: Do not re-map the whole window when it's size
29476 becomes non-zero unless it's supposed to be actually visible
29478 2005-10-18 Jackson Harper <jackson@ximian.com>
29480 * TreeView.cs: We don't need to keep a count anymore.
29481 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
29482 use the Grow method.
29484 2005-10-18 Jackson Harper <jackson@ximian.com>
29486 * TreeNodeCollection.cs: Insert is not supported on arrays, so
29487 implement it manually here.
29489 2005-10-18 Jackson Harper <jackson@ximian.com>
29491 * ImageList.cs: Dont kill the list when the colour depth is
29492 changed, just change the colour depth of all the images.
29493 - Same goes for setting the image size. Just resize them all
29494 instead of killing the list softly.
29496 2005-10-18 Jackson Harper <jackson@ximian.com>
29498 * Control.cs: Don't invalidate empty rectangles.
29500 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29503 - Adds checked item to the Checked/Item lists (where empty before)
29504 - Do not add items to the Selected lists if they are already present
29506 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
29507 - When deleting items make sure that we delete them for the Selected
29508 and Checked list also.
29510 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29512 * Label.cs: Dispose objects no longer used
29513 * ThemeWin32Classic.cs: Dispose objects no longer used
29515 2005-10-18 Jackson Harper <jackson@ximian.com>
29517 * TabControl.cs: Don't refresh the whole control when the tabs are
29518 scrolled, we just need to refresh the tab area.
29520 2005-10-17 Jackson Harper <jackson@ximian.com>
29522 * XplatUIX11.cs: Compress code a little bit. Only calculate the
29523 after handle when we need it.
29525 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29527 * Control.cs: When the parent size changes, recalculate anchor
29528 positions. Partial fix for #76462
29530 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29532 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
29533 drawn. Fixes #76462
29535 2005-10-17 Jackson Harper <jackson@ximian.com>
29537 * MonthCalendar.cs: Don't create the numeric up down until our
29538 handle is created. Otherwise our handle is created in the
29539 constructor and we don't know if we are a WS_CHILD or WS_POPUP
29542 2005-10-17 Jackson Harper <jackson@ximian.com>
29544 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
29547 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29548 * TreeNode.cs : small logical fix (was using local var instead of field)
29550 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
29552 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
29554 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
29556 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
29558 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
29561 - Re-implemented anchoring code. My first version was really broken.
29562 This fixes bug #76033. Unlike the previous implementation we will
29563 no longer have round errors since all numbers are calculated from
29564 scratch every time. Removed various anchor-related obsolete vars.
29565 - InitLayout no longer causes layout event firing and layout to be
29568 2005-10-16 Jackson Harper <jackson@ximian.com>
29570 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
29573 2005-10-16 Jackson Harper <jackson@ximian.com>
29575 * TabControl.cs: Remove debug code.
29577 2005-10-16 Jackson Harper <jackson@ximian.com>
29579 * XEventQueue.cs: Increase the default queue size (very simple
29580 apps needed to grow the queue).
29581 * Hwnd.cs: No finalizer so we don't need to suppress
29582 finalization. Compute the invalid area manually so a new rectangle
29583 does not newto be created.
29584 * ScrollableControl.cs: Don't set any params (otherwise visibility
29585 isn't set correctly).
29586 * MdiChildContext.cs: New constructor takes the mdi parent so it
29587 doesn't have to be computed and avoids a crash on windows. Draw
29588 the window icon properly, and allow the text to be seen.
29589 * Form.cs: Use new MdiChildContext constructor. Make sure the
29590 child context isn't null in wndproc.
29591 * TabControl.cs: Don't set focus, this is muddling keyboard
29592 behavoir. Expand the tab rows when a window size increase will
29593 allow extra tabs to be seen. Don't allow tabs smaller than the
29594 width of a window to be scrolled out of view.
29596 * TreeView.cs: Use measure string to calculate a nodes width, the
29597 width is cached and only updated when the text or the font is
29598 changed. Don't check for expand/collapse clicks on the first level
29599 nodes if root lines are disabled.
29601 2005-10-16 Ritvik Mayank <mritvik@novell.com>
29603 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
29605 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
29607 * DataGridBoolColumn.cs: fixes warning
29609 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
29611 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
29612 to match more to match more precisely the MS Net behavior
29614 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29616 * Hwnd.cs: Added field to track if window is mapped
29618 - Unmap windows if they become 0-size, re-map when
29619 they are >0 again; fixes #76035
29620 - Re-set our error handler after initializing X11Desktop
29621 to override any error handlers Gtk or whatever was called
29624 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29626 * CheckedListBox.cs: Removed unused vars
29627 * ListView.cs: Fixed signatures
29628 * RichTextBox.cs: Removed unused vars
29629 * TextBoxBase.cs: Removed unused vars
29630 * XplatUIWin32.cs: Removed unused vars
29631 * XplatUIX11.cs: Removed unused vars
29632 * XplatUI.cs: Updated version and date to latest published
29634 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29636 * Cursor.cs: Added private .ctor to work around a bug in
29637 resourceset (Thanks to Geoff Norton for the help on this)
29638 * SplitterEventArgs.cs: Made fields accessible so we don't
29639 waste boatloads of objects and can reuse the same one
29641 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
29642 any captions and borders when generating screen coordinates
29643 * Splitter.cs: Reimplemented control, now fully complete, uses
29644 rubberband drawing, supports and obeys all properties, has
29647 2005-10-13 Miguel de Icaza <miguel@novell.com>
29649 * Form.cs (Form): Setup default values for autoscale and
29650 autoscale_base_size; Make these instance variables, not static
29653 (OnLoad): on the first load, adjust the size of the form.
29655 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29657 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
29658 width argument to DrawReversibleRectangle()
29659 * XplatUIWin32.cs, XplatUIX11.cs:
29660 - Implemented width for DrawReversibleRectangle()
29661 - Added logic to DrawReversibleRectangle that recognizes a zero
29662 width or height and only draws a line in that situation
29664 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
29666 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
29667 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
29668 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
29669 method (it uses our FosterParent window to get a graphics context)
29671 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
29673 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
29674 and SetWindowBackground methods
29676 - Setting proper ControlStyles
29677 - We no longer call XplatUI.SetWindowBackground and XplatUI.
29678 EraseWindowBackground, instead we draw the window background
29679 ourselves in PaintControlBackground. This behaviour is
29680 required to match MS, where, when OnPaintBackground is not
29681 called, the background is not drawn.
29682 - Removed unneeded Refresh() in set_Text
29683 * Hwnd.cs: Dropped the ErasePending support. No longer needed
29685 - Created DeriveStyles method to translate from CreateParams to
29686 FormBorderStyle and TitleStyle, also handles BorderStyle (which
29687 matches FormBorderStyle enum values)
29688 - Consolidated SetHwndStyles and CalculateWindowRect border/title
29689 style calculations into single DeriveStyles method
29690 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
29691 from redrawing the whole window on any resize or expose.
29692 - Fixed CreateWindow usage of SetWindowValuemask. Before not
29693 all styles were applied to our whole/client window appropriately
29694 - Removed EraseWindowBackground() and SetWindowBackground() methods
29695 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
29696 no longer clear/redraw the background through X
29697 - Removed handling of erase_pending bit, we have no use for it (or
29700 - Removed generation and handling of WM_ERASEBKGND message
29701 - Removed EraseWindowBackground() and SetWindowBackground() methods
29702 - Removed handling of hwnd.ErasePending flag
29704 - Removed EraseWindowBackground() and SetWindowBackground() methods
29705 - We no longer call EraseWindowBackground on PaintEventStart, we
29706 ignore the fErase flag, erasing is handled in Control in the
29708 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
29709 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
29710 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
29711 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
29712 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
29713 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
29714 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
29716 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
29718 * PropertyGrids.cs: Get sub properties
29719 * PropertyGridView.cs: Fix drawing code
29721 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29723 * ListBox.cs: Fixes 76383
29725 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29727 * DataGridTextBoxColumn.cs: Sets location and size before attachment
29728 * ThemeWin32Classic.cs: Fixes border drawing and calculations
29729 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
29732 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29734 * ComboBox.cs: Fixes border drawing
29736 2005-10-10 Miguel de Icaza <miguel@novell.com>
29738 * MimeIcon.cs: Ignore errors if the file can not be read.
29740 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29742 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
29743 - Fixed border calculations
29744 - Fixed horizontal scrolling in single column listboxes
29745 - Fixed drawing issues
29747 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
29749 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
29750 FormBorderStyle enum
29751 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
29752 code to determine FormBorderStyles from CreateParams
29754 - Fixed bug where we'd set the wrong window styles if we were
29755 not creating an MDI window
29756 - Added call to XplatUI.SetBorderStyle when form borders are set
29757 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
29759 - Removed obsolete edge style
29760 - Switched from BorderStyle to FormBorderStyle
29762 2005-10-10 Jackson Harper <jackson@ximian.com>
29764 * Form.cs: Use the property to get the window handle instead of
29765 accessing it directly. Prevents a null reference exception.
29767 2005-10-10 Jackson Harper <jackson@ximian.com>
29769 * TreeView.cs: Don't adjust the rect given to DrawString now that
29770 our libgdiplus draws correctly.
29772 2005-10-08 Jackson Harper <jackson@ximian.com>
29774 * TreeView.cs: Don't try to find the clicked on node if there are
29775 no nodes in the tree.
29777 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
29783 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
29785 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
29786 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
29788 Use ResPool for brushes and dispose System.Drawing objects that
29789 are not used anymore.
29791 2005-10-07 Jackson Harper <jackson@ximian.com>
29793 * MdiChildContext.cs: Use the new borders instead of drawing them
29796 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
29798 * Calling UpdateBounds after changing the window's BorderStyle
29799 since the style can change the ClientSize
29801 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29803 * Control.cs: Made PaintControlBackground virtual
29804 * Panel.cs: Overriding PaintControlBackground instead of using paint
29805 event; paint event method was interfering with 'real' users of the
29808 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
29810 * ThemeWin32Classic.cs: remove border drawing since it is handled
29811 by the base control class now and was causing double border drawing.
29813 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29815 * Panel.cs: Redraw our background on paint. Not a pretty solution,
29816 but it does seem to match MS behaviour. This fixes bug #75324
29818 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29820 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
29821 somewhat hackish looking
29823 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29826 - We now accept Enter even if AcceptEnter is false, if the containing
29827 form does not have an AcceptButton configured (fixes bug #76355)
29828 - Calculations are now fixed to no longer use Width/Height, but
29829 ClientSize.Width/Height, since we now support borders (this was
29830 a result of fixing borders and therefore bug #76166)
29831 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
29832 true (fixes bug #76354)
29834 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29837 - Defaulting BorderStyle and setting it in XplatUI when our window
29839 - Added enum check to InternalBorderStyle setter
29841 - Added drawing of window borders
29842 - Now properly calculates WM decorations offset for toplevel
29843 windows (fixes bug #74763)
29845 - Implemented BorderStyles for windows (we're letting win32 draw
29847 - Fixed the signature for SetWindowLong
29848 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
29849 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
29851 * UpDownBase.cs: Remove drawing of borders, this is handled by
29852 the driver, outside the client area
29853 * ListView.cs: Removed bogus border calculations. The control should
29854 be oblivious to borders, since those are not part of the client
29856 * X11DesktopColors.cs: Commented out (currently) unneeded variables
29857 * ThemeWin32Classic.cs: Removed border calculations from ListView
29860 2005-10-06 Jackson Harper <jackson@ximian.com>
29862 * MdiChildContext.cs: Clear out the old virtual position remove
29863 all the unneeded calls to CreateGraphics.
29865 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29867 * TextControl.cs: Use proper color for highlighted text; fixes #76350
29869 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29872 - Added loading and setting of our new default icon
29873 - Only set icon if window is already created
29875 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29878 - Do not explicitly set the foreground and background colors, to
29879 allow inheriting from parents (fixes #76302)
29880 - Use Control's InternalBorderStyle property to deal with borders
29882 2005-10-06 Jackson Harper <jackson@ximian.com>
29884 * MdiChildContext.cs: Use the new xplatui function to draw a
29887 2005-10-06 Jackson Harper <jackson@ximian.com>
29889 * Form.cs: Add the parent before creating the child context cause
29890 we need the parent when setting up the child.
29892 2005-10-06 Jackson Harper <jackson@ximian.com>
29894 * FolderBrowserDialog.cs: redo the tree population code so a
29895 second thread isn't used. Should be a lot faster and more stable
29898 2005-10-05 Jackson Harper <jackson@ximian.com>
29900 * TreeView.cs: There are no expand/collapse boxes if the node has
29903 2005-10-05 Jackson Harper <jackson@ximian.com>
29905 * X11DesktopColors.cs: Get menu colours for the gtk theme.
29907 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
29909 * FileDialog.cs: Fix InitialDirectory
29911 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
29914 - Fixes changing between styles
29915 - Fixes simple mode
29916 - Fixes last item crashing when navigating with keyboard
29918 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
29920 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
29922 2005-10-05 Jackson Harper <jackson@ximian.com>
29924 * TreeView.cs: If updating the root node do a full refresh.
29925 * TreeNode.cs: The root node should be expanded by default. Also
29926 added a utility prop to tell if we are the root node.
29927 * TreeNodeCollection.cs: Only refresh if the node we are being
29928 added to is expanded. Also added a comment on a potential
29931 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
29933 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
29934 in dispose method. Fixes #76330
29936 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
29938 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
29940 - Implements vertical and horizontal scrolling using XplatUI
29941 - Fixes keyboard navagation
29942 - Fixes EnsureVisible
29944 - Handles and draws focus properly
29947 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
29949 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
29950 Create handle. NET_2_0: Destroy handle when value is null.
29952 2005-10-03 Jackson Harper <jackson@ximian.com>
29954 * ScrollBar.cs: My last scrollbar patch was broken. This is a
29955 revert and a new patch to prevent the thumb from refreshing so
29958 2005-10-02 Jackson Harper <jackson@ximian.com>
29960 * ScrollBar.cs: Don't update position if it hasn't actually
29961 changed. This occurs when you hold down the increment/decrement
29962 buttons and the thumb gets to the max/min.
29964 2005-10-01 Jackson Harper <jackson@ximian.com>
29967 * MdiChildContext.cs:
29968 * MdiClient.cs: Implement ActiveMdiChild in Form.
29970 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
29972 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
29974 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
29976 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
29979 2005-09-30 Jackson Harper <jackson@ximian.com>
29981 * ListBox.cs: Don't do a full refresh unless some data has
29984 2005-09-30 Jackson Harper <jackson@ximian.com>
29986 * TreeView.cs: Make sure that the checkboxes size is factored in
29987 even when not visible.
29989 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29991 * FileDialog.cs: Fix Jordi's build break
29993 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
29996 - Use standard the Windows colours for the combobox as espected
29997 - Dispose objects that use resouces when no longer need them
29999 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30001 * X11DesktopColors.cs: Initial incomplete implementation
30002 * XplatUIX11.cs: Added call to initialize X11DesktopColors
30004 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30007 - Switched Theme color names to match the names defined in
30008 System.Drawing.KnownColors. Life's hard enough, no need to make
30010 - Added setters to all theme color properties so themes can set
30011 their color schemes. The setters also propagate the color changes
30012 to System.Drawing.KnownColors via reflection
30013 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30014 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30015 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30016 use the new, more logical theme color names
30017 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30019 * ThemeWin32Classic.cs:
30020 - Removed code to set the old classic Windows colors. Instead it
30021 now relies on the colors returned by System.Drawing.KnownColors
30022 which will be either modern static colors (Unix) or colors
30023 read from the user's configuration (Win32)
30024 - Updated to use the new, more logical theme color names
30025 - Switched DataGrid drawing code to use only Theme colors instead of
30026 a mix of System.Drawing.KnownColors and Theme colors
30027 - DrawFrameControl(): Removed code that fills the button area, the
30028 fill would overwrite any previous fill done by a control. This
30030 - Added DrawReversibleRectangle() stub
30031 * ScrollableControl.cs: Set visible state to false when scrollbars
30032 are removed (pdn fix)
30033 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
30034 DrawReversibleRectangle() method to allow drawing primitive
30036 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30038 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30040 * ImageList.cs: Add(Icon): Create handle.
30042 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30045 * ThemeWin32Classic.cs:
30046 - Fixes detail mode
30048 - Issues with drawing
30050 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30052 * ImageList.cs: Moved RecreateHandle back to ImageList as event
30053 source has to be the ImageList.
30055 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30057 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30059 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30061 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30063 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30065 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30067 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
30068 * GridItem.cs: Fixed TODOs
30069 * GridItemCollection.cs: Added ICollection interface
30071 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30073 * ImageList.cs: Resize icons when needed.
30075 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
30078 - Fixes GetBounds and returns on screen rects
30080 - Fixes vertical and horzintal scrolling of items
30081 * ThemeWin32Classic.cs:
30084 2005-09-29 Raja R Harinath <harinath@gmail.com>
30086 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30088 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
30090 * ImageList.cs: Added comments about handle creation. Moved Handle,
30091 HandleCreated and OnRecreateHandle implementations to ImageCollection.
30092 Handle is created in Add methods.
30094 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30096 * DataGridDrawingLogic.cs:
30097 - Takes rows into account on Colum calculations
30098 - Returns the column when clickig
30100 - Fixes default HitTestInfo values
30101 - Fixes HitTestInfo.ToString
30102 - Fixes ResetBackColor
30104 2005-09-28 Jackson Harper <jackson@ximian.com>
30106 * MdiChildContext.cs: Obey rules for fixed sized windows (no
30107 sizing or cursor changes). Also added some temp code to draw the
30108 titlebars text (Makes dev a little easier).
30110 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
30112 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30114 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30116 * ListBox.cs: Fixes bug 76253
30118 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
30120 * ImageList.cs: Added comments about the current implementation. Added
30121 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30122 Format32bppArgb to preserve transparency and can use Graphics.FromImage
30123 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30124 with Bitmap.LockBits for better performance. Revised the whole file to
30125 match MS.NET behaviour and provide better performance. Non-public
30126 interface members are calling public members even when they throw
30127 NotSupportedException for better maintainability. Moved ColorDepth,
30128 ImageSize, ImageStream and TransparentColor implementations to
30129 ImageCollection for better performance as these properties are not used
30131 * ImageListStreamer.cs: Added a new internal constructor that takes an
30132 ImageList.ImageCollection and serializes Images based on
30133 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30134 match ImageList property name.
30136 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
30138 * ListBox.cs: Fixes IndexFromPoint for last item
30140 2005-09-27 Jackson Harper <jackson@ximian.com>
30142 * Form.cs: Set the position of new mdi children correctly.
30144 2005-09-27 Jackson Harper <jackson@ximian.com>
30146 * MdiClient.cs: New mdi children need to be added to the back of
30147 the controls collection so the zorder is set correctly. Also add a
30148 count of all the child windows that have been created.
30150 2005-09-27 Jackson Harper <jackson@ximian.com>
30152 * Form.cs (CreateParams): Setup MDI forms correctly.
30154 2005-09-27 Jackson Harper <jackson@ximian.com>
30156 * MdiChildContext.cs:
30157 * MonthCalendar.cs:
30163 * ScrollableControl.cs:
30164 * ComboBox.cs: Add implicit controls using the new implict control
30165 functionality in ControlCollection. Also try to block multiple
30166 control add in a suspend/resume layout to save some cycles.
30168 2005-09-27 Jackson Harper <jackson@ximian.com>
30170 * Control.cs: Add functionality to the controls collection to add
30171 'implicit controls' these are controls that are created by the
30172 containing control but should not be exposed to the user. Such as
30173 scrollbars in the treeview.
30174 * Form.cs: The list var of the ControlsCollection is no longer
30175 available because of the potential of implicit controls getting
30176 ignored by someone accessing the list directly.
30178 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
30180 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30181 loose it's parent. (Fixed bug introduced in r49103 when we added
30182 setting the child parent to null on Remove)
30184 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
30186 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30187 * Splitter.cs: Added missing attributes for BorderStyle property.
30188 * TextBoxBase.cs: Marked Calculate* methods internal.
30189 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30192 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
30194 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30196 2005-09-25 Jackson Harper <jackson@ximian.com>
30198 * TreeView.cs: Update the node bounds correctly regardless of
30199 whether the node is visible.
30201 2005-09-25 Jackson Harper <jackson@ximian.com>
30203 * ImageList.cs: Don't dispose the image after it is added to the
30204 image list. Only reformat images that need to be resized.
30206 2005-09-25 Jackson Harper <jackson@ximian.com>
30208 * ImageList.cs: Don't set the format when changing the image.
30210 2005-09-25 Jackson Harper <jackson@ximian.com>
30212 * TreeView.cs: We can't just assume the node has a font. Use the
30213 treeviews font if no node font is available.
30215 2005-09-25 Jackson Harper <jackson@ximian.com>
30217 * TreeView.cs: Allow the scrollbars to be reset with negative
30219 - Don't add scrollbars to negative sized windows.
30221 2005-09-23 Jackson Harper <jackson@ximian.com>
30223 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30224 old Mono.Posix. Also remove some stray code that shouldn't have
30227 2005-09-23 Jackson Harper <jackson@ximian.com>
30229 * TreeView.cs: Attempt at proper sizing of the horizontal
30230 scrollbar. Also don't resize the scrollbars unless they are
30233 2005-09-23 Jackson Harper <jackson@ximian.com>
30235 * TreeView.cs: We don't need to expand the invalid area when the
30236 selection changes, as this is all drawn in the node's bounding
30237 box. The area needs to be expanded (previous typo was contracting
30238 it) when the focus rect moves.
30240 2005-09-23 Jackson Harper <jackson@ximian.com>
30242 * TreeView.cs: Display the selection box under the correct
30243 circumstances. We were rendering white text with no selection box
30246 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
30248 * TextControl.cs(Split): Now updates selection start/end if it points
30249 into a line that's being split. Fixes a FIXME and bug #75258
30251 2005-09-23 Jackson Harper <jackson@ximian.com>
30254 * ListControl.cs: Don't use the path when retrieving binding
30255 managers from the binding context. My bat sense tells me that the
30256 path is only used on insertion.
30258 2005-09-22 Jackson Harper <jackson@ximian.com>
30260 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30262 2005-09-22 Jackson Harper <jackson@ximian.com>
30264 * Splitter.cs: There are special cursors used for splitting.
30265 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30267 2005-09-22 Jackson Harper <jackson@ximian.com>
30269 * Splitter.cs: Change the cursor appropriately when the splitter
30270 is moused over, so the user actually knows there is a splitter
30273 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30275 * Label.cs : Fix ToString method to give same output as MS.NET
30277 2005-09-22 Jackson Harper <jackson@ximian.com>
30279 * TreeView.cs: Create the scrollbars when the handle is created
30280 and add them right away, just make them invisble. Also account for
30281 the window being shrunk vertically to the point that the vert
30282 scrollbar needs to be added.
30283 - Remove some 0.5 adjustments to get around anti aliasing issues.
30285 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
30287 * MainMenu.cs: Fixes default value
30288 * MenuItem.cs: Fixes default value
30290 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
30292 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30294 2005-09-21 Jackson Harper <jackson@ximian.com>
30296 * Control.cs: Don't try to set the border style on the window if
30297 it hasn't been created. When the window is created the border
30298 style will be used.
30300 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30302 * Control.cs (Update): Don't call XplatUI if we don't have a
30305 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30307 * ContainerControl.cs: Instead of throwing an exception, print
30308 a one-time warning about Validate not being implemented
30309 * XplatUIWin32.cs: Removed debug output
30311 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30313 * Control.cs: Only set XplatUI background if we expect the windowing
30314 system to handle the background. This stops controls that draw their
30315 own background from flickering
30317 * XplatUIX11.cs: Support custom visuals and colormaps for window
30318 creation. This allows, amongst other things, using MWF X11 windows
30321 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30323 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30324 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30325 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30326 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30327 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30328 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30329 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30330 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30331 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30332 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30333 GridColumnStylesCollection.cs,
30334 IDataGridColumnStyleEditingNotificationService.cs,
30335 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30336 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30337 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
30338 TreeNodeCollection.cs, AmbientProperties.cs,
30339 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30340 DataObject.cs, ErrorProvider.cs, Splitter.cs,
30341 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30342 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30343 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30344 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30345 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30346 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30347 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30348 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30349 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30350 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30351 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30352 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30353 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30354 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30355 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30356 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30357 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30358 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30359 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30360 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30361 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30362 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30363 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30364 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30365 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30366 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30367 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30368 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30369 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30370 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30371 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30372 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30373 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30374 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30375 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30377 2005-09-21 Jackson Harper <jackson@ximian.com>
30379 * TreeNode.cs: Call Before/After Expand not Collapse when
30382 2005-09-20 Jackson Harper <jackson@ximian.com>
30384 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30386 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30390 - Fixes proper storing of subitems
30391 - Fixes not updated items
30393 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30395 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30396 things if our window handle isn't created yet. Also disabled
30397 debug for TextBoxBase
30399 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30401 * MenuAPI.cs: Remove filtering of events to allow menu usage
30403 2005-09-20 Miguel de Icaza <miguel@novell.com>
30405 * Cursor.cs: Allow null to be passed to Cursor.Current.
30407 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
30409 * ThemeWin32Classic.cs:
30410 - Change some private methods/fields to protected virtual so that
30411 they can be accessed and overriden in derived classes
30412 - First refactoring of some methods. Derived themes now don't
30413 need to duplicate the complete code from ThemeWin32Classic
30415 - Added nice StatusBar
30416 - Derive from ThemeWin32Classic and not Theme
30417 - Removed duplicate ThemeWin32Classic code
30419 2005-09-20 Miguel de Icaza <miguel@novell.com>
30421 * Control.cs (ControlCollection.Add): If the value null is passed
30422 the control is ignored.
30424 Optimize this loop.
30426 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30428 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
30429 PostQuitMessage state.
30430 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
30432 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30434 * Application.cs: Our constructor will never get called, move
30435 initialization to fields; fixes bug #75933
30437 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30440 - Allow files to be selected properly using file name
30442 - Add ability to change diretory (absolute / relative)
30443 using file name combo box.
30445 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30448 - Fixes Multicolumn listboxes item wrong calculations
30449 - Allows to click when only one item is in the listbox
30450 - Fixes crash when no items using keyboard navigation
30452 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
30454 * ComboBox.cs: Reverted almost everything from the latest patch which
30457 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
30460 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
30462 - When DropDownStyle is Simple, it does not show scrollbar
30463 to the last item of the list.
30464 - When DropDownStyle is Simple, it crashed when the list was
30465 scrolled down with the down cursor key.
30466 - Fixed a bug that when DropDownStyle is DropDownList, the
30467 selected item was not shown.
30468 - The position of the selected item was not preserved when
30469 the next dropdown happened.
30470 * ThemeWin32Classic.cs:
30471 - Items were wrapped at the right end.
30472 * CheckedListBox.cs:
30475 - Items should be fully shown.
30476 - When resizing and vertical scrollbar disappeared, the item
30477 of index 0 should be on the top of the list.
30478 - GetItemRectangle should consider the size of ver. scrollbar
30480 - SizingGrip area should not be allocated when it is not
30482 - Now it reflects MinWidth of the containing panel and
30483 fixed a crash that happens when its width becomes so small.
30485 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30487 * CheckedListBox.cs: Fixes bug 76028
30488 * ListBox.cs: Fixes bug 76028
30490 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30492 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
30493 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
30495 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
30497 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
30499 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30501 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
30503 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30505 * IRootGridEntry.cs: Added
30506 * PropertyGridCommands.cs: Added
30507 * PropertiesTab.cs: Added missing methods and property
30508 * PropertyGridView.cs: Made class internal
30509 * PropertyGridTextBox.cs: Made class internal
30511 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30513 * MimeIcon.cs: Try to check some other environment variables
30514 if "DESKTOP_SESSION" returns "default"
30516 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30518 * ThemeNice.cs: Corrected background colors (e.g. menus)
30519 * ColorDialog.cs: Use correct background colors for controls
30521 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30523 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
30525 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
30527 * RichTextBox.cs: Added initial implementation
30528 * lang.cs: Removed. Was accidentally checked in long time ago
30529 * TODO: Removed. Contents were obsolete
30531 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30533 * PropertiesTab.cs : Added
30535 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30537 * PropertyGrid.cs : Update
30538 * PropertyGridView.cs : Update
30539 * System.Windows.Forms.resx : Added images and strings
30541 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
30543 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
30545 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
30547 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
30548 a busy loop right after the Ungrab the X11 display is otherwise
30551 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
30553 * ThemeWin32Classic.cs: Optimise the use of clipping
30555 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
30557 * DataGrid.cs: fixes recursion bug
30559 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
30562 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
30565 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
30567 * ThemeNice.cs: Draw nice ProgressBars
30569 2005-09-01 Miguel de Icaza <miguel@novell.com>
30571 * VScrollBar.cs: Another buglet found by Aaron's tool.
30573 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
30576 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
30579 - Added nicer menu drawing
30583 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30585 * CreateParams.cs (ToString): Made output match MS
30586 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
30587 handle is already created (to avoid forcing window creation)
30588 * XplatUIX11.cs: Set window text to caption after creating window,
30589 in case Text was set before window was created
30590 * Form.cs: Use this.Text instead of a static string as caption
30592 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30594 * NotifyIcon.cs: Don't set the window to visible; this screws
30595 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
30596 OnPaint without a bitmap)
30597 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
30598 happen very often anyway; we could add the check to the WM_PAINT
30599 event generation code
30601 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30603 * NotifyIcon.cs: Fill the icon area with a background color, to
30604 avoid 'residue' when transparent icons are drawn
30606 - Handle whole_window == client_window when destroying windows
30607 - SystrayAdd(): Set client_window to whole_window value to
30608 get mouse and other events passed to NotifyIcon
30610 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30612 * Form.cs: Set proper default for Opacity property
30614 - ShowSystray(): Don't bother creating telling the OS
30615 about the systray item if no icon is provided
30616 - Now handles WM_NCPAINT message to deal with whole/client window
30618 - Create window as visible to not get caught by Expose optimization
30619 * Hwnd.cs: Removed debug message
30620 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
30621 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
30622 PaintEventStart/End to use new client argument
30624 - Commented out debug messages
30625 - Switched PaintEventStart/End to use new client argument
30626 * XplatUI.cs: Added client window bool to PaintEventStart()/
30627 PaintEventEnd() calls, to support drawing in non-client areas
30628 * XplatUIDriver.cs:
30629 - Added client window bool to PaintEventStart()/PaintEventEnd()
30630 calls, to support drawing in non-client areas
30631 - Added conditional compile to allow using MWF BeginInvoke
30634 - Added some conditional debug output
30635 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
30636 whole/client window split
30637 - Implemented handling of client argument to PaintEventStart()/End()
30639 - Throw exception if BeginInvoke() is called and the window handle
30640 or one of the window's parent handles is not created
30641 - Added conditional compile to allow using MWF BeginInvoke on
30643 - get_Parent(): Only sets parent if handle is created. This avoids
30644 forcing window handle creation when parent is set.
30645 - Now fires Layout and Parent changed events in proper order
30646 - Switched to use Handle instead of window.Handle for Z-Order setting,
30647 the get_Parent() patch above causes us to possibly get null for 'window'
30648 - Implemented handling of client argument to PaintEventStart()/End()
30649 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
30651 - Now sends a Refresh() to all child windows when Refresh() is called
30653 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
30655 * Form.cs: Added (non-functional) Opacity property
30656 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
30658 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
30659 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
30660 use export MONO_THEME=nice to activate it.
30661 Currently supported controls:
30665 - TabControl (TabAlignment.Top only, other will follow)
30666 * ThemeEngine.cs: Add theme nice
30667 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
30670 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
30672 * Splitter.cs: Resize docked control and its neighbor.
30674 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30675 -- Making Windows with Menus layout correctly --
30676 * Form.cs : The first leg of the fix
30677 Menu setter - adjust Client Size as needed to make space for the menu
30678 SetClientSizeCore - doesn't call base version to be able to pass the
30679 menu handle to XplatUI.CalculateWindowRect
30680 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
30681 * XplatUIX11.cs: The critical second leg of the fix
30682 GetWindowPos needs to use a recalculated client_rect
30683 so that resizing the window doesn't break layout of child controls.
30684 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
30685 Lots of \t\n killed
30687 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
30689 * Label.cs: Now properly recalculates width and height on Font and Text
30690 changes if AutoSize is set
30692 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30693 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
30695 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
30697 * ImageList.cs: Makes ToString method compatible with MS
30699 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
30701 * MenuAPI.cs: fixes bug 75716
30703 2005-08-11 Umadevi S <sumadevi@novell.com>
30704 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
30706 2005-08-11 Umadevi S <sumadevi@novell.com>
30707 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
30709 2005-08-10 Umadevi S <sumadevi@novell.com>
30710 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
30712 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
30714 * Menu.cs: fixes bug 75700
30715 * MenuAPI.cs: fixes navigation issues
30717 2005-08-09 Umadevi S <sumadevi@novell.com>
30718 * CheckedListBox.cs - simple fix for GetItemChecked.
30720 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
30722 * ComboBox.cs: Serveral fixes
30723 * ListBox.cs: Serveral fixes
30725 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
30727 * ComboBox.cs: Fixes FindString methods and GetItemHeight
30728 * ListBox.cs: Fixes FindString methods
30730 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
30732 * DataGrid.cs: fixes bugs exposed by new tests
30734 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
30736 * Mime.cs: Compile Mono assembly references only if compiling
30737 with Mono (Allows to build with VS.Net again)
30739 2005-07-28 Marek Safar <marek.safar@seznam.cz>
30741 * Control.cs (PaintControlBackground): Draw background image
30743 (CheckForIllegalCrossThreadCalls): Stubbed.
30745 * Form.cs (OnCreateControl): Center when should be centered.
30747 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
30749 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
30751 * Binding.cs: Binding to properties should be case unsensitive
30753 2005-07-18 vlindos@nucleusys.com
30755 * DataGrid.cs: fixes setmember order
30757 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
30759 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
30760 * FileDialog.cs: FileDialog is now resizable and uses the new
30763 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
30765 * DataGridTextBoxColumn.cs: default value
30766 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
30767 * GridTableStylesCollection.cs: fixes checking MappingName
30768 * DataGridDrawingLogic.cs: fixes drawing logic issues
30769 * DataSourceHelper.cs: rewritten to make compatible with more data sources
30770 * DataGrid.cs: fixes
30772 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
30774 * MimeGenerated.cs: Use case sensitive comparer for
30775 NameValueCollections
30777 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
30779 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
30780 * ThemeWin32Classic.cs: bug fixes, code refactoring
30781 * DataGridDrawingLogic.cs: bug fixes, code refactoring
30782 * DataGrid.cs: bug fixes, code refactoring
30783 * DataGridTextBox.cs: bug fixes, code refactoring
30784 * DataGridColumnStyle.cs: bug fixes, code refactoring
30785 * Theme.cs: bug fixes, code refactoring
30787 2005-07-01 Peter Bartok <pbartok@novell.com>
30789 * TextControl.cs: Quick fix for the reported crash on ColorDialog
30790 and other text box usage
30792 2005-07-01 Jackson Harper <jackson@ximian.com>
30794 * TabControl.cs: Make sure the bottom of the tab covers the pages
30797 2005-06-30 Peter Bartok <pbartok@novell.com>
30799 * Form.cs (ShowDialog): Assign owner of the dialog
30800 * TextBoxBase.cs: Always refresh caret size when deleting, caret
30801 might have been moved to a tag with different height
30803 2005-06-30 Jackson Harper <jackson@ximian.com>
30805 * Form.cs: Don't create an infinite loop when setting focus
30806 * MenuItem.cs: Don't dirty the parents if we don't have any
30808 2005-06-29 Ben Maurer <bmaurer@ximian.com>
30810 * LibSupport.cs: Rename
30812 2005-06-29 Peter Bartok <pbartok@novell.com>
30814 * TextBoxBase.cs: Re-align caret after deleting a character
30816 - DeleteChars(): Ensure that tag covers the provided position
30817 - StreamLine(): Drop reference for dropped tag
30819 2005-06-29 Peter Bartok <pbartok@novell.com>
30822 - Selections now work properly, anchoring at the initial location
30823 and properly extending in either direction (SetSelectionToCaret(),
30824 SetSelectionStart() and SetSelectionEnd())
30825 - No longer redraws the whole control on selection change, now
30826 calculates delta between previous and new selection and only
30827 invalidates/redraws that area
30828 - Fixed FindPos() math off-by-one errors
30829 - Changed DeleteChars() to verify the provided tag covers the
30830 provided position, selections may have a tag that doesn't cover
30831 the position if the selection is at a tag border
30832 - Fixed off-by-one errors in DeleteChars()
30833 - Added missing streamlining check in DeleteChars() to remove
30835 - Implemented Invalidate() method, now properly calculates exposures
30836 between two given lines/positions
30837 - Implemented SetSelection()
30838 - Obsoleted and removed FixupSelection()
30839 - Improved RecalculateDocument() logic, removing code duplication
30841 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30843 * LibSupport.cs: changes to match different input/output arguments.
30845 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30847 * LibSupport.cs: added libsupport.so init routine.
30849 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
30851 * ControlBindingsCollection.cs
30852 - Throws an exception on null datasource when adding
30853 - Checks for duplicated bindings when adding
30855 2005-06-28 Jackson Harper <jackson@ximian.com>
30857 * TreeView.cs (OnKeyDown): Support left and right properly
30858 (navigates as well as expanding and collapsing.
30859 - Add support for Multiply, this expands all the selected nodes
30861 - Fix some tabbing.
30863 2005-06-28 Jackson Harper <jackson@ximian.com>
30865 * TreeView.cs: Implement keyboard navigation, currently supports,
30866 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
30867 support for toggling checkboxes with the space bar.
30869 2005-06-28 Jackson Harper <jackson@ximian.com>
30871 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
30874 2005-06-28 Jackson Harper <jackson@ximian.com>
30876 * TreeView.cs: Add missing event.
30878 2005-06-27 Peter Bartok <pbartok@novell.com>
30881 - Made line ending size configurable (now allows for counting
30882 lineendings as \n or \r\n)
30883 - Added margin to viewport to keep caret visible on right side
30884 - Fixed translation routines for line/pos to documentpos to consider
30885 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
30886 - Fixed some line-endings to be unix style
30887 - Fixed Document.FormatText to perform it's calculations 1-based
30888 - Added descriptions for a few methods that might otherwise get
30890 - Added NOTE section with some basic conventions to remember at
30891 the top of the file
30892 - Major fixup for RichTextBox selection drawing:
30893 * Fixed crashes when multiple tags on a single line were selected
30894 * fixed selection box drawing not overlaying text
30895 * fixed bogus offset calculation for tags not starting at index 1
30896 * Switched behaviour from using multiple Substrings of a
30897 StringBuilder.ToString() to using multiple
30898 StringBuilder.ToString(start, length) statements, hoping this is
30899 faster (kept original version commented out in the code, in case
30900 original version was faster)
30901 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
30903 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
30906 2005-06-27 Jackson Harper <jackson@ximian.com>
30908 * TabControl.cs: Move to the left and right with the arrow
30909 keys. These keys don't cycle beyond first and last like
30910 tab. Refresh all the tabs when scrolling them to the left or
30913 2005-06-27 Jackson Harper <jackson@ximian.com>
30916 - ToString: Added method
30917 - CreateParams: Remove TODO and comment
30918 - OnKeyDown: Cycle through bounds properly.
30919 - SelectedIndex: Scroll to the right or left if we need to
30920 display the newly selected tab.
30922 2005-06-23 Jackson Harper <jackson@ximian.com>
30924 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
30927 2005-06-23 Jackson Harper <jackson@ximian.com>
30929 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
30930 CTRL-SHIFT-TAB, and HOME, END are there any others?
30932 2005-06-23 Jackson Harper <jackson@ximian.com>
30934 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
30936 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
30938 * DataGridTextBoxColumn.cs: fixes and enhancements
30939 * ThemeWin32Classic.cs: fixes and enhancements
30940 * DataGridBoolColumn.cs: fixes and enhancements
30941 * DataGridDrawingLogic.cs: fixes and enhancements
30942 * CurrencyManager.cs: fixes and enhancements
30943 * DataGrid.cs: fixes and enhancements
30944 * DataGridColumnStyle.cs: fixes and enhancements
30946 2005-06-22 Jackson Harper <jackson@ximian.com>
30948 * TabControl.cs: Add some missing methods that just call into the
30949 base. Make the TabPageCollection's IList interface behave in the
30950 same manner as the MS implementation.
30952 2005-06-22 Peter Bartok <pbartok@novell.com>
30954 * TextControl.cs: Added sanity check
30956 - Fixed wrapping behaviour, don't set wrap on single line controls
30957 (this fixes the breakage of colordialog introduced in an earlier
30959 - Added rudimentary support for autoscrolling right-aligned controls
30960 (still needs fixing, also, center alignment scroll is missing)
30962 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
30964 * ScrollBar.cs: Fixes thumbpos on Maximum values
30966 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
30968 * PropertyGridView.cs: Pass context information to UITypeEditors
30970 2005-06-21 Peter Bartok <pbartok@novell.com>
30973 - Now calling PositionCaret with absolute space coordinates
30974 - Enabled vertical scrolling
30975 - Better tracking of scrollbar changes, tied into WidthChange
30977 - Improved cursor tracking
30978 - Removed debug output
30980 - PositionCaret coordinates are now works in absolute space, not
30982 - Improved tracking of document size
30983 - Added events for width and height changes
30985 2005-06-21 Peter Bartok <pbartok@novell.com>
30987 * Form.cs: Set focus to active control when form is activated
30989 - Added word-wrap functionality to RecalculateLine()
30990 - Added some short function descriptions for VS.Net to aid in
30991 writing dependent controls
30992 - Added Caret property, returning the current coords of the caret
30993 - Added ViewPortWidth and ViewPortHeight properties
30994 - Added Wrap property
30995 - Added CaretMoved event
30996 - Removed some old debug code
30997 - Split() can now create soft splits
30998 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
30999 - Added method to format existing text
31000 - Fixed size/alignment calculations to use viewport
31001 - RecalculateDocument now can handle changing line-numbers while
31005 - Added some wrap logic, we don't wrap if alignment is not left
31006 - Added casts for scrollbar var, base class switched types to
31007 also support RichTextBoxA
31008 - Implemented handling of scrollbar visibility flags
31011 - Switched scrollbars type to RichTextBoxScrollBars to support
31013 - Added tracking of canvas width/height
31014 - Switched scrollbars to be not selectable (to keep focus on text)
31015 - Added central CalculateDocument() method to handle all redraw
31017 - Added ReadOnly support
31018 - Added WordWrap support
31019 - Fixed handling of Enter key (we now treat it as a DialogKey)
31020 - Fixed caret positioning when h or v scroll is not zero
31021 - Fixed placing/generation of vertical scrollbar
31022 - Added CalculateScrollBars() method to allow updating scrollbar
31023 limits and visibility
31024 - Fixed handling of horizontal scroll
31025 - Added handling of vertical scroll
31026 - Implemented auto-'jump' when caret moves to close to a left or
31027 right border and there is text to be scrolled into view (currently
31028 there's the potential for a stack overflow, until a bug in
31029 scrollbar is fixed)
31031 2005-06-21 Geoff Norton <gnorton@customerdna.com>
31033 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31035 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
31039 - return application/x-zerosize for files with size zero
31040 (if no extension pattern matches).
31041 - check matches collection for strings too.
31042 - return only the first mime type if the name value
31043 collection has more than one mime type.
31045 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
31047 * PropertyGrid.cs: Cleaned up some TODOs
31048 * PropertyGridView.cs: Added support for UITypeEditors
31050 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31052 * DataGrid.cs: clears cached value
31054 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31056 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31057 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31058 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31059 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31061 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
31063 * ThemeWin32Classic.cs: fixes colour
31065 2005-06-15 Peter Bartok <pbartok@novell.com>
31067 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31068 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31069 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31070 * Control.cs: Added some MWFCategory and MWFDescription attributes
31071 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31073 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
31075 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31078 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
31080 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31081 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31082 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31083 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31084 * DataGrid.cs: default datagrid settings for Default Styles, fixes
31085 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31087 2005-06-13 Jackson Harper <jackson@ximian.com>
31089 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31090 isn't printed when the user enables dropping. (X11 does accept
31093 2005-06-13 Jackson Harper <jackson@ximian.com>
31095 * TreeView.cs: Remove some TODOS.
31097 2005-06-13 Jackson Harper <jackson@ximian.com>
31099 * Form.cs: Hook into the mdi framework.
31100 * MdiClient.cs: Use the base control collections add method so
31101 parents get setup correctly. Set the default back colour and dock
31103 * MdiChildContext.cs: New class, this bad actor handles an
31104 instance of an MDI window. Right now there is only basic
31105 support. You can drag, close, and resize windows. Minimize and
31106 Maximize are partially implemented.
31108 2005-06-13 Jackson Harper <jackson@ximian.com>
31110 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31111 freaky when both vals are negative. NOTE: There are probably other
31112 places in XplatUIX11 that this needs to be done.
31114 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
31116 * DataGrid.cs: implement missing methods, move KeyboardNavigation
31117 * DataGridColumnStyle.cs: fixes signature
31119 2005-06-12 Jackson Harper <jackson@ximian.com>
31121 * XplatUIX11.cs: Use sizing cursors similar to the ones on
31124 2005-06-11 Jackson Harper <jackson@ximian.com>
31126 * StatusBarPanel.cs: Signature cleanups. Implement
31129 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
31131 * DataGridTextBoxColumn.cs: Honors aligment
31132 * GridColumnStylesCollection.cs: Contains is case unsensitive
31133 * GridTableStylesCollection.cs: several fixes
31134 * DataGridTableStyle.cs: default column creation
31135 * DataGridDrawingLogic.cs: fixes
31136 * CurrencyManager.cs: ListName property
31137 * DataGrid.cs: multiple styles support
31138 * DataGridColumnStyle.cs: fixes
31141 2005-06-10 Peter Bartok <pbartok@novell.com>
31143 * Control.cs(Select): Moved SetFocus call to avoid potential
31144 loops if controls change the active control when getting focus
31145 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31146 the up/down buttons
31148 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
31150 * ImageListConverter.cs: Implemented
31152 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31154 * MonthCalendar.cs: Wired in NumericUpDown control for year
31156 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31158 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31159 DoubleClick events, since they are not meant to be fired.
31161 2005-06-09 Peter Bartok <pbartok@novell.com>
31163 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31164 Jonathan's standalone controls into MWF, implemented missing
31165 events, attributes and methods; added xxxAccessible classes
31166 * AccessibleObject.cs: Made fields internal so other classes
31167 can change them if needed
31169 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
31171 * UpDownBase.cs: Complete implementation
31172 * NumericUpDown.cs: Complete implementation
31173 * DomainUpDown.cs: Complete implementation
31175 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
31177 * DataGridTextBoxColumn.cs: drawing fixes
31178 * DataGridCell.cs: fixes ToString method to match MSNet
31179 * DataGridTableStyle.cs: fixes
31180 * DataGridBoolColumn.cs: fixes, drawing
31181 * DataGridDrawingLogic.cs: fixes, new methods
31182 * DataGridTextBox.cs: Keyboard and fixes
31184 - Keyboard navigation
31186 - Row selection (single, multiple, deletion, etc)
31189 2005-06-07 Jackson Harper <jackson@ximian.com>
31191 * ThemeWin32Classic.cs: Clear the background area when drawing
31194 2005-06-06 Peter Bartok <pbartok@novell.com>
31196 * ImageListStreamer.cs: Fixed signature for GetData
31197 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31199 - Added missing ChildAccessibleObject class
31200 - Added missing OnXXXFocus overrides, switched to using those
31201 instead of the event handler
31203 - Added Parent property for ControlAccessibleObject
31206 - Added ResetBindings()
31207 * ListBindingConverter.cs: Implemented some methods
31208 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31209 * ImageList.cs: Implemented basic handle scheme, removed TODOs
31210 * ContainerControl.cs: Fixed signature, now subscribing to the
31211 ControlRemoved event instead of overriding the handler, LAMESPEC
31212 * CurrencyManager.cs: Added missing attribute
31213 * MonthCalendar.cs: Added missing properties
31215 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31217 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31219 2005-06-06 Gaurav Vaish and Ankit Jain
31221 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31222 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31224 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31226 * Control.cs: fixes CreateParams Width / Height.
31228 2005-06-05 Peter Bartok <pbartok@novell.com>
31230 * Win32DnD.cs: Removed compilation warnings
31232 2005-06-05 Peter Bartok <pbartok@novell.com>
31234 * Control.cs (CreateParams): Since we don't know if one of the
31235 properties we use is overridden, lets make sure if we fail accessing
31236 we continue with a backup plan
31238 2005-06-05 Peter Bartok <pbartok@novell.com>
31241 - Removed debug output
31242 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31244 - Plugged resource leak
31245 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31248 2005-06-05 Peter Bartok <pbartok@novell.com>
31250 * XplatUIWin32.cs: Removed DnD code
31251 * Win32DnD.cs: Implemented drop source and drop target functionality
31253 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31255 * UpDownBase.cs: remove duplicate addition of event, enable some code
31256 that was commented out.
31257 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31258 Validate input when a key is pressed. It works fine now for every
31259 combination of Hexadecimal. Only missing some drawing love when sharing
31260 space with other controls.
31262 2005-06-04 Peter Bartok <pbartok@novell.com>
31265 - We need to pass a window for DragDrop, so enable callback events
31266 - Added DnD callback events when being a DragSource
31267 * XplatUI.cs (StartDrag): Added window handle argument
31268 * XplatUIDriver.cs (StartDrag): Added window handle argument
31269 * QueryContinueDragEventArgs: Made fields internally accessible so
31270 drivers can set them
31271 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31274 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
31276 * DataGridTextBoxColumn.cs: column text editing
31277 * DataGridTableStyle.cs: Respect columns styles created by the user
31278 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31279 * DataGridBoolColumn.cs: bool column editing
31280 * DataGrid.cs: fixes to scrolling, properties, etc
31281 * DataGridTextBox.cs: handle keyboard
31282 * DataGridColumnStyle.cs: fixes
31284 2005-06-02 Jackson Harper <jackson@ximian.com>
31286 * ImageListStreamer.cs: Somewhat broken implementation of
31287 GetObjectData. The RLE needs some work to match MS properly.
31289 2005-06-02 Jackson Harper <jackson@ximian.com>
31291 * X11Dnd.cs: Attempting to keep at least one file in MWF
31294 2005-06-02 Peter Bartok <pbartok@novell.com>
31296 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31299 2005-06-02 Peter Bartok <pbartok@novell.com>
31301 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31302 * XplatUI.cs: Added DoDragDrop() method
31303 * XplatUIDriver.cs: Added DoDragDrop() method
31305 2005-06-02 Jackson Harper <jackson@ximian.com>
31307 * Splitter.cs: Implement BorderStyle.
31309 2005-06-02 Jackson Harper <jackson@ximian.com>
31311 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31312 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31315 2005-06-02 Peter Bartok <pbartok@novell.com>
31318 - Added Data setter
31319 - Fixed broken insertion code for SetData, now also
31320 overwrites any existing entry of the same format name
31321 * Hwnd.cs: Added list of pointers that automatically gets
31322 freed when the window is disposed
31323 * XplatUI.cs: Call driver initialization method when loading
31326 - OnDragLeave takes EventArgs, not DragEventArgs
31327 - Added setting of WS_EX_ACCEPTFILES style when dropping is
31329 - Forces style update when drop state changes
31330 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31331 not perfect since we cannot (yet) call the IDataObject.GetData()
31332 method, we keep getting 0x80004005 error, dunno why)
31334 2005-06-02 Peter Bartok <pbartok@novell.com>
31336 * DragEventArgs.cs: Make fields internal so we can cache the
31337 object and re-set the fields from XplatUI
31339 2005-06-02 Jackson Harper <jackson@ximian.com>
31341 * Control.cs: Add some internal methods so the DnD subsystem can
31342 raise DnD events. Also call into the driver when AllowDrop is set.
31344 * XplatUIDriver.cs: New method for setting whether or not a window
31345 is allowed to accept drag and drop messages.
31347 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
31349 * ScrollBar.cs: Make sure that values sent in Scroll events
31350 are always between Maximum and Minimum.
31352 2005-06-01 Marek Safar <marek.safar@seznam.cz>
31354 * Menu.cs: Call MenuChanged when menuitem visibility has been
31356 * MenuItem.cs: Rebuild menu when item is (not) visible.
31357 * MainMenu.cs: MainMenu has special MenuChanged.
31358 * Theme.cs: Caption and FrameBorderSize are not fixed.
31359 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31360 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31362 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31363 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31365 2005-05-30 Jackson Harper <jackson@ximian.com>
31367 * DataFormat.cs: We can't statically initialize this stuff because
31368 it calls into the xplatui and could create a loop. So we lazy init
31371 2005-05-28 Jackson Harper <jackson@ximian.com>
31373 * Control.cs: Proper implementation of Product(Name/Version).
31375 2005-05-27 Jackson Harper <jackson@ximian.com>
31377 * DataObject.cs: Dont crash if no data is found.
31379 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31380 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31381 as per status page, guessing it should be set to true
31383 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
31385 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31386 * DataGridTableStyle.cs: set proper formatting text, def header text
31387 * ThemeWin32Classic.cs: new themable paramaters
31388 * DataGridBoolColumn.cs: paint check box, get data, fixes
31389 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31390 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31391 * DataGridColumnStyle.cs: fixes
31392 * Theme.cs: new themable paramaters
31394 2005-05-26 Peter Bartok <pbartok@novell.com>
31396 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31398 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31399 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31401 2005-05-24 Peter Bartok <pbartok@novell.com>
31403 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
31404 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
31405 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
31406 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
31407 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
31408 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
31409 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
31410 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
31411 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
31412 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
31413 missing attributes, etc
31414 * DataGridPreferredColumnWidthTypeConverter.cs: Added
31416 2005-05-24 Peter Bartok <pbartok@novell.com>
31418 * Help.cs: Added, implemented trivial functions, throws up MessageBox
31419 when user tries to get help
31420 * DataObject.cs, DataFormats.cs, LinkArea.cs,
31421 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
31422 to suppress warnings
31423 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
31424 avoid unreachable code warning
31426 2005-05-20 Peter Bartok <pbartok@novell.com>
31428 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
31430 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31432 * DataGridTextBoxColumn.cs: Basic painting methods
31433 * DataGridTableStyle.cs: Set table style in the column
31434 * ThemeWin32Classic.cs: Use Theme for colors
31435 * DataGridDrawingLogic.cs: Implement more drawing
31436 * DataGrid.cs: drawing, theming, enhacements, fixes
31437 * DataGridColumnStyle.cs: fixes, drawing
31438 * Theme.cs: theming for Datagrid
31440 2005-05-20 Peter Bartok <pbartok@novell.com>
31442 * Cursor.cs: Implemented GetObjectData() method
31444 2005-05-20 Peter Bartok <pbartok@novell.com>
31446 * Cursors.cs: Added setting of cursor name
31448 - Implemented constructors
31449 - Implemented Draw and DrawStretched
31450 - Implemented Current property
31451 - Implemented == and != operators
31452 - Implemented Dispose()
31453 - Implemented ToString
31454 - Added missing attributes
31456 - Added missing reset for OverrideCursor when DoEvents is called
31457 - Fixed creation of cursor, logic was wrong
31459 - Added missing reset for OverrideCursor when DoEvents is called
31460 - Fixed creation of cursor, bit arrays were swapped
31461 * Clipboard.cs: Removed obsolete MonoTODO attribute
31463 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31465 * ComboBox.cs: fixes OnSelectedItemChanged
31466 * ControlBindingsCollection.cs: fixes item range check
31468 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31471 - Calc preferred height properly
31472 - Implement missing properties
31474 * NumericUpDown.cs: Implement missing events
31476 2005-05-19 Jackson Harper <jackson@ximian.com>
31478 * TabControl.cs: New method that resizes the tab pages before
31479 redrawing them. This as needed as the control is double buffered
31480 and sizing will not be recalculated unless ResizeTabPages is
31482 * TabPage.cs: Set base.Text instead of Text in the constructor so
31483 that UpdateOwner does not get called. Use the new Redraw method of
31484 TabControl instead of Refresh so the sizing is recalculated.
31485 * ThemeWin32Classic.cs: Draw the text for button tabs.
31487 2005-05-19 Jackson Harper <jackson@ximian.com>
31489 * Control.cs: Paint control background images. Fix typo where
31490 PaintControlBackground was not getting called correctly.
31492 2005-05-19 Peter Bartok <pbartok@novell.com>
31494 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
31495 I can investigate, apparently I broke FileDialog
31497 2005-05-19 Marek Safar <marek.safar@seznam.cz>
31499 * AxHost.cs: Some simple properties.
31500 * Control.cs: window must be accessible after ctor.
31501 * Form.cs: Added TransparencyKey property.
31502 * TextBoxBase.cs: Implemented Clear. Text property can be null.
31503 * XplatUIWin32.cs: SetBorderStyle implemented.
31505 2005-05-18 Peter Bartok <pbartok@novell.com>
31507 * DataObject.cs: Entries are not global but particular to the
31508 DataObject, now it behaves that way
31509 * XplatUIWin32.cs: Implemented Clipboard methods
31510 * Clipboard.cs: Implemented
31511 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
31512 * XplatUIOSX.cs: Updated to final clipboard prototypes
31513 * XplatUIX11.cs: Implemented Clipboard methods
31514 * XplatUIDriver.cs: Updated to final clipboard prototypes
31515 * XplatUIStructs.cs:
31516 - Added BITMAPINFOHEADER struct
31517 - Added ClipboardFormats enum
31519 - Added ClipboardStruct
31520 - Added Atom enum items for clipboard types
31521 - Fixed atom types for Selection event structures
31523 - Added internal properties and methods for drivers to enumerate
31525 - Switched initialization method to allow drivers to assign their
31526 own IDs even for the MS predefined clipboard IDs
31527 * XplatUI.cs: Updated to final clipboard interface
31529 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31530 * PropertyGridView.cs: Fixed compiler warnings.
31532 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31533 * PropertyGrid.cs: Added some event calls
31534 * PropertyGridView.cs: Change drawing code to use double buffering
31535 * PropertyGridTextBox.cs: Changed Text property name
31536 * GridItem.cs: Added Bounds property.
31537 * GridEntry.cs: Added Bounds property.
31539 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
31541 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
31542 since GetType() may not return the correct type if the object is
31545 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
31547 * TreeNodeCollection.cs: fixes get/set item ranges
31549 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
31551 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
31553 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
31555 * ComboBox.cs: Fix item range comparation
31556 * ListView.cs: Fix item range comparation
31558 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
31561 - Clear example panel when OnPaint is called
31562 - Better solution for displaying the example panel text
31563 - Select default indexes in the ListBoxes
31565 2005-05-11 Geoff Norton <gnorton@customerdna.com>
31567 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
31569 2005-05-11 Peter Bartok <pbartok@novell.com>
31571 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
31572 * SelectionRangeConverter.cs: Implemented
31573 * PropertyGrid.cs: Fixed attribute value
31575 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
31576 - Added Sebastien Pouliot's CAS Stack Propagation fixes
31577 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
31578 that's common to all drivers. First methods to go there are
31579 Sebastien Pouliot's CAS Stack Propagation helper methods
31580 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
31581 Sebastien Pouliot for CAS Stack Propagation
31583 2005-05-11 Geoff Norton <gnorton@customerdna.com>
31586 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
31588 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
31590 * DataGridTextBoxColumn.cs: fixed some members
31591 * GridColumnStylesCollection.cs: indexed column is case insensitive
31592 * DataGridTableStyle.cs: fixes
31593 * ThemeWin32Classic.cs: add new theme parameter
31594 * Theme.cs: add new theme parameter
31595 * DataGridDrawingLogic.cs: Datagrid's drawing logic
31596 * DataGrid.cs: fixes, new internal properties, etc.
31597 * DataGridColumnStyle.cs: allows to set grid value
31600 2005-05-10 Peter Bartok <pbartok@novell.com>
31602 * AccessibleObject.cs:
31603 - Removed MonoTODO attribute on help, method is correct
31604 - Fixed Bounds property
31605 * AxHost.cs: Moved MonoTODO
31606 * ButtonBase.cs: Now setting AccessibleObject properties
31607 * RadioButton.cs: Setting proper AccessibleObject role
31608 * CheckBox.cs: Setting proper AccessibleObject role
31609 * ControlBindingsCollection.cs: Added properties, methods and attributes
31610 * DataFormats.cs: Fixed awkward internal API, and changed to enable
31611 userdefined DataFormats.Format items as well
31612 * ListControl.cs: Removed data_member from the public eye
31613 * OpenFileDialog.cs:
31614 - Made class sealed
31615 - Added missing attributes
31616 * SaveFileDialog.cs: Added missing attributes
31617 * ImageListStreamer.cs: Fixed code that caused warnings
31618 * LinkLabel.cs: Removed unreachable code
31619 * TreeView.cs: Fixed code that caused warnings
31620 * PropertyGridView.cs: Fixed code that caused warnings
31621 * GridColumnStylesCollection.cs: Added missing attributes
31622 * GridTableStylesCollection: Added missing attribute
31623 * PropertyManager: Added .ctor
31624 * SecurityIDType: Added
31625 * DataObject.cs: Implemented class
31626 * LinkArea.cs: Added missing attribute
31628 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
31630 * RadioButton.cs: call base method to allow to fire OnClick event
31631 * UpDownBase.cs: OnMouseUp call base method
31632 * CheckedListBox.cs: call base method before returning
31633 * TrackBar.cs: call base method before returning
31636 2005-05-10 Peter Bartok <pbartok@novell.com>
31638 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
31641 2005-05-10 Peter Bartok <pbartok@novell.com>
31643 * DataFormats.cs: Implemented
31644 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
31645 XplatUIX11.cs: Added Clipboard APIs
31646 * XplatUIWin32.cs: Implemented Clipboard APIs
31647 * FolderBrowserDialog.cs: Added missing event, attributes
31649 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
31651 * CheckBox.cs: call base method to allow to fire OnClick event
31653 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
31655 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
31657 2005-05-06 Peter Bartok <pbartok@novell.com>
31659 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
31660 * Screen.cs: Implemented
31661 * HelpNavigator.cs: Added
31662 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
31664 * HelpProvider.cs: Implemented all we can do until we have a CHM
31665 help library (which means that "What's This" does work now)
31667 2005-05-06 Jackson Harper <jackson@ximian.com>
31669 * XplatUIX11.cs: Fix waking up the main loop.
31671 2005-05-05 Peter Bartok <pbartok@novell.com>
31673 * XplatUI.cs: Updated revision
31674 * Form.cs: Removed enless loop
31675 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
31676 * Label.cs (OnPaint): Added call to base.OnPaint()
31677 * ToolTip.cs: Made ToolTipWindow reusable for other controls
31678 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
31679 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
31681 * ButtonBase.cs: Moved base.OnPaint() call to end of method
31682 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
31683 to ToolTip.ToolTipWindow for drawing and size methods; this allows
31684 reuse of ToolTipWindow by other controls
31685 * SizeGrip.cs: Moved base.OnPaint() call to end of method
31686 * XplatUIX11.cs: Now clipping drawing area (experimental)
31687 * PictureBox.cs: Moved base.OnPaint() call to end of method
31688 * Theme.cs: Fixed ToolTip abstracts to match new format
31689 * ErrorProvider.cs: Implemented
31691 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
31693 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
31697 - Implements LinkBehavior
31698 - Fixes many issues
31700 2005-05-03 Jackson Harper <jackson@ximian.com>
31702 * ListView.cs: Calculate the scrollbar positioning on resize and
31703 paint, so they get put in the correct place.
31705 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
31707 * ColorDialogs.cs: The small color panels are now handled by
31708 SmallColorControl. This fixes drawing of the focus rectangle
31709 and adds a 3D border.
31711 2005-05-03 Peter Bartok <pbartok@novell.com>
31713 * Control.cs: Modified version of Jonathan Chamber's fix for
31716 2005-05-03 Jackson Harper <jackson@ximian.com>
31718 * ListView.cs: Remove redraw variable. Control now handles whether
31719 or not a redraw needs to be done, and will only raise the paint
31720 event if redrawing is needed.
31722 2005-05-03 Jackson Harper <jackson@ximian.com>
31724 * Splitter.cs: No decorations for the splitter form. Cache the
31727 2005-05-03 Jackson Harper <jackson@ximian.com>
31729 * TreeView.cs: Use dashed lines to connect nodes. Use the
31730 ControlPaint method for drawing the focus rect instead of doing
31733 2005-05-02 Peter Bartok <pbartok@novell.com>
31735 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
31737 2005-04-29 Jackson Harper <jackson@ximian.com>
31739 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
31740 entire image buffer. Just clear the clipping rectangle.
31742 2005-04-29 Jackson Harper <jackson@ximian.com>
31744 * ThemeWin32Classic.cs: Don't draw list view items that are
31745 outside the clipping rectangle.
31747 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
31749 * ListBox.cs: added horizontal item scroll
31751 2005-04-29 Jackson Harper <jackson@ximian.com>
31753 * ThemeWin32Classic.cs: Remove some old debug code that was
31754 causing flicker with the new double buffering code.
31756 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
31758 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
31759 behave like combobox and comboboxlist (still not sure if this is
31762 2005-04-28 Jackson Harper <jackson@ximian.com>
31764 * ThemeWin32Classic.cs: Don't fill the middle of progress
31765 bars. This fills areas outside of the clip bounds that don't need
31768 2005-04-28 Jackson Harper <jackson@ximian.com>
31770 * Control.cs: Don't expose functionality to touch the image buffers.
31772 * ListView.cs: We do not need to (and no longer can) manipulate
31773 the image buffers directly. All of this is handled by Control.
31775 2005-04-28 Peter Bartok <pbartok@novell.com>
31777 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31778 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
31779 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
31781 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
31784 - Adjust control's height for non-simple comboboxes (bug fix)
31786 * MenuAPI.cs: remove unused var
31787 * ScrollBar.cs: remove unsed var
31789 * ListBox.cs: unselect items when clearing
31791 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
31793 * ListControl.cs: honors OnPositionChanged and default Selected Item
31794 * ListBox.cs: unselect items when clearing
31796 2005-04-27 Jackson Harper <jackson@ximian.com>
31798 * X11Keyboard.cs: Initialize a default keyboard and give a warning
31799 if a "correct" keyboard is not found. This will make us not crash,
31800 but might give some users bad keyboard layouts...seems to be the
31801 same thing rewind does.
31803 2005-04-27 Jackson Harper <jackson@ximian.com>
31805 * BindingManagerBase.cs: Attach the current/position changed
31806 handlers to their respective events.
31808 2005-04-27 Jackson Harper <jackson@ximian.com>
31810 * Control.cs: Make sure that the first WM_PAINT does a full draw,
31812 * ThemeWin32Classic.cs: Don't fill the background for picture
31813 boxes. This could overright user drawing.
31814 * ComboBox.cs: Just fill the clipping rect not the entire client
31815 rect when drawing the background. This prevents pieces of the
31816 image buffer from getting overwritten and is theoretically faster.
31818 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
31820 * ComboBox.cs: Databinding support fixes, fire missing events
31821 * ListControl.cs: implement missing methods and properties, fixes
31822 * ThemeWin32Classic.cs: Databiding support on Drawing
31823 * CheckedListBox.cs: Databinding support fixes, fire missing events
31824 * ListBox.cs: Databinding support fixes, fire missing events
31826 2005-04-25 Peter Bartok <pbartok@novell.com>
31828 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
31830 2005-04-25 Jackson Harper <jackson@ximian.com>
31832 * TreeView.cs: Use the horizontal scrollbars height not width when
31833 determining how much of the client area is available.
31835 2005-04-25 Jackson Harper <jackson@ximian.com>
31837 * Control.cs: Double buffering is handled differently now. As per
31838 the spec, the extra buffer is created in the WM_PAINT message and
31839 passed down to the control's drawing code.
31847 * PropertyGridView.cs:
31859 * DateTimePicker.cs:
31861 * TreeView.cs: Update to new double buffering system.
31862 * MonthCalendar.cs: Uncomment block, as Capture is now
31863 working. Update to new double buffering
31864 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
31865 * PaintEventArgs.cs: New internal method allows us to set the
31866 graphics object. This is used for double buffering.
31867 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
31868 rectangle. The internal paint_area var has been removed from
31869 StatusBar. The clipping rect should be used instead.
31870 * Theme.cs: Give the PictureBox drawing method a clipping rect.
31871 * TabPage.cs: The RefreshTabs method was removed, so just call the
31872 tab controls Refresh method now.
31873 * TabControl.cs: Update to new double buffering. Make sure the
31874 handle is created before sizing the tab pages, otherwise we will
31875 get stuck in a loop.
31877 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
31879 * LinkLabel.cs: Fix typo, bug #74719; patch
31880 from Borja Sanchez Zamorano
31882 2005-04-22 Jackson Harper <jackson@ximian.com>
31884 * TreeNode.cs: Implement Handle stuff.
31885 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
31887 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
31889 * DataGridTextBoxColumn.cs: call base constructors, fixes
31890 * GridColumnStylesCollection.cs: missing events, methods, and functionality
31891 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
31892 * DataGridTableStyle.cs: implements create default column styles
31893 * DataGridBoolColumn.cs: which types can handle
31894 * DataGrid.cs: missing methods, fixes, new functionality
31895 * DataGridColumnStyle.cs: fixes
31897 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
31898 * FolderBrowserDialog.cs:
31899 - Use a thread to fill the TreeView
31900 - Adjusted some sizes
31902 2005-04-19 Peter Bartok <pbartok@novell.com>
31904 * LinkLabel.cs: (Re-)create the pieces when setting the Text
31905 property. Fixes #74360.
31907 2005-04-19 Jackson Harper <jackson@ximian.com>
31909 * XEventQueue.cs: Lock when getting the lockqueue size.
31910 * PictureBox.cs: Call base OnPaint
31912 2005-04-19 Peter Bartok <pbartok@novell.com>
31914 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
31915 messages were no longer being processed (this broke BeginInvoke)
31918 2005-04-18 Jackson Harper <jackson@ximian.com>
31920 * TreeView.cs: buglet that caused node images to get drawn
31921 regardless of whether or not they were in the clipping rectangle.
31923 2005-04-18 Jackson Harper <jackson@ximian.com>
31925 * CurrencyManager.cs: There are four rules for GetItemProperties:
31926 - If the type is an array use the element type of the array
31927 - If the type is a typed list, use the type
31928 - If the list contains an Item property that is not an object, use
31930 - use the first element of the list if there are any elements in
31933 2005-04-17 Jackson Harper <jackson@ximian.oom>
31935 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
31936 click. This handles offsets for scrolling properly and reduces
31937 memory. Also fixed GetNode to not offset now that TopNode works
31939 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
31941 2005-04-17 Jackson Harper <jackson@ximian.com>
31943 * CursorConverter.cs: Initial implementation.
31945 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
31947 * ListControl.cs: work towards complex data binding support on ListControl
31948 * CurrencyManager.cs: work towards complex data binding support on ListControl
31949 * ListBox.cs: work towards complex data binding support on ListControl
31952 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
31954 * GridTableStylesCollection.cs: fixes name and constructor
31955 * DataGridTableStyle.cs: fixes
31956 * DataGridBoolColumn.cs: fixes names and constructors
31957 * DataGrid.cs: define methods and properties. Some init implementations
31958 * DataGridCell.cs: define methods and properties. Some init implementations
31959 * GridTablesFactory.cs: Define methods and properties
31961 2005-04-15 Geoff Norton <gnorton@customerdna.com>
31963 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
31964 graphics port changes. We still want the coordinates in global screen
31967 2005-04-14 Jackson Harper <jackson@ximian.com>
31969 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
31970 check plus minus or checkbox clicks unless those features are enabled.
31972 2005-04-14 Jackson Harper <jackson@ximian.com>
31974 * TreeView.cs: Add methods for setting the top and bottom visible
31975 nodes. TreeNode::EnsureVisible uses these methods.
31976 * TreeNode.cs: Implement EnsureVisible
31978 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
31980 * Form.cs: Pospone menu assignation if the window has not been created yet
31981 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
31984 2005-04-12 Jackson Harper <jackson@ximian.com>
31986 * TreeView.cs: Set the TopNode properly when scrolling
31987 occurs. This has the added benifit of reducing the amount of
31988 walking that needs to be done when drawing. Also removed an old
31990 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
31992 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
31994 * Timer.cs: fixes interval setting when the timer is already enabled
31996 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
31998 * FolderBrowserDialog.cs: First approach
32000 2005-04-09 Peter Bartok <pbartok@novell.com>
32002 * FolderBrowserDialog: Added
32004 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
32006 * LinkLabel.cs: move drawing code into the theme
32007 * ThemeWin32Classic.cs: drawing code and painting background bugfix
32008 * Theme.cs: define DrawLinkLabel method
32010 2005-04-05 Jackson Harper <jackson@ximian.com>
32012 * BindingContext.cs: Use weak references so these bad actors don't
32013 stay alive longer then they need to.
32015 2005-04-05 Jackson Harper <jackson@ximian.com>
32017 * ListControl.cs: Basic implementation of complex databinding.
32019 * ListBox.cs: Add calls to ListControl databinding methods.
32021 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
32024 - Don't change PopupButtonState to Normal when the
32025 PopupButton gets pressed several times.
32026 - Renamed ButtonPanel to PopupButtonPanel
32028 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
32030 * ColorDialog.cs: Use cached objects instead of creating them
32031 * LinkLabel.cs: Use cached objects instead of creating them
32032 * Splitter.cs: Use cached objects instead of creating them
32033 * FontDialog.cs: Use cached objects instead of creating them
32034 * PropertyGridView.cs: Use cached objects instead of creating them
32035 * MessageBox.cs: Use cached objects instead of creating them
32036 * FileDialog.cs: Use cached objects instead of creating them
32037 * ThemeWin32Classic.cs: Use cached objects instead of creating them
32038 * TreeView.cs: Use cached objects instead of creating them
32040 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
32042 * Control.cs: use Equals to compare the font since no == op
32043 * ScrollBar.cs: use Equals to compare the font since no == op
32045 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
32047 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32049 2005-04-01 Jackson Harper <jackson@ximian.com>
32051 * Binding.cs: Implement IsBinding.
32052 * BindingManagerBase.cs:
32053 * PropertyManager.cs:
32054 * CurrencyManager.cs: Add IsSuspended property.
32056 2005-04-01 Jackson Harper <jackson@ximian.com>
32058 * Binding.cs: Had some IsAssignableFrom calls backwards.
32060 2005-04-01 Jackson Harper <jackson@ximian.com>
32062 * Binding.cs: Handle null data members when pulling data.
32063 * PropertyManager.cs: Handle the data member being a property that
32066 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32068 * DataGridTextBoxColumn.cs: fixes signature
32069 * DataGrid.cs: calls right constructor
32071 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32073 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32074 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32075 * GridTableStylesCollection.cs: implements GridTableStylesCollection
32076 * DataGridTableStyle.cs: implements DataGridTableStyle
32077 * DataGridBoolColumn.cs: implements DataGridBoolColumn
32078 * DataGridTextBox.cs: implements DataGridTextBox
32079 * DataGridColumnStyle.cs: implements DataGridColumnStyle
32081 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
32083 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32085 2005-03-29 Peter Bartok <pbartok@novell.com>
32088 - Properly implemented CompanyName property
32089 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32090 returns a path that includes CompanyName, ProductName and
32091 Version (fixes bug #70330)
32093 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
32095 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32098 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32100 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32102 - Added ReadOnly CheckBox
32103 - Further refactoring: moved some code from Open-/SaveFileDialog
32106 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32108 * OpenFileDialog.cs: Fixed CheckFileExists
32110 Moved FileView and DirComboBox outside FileDialog class.
32111 They can now be used outside FileDialog
32113 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32115 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32116 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32118 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32120 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32121 - Added missing CreatePrompt property in SaveDialog
32122 - Overall SaveDialog handling should be better now
32123 - Added non standard ShowHiddenFiles property
32124 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32125 - Added InitialDirectory and RestoreDirectory support
32127 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
32129 * FileDialog.cs: Made dirComboBox usable
32131 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
32133 * FileDialog.cs: Added Filter support (case sensitiv)
32135 2005-03-24 Jackson Harper <jackson@ximian.com>
32137 * TabControl.cs: Need a couple more pixels for the lines.
32139 2005-03-23 Jackson Harper <jackson@ximian.com>
32141 * TabControl.cs: Give the tab page focus when it is selected.
32143 2005-03-23 Jackson Harper <jackson@ximian.com>
32145 * TabControl.cs: Account for the drawing of tabs borders when
32146 invalidating. If the slider was clicked dont do click detection on
32149 2005-03-23 Jackson Harper <jackson@ximian.com>
32151 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32153 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
32155 * CategoryGridEntry.cs: Added
32156 * GridItem.cs: Added helper properties
32157 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32158 * GridEntry.cs: Updated code for collection
32159 * PropertyGrid.cs: Cleaned up some formatting
32160 * PropertyGridView.cs: Added drop down functionality for enums.
32161 * GridItemCollection.cs: Added enumerator logic
32162 * PropertyGridEntry.cs: Added
32164 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32167 - Removed unnecessary commented code
32168 - Fixed handling for entering the filename manually in the combobox
32170 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32172 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32174 2005-03-18 Peter Bartok <pbartok@novell.com>
32176 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32177 them being touching the border
32179 2005-03-18 Peter Bartok <pbartok@novell.com>
32181 * TextControl.cs: Quick hack to center text better
32183 2005-03-18 Peter Bartok <pbartok@novell.com>
32186 - Don't throw NotImplemented exceptions, just print a notice once
32187 instead (requested by Miguel). This makes running existing SWF
32190 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32191 - Added context menu trigger on right click
32192 * Panel.cs: Trigger invalidate on resize
32194 - Removed old double-buffer drawing
32195 - Added ResizeRedraw style to force proper update of statusbar
32197 - Removed debug output
32198 * ThemeWin32Classic.cs:
32199 - Fixed drawing of status bar, now draws Text property if there
32200 are no defined panels
32202 2005-03-18 Jackson Harper <jackson@ximian.com>
32204 * ImageList.cs: When the image stream is set pull all the images
32206 * ImageListStreamer.cs: Implement reading image list streams.
32208 2005-03-18 Peter Bartok <pbartok@novell.com>
32210 * ThemeWin32Classic.cs (DrawPictureBox):
32211 - Fixed calculations for centered drawing
32212 - Fixed drawing for normal mode, not scaling the image on normal
32214 2005-03-18 Peter Bartok <pbartok@novell.com>
32216 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32219 - Made Open/Save button the accept button for FileDialog
32220 - Tied the cancel button to the IButtonControl cancel button
32221 - Save/Open now properly builds the pathname
32222 - Now handles user-entered text
32223 - Preventing crash on right-click if no item is selected
32224 - Fixed Text property, now uses contents of textbox
32225 - Fixed SelectedText property, now just returns the text part that
32226 is selected in the text box
32228 2005-03-18 Jackson Harper <jackson@ximian.com>
32230 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32231 rect, make sure to de-adjust the interior rect after drawing the
32234 2005-03-18 Peter Bartok <pbartok@novell.com>
32236 * MenuAPI.cs: Remove menu *before* executing selected action to
32237 prevent the menu from 'hanging around'
32239 2005-03-17 Geoff Norton <gnorton@customerdna.com>
32241 * XplatUIOSX.cs: Implemented WorkingArea property
32243 2005-03-17 Peter Bartok <pbartok@novell.com>
32245 * XplatUIX11.cs: Fixed menu coord calculations
32246 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32247 for calculating offsets
32249 2005-03-17 Peter Bartok <pbartok@novell.com>
32251 * Hwnd.cs: Do not consider menu presence for default client
32252 rectangle location/size
32253 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32254 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32255 translation functions
32256 * FileDialog.cs: Fixed (what I presume is a) typo
32258 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
32260 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32261 X access (avoids X-Async errors)
32263 2005-03-16 Jackson Harper <jackson@ximian.com>
32265 * TabControl.cs: Raise the SelectedIndexChanged event.
32267 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
32269 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32270 - Removed vertical ToolBar and replaced it with a custom panel
32271 (desktop and home button already work)
32272 - Added Help button (some controls get resized or relocated then)
32273 - Draw correct text depending on Open or Save.
32274 - Fixed some typos...
32276 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
32279 - Only change Maximum and Minimum when need it (bug fix)
32281 2005-03-15 Peter Bartok <pbartok@novell.com>
32283 * Form.cs: Use Handle for icon, to trigger creation if
32284 the window does not yet exist
32286 - CanSelect: Slight performance improvement
32287 - Focus(): Preventing possible recursion
32288 - Invalidate(): Removed ControlStyle based clear flag setting
32289 - WM_PAINT: fixed logic for calling OnPaintBackground
32290 - WM_ERASEBKGND: Fixed logic, added call to new driver method
32291 EraseWindowBackground if the control doesn't paint background
32293 - Moved EraseWindowBackground() method to internal methods
32294 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32295 is sent via SendMessage on BeginPaint call on Win32
32297 - Added EraseWindowBackground() method
32298 - No longer sends WM_ERASEBKGND on .Expose, but on call to
32299 PaintEventStart, which more closely matches Win32 behaviour
32300 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32301 - Fixed SetFocus() to properly deal with client and whole windows
32302 * Hwnd.cs: Added ErasePending property
32303 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32304 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32306 2005-03-12 Geoff Norton <gnorton@customerdna.com>
32309 - Fix hard loop when timers exist.
32310 - Fix bugs with middle and right click for 3 button mice.
32312 2005-03-11 Peter Bartok <pbartok@novell.com>
32315 - get_WorkingArea: Need to call X directly, GetWindowPos only
32316 returns cached data now
32317 - Added sanity check to GetWindowPos hwnd usage
32319 2005-03-11 Jackson Harper <jackson@ximian.com>
32321 * BindingManagerBase.cs: This method isn't used anymore as
32322 PullData now updates the data in the control.
32324 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
32326 * Form.cs: fixes menu drawing on X11
32327 * MenuAPI.cs: fixes menu drawing on X11
32329 2005-03-11 Peter Bartok <pbartok@novell.com>
32331 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32332 from Jonathan Gilbert; should fix bug #73606
32333 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32334 in Screen coordinates. Thanks, Jordi.
32335 * Form.cs: Added missing attribute
32337 2005-03-11 Peter Bartok <pbartok@novell.com>
32340 - Rudimentary Mdi support
32341 - Removed outdated FormParent code
32342 - Implemented lots of missing properties and methods, still missing
32343 transparency support
32344 - Added missing attributes
32345 - Implemented support for MaximumBounds
32346 - Added firing of various events
32347 * XplatUI.cs: Added SetIcon() method
32348 * XplatUIDriver.cs: Added SetIcon() abstract
32349 * XplatUIOSX.cs: Stubbed out SetIcon() method
32351 - Implemented SetIcon() support
32352 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32353 - Switched to unix line endings
32355 - Made POINT internal so for can access it as part of MINMAX
32356 - Implemented SetIcon() support
32357 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32358 native Mdi support again, might have to go managed)
32359 * Control.cs: Now fires the StyleChanged event
32360 * MdiClient.cs: Added; still mostly empty
32362 2005-03-10 Peter Bartok <pbartok@novell.com>
32364 * SaveFileDialog.cs: Added emtpy file
32366 2005-03-08 Peter Bartok <pbartok@novell.com>
32368 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32369 in turn triggers OnCreateContro) when creating a handle for the
32371 * TextControl.cs: Fixed endless loop in certain cases when
32372 replacing the current selection
32374 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
32377 - Honors NewValue changes in Scroll events allowing apps to change it
32378 - Adds First and Last Scroll events
32379 - Fixes Thumb events
32381 2005-03-07 Peter Bartok <pbartok@novell.com>
32383 * Hwnd.cs: Added DefaultClientRectangle property
32384 * XplatUI.cs: Now using the X11 driver Where() method, which provides
32385 more detailed debug information
32387 - Fixed size-change feedback loop, where we would pull an old size
32388 off the queue and mistakenly change our window's size to an
32390 - Now compressing ConfigureNotify events, to reduce looping and
32392 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32395 2005-03-07 Jackson Harper <jackson@ximian.com>
32397 * Binding.cs: Push data pushes from data -> property. Check if the
32398 property is readonly when attempting to set it.
32400 2005-03-07 Jackson Harper <jackson@ximian.com>
32402 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
32403 instead of IsSubclassOf. Pulling data now sets the value on the
32405 * PropertyManager.cs:
32406 * CurrencyManager.cs: Just need to pull data when updating now,
32407 because PullData will set the value on the control.
32409 2005-03-04 Jackson Harper <jackson@ximian.com>
32411 * Binding.cs: Implement data type parsing and converting on pulled
32412 data. TODO: Are there more ways the data can be converted?
32414 2005-03-04 Jackson Harper <jackson@ximian.com>
32416 * Binding.cs: Support <Property>IsNull checks. Also bind to the
32417 controls Validating method so we can repull the data when the
32418 control loses focus.
32420 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
32423 - Fixes null string format
32426 - Adds enum type checks
32427 - Fixes redrawing and recalc need after changing some properties
32428 - Fixes on focus_item set after the event
32429 - Fixes adding columns after the control has been created
32431 * ThemeWin32Classic.cs:
32432 - Fixes CheckBox focus rectangle
32433 - Fixes ColumnHeader drawing
32436 2005-03-03 Jackson Harper <jackson@ximian.com>
32438 * Binding.cs: Bind to <Property>Changed events so we can detect
32439 when properties are changed and update the data.
32441 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
32444 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
32445 - Fixes ImageList constructor with ImageList container
32446 - Fixes image scaling (wrong parameters at DrawImage)
32448 2005-02-02 Jackson Harper <jackson@ximian.com>
32450 * Binding.cs: Make property searches case-insensitive. Eliminate
32451 some duplicated code.
32453 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
32456 - Handle focus event
32457 - Fix scrollbar events
32458 - Discard highlighted item if remove it
32459 - Fixes SelectedItem with strings
32461 2005-03-01 Peter Bartok <pbartok@novell.com>
32464 - Fixed Visible property, now follows (once again) parent chain
32465 to return false if any control in the chain is visible=false
32466 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
32467 - Fixed several places where is_visible instead of Visible was used
32468 - Implemented FIXME related to focus selection when setting focused
32469 control to be invisible
32471 * XplatUIWin32.cs: Now using proper method to find out if window is
32472 visible. Thanks to Jordi for pointing it out
32474 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
32476 * ComboBox.cs: show/hide scrollbar instead of creating it
32478 2005-02-27 Jackson Harper <jackson@ximian.com>
32480 * CurrencyManager.cs: Add PositionChanged stuff.
32482 2005-02-27 Peter Bartok <pbartok@novell.com>
32484 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
32485 * XplatUIOSX.cs: Added GetMenuOrigin() stub
32486 * XplatUIWin32.cs: Implemented GetMenuOrigin()
32488 - Implemented GetMenuDC()
32489 - Implemented GetMenuOrigin()
32490 - Implemented ReleaseMenuDC()
32491 - Implemented generation of WM_NCPAINT message
32492 - Implemented generation and handling of WM_NCCALCSIZE message
32493 * Form.cs: Added debug helper message for Jordi's menu work
32495 - Modified ClientRect property; added setter, fixed getter to handle
32496 setting of ClientRect
32497 - Added MenuOrigin property
32499 2005-02-26 Peter Bartok <pbartok@novell.com>
32502 - Destroys the caret if a window that's being destroyed contains it
32503 - Ignores expose events coming from the X11 queue for windows that
32504 already are destroyed
32505 - Now uses the proper variable for handling DestroyNotify, before we
32506 marked the wrong window as destroyed
32507 - Improved/added some debug output
32509 2005-02-26 Peter Bartok <pbartok@novell.com>
32511 * X11Keyboard.cs: Fixes to work on 64bit systems
32513 2005-02-26 Peter Bartok <pbartok@novell.com>
32516 - Now calling OnHandleDestroyed from DestroyHandle()
32517 instead of Dispose()
32518 - Removed bogus call to controls.Remove() from DestroyHandle()
32520 2005-02-26 Peter Bartok <pbartok@novell.com>
32522 * Control.cs: Properly destroy child windows when our handle is
32525 2005-02-25 Peter Bartok <pbartok@novell.com>
32528 - Added 'DriverDebug' define to allow tracing XplatUI API calls
32529 - Alphabetized Static Methods and Subclasses
32532 - Added XException class to allow custom handling of X11 exceptions
32533 - Created custom X11 error handler, tied into XException class
32534 - Added support for MONO_XEXCEPTIONS env var to allow the user
32535 to either throw an exception on X errors or continue running
32536 after displaying the error
32537 - Added handling of DestroyNotify message
32538 - Added handler for CreateNotify message (still disabled)
32539 - Improved (tried to at least) Where method to provide file and lineno
32541 - Added XErrorHandler delegate
32542 - Added XRequest enumeration (to suppor translation of errors)
32544 2005-02-25 Jackson Harper <jackson@ximian.com>
32546 * PropertyManager.cs: Implement editing features
32547 * CurrencyManager.cs:
32548 * Binding.cs: First attempt at UpdateIsBinding
32549 * BindingManagerBase.cs: Call UpdateIsBinding before
32550 pushing/pulling data.
32552 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
32554 * MenuAPI.cs: Respect disabled items
32555 * ThemeWin32Classic.cs
32556 - Caches ImageAttributes creation for DrawImageDisabled
32557 - Fixes vertical menu line drawing
32558 - Draws disabled arrows in disable menu items
32560 2005-02-24 Peter Bartok <pbartok@novell.com>
32563 - Added UserData property to allow associating arbitrary objects
32565 - Fixed leak; now removing Hwnd references from static windows array
32567 - Fixed Graphics leak in PaintEventEnd
32568 - Removed usage of HandleData, switched over to Hwnd class
32569 * HandleData.cs: Removed, obsoleted by Hwnd.cs
32571 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
32573 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
32574 * ScrollBar.cs: Fixes bug
32575 * TrackBar.cs: removes death code, clipping, mimize refreshes,
32576 keyboard navigation enhancements
32578 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
32580 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
32581 * GroupBox.cs: Add control styles
32582 * Label.cs: Add control styles
32583 * UpDownBase.cs: Add control styles
32584 * ListBox.cs: Add control styles
32585 * XplatUIWin32.cs: Fixes wrong parameter order
32588 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
32590 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
32592 2005-02-23 Jackson Harper <jackson@ximian.com>
32594 * PropertyManager.cs: Implement property binding. This doesn't
32595 seem to work yet though as (I think) there are some bugs in
32596 System.ComponentModel.PropertyDescriptor.
32597 * BindingContext.cs: Use new PropertyManager constructor.
32599 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
32601 * ProgressBar.cs: use clip region in ProgressBar
32602 * ThemeWin32Classic.cs: use clip region in ProgressBar
32604 2004-02-22 Jackson Harper <jackson@ximian.com>
32606 * BindingsCollection.cs: Remove some debug code.
32608 2005-02-22 Jackson Harper <jackson@ximian.com>
32610 * BindingContext.cs:
32611 * ControlBindingsCollection.cs:
32612 * CurrencyManager.cs:
32614 * BindingManagerBase.cs: Initial implementation
32615 * BindingsCollection.cs: Add an internal contains method that the
32616 BindingManagerBase uses to ensure bindings aren't added twice to
32618 * PropertyManager.cs: Stubbed out.
32620 * ContainerControl.cs: Hook up databinding
32622 2005-02-22 Geoff Norton <gnorton@customerdna.com>
32625 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
32626 Fixed Invalidate/Update chain.
32627 Fixed tons of other minor bugs (this is almost a complete rewrite).
32629 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
32631 * ComboBox.cs: do subcontrol creation when the control is created
32633 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32635 * Label.cs: fixes image drawing (image and imagelist)
32636 * ThemeWin32Classic.cs: cache brushes
32638 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32640 * Form.cs: Move menu drawing code to Theme class
32641 * ComboBox.cs: Move ComboBox drawing code to Theme class
32642 * MenuItem.cs: Move menu drawing code to Theme class
32643 * MenuAPI.cs: Move menu drawing code to Theme class
32644 * ThemeWin32Classic.cs: New methods
32645 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
32646 * ListBox.cs: Move Listbox drawing code to Theme class
32647 * Theme.cs: New methods
32649 2005-02-20 Peter Bartok <pbartok@novell.com>
32652 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
32653 only process mnemonics on those)
32654 - Fixed event sequence for key handling; first calling
32655 ProcessKeyEventArgs now
32657 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
32658 for processing non-character keys
32659 - Fixed WM_CHAR to generate proper event sequence before processing
32660 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
32663 2005-02-19 Peter Bartok <pbartok@novell.com>
32665 * UserControl.cs: Added TextChanged event; added attributes
32666 * SizeGrip.cs: Implemented resizing and optional display of grip
32667 * Form.cs: Fixed attribute
32668 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32669 Changed meaning of ScrollWindow bool argument; instead of the
32670 clear attribute (which will be true usually anyway), it gives the
32671 option of moving child controls as well.
32673 - Changed to match new ScrollWindow argument
32674 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
32675 now handles the implicit parent window a WM puts around us
32676 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
32678 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
32679 * TreeView.cs: Adjusted to new ScrollWindow arguments
32681 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32683 * Form.cs: Menu integration with non-client area
32684 * MenuItem.cs: Menu integration with non-client area
32685 * MenuAPI.cs: Menu integration with non-client area
32687 2005-02-18 Peter Bartok <pbartok@novell.com>
32689 * MethodInvoker.cs: Added
32690 * MdiLayout.cs: Added
32691 * SendKeys.cs: Started implementation
32692 * ErrorIconAlignment.cs: Added
32694 2005-02-18 Peter Bartok <pbartok@novell.com>
32696 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
32697 * Form.cs: Added handling for Menu-related Non-client messages
32699 2005-02-17 Peter Bartok <pbartok@novell.com>
32701 * UpDownBase.cs: Fixed typo, compilation errors
32702 * DomainUpDown.cs: Fixed attribute value
32704 2005-02-16 Miguel de Icaza <miguel@novell.com>
32706 * UpDownBase.cs: Attach entry events.
32708 Add ForeColor property, Focused, InterceptArrowKeys (interception
32709 does not work yet).
32711 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
32714 - Redraw non client are on Setmenu
32715 - Calc proper menu starting point
32717 2005-02-17 Peter Bartok <pbartok@novell.com>
32719 * Application.cs: Fixed message_filter check
32721 2005-02-17 Peter Bartok <pbartok@novell.com>
32723 * Application.cs: Now calls registered message filters
32724 * DockStyle.cs: Fixed attribute
32725 * Form.cs: Fixed attribute
32726 * Menu.cs: Fixed attribute
32727 * ToolTip.cs: Fixed attribute
32728 * TreeNode.cs: Added missing attributes and arranged in regions
32729 * PropertyGrid.cs: Fixed signatures
32730 * TreeNodeCollection.cs: Added attributes
32731 * Splitter.cs: Added missing attributes; arranged into regions
32732 * TabPage.cs: Added missing attributes; arranged into regions
32733 * TextBoxBase.cs: Added missing attributes
32734 * TextBox.cs: Added missing attributes
32735 * ArrangeDirection.cs: Added missing attributes
32736 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
32737 * ToolBarButton.cs: Fixed attributes
32738 * AnchorStyles.cs: Fixed attribute
32739 * TrackBar.cs: Fixed attributes
32740 * TabControl.cs: Added missing attributes and arranged into regions
32741 * ToolBar.cs: Fixed attribute
32742 * StatusBar.cs: Fixed signature, organized into regions and added
32744 * StatusBarPanel.cs: Fixed attributes
32745 * ContentsResizedEventArgs.cs: Implemented
32746 * ContentsResizedEventHandler.cs: Implemented
32747 * DateBoldEventArgs.cs: Implemented
32748 * DateBoldEventHandler.cs: Implemented
32749 * UpDownEventArgs.cs: Implemented
32750 * UpDownEventHandler.cs: Implemented
32752 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
32754 * Form.cs: first Menu NC refactoring
32755 * MenuAPI.cs: first Menu NC refactoring
32757 2005-02-16 Peter Bartok <pbartok@novell.com>
32759 * ImeMode.cs: Added missing attributes
32760 * Menu.cs: Fixed attribute
32761 * GroupBox.cs: Fixed attribute
32762 * Label.cs: Fixed attribute
32763 * ColorDialog.cs (RunDialog): Removed TODO attribute
32764 * ComboBox.cs: Fixed attributes
32765 * ListControl.cs: Added missing attributes
32766 * PropertyGrid.cs: Fixed attributes
32767 * Control.cs: Fixed attributes
32768 * ListViewItem.cs: Added TypeConverter attribute
32769 * NotifyIcon.cs: Fixed attributes
32770 * ListView.cs: Fixed attributes
32771 * ButtonBase.cs: Fixed attribute
32772 * ImageList.cs: Added missing attributes
32773 * ContainerControl.cs: Fixed signature
32774 * CheckedListBox.cs: Fixed attribute; added missing attributes
32775 * Panel.cs: Fixed attributes
32776 * PropertyTabChangedEventArgs.cs: Added missing attribute
32777 * PropertyValueChangedEventArgs.cs: Added missing attribute
32778 * Binding.cs: Fixed attribute
32779 * ListViewItemConverter: Implemented ListViewSubItemConverter class
32780 * ListBox.cs: Fixed attribute; added missing attributes;
32781 * ScrollableControl.cs: Added missing attributes
32782 * PictureBox.cs: Added missing attributes; implemented missing property
32783 * DateTimePicker.cs: Added missing attributes
32784 * Theme.cs (ToolWindowCaptionHeight): Fixed type
32785 * MonthCalendar.cs: Fixed attributes
32786 * StatusBarPanel.cs: Added missing attributes
32787 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
32789 2005-02-16 Peter Bartok <pbartok@novell.com>
32791 * TextBoxBase.cs: The previous method to enforce height yet remember
32792 the requested high was less than ideal, this is an attempt to do
32794 * Control.cs: Added comment about possible problem
32795 * Copyright: Updated format
32796 * GridItemType.cs: Fixed swapped values
32798 2005-02-15 Jackson Harper <jackson@ximian.com>
32800 * BaseCollection.cs: Use property so we never access an
32801 uninitialized list. Also initialize the list in the property.
32803 2005-02-15 Peter Bartok <pbartok@novell.com>
32805 * GroupBox.cs (ProcessMnemonic): Implemented
32806 * Label.cs (ProcessMnemonic): Implemented
32807 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
32810 2005-02-15 Peter Bartok <pbartok@novell.com>
32812 * RadioButton.cs (ProcessMnemonic): Implemented
32813 * CheckBox.cs (ProcessMnemonic): Implemented
32815 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
32817 - Added internal method to allow calling ProcessMnemonic from other
32819 * ContainerControl.cs:
32820 - Started support for handling validation chain handling
32821 - Implemented ProcessMnemonic support
32822 - Added Select() call to Active, to make sure the active control
32824 * Form.cs: Setting toplevel flag for Forms (this was lost in the
32825 FormParent rewrite)
32826 * ThemeWin32Classic.cs:
32827 - DrawCheckBox(): Fixed stringformat to show hotkeys
32828 - DrawRadioButton(): Fixed stringformat to show hotkeys
32829 * CommonDialog.cs: Removed WndProc override, not needed
32831 2005-02-14 Peter Bartok <pbartok@novell.com>
32833 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
32834 missed those in the rewrite
32836 2005-02-14 Miguel de Icaza <miguel@novell.com>
32838 * NumericUpDown.cs (Increment, ToString): Add.
32839 (DecimalPlaces): implement.
32843 * UpDownBase.cs: Add the designer attributes.
32845 2005-02-13 Peter Bartok <pbartok@novell.com>
32847 * Panel.cs: Removed border_style, now in Control
32848 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
32849 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
32851 2005-02-13 Peter Bartok <pbartok@novell.com>
32853 * MouseButtons.cs: Added missing attributes
32854 * XplatUIStructs.cs: Added enumeration for title styles
32855 * LeftRightAlignment.cs: Added missing attributes
32856 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
32857 it compatible with Graphics.FromHwnd()
32858 * SelectedGridItemChangedEventArgs.cs: Fixed property type
32859 * Keys.cs: Added missing attributes
32860 * SelectionRange.cs: Added missing attributes
32861 * SelectionRangeConverter.cs: Added
32863 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
32864 ReleaseMenuDC methods
32865 - Renamed ReleaseWindow to UngrabWindow
32866 - Added proper startup notice to allow version identification
32868 - Added missing attributes
32869 - Removed FormParent concept
32870 * Label.cs: Removed border_style field, now in Control
32871 * RadioButton.cs: Now properly selects RadioButton when focus is
32873 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
32875 - Added missing attributes
32876 - Added borderstyle handling
32877 - Removed FormParent concept support
32878 - Fixed calls to XplatUI to match changed APIs
32879 - Fixed bug that would case us to use disposed Graphics objects
32880 - Removed unneeded internal methods
32881 - PerformLayout(): Fixed to handle DockStyle.Fill properly
32882 - SelectNextControl(): Fixed to properly check common parents
32883 * TextBoxBase.cs: Removed border_style field (now in Control)
32885 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
32886 fixed calculations for form size
32887 - Added support for localized strings and icons
32888 - Improved form size calculations, added border
32889 * ListView.cs: Removed border_style field (now in Control)
32890 * X11Structs.cs: Moved several structs from X11 driver here
32891 * X11Keyboard.cs: Changed debug message
32892 * Application.cs: Removed FormParent concept support
32894 - Resetting end_modal flag
32895 - Removed FormParent concept support
32896 * NativeWindow.cs: Removed FormParent concept support
32897 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
32898 Client area and Non-Client whole window to allow support for WM_NC
32900 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
32901 prevent using it until it supports Hwnd as per Geoff Norton's request
32902 * ToolBar.cs: Fixed drawing, was not doing proper drawing
32903 * PictureBox.cs: Removed border_style field, now in Control
32904 * XplatUIWin32.cs: Added new driver methods
32906 2005-02-12 Peter Bartok <pbartok@novell.com>
32908 * OpacityConverter.cs: Implemented
32909 * Hwnd.cs: Internal class to support drivers that need to emulate
32910 client area/non-client area window behaviour
32912 2005-02-11 Peter Bartok <pbartok@novell.com>
32914 * KeysConverter.cs: Implemented
32916 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
32918 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
32919 * LinkLabel: Added missing attributes
32920 * MainMenu.cs: fixes ToString
32921 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
32922 * ListBox.cs: fixes event position
32923 * TrackBar.cs: adds missing attributes and events
32925 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
32927 * MenuItem.cs: Use SystemInformation and bug fixes
32928 * MenuAPI.cs: Use SystemInformation and bug fixes
32930 2005-02-09 Jackson Harper <jackson@ximian.com>
32932 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
32933 their keystate otherwise things like VK_MENU get stuck "on".
32935 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
32937 * ListBox.cs: Fixes AddRange bug
32939 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
32942 - Add missing attributes
32943 - Add missing method
32945 * CheckedListBox.cs: Added missing attributes
32946 - Add missing attributes
32947 - Remove extra method
32949 * ComboBox.cs: Added missing attributes
32950 * VScrollBar.cs: Added missing attributes
32951 * ScrollBar.cs: Added missing attributes
32952 * ListBox.cs: Fixes signature, add missing consts
32953 * LinkArea.cs: Added missing attributes
32956 2005-02-08 Peter Bartok <pbartok@novell.com>
32958 * Menu.cs: Added missing attributes
32959 * MainMenu.cs: Added missing attributes
32960 * GroupBox.cs: Added missing attributes
32961 * Label.cs: Added missing attributes
32962 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
32964 - Added Instance and Options properties
32965 - Added missing attributes
32966 * Cursor.cs: Made Serializable
32967 * NotifyIcon: Added missing attributes
32968 * MenuItem.cs: Added missing attributes
32969 * TextBoxBase.cs: Implemented AppendText() and Select() methods
32970 * Panel.cs: Added Missing attributes
32971 * MonthCalendar.cs: Fixed CreateParams
32973 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
32977 - Fixes issues with links
32978 - Adds the class attributes
32980 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
32983 - Fixes button when no items available in dropdown
32984 - Fixes repainting problems
32985 - Adds the class attributes
32987 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32989 * XplatUIOSX.cs: Detect the menu bar and title bar height from
32990 the current theme. Cache these on startup.
32992 2005-02-07 Jackson Harper <jackson@ximian.com>
32994 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
32995 the scrollbar buttons when they are depressed.
32997 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32999 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33000 Get the display size from the main displayid. We currently dont
33001 support multiple display configurations.
33003 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33005 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33007 2005-02-07 Miguel de Icaza <miguel@novell.com>
33009 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33011 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
33013 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33015 2005-02-04 Jackson Harper <jackson@ximian.com>
33017 * ThemeWin32Classic.cs: Respect the clipping rect when
33018 drawing. Only fill the intersection of clips and rects so there
33019 isn't a lot of large fills.
33020 * ScrollBar.cs: Pass the correct clipping rect to the theme
33021 engine. Remove some debug code.
33023 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
33025 * DateTimePicker.cs:
33026 - Fixed crash on DateTime.Parse, use Constructor instead
33028 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33032 - Owner draw support (MeasureItem and DrawItem)
33034 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33037 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33038 - Fixes MenuItems.Add range
33040 - MergeMenu and Clone and CloneMenu functions
33042 2005-02-03 Jackson Harper <jackson@ximian.com>
33044 * ScrollBar.cs: Make abstract
33045 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33048 2005-02-03 Jackson Harper <jackson@ximian.com>
33050 * ScrollBar.cs: First part of my scrollbar fixups. This removes
33051 all the unneeded refreshes and uses invalidates with properly
33054 2005-02-03 Peter Bartok <pbartok@novell.com>
33056 * ComponentModel.cs: Added
33057 * IDataGridEditingService.cs: Added
33058 * Timer.cs: Added missing attributes
33059 * ToolTip.cs: Added missing attributes
33061 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
33063 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33065 2005-02-03 Peter Bartok <pbartok@novell.com>
33067 * ListBox.cs: Added missing attributes
33069 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
33072 - Fixes font height after font change
33073 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33075 2005-02-02 Peter Bartok <pbartok@novell.com>
33077 * HandleData.cs: Introduced static methods to allow class
33078 to be more self-contained and track it's own HandleData objects
33079 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33080 HandleData to use new static methods
33082 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
33085 - Fixes default size and PreferredHeight
33087 - ObjectCollection.Insert implementation
33093 - ObjectCollection.Insert implementation
33094 - No selection after clean
33097 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33099 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33101 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
33104 - Caches ItemHeight calculation for OwnerDrawVariable
33105 - Handles dropdown properly
33106 - Fixes several minor bugs
33108 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33111 - Fixes 71946 and 71950
33112 - Fixes changing Multicolumn on the fly
33113 - Fixes keyboard navigation on Multicolumn listboxes
33115 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33117 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33118 crash reporter log.
33120 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33122 * XplatUIOSX.cs: Allow applications to actually exit.
33124 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33126 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
33127 their parent at creation time rather than lazily later. Fixes a major
33128 regression we were experiencing.
33130 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33132 * ThemeWin32Classic.cs: more date time picker painting fixes
33133 * DateTimePicker.cs: more monthcalendar drop down fixes
33134 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33136 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33139 - When moving the thumb going outside the control should stop the moving
33140 - Adds the firing of missing events
33141 - Fixes no button show if Size is not specified
33142 - End / Home keys for keyboard navigation
33144 2005-01-30 Peter Bartok <pbartok@novell.com>
33146 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33147 sanity check to prevent theoretical loop
33148 * XplatUIWin32.cs (SetVisible): Removed debug output
33149 * XplatUIX11.cs (SystrayChange): Added sanity check
33150 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33151 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33152 behaviour, valid until the X11 client window rewrite is done
33153 * TextBox.cs (ctor): Setting proper default foreground and background
33156 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
33158 * Theme: Added DrawDateTimePicker to interface
33159 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33160 * DateTimePicker.cs: Created (still needs keys and painting code)
33161 * DateTimePickerFormat.cs: added
33162 * MonthCalendar.cs: fixed CreateParams for popup window mode
33164 2005-01-29 Peter Bartok <pbartok@novell.com>
33166 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33167 this should also the calculations for ligher/darker
33168 * Theme.cs: Fixed defaults for ScrollBar widths/heights
33170 2005-01-29 Peter Bartok <pbartok@novell.com>
33172 * ArrangeDirection.cs: Added
33173 * ArrangeStartingPositon.cs: Added
33174 * SystemInformation.cs: Implemented
33175 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33176 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33177 used by SystemInformation class
33178 * X11Strucs.cs: Added XSizeHints structure
33180 - Fixed CreateParams to make sure the menu window is always visible
33181 - TrackPopupMenu: Added check to make sure we don't draw the
33184 2005-01-29 Peter Bartok <pbartok@novell.com>
33186 * HandleData.cs: Added method for altering invalid area
33187 * TextBoxBase.cs: Implemented TextLength
33189 2005-01-28 Peter Bartok <pbartok@novell.com>
33191 * XplatUIX11.cs: Improvement over last patch, not sending
33192 the WM_PAINT directly anymore, instead we scroll any pending
33193 exposed areas and let the system pick out the WM_PAINT later
33195 2005-01-28 Peter Bartok <pbartok@novell.com>
33197 * SWF.csproj: Deleted, no longer used. Instead,
33198 Managed.Windows.Forms/SWF.csproj should be used
33199 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33200 directly, to avoid a potential race condition with the next
33203 2005-01-28 Peter Bartok <pbartok@novell.com>
33205 * XplatUI.cs: Made class internal
33207 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
33209 * CheckedListBox.cs:
33212 - Missing methods and events
33214 2005-01-27 Peter Bartok <pbartok@novell.com>
33216 * Application.cs (Run): Don't use form if we don't have one
33218 2005-01-27 Peter Bartok <pbartok@novell.com>
33220 * TextBoxBase.cs (get_Lines): Fixed index off by one error
33222 2005-01-27 Peter Bartok <pbartok@novell.com>
33224 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33225 * GridItem.cs: Added; Patch by Jonathan S. Chambers
33226 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33227 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33228 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33229 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33230 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33231 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33232 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33233 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33234 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33235 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33237 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33240 - Draw focus on Simple Combobox
33241 - Fixes drawing issues
33244 2005-01-27 Peter Bartok <pbartok@novell.com>
33247 - Place window in default location, instead of hardcoded 0/0
33248 - Send initial LocationChanged event
33250 - UpdateBounds after creation to find out where the WM placed us
33251 - Make sure that if the ParentForm changes location the Form
33253 * XplatUIX11.cs: XGetGeometry will not return the coords relative
33254 to the root, but to whatever the WM placed around us.
33255 Translate to root coordinates before returning toplevel
33257 * XplatUIWin32.cs: Removed debug output
33258 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33259 flag to GetWindowPos, to allow translation of coordinates on X11
33261 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33263 * ListBox.cs: connect LostFocus Event
33265 2005-01-27 Peter Bartok <pbartok@novell.com>
33267 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33268 XplatUIX11.cs: Extended the Systray API
33269 * Form.cs: Removed debug output
33270 * Application.cs: Fixed focus assignment, always need to call
33271 XplatUI.Activate() since Form.Activate() has rules that may
33273 * NotifyIcon.cs: Should be complete now
33274 * ToolTip.cs: Worked around possible timer bug
33276 2005-01-27 Jackson Harper <jackson@ximian.com>
33279 - Only invalidate the effected tabs when the
33280 selected index changes. This reduces drawing and gets rid of some
33282 - Only refresh if the tabs need to be shifted, otherwise only
33283 invalidate the slider button.
33284 - On windows the tabs are not filled to right if the slider is
33287 2005-01-27 Jackson Harper <jackson@ximian.com>
33289 * TabControl.cs: Only refresh on mouseup if we are showing the
33290 slider. Also only invalidate the button whose state has changed.
33292 2005-01-26 Peter Bartok <pbartok@novell.com>
33294 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33295 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33296 and SystrayRemove() methods
33297 * XplatUIOSX.cs: Stubbed Systray methods
33299 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33301 - Fixed broken XChangeProperty calls (marshalling messed up things)
33302 * X11Structs.cs: Added enums and structs required for Size hinting
33303 * NotifyIcon.cs: Added & implemented
33305 2005-01-26 Jackson Harper <jackson@ximian.com>
33307 * TabControl.cs: Space vertically layed out tabs properly.
33309 2005-01-26 Peter Bartok <pbartok@novell.com>
33311 * Form.cs (CreateClientParams): Always set the location to 0,0
33312 since we're a child window.
33314 * Control.cs (SetVisibleCore): Always explicitly setting the location
33315 of a toplevel window, apparently X11 doesn't like to move windows
33316 while they're not mapped.
33318 2005-01-26 Jackson Harper <jackson@ximian.com>
33320 * TabControl.cs: Implement FillToRight size mode with vertically
33323 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33325 * ControlPaint.cs, ThemeWin32Classic.cs
33326 - Fixes DrawFocusRectangle
33328 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33331 - MenuBar tracking only starts when item is first clicked
33332 - Fixes menu hidding for multiple subitems
33333 - Unselect item in MenuBar when item Executed
33336 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
33339 - IsInputKey for ListBox
33342 - Shift and Control item selection
33343 - Implement SelectionMode.MultiExtended
33344 - Fixes RightToLeft
33346 - IsInputKey implemented
33347 - Do not generate OnTextChangedEdit on internal txt changes
33349 2005-01-23 Peter Bartok <pbartok@novell.com>
33351 * AccessibleObject.cs: Partially implemented Select()
33352 * MonthCalendar.cs: Added missing attributes and events
33353 * Form.cs: Fixed CreateParams behaviour, now controls derived from
33354 form can properly override CreateParams.
33355 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33356 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33357 Control performs Invalidate & Update
33358 * NativeWindow (CreateHandle): Added special handling for Form
33359 and Form.FormParent classes to allow overriding of From.CreateParams
33361 - ControlNativeWindow: Renamed 'control' variable to more intuitive
33363 - ControlNativeWindow: Added Owner property
33364 - Removed usage of Refresh() on property changes, changed into
33365 Invalidate(), we need to wait until the queue is processed for
33366 updates, direct calls might cause problems if not all vars for
33367 Paint are initialized
33368 - Added call to UpdateStyles() when creating the window, to set any
33369 styles that CreateWindow might have ignored.
33370 - Added support for Form CreateParent overrides to UpdateStyles()
33371 * MessageBox.cs: Removed no longer needed FormParent override stuff,
33372 CreateParams are now properly overridable
33373 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33374 CreateParams are now properly overridable
33376 2005-01-23 Miguel de Icaza <miguel@ximian.com>
33378 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33381 Capture LostFocus and OnTextBoxChanged. The later introduces a
33382 recursive invocation that I have not figured out yet.
33384 Reset the timer when not using (it was accumulating).
33387 (OnTextBoxChanged): Set UserEdit to true here to track whether the
33388 user has made changes that require validation.
33390 Reset changing to avoid loops.
33392 2005-01-22 Miguel de Icaza <miguel@ximian.com>
33394 * NumericUpDown.cs: Display value at startup.
33396 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33399 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33400 filled in. Added some basic parsing of text.
33402 Still missing the OnXXX method overrides, and figuring out the
33403 events that must be emitted.
33405 * UpDownBase.cs: Handle UserEdit on the Text property.
33407 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
33410 - Fixes IntegralHeight
33413 2005-01-21 Jackson Harper <jackson@ximian.com>
33415 * TabControl.cs: Set the SelectedIndex property when SelectedTab
33416 is set so that the page visibility is updated and the tabs are
33419 2005-01-21 Jackson Harper <jackson@ximian.com>
33421 * TabControl.cs: Use cliping rectangle for blitting. Give the
33422 theme the clipping rect so we can do clipping while
33423 drawing. Remove some debug code.
33425 2005-01-21 Jackson Harper <jackson@ximian.com>
33427 * TabPage.cs: Add a new method so tab pages can force the tab
33428 control to recalculate the tab page sizes.
33429 * TabControl.cs: UpdateOwner needs to make the tab control recalc
33432 2005-01-20 Jackson Harper <jackson@ximian.com>
33434 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
33436 2005-01-20 Jackson Harper <jackson@ximian.com>
33438 * TreeView.cs: Set the bounds for nodes properly. They were
33439 getting screwed up when checkboxes were not enabled, but images
33442 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
33445 - Owner draw support
33448 2005-01-20 Jackson Harper <jackson@ximian.com>
33450 * XplatUIStructs.cs: More misc keys
33451 * X11Keyboard.cs: Ignore some control keys.
33453 2005-01-20 Jackson Harper <jackson@ximian.com>
33455 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
33456 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
33458 2005-01-19 Peter Bartok <pbartok@novell.com>
33460 * Control.cs: Un-selecting the control when it is loosing focus
33462 2005-01-19 Jackson Harper <jackson@ximian.com>
33464 * TreeView.cs: Hook up to the text controls leave event so we can
33465 end editing when the users clicks outside the text box.
33467 2005-01-19 Jackson Harper <jackson@ximian.com>
33469 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
33470 get set in the conversion array.
33472 2005-01-19 Peter Bartok <pbartok@novell.com>
33474 * Application.cs (ModalRun): Added a call to CreateControl to ensure
33475 focus is properly set
33477 - Added missing attributes
33478 - removed styles, those are already set in the base class
33480 - Added missing attributes
33481 - Added clip window styles
33482 * CheckBox.cs: Added missing attributes
33484 - FormParentWindow.CreateParams: Added required clip styles
33485 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
33486 also filters modifier keys
33488 - Added assignment of Accept and Cancel button to enable Enter
33489 and Esc keys in MessageBox dialogs
33490 - FormParentWindow.CreateParams: Added required clip styles
33491 * RadioButton.cs: Added missing attributes
33492 * TextControl.cs: No longer draws selection if control does not
33495 - Now draws simple rectangle around test area to make it obvious
33496 there's a control. This is a hack until we properly support borders
33497 - A few simple fixes to support selections better, now erases selected
33498 text when typing, and resets selection when using movement keys
33500 2005-01-19 Miguel de Icaza <miguel@ximian.com>
33502 * UpDownBase.cs: Added some new properties.
33504 * DomainUpDown.cs: Implement a lot to get my test working.
33506 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33508 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
33510 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33512 * OSXStructs (WindowAttributes): Fixed csc complaints
33514 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33517 OSXStructs.cs: Initial refactor to move enums and consts into
33518 OSXStructs and use them in the driver for greater readability.
33520 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33522 * XplatUIOSX.cs: Initial support for Standard Cursors.
33523 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
33525 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
33527 * ComboBox.cs: ability to change style when the ctrl is already
33528 created, missing methods and events, bug fixes, signature fixes
33530 2005-01-19 Peter Bartok <pbartok@novell.com>
33532 * Cursors.cs (ctor): Added ctor to fix signature
33534 2005-01-18 Peter Bartok <pbartok@novell.com>
33536 * Button.cs: Implemented DoubleClick event
33538 - Fixed keyboard handling to behave like MS, where the press of
33539 Spacebar is equivalent to a mousedown, and the key release is
33540 equivalent to mouseup. Now a spacebar push will give the same
33541 visual feedback like a mouse click.
33542 - Added missing attributes
33543 - Added ImeModeChanged event
33544 - Added support for generating DoubleClick event for derived classes
33546 - Implemented DoubleClick event
33547 - Added missing attributes
33548 * CommonDialog.cs: Added missing attribute
33549 * ContextMenu.cs: Added missing attributes
33551 - AutoChecked buttons do not allow to be unselected when clicked
33552 (otherwise we might end up with no selected buttons in a group)
33553 - Added missing attributes
33554 - Implemented DoubleClickEvent
33555 * ThreadExceptionDialog.cs: Enabled TextBox code
33557 2005-01-18 Peter Bartok <pbartok@novell.com>
33559 * Form.cs: Removed debug output
33560 * Button.cs: Added support for DoubleClick method
33562 2005-01-18 Peter Bartok <pbartok@novell.com>
33565 - Added method to parent window that allows triggering size
33566 calculations when a menu is added/removed
33567 - set_Menu: Cleaned up mess from early days of Form and Control,
33568 now properly triggers a recalc when a menu is added/removed
33569 - Added case to select form itself as focused form if no child
33571 - Added PerformLayout call when showing dialog, to ensure properly
33574 - Select(): Made internal so Form can access it
33575 - Focus(): Only call Xplat layer if required (avoids loop), and sets
33577 * Application.cs (Run): Removed hack and calls PerformLayout instead
33578 to trigger calculation when Form becomes visible
33580 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
33582 * ComboBox.cs: fixes for ownerdraw
33584 2005-01-18 Peter Bartok <pbartok@novell.com>
33587 - Sentinel is no longer static, each Document gets it's own, this
33588 avoids locking or alternatively overwrite problems when more
33589 than one text control is used simultaneously.
33590 - Switched to use Hilight and HilightText brushes for text selection
33592 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
33594 2005-01-18 Peter Bartok <pbartok@novell.com>
33597 - Hooked up the following events:
33605 o SystemColorsChanged
33606 o ParentFontChanged
33608 - Removed debug output
33609 - Added a call to the current theme's ResetDefaults when a color change
33611 * Form.cs: Now setting the proper ImeMode
33612 * Theme.cs: Defined a method to force recreation of cached resources
33613 and rereading of system defaults (ResetDefaults())
33614 * ThemeWin32Classic.cs: Added ResetDefaults() stub
33616 2005-01-17 Peter Bartok <pbartok@novell.com>
33618 * Control.cs: Added missing attributes
33620 2005-01-17 Jackson Harper <jackson@ximian.com>
33622 * TreeNode.cs: Implement editing. Add missing properties selected
33624 * TreeView.cs: Implement node editing. Also some fixes to use
33625 Invalidate (invalid area) instead of Refresh when selecting.
33627 2005-01-17 Peter Bartok <pbartok@novell.com>
33630 - Implemented InvokeGotFocus() method
33631 - Implemented InvokeLostFocus() method
33632 - Implemented InvokePaint() method
33633 - Implemented InvokePaintBackground() method
33634 - Implemented InvokeClick() method
33635 - Implemented FindForm() method
33636 - Implemented RectangleToClient() method
33637 - Implemented ClientToRectangle() method
33638 - Implemented ResetBackColor() method
33639 - Implemented ResetCursor() method
33640 - Implemented ResetFont() method
33641 - Implemented ResteForeColor() method
33642 - Implemented ResetImeMode() method
33643 - Implemented ResetLeftToRight() method
33644 - Implemented ResetText() method
33645 - Implemented Scale() methods
33646 - Implemented ScaleCore() method
33647 - Implemented Update() method
33648 - Removed unused variables
33649 - Stubbed AccessibilityNotifyClients and
33650 ControlAccessibleObject.NotifyClients() methods (dunno what to do
33652 - Now setting proper default for RightToLeft property
33653 - Fixed bug in SetClientSizeCore that would cause windows to get
33655 - Now sending Click/DoubleClick events
33656 - Now selecting controls when left mouse button is clicked on
33658 * AccessibleEvents.cs: Added
33659 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
33660 * XplatUIOSX.cs: Stubbed UpdateWindow() method
33661 * XplatUIWin32.cs: Implemented UpdateWindow() method
33662 * XplatUIX11.cs: Implemented UpdateWindow() method
33663 * Form.cs: Removed stray semicolon causing CS0162 warning
33664 * ThemeWin32Classic.cs: Fixed unused variable warnings
33665 * ScrollableControl.cs: Now calls base method for ScaleCore
33666 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
33667 style to avoid interference with internal click handler (which is
33668 different than standard Control click handling)
33670 - Now unchecks all sibling radio buttons when control is
33671 selected (Fixes #68756)
33672 - Removed internal tabstop variable, using the one inherited from
33675 2005-01-17 Jackson Harper <jackson@ximian.com>
33677 * NavigateEventArgs.cs: Fix base type.
33678 * LinkLabel.cs: Sig fix
33680 2005-01-17 Jackson Harper <jackson@ximian.com>
33682 * TreeView.cs: Only invalidate the effected nodes bounds when
33685 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
33687 * XplatUIWin32.cs: fixes Win32 marshaling
33688 * XplatUIX11.cs: fixes method signature
33690 2005-01-17 Peter Bartok <pbartok@novell.com>
33692 * XplatUIX11.cs: Clean up resources when we no longer need them
33694 2005-01-17 Peter Bartok <pbartok@novell.com>
33696 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
33697 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
33698 and DestroyCursor() methods.
33699 * Cursor.cs: Partially implemented, now supports standard cursors;
33700 still contains some debug code
33701 * Cursors.cs: Implemented class
33703 - WndProc(): Added handling of WM_SETCURSOR message, setting the
33705 - Implemented Cursor property
33706 - Replaced break; with return; more straightforwar and possibly
33708 - Now properly setting the result for WM_HELP
33709 * X11Structs.cs: Added CursorFontShape enum
33710 * XplatUIStructs.cs:
33711 - Added StdCursor enum (to support DefineStdCursor() method)
33712 - Added HitTest enum (to support sending WM_SETCURSOR message)
33714 - Now sends the WM_SETCURSOR message
33715 - Implemented new cursor methods
33716 * XplatUIOSX.cs: Stubbed new cursor methods
33718 - Implemented new cursor methods
33719 - Added GetSystemMetrics function and associated enumeration
33721 2005-01-15 Peter Bartok <pbartok@novell.com>
33724 - WndProc(): Now handles EnableNotifyMessage
33725 - SelectNextControl(): Fixed bug where if no child or sibling
33726 controls exist we looped endlessly
33728 2005-01-14 Jackson Harper <jackson@ximian.com>
33730 * TreeView.cs: Recalculate the tab pages when a new one is added
33731 so that the proper bounding rects are created.
33733 2005-01-14 Jackson Harper <jackson@ximian.com>
33735 * TreeView.cs: Draw a gray box instead of a grip in the lower
33736 right hand corner when there are both horizontal and vertical
33739 2005-01-14 Jackson Harper <jackson@ximian.com>
33741 * Control.cs: When erasing backgrounds use FromHwnd instead of
33742 FromHdc when there is a NULL wparam. This occurs on the X driver.
33743 * XplatUIX11.cs: Set the wparam to NULL.
33745 2005-01-13 Jackson Harper <jackson@ximian.com>
33747 * PictureBox.cs: Implement missing methods (except ToString, need
33748 to test that on windows) and events. When visibility is changed we
33749 need to redraw the image because the buffers are killed. When size
33750 is changed refresh if the sizemode needs it.
33752 2005-01-13 Peter Bartok <pbartok@novell.com>
33754 * Control.cs (SelectNextControl): Was using wrong method to select
33757 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
33759 * ComboBox.cs: fixes dropstyle
33761 2005-01-13 Peter Bartok <pbartok@novell.com>
33764 - Implemented Select() override
33765 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
33766 - Now sets keyboard focus on startup
33767 * Control.cs (SelectNextControl): Now properly handles directed=true
33769 - WndProc: Now passes tab key on to base if AcceptTabChar=false
33770 - Added (really bad) focus rectangle (mostly for testing)
33771 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
33772 to enforce redraw on focus changes
33773 * ContainerControl.cs:
33774 - Fixed detection of Shift-Tab key presses
33775 - Fixed traversal with arrow keys
33776 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
33777 gonna keep this or if it's complete yet
33779 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
33781 * ComboBox.cs: missing properties, fixes
33783 2005-01-13 Peter Bartok <pbartok@novell.com>
33785 * Panel.cs (ctor): Setting Selectable window style to off
33786 * Splitter.cs (ctor): Setting Selectable window style to off
33787 * GroupBox.cs (ctor): Setting Selectable window style to off
33788 * Label.cs (ctor): Setting Selectable window style to off
33790 2005-01-12 Miguel de Icaza <miguel@ximian.com>
33792 * UpDownBase.cs (InitTimer): If the timer has been already
33793 created, enable it.
33795 Use a TextBox instead of a Label.
33797 2005-01-12 Jackson Harper <jackson@ximian.com>
33799 * TreeView.cs: Refresh the tree after sorting the nodes. Always
33800 draw the connecting node lines (when ShowLines is true).
33801 * TreeNode.cs: The nodes index can now be updated. This is used
33802 when a node collection is sorted.
33803 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
33804 insert or an existing unsorted node collection can be sorted.
33806 2005-01-12 Peter Bartok <pbartok@novell.com>
33808 * ContainerControl.cs: Implemented ProcessDialogKeys()
33810 2005-01-12 Peter Bartok <pbartok@novell.com>
33813 - Implemented SelectNextControl() method
33814 - Several focus related bug fixes
33815 - Fixed Docking calculations to match MS documentation and
33818 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
33820 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
33823 2005-01-12 Peter Bartok <pbartok@novell.com>
33826 - Fixed broken Contains() method
33827 - Implemented GetNextControl() method. Finally. This is the pre-
33828 requisite for focus handling.
33830 2005-01-12 Peter Bartok <pbartok@novell.com>
33832 * OSXStrucs.cs: Added
33834 2005-01-12 Peter Bartok <pbartok@novell.com>
33837 - Removed PeekMessageFlags
33838 - Implemented SetWindowStyle() method
33839 * XplatUIStructs.cs: Added PeekMessageFlags
33840 * X11Structs: Added missing border_width field to XWindowChanges struct
33842 - PeekMessage: Now throws exception if flags which are not yet
33843 supported are passed
33844 - Implemented SetWindowStyle() method
33845 - Fixed SetZOrder to handle AfterHwnd properly
33846 * XplatUI.cs: Added SetWindowStyle() method
33847 * XplatUIDriver.cs: Added SetWindowStyle() abstract
33849 - Implemented UpdateStyles() method
33850 - Implemented UpdateZOrder() method
33851 * XplatUIOSX.cs: Added SetWindowStyle() stub
33853 2005-01-12 Geoff Norton <gnorton@customerdna.com>
33855 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
33859 2005-01-11 Jackson Harper <jackson@ximian.com>
33861 * TreeView.cs: Still need to draw lines to siblings even if out of
33862 the current node is out of the clip.
33864 2005-01-11 Jackson Harper <jackson@ximian.com>
33866 * TreeView.cs: When setting the hbar/vbar/grip position use
33867 SetBounds so that perform layout is only called once. Also suspend
33868 and resume layout so layout is only done once for all controls.
33869 - Removed some debug fluff
33870 * SizeGrip.cs: Call base implmentation in overriding methods.
33871 - When visibility is changed the drawing buffers are killed so we
33874 2005-01-11 Jackson Harper <jackson@ximian.com>
33876 * TreeView.cs: Calculate the open node count while drawing. This
33877 saves us an entire tree traversal for every paint operation. Use
33878 a member var for the open node count so less vars are passed around.
33880 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
33882 * MonthCalendar.cs:
33883 - fixed selection to use mousemove, not mouse polling on timer
33884 * ThemeWin32Classic.cs
33885 - removed redundant unused variable "no_more_content"
33887 2005-01-11 Peter Bartok <pbartok@novell.com>
33889 * XplatUIX11.cs (DoEvents): Needs to return when no more events
33890 are pending, so it now calls PeekMessage instead of GetMessage;
33891 implemented a incomplete version of PeekMessage
33893 2005-01-11 Peter Bartok <pbartok@novell.com>
33895 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
33897 * TextBoxBase.cs: Added sending of TextChanged event
33899 2005-01-10 Jackson Harper <jackson@ximian.com>
33901 * TreeView.cs: Try not to draw outside the clipping rectangle on
33904 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
33906 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
33908 2005-01-10 Jackson Harper <jackson@ximian.com>
33911 - Implement fast scrolling. Now only the newly
33912 exposed nodes are drawn and the old image is moved using the
33913 XplatUI::ScrollWindow method.
33914 - Factor in height of nodes when calculating whether or not the
33915 node is in the clipping rect.
33917 2005-01-10 Jackson Harper <jackson@ximian.com>
33919 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
33921 2005-01-10 Peter Bartok <pbartok@novell.com>
33923 * Application.cs: Added temporary hack to resolve all our resize
33924 required issues on startup. This will get fixed properly at
33925 some point in the future
33927 2005-01-10 Jackson Harper <jackson@ximian.com>
33929 * SizeGrip.cs: New internal class that is used as a sizing
33930 grip control...hence the name.
33932 2005-01-10 Peter Bartok <pbartok@novell.com>
33934 * Control.cs: Implemented proper TabIndex handling, now assigning
33935 a tabindex when a control is added to a container
33936 * GroupBox.cs (ctor): Now sets the Container style bit, required
33937 for Control.GetNextControl()
33939 2005-01-09 Jackson Harper <jackson@ximian.com>
33941 * TextBoxBase.cs: Clear window when scrolling (fixes build).
33943 2005-01-09 Peter Bartok <pbartok@novell.com>
33945 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33946 XplatUIX11.cs: Added ability to control ScrollWindow expose and
33947 an overload for ScrollWindow to allow only scrolling a rectangle
33949 2005-01-09 Peter Bartok <pbartok@novell.com>
33952 - Implemented SetDesktopBounds method
33953 - Implemented SetDesktopLocation method
33955 2005-01-08 Jackson Harper <jackson@ximian.com>
33957 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
33958 the node count has changed, this removes to VScroll::Refresh calls
33961 2005-01-08 Geoff Norton <gnorton@customerdna.com>
33963 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
33965 2005-01-07 Jackson Harper <jackson@ximian.com>
33967 * TreeNode.cs: Just update the single node when it is
33968 checked. Don't refresh after toggling, the Expand/Collapse already
33970 * TreeView.cs: Respect clipping a little more when drawing. Try
33971 not to redraw things that don't need to be redrawn. Just hide the
33972 scrollbars when they are no longer needed instead of removing
33973 them, so they don't have to be created again and again.
33975 2005-01-07 Geoff Norton <gnorton@customerdna.com>
33977 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
33978 coordinates to window space to place the caret properly, FIXED.
33979 Implement GetWindowState & SetWindowState
33981 2005-01-06 Peter Bartok <pbartok@novell.com>
33984 - Implemented ClientSize property
33985 - Implemented DesktopBounds property
33986 - Implemented DesktopLocation property
33987 - Implemented IsRestrictedWindow property
33988 - Implemented Size property
33989 - Implemented TopLevel property
33990 - Implemented FormWindowState property
33992 - Implemented GetTopLevel() method
33993 - Implemented SetTopLevel() method
33994 * X11Structs.cs (Atom):
33995 - Added AnyPropertyType definition
33996 - Added MapState definiton and updated XWindowAttribute struct
33997 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
33998 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
33999 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34001 - Implemented GetWindowState() and SetWindowState() methods
34002 - Fixed Win32GetWindowLong return type
34004 - Introduced central function for sending NET_WM messages
34005 - Implemented GetWindowState() and SetWindowState() methods
34006 * TextBoxBase.cs (set_Lines):
34007 - Now uses Foreground color for text added via Text property (Duh!)
34008 - Added code to remember programmatically requested size (fixes
34009 behaviour when Multiline is set after Size)
34010 - Added AutoSize logic
34012 2005-01-06 Jackson Harper <jackson@ximian.com>
34014 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34016 2005-01-06 Jackson Harper <jackson@ximian.com>
34018 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34019 set to less then 0.
34021 2005-01-06 Jackson Harper <jackson@ximian.com>
34023 * ScrollableControl.cs: Lazy init the scrollbars.
34025 2005-01-06 Jackson Harper <jackson@ximian.com>
34027 * Theme.cs: Speed up getting pens and solid brushes, by using
34028 their ARGB as a hash instead of tostring and not calling Contains.
34030 2005-01-06 Peter Bartok <pbartok@novell.com>
34033 - Implemented OnActivated and OnDeactivate event trigger
34034 - Implemented Activate() method
34035 - Fixed ShowDialog() to activate the form that was active before
34036 the dialog was shown
34038 - Added global active_window var that tracks the currently active
34040 - Now always grabs Property changes from the root window to always
34041 catch changes on the active window property
34042 - Added code to PropertyNotify handler to send Active/Inactive
34043 messages when state changes. This puts X11 and Win32 en par on
34044 WM_ACTIVATE notifications (except for double notifications when
34045 the user clicks away from our modal window to another one of our
34048 2005-01-05 Jackson Harper <jackson@ximian.com>
34050 * ImageList.cs: Implment ctor
34052 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34054 * XplatUIOSX.cs: Implement Activate/SetTopmost
34056 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34058 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34060 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34062 * XplatUIOSX.cs: Implement GetActive/SetFocus.
34064 2005-01-05 Peter Bartok <pbartok@novell.com>
34066 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34067 XplatUIOSX.cs: Added GetActive method to return the currently
34068 active window for the application (or null, if none is active)
34070 - Implemented ActiveForm
34071 - Commented out owner assignment for modal dialogs (causes problems
34072 on Win32, since the owner will be disabled)
34073 - Reworked some Active/Focus handling (still incomplete)
34074 * CommonDialog.cs: Commented out owner assignment for modal dialogs
34075 (causes problems on Win32, since the owner will be disabled)
34076 * IWin32Window: Added ComVisible attribute
34078 2005-01-05 Peter Bartok <pbartok@novell.com>
34080 * ToolTip.cs (WndProc): Enable setting focus now that we have the
34081 required XplatUI functions.
34083 2005-01-05 Peter Bartok <pbartok@novell.com>
34085 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34086 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34087 to implement focus and activation handling; still incomplete and
34090 2005-01-04 Peter Bartok <pbartok@novell.com>
34092 * TextBoxBase.cs: Changed access level for Document property to
34093 match switch to internal for TextControl
34095 2005-01-04 Peter Bartok <pbartok@novell.com>
34097 * AccessibleObject: Added ComVisible attribute
34099 2005-01-04 Jackson Harper <jackson@ximian.com>
34101 * X11Keyboard.cs: Remove unneeded var.
34103 2005-01-04 Jackson Harper <jackson@ximian.com>
34105 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34107 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34108 ClientMessage. This makes apps exit cleanly (more often).
34110 2005-01-04 Jackson Harper <jackson@ximian.com>
34112 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34113 handling focus, return correct colors and fonts,
34114 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34115 handle selection, horizontal scrolling, and mouse interaction.
34117 2005-01-04 Peter Bartok <pbartok@novell.com>
34119 * ICommandExecutor.cs: Added
34120 * IDataGridColumnStyleEditingNotificationService.cs: Added
34121 * IFeatureSupport.cs: Added
34122 * IFileReaderService.cs: Added
34123 * IDataObject.cs: Added ComVisible attribute
34124 * AmbientProperties.cs: Added
34125 * BaseCollection.cs: Added missing attributes
34126 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34127 * BaseCollection.cs: Added missing attributes
34128 * Binding.cs: Added TypeConverter attribute
34129 * BindingContext.cs: Added DefaultEvent attribute
34130 * BindingsCollection.cs: Added DefaultEvent attribute
34131 * Button.cs: Added DefaultValue attribute
34132 * DragEventArgs.cs: Added ComVisible attribute
34133 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34134 * KeyEventArgs.cs: Added ComVisible attribute
34135 * KeyPressEventArgs.cs: Added ComVisible attribute
34136 * MouseEventArgs.cs: Added ComVisible attribute
34137 * NavigateEventArgs.cs: Added
34138 * NavigateEventHandler.cs: Added
34139 * FeatureSupport.cs: Added
34140 * OSFeature.cs: Added
34141 * Theme.cs: Added abstract Version property to support OSFeature
34142 * ThemeWin32Classic.cs: Added Version property to
34143 support OSFeature.Themes
34144 * ProgressBar.cs: Removed OnPaintBackground override, not required since
34145 the proper styles to avoid background drawing are set, also doesn't
34147 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34148 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34149 * ScrollEventArgs.cs: Added ComVisible attribute
34150 * SplitterEventArgs.cs: Added ComVisible attribute
34151 * AccessibleSelection.cs: Added Flags attribute
34152 * Appearance.cs: Added ComVisible attribute
34153 * Border3DSide.cs: Added ComVisible attribute
34154 * Border3DStyle.cs: Added ComVisible attribute
34155 * BorderStyle.cs: Added ComVisible attribute
34156 * DragAction.cs: Added ComVisible attribute
34157 * ErrorBlinkStyle.cs: Added
34158 * ScrollEventType.cs: Added ComVisible attribute
34159 * AnchorStyles.cs: Added Editor attribute
34160 * DockStyle.cs: Added Editor attribute
34161 * HorizontalAlignment.cs: Added ComVisible attribute
34162 * HelpEventArgs.cs: Added ComVisible attribute
34163 * PaintEventArgs.cs: Added IDisposable
34165 2005-01-04 Peter Bartok <pbartok@novell.com>
34167 * TextControl.cs: Switched Line, LineTag and Document classes to
34170 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34172 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34173 Simple mode, fixes, IntegralHeight, etc.
34175 2005-01-04 Peter Bartok <pbartok@novell.com>
34177 * TextBoxBase.cs: Using proper font variable now
34179 2005-01-04 Peter Bartok <pbartok@novell.com>
34181 * Form.cs (ShowDialog): Set parent to owner, if provided
34182 * GroupBox.cs: Removed unused vars
34184 - Added GetHashCode() for Document and LineTag classes
34185 - Removed unused variables
34186 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34187 to allow translation between continuous char position and line/pos
34188 * CheckBox.cs: Removed vars that are provided by base class
34189 * RadioButton.cs: Removed vars that are provided by base class, added
34190 new keyword where required
34191 * LinkLabel.cs: Added new keyword where required
34192 * Control.cs (WndProc): Removed unused variable
34194 - Finished SelectionLength property
34195 - Implemented SelectionStart property
34196 - Implemented Text property
34197 - Removed unused vars
34198 * MessageBox.cs: Added new keyword where required
34199 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34201 * MenuAPI.cs: Added new keyword where required
34202 * ButtonBase.cs: Removed vars that are provided by base class, added
34203 new keyword where required
34204 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34205 argument to double, to allow compiling with csc 2.0 (Atsushi ran
34207 * Application.cs (Run): Now triggers the ThreadExit event
34208 * CommonDialog.cs: Added new keyword where required; now properly sets
34209 parent (owner) for dialog
34210 * XplatUIX11.cs: Commented out unused vars
34211 * StatusBar.cs: Fixed signature for Text property
34212 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34214 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34216 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34217 TrackBar.cs, MonthCalendar.cs: remove unused vars
34219 2005-01-03 Jackson Harper <jackson@ximian.com>
34221 * ThemeWin32Classic.cs:
34222 * X11Keyboard.cs: Remove unused vars.
34224 2005-01-03 Peter Bartok <pbartok@novell.com>
34227 - set_Text: Tied into TextControl
34228 - set_TextAlignment: Tied into TextControl
34230 - Added alignment properties and implemented alignment handling
34231 and drawing (still has a bug, not generating proper expose events)
34232 - Added new Line() constructor to allow passing the line alignment
34233 - Fixed selection setting, properly handling end<start now
34234 - Added aligment considerations to RecalculateDocument()
34236 - Now properly enforces control height for single line controls
34237 - Added support for CharacterCasing
34238 - Added IsInputKey override
34239 - Fixed Keys.Enter logic
34240 - Added SetBoundsCore override
34241 - Fixed mouse selection handling
34243 2005-01-03 Jackson Harper <jackson@ximian.com>
34246 - Collapse and uncheck all nodes when CheckBoxes is disabled.
34247 - Checkboxes are always aligned to the bottom of the node,
34248 regardless of item height.
34249 - Use the node bounds to draw the text so we can center it when
34250 the item height is greater then the font height.
34251 - Node::Bounds are only the text part of the node.
34252 * TreeNode.cs: New method to combine collapsing and unchecking all
34255 2005-01-02 Jackson Harper <jackson@ximian.com>
34257 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34258 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34259 tree when a check is changed. TODO: Only refresh the checked node.
34261 2004-12-30 Jackson Harper <jackson@ximian.com>
34263 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34264 * TreeNode.cs: When collapsing make sure to never collapse the
34267 2004-12-29 Jackson Harper <jackson@ximian.com>
34269 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34271 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
34273 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34275 2004-12-28 Peter Bartok <pbartok@novell.com>
34277 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34280 2004-12-28 Peter Bartok <pbartok@novell.com>
34282 * Control.cs (WndProc): Added WM_HELP handler, now generates
34283 HelpRequested event
34284 * Form.cs: Added HelpButton property and required support code
34285 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34287 2004-12-28 Peter Bartok <pbartok@novell.com>
34290 - Made DialogForm.owner variable internal
34291 - Added check to ensure owner form is set before setting
34292 owner properties in CreateParams
34294 2004-12-28 Geoff Norton <gnorton@customerdna.com>
34296 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
34297 swizzling. Implement ClientToScreen and ScreenToClient. Implement
34298 GetCursorPos. Fix major visibility issues. Rework the windowing
34299 system to support borderless/titleless windows (implements menus).
34300 Fix GetWindowPos. Implement initial background color support for
34303 2004-12-28 Peter Bartok <pbartok@novell.com>
34305 * Form.cs (get_CreateParams): Make sure we have an owner before using
34306 the owner variable. Implement proper default if no owner exists
34308 2004-12-28 Peter Bartok <pbartok@novell.com>
34310 * In preparation for making Managed.Windows.Forms the default build target
34311 for System.Windows.Forms, the following stubbed files were added.
34312 Dialogs are currently being implemented by contributors and are only
34313 short-term place holders.
34314 * ColorDialog.cs: Initial check-in (minmal stub)
34315 * DataGrid.cs: Initial check-in (minimal stub)
34316 * DataGridLineStyle.cs: Initial check-in (minimal stub)
34317 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34318 * DataGridTableStyle.cs: Initial check-in (minimal stub)
34319 * FontDialog.cs: Initial check-in (minimal stub)
34320 * FileDialog.cs: Initial check-in (minimal stub)
34321 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34322 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34323 * OpenFileDialog: Initial check-in (minimal stub)
34324 * IComponentEditorPageSite.cs: Initial check-in
34325 * Splitter.cs: Initial check-in (for Jackson)
34326 * SplitterEventArgs.cs: Initial check-in (for Jackson)
34327 * SplitterEventHandler.cs: Initial check-in (for Jackson)
34328 * TextBox.cs: Initial check-in; still needs some wiring to
34329 TextControl backend
34330 * Form.cs: Implemented ControlBox property
34331 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34332 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34333 * TextControl.cs: Added selection functionality; added todo header
34335 - Implemented Lines property
34336 - Implemented TextHeight property
34337 - Implemented SelectedText property
34338 - Implemented SelectionLength property
34339 - Implemented SelectAll method
34340 - Implemented ToString method
34341 - Removed and cleaned up some debug code
34342 - Implemented (still buggy) mouse text selection
34344 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
34346 * ComboBox.cs: Complete DropDownList implementation, fixes.
34348 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
34350 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34351 * ComboBoxStyle.cs: ComboBoxStyle enum
34352 * ComboBox.cs: Initial work on ComboBox control
34354 2004-12-21 Peter Bartok <pbartok@novell.com>
34356 * Control.cs (ctor, CreateParams): Moved setting of is_visible
34357 forward so that anything that creates a window gets the default,
34358 also no longer uses Visible property in CreateParams to avoid
34359 walking up the parent chain and possibly get the wrong visible
34360 status. Fixed IsVisible to no longer walk up to the parent.
34362 2004-12-21 Peter Bartok <pbartok@novell.com>
34364 * Form.cs (ShowDialog): Unset modality for the proper window
34366 2004-12-20 Peter Bartok <pbartok@novell.com>
34368 * CommonDialog.cs: Initial check-in
34370 2004-12-20 Peter Bartok <pbartok@novell.com>
34372 * Control.cs (Visible): Now uses the parent window instead of the
34373 client area window for the property
34376 - ShowDialog(): Now uses the proper window for modality
34377 - The default visibility state for the form parent is now false. This
34378 will prevent the user from seeing all the changes to the form and
34379 its controls before the application hits Application.Run()
34380 - Removed some stale commented out code
34383 - Added FindWindow() method to have a method to check for existence
34385 - Added ability to override default exception handling (for example
34386 when debugging with VS.Net; to do this the ExternalExceptionHandler
34388 - Removed some useless debug output
34391 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34392 not working as expected
34393 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34394 property to allow switching back to the modal window if focus is
34395 given to another one of our windows (Application Modal)
34396 - Now only sets override_redirect if we create a window
34398 - Moved EventMask selection before mapping of newly created window
34399 so we can catch the map event as well
34400 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
34401 - Added various Atom related DllImports
34402 - Implemented Exit() method
34403 - .ctor() : No longer shows window if WS_VISIBLE is not defined
34404 in the CreateParams
34406 * MessageBox.cs: Now properly deals with the FormParent window by
34407 providing an override the FormParent CreateParams property to
34408 set as POPUP instead of OVERLAPPED window.
34410 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34412 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
34413 Minor code cleanup.
34415 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34417 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
34419 2004-12-18 Peter Bartok <pbartok@novell.com>
34421 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
34422 implementing SetModal() method
34424 2004-12-18 Peter Bartok <pbartok@novell.com>
34426 * X11Structs.cs (XGCValues): Fixed type of function element
34427 * XplatUI.cs: Added ScrollWindow() method
34428 * XplatUIDriver.cs: Added ScrollWindow() abstract
34429 * XplatUIWin32.cs: Implemented ScrollWindow() method
34430 * XplatUIX11.cs: Implemented ScrollWindow() method
34431 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
34433 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34435 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
34436 Some more keyboard support (INCOMPLETE)
34438 2004-12-17 Peter Bartok <pbartok@novell.com>
34441 - Added color attribute to line tags.
34442 - Added color argument to all functions dealing with tags
34443 - Added color argument support to various functions
34444 - Fixed miss-calculation of baseline/shift in certain circumstances
34446 * TextBoxBase.cs: Added new color option to test code
34448 2004-12-17 Jackson Harper <jackson@ximian.com>
34451 * MonthCalendar.cs: Signature fixes
34453 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34455 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
34456 keyboard event moved it. Create a new graphics context for each paint resolves this
34458 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34460 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
34461 Make caret exist and go blink blink. Initial keyboard support.
34462 Fix exception handler, Add Invalidate support. Change way RefreshWindow
34465 2004-12-17 Jackson Harper <jackson@ximian.com>
34467 * XplatUIStructs.cs: Updated set of virtual keycodes.
34468 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
34470 2004-12-17 Jackson Harper <jackson@ximian.com>
34472 * XplatUIX11.cs: Prune old keyboard code.
34474 2004-12-17 Jackson Harper <jackson@ximian.com>
34476 * XplatUIX11.cs: When generating mouse wparams get the modifier
34477 keys from the ModifierKeys property.
34479 2004-12-17 Jackson Harper <jackson@ximian.com>
34481 * X11Keyboard.cs: Send up/down input when generating
34482 messages. Remove some unused vars.
34484 2004-12-17 Jackson Harper <jackson@ximian.com>
34487 * TreeView.cs: get rid of warnings.
34489 2004-12-17 Jackson Harper <jackson@ximian.com>
34491 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
34493 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
34495 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
34496 CheckedListBox.cs: Implementation
34498 2004-12-17 Peter Bartok <pbartok@novell.com>
34500 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
34502 2004-12-16 Peter Bartok <pbartok@novell.com>
34505 - InsertCharAtCaret(): Fixed start pos fixup
34506 - CaretLine_get: No longer derives the line from the tag, the tag
34507 could be stale if lines in the document have been added or deleted
34508 - RebalanceAfterDelete(): Fixed bug in balancing code
34509 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
34510 - Line.Streamline(): Now can also elminate leading empty tags
34511 - DumpTree(): Added a few more tests and prevented exception on
34513 - Added Debug section for Combining lines
34514 - Delete(): Now copies all remaining properties of a line
34517 - Left mousebutton now sets the caret (and middle button still acts
34518 as formatting tester, which must go away soon)
34519 - Added Debug section for Deleting/Combining lines
34520 - Fixed calculations for UpdateView after Combining lines
34522 2004-12-16 Peter Bartok <pbartok@novell.com>
34524 * TextControl.cs: Now properly aligns text on a baseline, using the
34525 new XplatUI.GetFontMetrics() method. Simplified several calculations
34526 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
34529 2004-12-16 Peter Bartok <pbartok@novell.com>
34531 * XplatUI.cs: Added GetFontMetrics() method
34532 * XplatUIDriver.cs: Added GetFontMetrics() abstract
34533 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
34534 into libgdiplus, our private GetFontMetrics function
34535 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
34536 * XplatUIWin32.cs: Implemented GetFontMetrics() method
34538 2004-12-16 Jackson Harper <jackson@ximain.com>
34540 * XplatUIStruct.cs: Add enum for dead keys
34541 * X11Keyboard.cs: Map and unmap dead keys.
34543 2004-12-16 Jackson Harper <jackson@ximian.com>
34545 * X11Keyboard.cs: Detect and use the num lock mask.
34547 2004-12-16 Peter Bartok <pbartok@novell.com>
34549 * Control.cs (CreateGraphics): Added check to make sure the
34550 handle of the window exists before calling Graphics.FromHwnd()
34552 2004-12-16 Peter Bartok <pbartok@novell.com>
34554 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
34555 contains a lot of code that's not supposed to be there for the
34556 real thing, but required for developing/testing the textbox
34559 2004-12-16 Peter Bartok <pbartok@novell.com>
34562 - Fixed Streamline method
34563 - Added FindTag method to Line
34564 - Added DumpTree method for debugging
34565 - Added DecrementLines() method for deleting lines
34566 - Fixed UpdateView to update the cursor to end-of-line on single-line
34568 - Added PositionCaret() method
34569 - Fixed MoveCaret(LineDown) to move into the last line, too
34570 - Added InsertChar overload
34571 - Fixed InsertChar tag offset calculations
34572 - Added DeleteChar() method
34573 - Added Combine() method for folding lines
34574 - Fixed Delete() method, no longer allocates wasted Line object and
34575 now copies all properties when swapping nodes
34576 - Delete() method now updates document line counter
34578 2004-12-15 Jackson Harper <jackson@ximian.com>
34580 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
34581 * X11Keyboard.cs: Expose the currently selected modifier keys
34582 through a property.
34584 2004-12-15 Peter Bartok <pbartok@novell.com>
34586 * TextControl.cs: Initial check-in. Still incomplete
34588 2004-12-15 Jackson Harper <jackson@ximian.com>
34591 * TreeView.cs: Fix build on csc (second time today ;-))
34593 2004-12-15 Jackson Harper <jackson@ximian.com>
34595 * TreeView.cs: Store the treenodes plus/minus box bounds when it
34596 is calculated and use this for click testing.
34597 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
34599 2004-12-15 Jackson Harper <jackson@ximian.com>
34601 * TreeView.cs: Pass the nodes image index to the image list when
34602 drawing that image.
34604 2004-12-15 Jackson Harper <jackson@ximian.com>
34606 * X11Keyboard.cs: Set messages hwnd.
34607 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
34608 post_message calls.
34610 2004-12-15 Jackson Harper <jackson@ximian.com>
34612 * X11Keyboard.cs: Fix to compile with csc.
34614 2004-12-15 Jackson Harper <jackson@ximian.com>
34616 * X11Structs.cs: Add key mask values
34617 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
34618 * X11Keyboard.cs: New file - Extrapolates and interpolates key
34619 down/up foo into WM_CHAR foo
34620 * KeyboardLayouts.cs: Common keyboard layouts
34621 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
34622 post messages into the main queue.
34624 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
34626 * Button.cs: implement ProcessMnemonic
34627 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
34629 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
34630 * ButtonBase.cs: Show HotkeyPrefix (not the &)
34632 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
34634 * MonthCalendar.cs: Implemented click-hold for next/previous month
34637 2004-12-11 Peter Bartok <pbartok@novell.com>
34640 - Added XKeyboardState (moved from XplatUIX11.cs)
34641 - Added XCreateGC related enums and structures
34642 - Added GXFunction for XSetFunction
34644 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
34646 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
34647 CaretVisible() calls
34649 * ToolTip.cs: Added code to prevent stealing focus from app windows
34651 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
34652 DestroyCaret, SetCaretPos and CaretVisible)
34655 - Added implementation for caret functions
34656 - Moved hover variables into a struct, to make it a bit easier
34657 on the eyes and to debug
34658 - Removed XKeyboardState (moved to XplatUIX11.cs)
34659 - Moved Keyboard properties into the properties region
34661 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
34662 call to get a graphics context for our control
34664 * XplatUIOSX.cs: Added empty overrides for the new caret functions
34666 * TreeView.cs: Fixed bug. No matter what color was set it would always
34667 return SystemColors.Window
34669 * XplatUIWin32.cs: Implemented caret overrides
34671 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
34673 * ListBox.cs: fire events, implement missing methods and properties,
34676 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
34678 * MonthCalendar.cs: invalidation bug fixing
34679 * ThemeWin32Classic.cs: paint fixing
34681 2004-12-09 Geoff Norton <gnorton@customerdna.com>
34683 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
34684 prepare the CGContextRef there now.
34686 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
34688 * MonthCalendar.cs:
34689 - optimisationL only invalidate areas that have changed
34690 * ThemeWin32Classic.cs:
34691 - only paint parts that intersect with clip_area
34693 2004-12-09 Peter Bartok <pbartok@novell.com>
34695 * Application.cs: Undid changes from r37004 which cause problems
34698 2004-12-09 Ravindra <rkumar@novell.com>
34700 * ToolBar.cs: Added support for displaying ContextMenu
34701 attached to a button on ToolBar.
34702 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
34705 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
34707 * Label.cs: autosize works in text change and removes unnecessary
34710 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
34712 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34715 2004-12-08 Geoff Norton <gnorton@customerdna.com>
34717 * XplatUIOSX.cs: Added mouse move/click/grab support
34718 Remove some debugging WriteLines not needed anymore.
34719 Add window resizing/positioning.
34720 Fix visibility on reparenting.
34722 2004-12-08 Peter Bartok <pbartok@novell.com>
34724 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
34726 2004-12-07 Geoff Norton <gnorton@customerdna.com>
34728 * XplatUIOSX.cs: Initial checkin
34729 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
34731 2004-12-03 Ravindra <rkumar@novell.com>
34733 * ListView.cs: Added some keybindings and fixed scrolling.
34734 ScrollBars listen to ValueChanged event instead of Scroll
34735 Event. This would let us take care of all changes being
34736 done in the scrollbars' values programmatically or manually.
34737 * ListView.cs (CanMultiselect): Added a check for shift key.
34738 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
34739 * ListViewItem.cs (Clone): Fixed. We need to make a copy
34740 of ListViewSubItemCollection as well.
34742 2004-12-06 Peter Bartok <pbartok@novell.com>
34744 * Control.cs (Parent): Added check and exception to prevent
34747 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
34749 * ListBox.cs: implemented clipping, selection single and multiple,
34752 2004-12-03 Ravindra <rkumar@novell.com>
34754 * ListView.cs (ListView_KeyDown):
34755 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
34756 when CTRL key is pressed.
34757 * ListViewItem.cs (Selected): Fixed setting the property.
34759 2004-12-03 Marek Safar <marek.safar@seznam.cz>
34761 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
34763 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
34764 MinimizeBox, ShowInTaskbar, TopMost properties.
34766 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
34767 will be implemented).
34769 2004-12-03 Marek Safar <marek.safar@seznam.cz>
34771 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
34773 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
34776 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
34778 * TreeView.cs: BackColor is Colors.Window.
34780 2004-12-01 Jackson Harper <jackson@ximian.com>
34782 * TreeView.cs: When resizing the tree if the user is making it
34783 smaller we don't get expose events, so we need to handle adding
34784 the horizontal scrollbar in the size changed handler as well as
34785 the expose handler.
34787 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
34789 * DrawItemState.cs: fixes wrong enum values
34791 2004-12-01 Jackson Harper <jackson@ximian.com>
34793 * TreeView.cs: Resize the hbar as well as the vbar on resize.
34795 2004-12-01 Jackson Harper <jackson@ximian.com>
34797 * NodeLabelEditEventArgs.cs:
34798 * NodeLabelEditEventHandler.cs:
34799 * OpenTreeNodeEnumerator.cs:
34801 * TreeNodeCollection.cs:
34803 * TreeViewAction.cs:
34804 * TreeViewCancelEventArgs.cs:
34805 * TreeViewCancelEventHandler.cs:
34806 * TreeViewEventArgs.cs:
34807 * TreeViewEventHandler.cs: Initial implementation.
34809 2004-12-01 Ravindra <rkumar@novell.com>
34811 * ListView.cs (CalculateListView): Fixed scrolling related
34812 calculations. Also, removed some debug statements from other
34814 * ListViewItem.cs: Changed access to 'selected' instance variable
34815 from private to internal.
34816 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
34818 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
34820 * ThemeWin32Classic.cs: remove cache of brush and pens for
34821 specific controls and use the global system, fixes scrollbutton
34822 bugs (for small sizes, disabled, etc)
34824 * ScrollBar.cs: does not show the thumb for very small controls
34825 (as MS) and allow smaller buttons that the regular size
34827 2004-12-01 Miguel de Icaza <miguel@ximian.com>
34829 * UpDownBase.cs: Add abstract methods for the interface.
34830 Add new virtual methods (need to be hooked up to TextEntry when it
34832 Add override methods for most features.
34833 Computes the size, forces the height of the text entry.
34835 * NumericUpDown.cs: Put here the current testing code.
34837 * Set eol-style property on all files that do not have mixed line
34838 endings, to minimize the future problems. There are still a few
34839 files with mixed endings, and someone should choose whether they
34840 want to move it or not.
34842 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
34844 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
34847 2004-11-30 Ravindra <rkumar@novell.com>
34849 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
34850 drawing and replaced use of SystemColors by theme colors.
34851 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
34852 * ListView.cs (ListViewItemCollection.Add): Throw exception when
34853 same ListViewItem is being added more than once.
34855 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
34857 * MonthCalendar.cs:
34858 - ControlStyles love to make the control not flicker
34860 2004-11-30 Peter Bartok <pbartok@novell.com>
34862 * CharacterCasing.cs: Added
34864 2004-11-29 Peter Bartok <pbartok@novell.com>
34866 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34867 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
34868 I am removing these files as they conflict with already completed
34869 work. While it is fantastic to get contributions to MWF, I
34870 respectfully ask that everyone please coordinate their contributions
34871 through mono-winforms-list or #mono-winforms at this time. We're
34872 explicitly avoiding stubbing and don't want controls that don't have
34873 their basic functionality implemented in svn. Please also see
34874 http://www.mono-project.com/contributing/winforms.html
34877 2004-11-29 Marek Safar <marek.safar@seznam.cz>
34879 * Application.cs (ModalRun): Don't hang after exit.
34881 * Theme.cs: New TreeViewDefaultSize property.
34883 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
34884 with less hardcoded SystemColors constant.
34885 Implemented TreeViewDefaultSize.
34887 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34888 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
34891 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
34893 * MonthCalendar.cs:
34894 - Fix NextMonthDate and PrevMonthDate click moving calendar
34896 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
34898 * MonthCalendar.cs:
34899 - Fix usage of ScrollChange Property when scrolling months
34901 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
34903 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
34904 - Fixes menu destroying
34905 - Support adding and removing items on already created menus
34907 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
34909 * MonthCalendar.cs:
34910 - Re-worked all bolded dates handling to match win32
34911 * ThemeWin32Classic.cs:
34912 - Fixed rendering with bolded dates
34914 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
34916 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
34917 - Horizontal scroolbar
34922 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
34924 * MonthCalendar.cs:
34925 - Fix Usage of MaxSelectionCount from SelectionRange
34926 - Fixed Shift + Cursor Selection
34927 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
34928 - Fixed normal cursor selection to be compat with win32
34929 - Fixed Shift + Mouse Click selection
34931 2004-11-24 Peter Bartok <pbartok@novell.com>
34933 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
34934 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
34936 - CreatedKeyBoardMsg now updates keystate with Alt key
34937 - Added workaround for timer crash to CheckTimers, Jackson will
34938 develop a proper fix and check in later
34939 - Implemented DispatchMessage
34940 - Removed calling the native window proc from GetMessage (call
34941 now moved to DispatchMessage)
34943 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
34944 the keydata (Fixes bug #69831)
34947 - (DispatchMessage): Switched to return IntPtr
34948 - Added DllImport for SetFocus
34950 2004-11-24 Ravindra <rkumar@novell.com>
34952 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
34953 background drawing.
34954 * ListViewItem.cs: Fixed various properties, calculations
34955 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
34956 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
34957 and some internal properties. Fixed MouseDown handler and Paint
34960 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34962 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
34964 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34966 * ContainerControl.cs: correct accidental check in of local changes
34968 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34970 * ThemeWin32Classic.cs:
34971 - Fixed Drawing Last month in grid (sometimes not showing)
34972 * MonthCalendar.cs:
34973 - Fixed title width calculation bug (makeing title small)
34975 2004-11-23 Peter Bartok <pbartok@novell.com>
34978 - Added generation of WM_MOUSEHOVER event
34979 - Added missing assignment of async_method atom
34980 - Fixed WM_ERASEBKGND; now only redraws the exposed area
34982 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
34984 * ThemeWin32Classic.cs:
34985 - Fixed Drawing of today circle when showtodaycircle not set
34986 - fixed drawing of first and last month in the grid (gay dates)
34987 * MonthCalendar.cs:
34988 - Fixed Drawing of today circle
34989 - Fixed drawing of grady dates
34990 - Fixed HitTest for today link when ShowToday set to false
34991 - Fixed DefaultSize to obey ShowToday
34993 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
34995 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
34996 * System.Windows.Forms/Theme.cs
34997 * MonthCalendar.cs: added for MonthCalendar
34998 * SelectionRange.cs: added for MonthCalendar
34999 * Day.cs: added for MonthCalendar: added for MonthCalendar
35000 * DateRangeEventArgs.cs: added for MonthCalendar
35001 * DateRangeEventHandler.cs: added for MonthCalendar
35003 2004-11-22 Ravindra <rkumar@novell.com>
35005 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35008 2004-11-22 Miguel de Icaza <miguel@ximian.com>
35010 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35013 * NumericUpDown.cs: Added new implementation.
35014 * UpDownBase.cs: Added new implementation.
35016 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35019 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35022 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35025 2004-11-21 Miguel de Icaza <miguel@ximian.com>
35027 * Timer.cs (Dispose): Should call the base dispose when
35030 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35032 * ScrollBar.cs: updates thumb position when max, min or increment
35035 2004-11-21 Ravindra <rkumar@novell.com>
35037 * ListView.cs: Implemented item selection, activation and
35038 column header style. Fixed properties to do a redraw, if
35039 required. Added support for MouseHover, DoubleClick, KeyDown
35040 and KeyUp event handling and some minor fixes.
35041 * ListViewItem.cs: Fixed constructor.
35042 * ThemeWin32Classic.cs: Improved drawing for ListView.
35044 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35046 * ThemeWin32Classic.cs: initial listbox drawing code
35047 * DrawMode.cs: new enumerator
35048 * ListControl.cs: stubbed class
35049 * ListBox.cs: initial implementation
35050 * Theme.cs: new methods definitions
35051 * SelectionMode.cs: new enumerator
35053 2004-11-17 Peter Bartok <pbartok@novell.com>
35055 * XplatUIWin32.cs: Added double-click events to the class style
35056 * Control.cs (WndProc):
35057 - Added handling of click-count to MouseDown/ MouseUp events.
35058 - Added handling of middle and right mouse buttons
35059 - Removed old debug code
35061 2004-11-17 Jackson Harper <jackson@ximian.com>
35063 * XplatUIX11.cs: Use the new Mono.Unix namespace.
35065 2004-11-17 Ravindra <rkumar@novell.com>
35067 * ListView.cs: Added event handling for MouseMove/Up/Down.
35068 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35069 * ThemeWin32Classic.cs: We need to clear the graphics context and
35070 draw column header in a proper state.
35073 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
35075 * Menu.cs: fixes signature
35077 2004-11-16 Peter Bartok <pbartok@novell.com>
35079 * XplatUIX11.cs (GetMessage): Implemented generation of
35080 double click mouse messages
35082 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
35084 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35087 2004-11-11 Peter Bartok <pbartok@novell.com>
35089 * HandleData.cs: Added Visible property
35090 * XplatUIX11.cs (IsVisible): Now uses Visible property from
35092 * XplatUIX11.cs: Removed old debug leftovers
35093 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35094 * Control.cs (WndProc): Removed old debug leftovers,
35095 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35096 needed WM_SIZE handling
35098 2004-11-11 Jackson Harper <jackson@ximian.com>
35100 * OwnerDrawPropertyBag.cs:
35101 * TreeViewImageIndexConverter.cs: Initial implementation
35103 2004-11-10 Jackson Harper <jackson@ximian.com>
35105 * ThemeWin32Classic.cs:
35106 * TabControl.cs: instead of moving tabs by the slider pos just
35107 start drawing at the tab that is offset by the slider. This way
35108 scrolling always moves by exactly one tab.
35110 2004-11-10 Jackson Harper <jackson@ximian.com>
35112 * TabControl.cs: You can only scroll left when the slider has
35113 already ben moved right.
35115 2004-11-10 Jackson Harper <jackson@ximian.com>
35117 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35120 2004-11-10 Jackson Harper <jackson@ximian.com>
35122 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35125 2004-11-09 Jackson Harper <jackson@ximian.com>
35127 * TabControl.cs (CalcXPos): New helper method so we can determine
35128 the proper place to start drawing vertical tabs.
35129 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35131 2004-11-09 Jackson Harper <jackson@ximian.com>
35133 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35134 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35135 and Bottom, left and right are illegal values for this and
35136 multiline is enabled when the alignment is set to left or right.
35137 (DrawTab): Each alignment block should draw the text itself now
35138 because Left requires special love. Also add rendering for Left
35141 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
35143 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35144 does not destroy the windows, removes debugging messages
35146 2004-11-09 jba <jba-mono@optusnet.com.au>
35148 * ThemeWin32Classic.cs
35149 (DrawButtonBase): Fix verticle text rect clipping in windows
35150 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35151 rendering and incorrect text rect clipping
35152 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35153 rendering and incorrect text rect clipping
35155 2004-11-08 Jackson Harper <jackson@ximian.com>
35157 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35158 bottom when they are bottom aligned so the bottoms of the tabs get
35160 * TabControl.cs (DropRow): Move rows up instead of down when the
35161 tab control is bottom aligned.
35163 2004-11-08 13:59 pbartok
35166 - Added handling for various window styles
35167 - Added handling for popup windows
35168 - Added SetTopmost handling
35170 2004-11-08 13:55 pbartok
35173 - Added argument to SetTopmost method
35174 - Fixed broken ClientToScreen function
35176 2004-11-08 13:53 pbartok
35178 * XplatUIStructs.cs:
35179 - Added missing WS_EX styles
35181 2004-11-08 13:53 pbartok
35183 * XplatUI.cs, XplatUIDriver.cs:
35184 - Added argument to SetTopmost
35186 2004-11-08 13:52 pbartok
35189 - Added XSetWindowAttributes structure
35190 - Improved XWindowAttributes structure
35191 - Added SetWindowValuemask enum
35192 - Added window creation arguments enum
35193 - Added gravity enum
35194 - Added Motif hints structure
35195 - Added various Motif flags and enums
35196 - Added PropertyMode enum for property functions
35198 2004-11-08 13:50 pbartok
35201 - Fixed arguments for updated SetTopmost method
35203 2004-11-08 13:49 pbartok
35206 - Fixed arguments for updated SetTopmost function
35207 - Fixed usage of PointToClient
35209 2004-11-08 13:44 pbartok
35212 - Added Clipping of children and siblings
35214 2004-11-08 13:41 pbartok
35217 - Removed SetMenuBarWindow call. We do this in Form.cs
35219 2004-11-08 13:40 jackson
35221 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35222 scrolling jimmi in the correct location with bottom aligned tabs
35224 2004-11-08 13:36 pbartok
35226 * ContainerControl.cs:
35227 - Implemented BindingContext
35228 - Implemented ParentForm
35230 2004-11-08 12:46 jackson
35232 * TabControl.cs: Put bottom rendered tabs in the right location
35234 2004-11-08 07:15 jordi
35236 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35239 2004-11-05 17:30 jackson
35241 * TabControl.cs: When selected tabs are expanded make sure they
35242 don't go beyond the edges of the tab control
35244 2004-11-05 14:57 jackson
35246 * TabControl.cs: Reset show_slider so if the control is resized to
35247 a size where it is no longer needed it's not displayed anymore
35249 2004-11-05 13:16 jackson
35251 * TabControl.cs: Make tab pages non visible when added to the
35254 2004-11-05 12:42 jackson
35256 * TabControl.cs: Implement SizeMode.FillToRight
35258 2004-11-05 12:16 jackson
35260 * Control.cs: Do not call CreateHandle if the handle is already
35263 2004-11-05 11:46 jackson
35265 * TabControl.cs: Remove superflous call to CalcTabRows
35267 2004-11-05 09:07 jackson
35269 * XplatUIX11.cs: Update for Mono.Posix changes
35271 2004-11-05 07:00 ravindra
35273 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35276 2004-11-04 22:47 jba
35278 * ThemeWin32Classic.cs:
35279 - Fix Button rendering for FlatStyle = Flat or Popup
35280 - Fix RadioButton and CheckBox rendering when Appearance = Button
35281 (normal and flatstyle).
35282 - Correct outer rectangle color when drawing focus rectangle
35283 - Adjust button bounds to be 1 px smaller when focused
35284 - Make button not draw sunken 3d border when pushed (windows compat)
35285 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35286 - Offset the text in RadioButton and Checkbox when being rendered as
35288 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35290 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35291 - Fixed disabled text rendering for normally rendered radiobuttons
35293 2004-11-04 10:26 jackson
35295 * TabControl.cs: Recalculate tab rows when resizing
35297 2004-11-04 07:47 jordi
35299 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35300 collection completion, drawing issues, missing features
35302 2004-11-04 05:03 ravindra
35305 - We need to recalculate the Thumb area when
35306 LargeChange/maximum/minimum values are changed.
35307 - We set the 'pos' in UpdatePos() method to minimum, if it's less
35308 than minimum. This is required to handle the case if large_change is
35309 more than max, and use LargeChange property instead of large_change
35311 - We return max+1 when large_change is more than max, like MS does.
35313 2004-11-04 04:29 ravindra
35315 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35316 - Changed default value signatures (prefixed all with ListView).
35317 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35319 - Fixed calculations for ListViewItem and implemented Clone()
35322 2004-11-04 04:26 ravindra
35324 * Theme.cs, ThemeWin32Classic.cs:
35325 - Changed default ListView values signatures (prefixed all with
35327 - Fixed default size values for VScrollBar and HScrollBar.
35328 - Fixed DrawListViewItem method.
35330 2004-11-04 04:05 ravindra
35332 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35334 2004-11-04 04:04 ravindra
35336 * ImageList.cs: Implemented the missing overload for Draw method.
35338 2004-11-03 19:29 jackson
35340 * TabControl.cs: Handle dropping rows on selection properly
35342 2004-11-03 11:59 jackson
35344 * TabControl.cs: remove debug code
35346 2004-11-03 11:52 jackson
35348 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35349 the scrolly widgerywoo
35351 2004-11-02 13:52 jackson
35353 * TabControl.cs: Resize the tab pages and tabs when the tab control
35356 2004-11-02 13:40 jackson
35358 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35359 selected tab to the bottom
35361 2004-11-02 13:39 jackson
35363 * TabPage.cs: Store the tab pages row
35365 2004-11-02 12:33 jordi
35367 * MenuItem.cs: fixes handle creation
35369 2004-11-02 11:42 jackson
35371 * TabControl.cs: signature fix
35373 2004-11-02 08:56 jackson
35375 * TabControl.cs: Calculate whether the tab is on an edge properly.
35376 Remove top secret debugging code
35378 2004-11-01 19:57 jackson
35380 * TabControl.cs: Add click handling, and proper sizing
35382 2004-11-01 19:47 jackson
35384 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35387 2004-11-01 19:39 jackson
35389 * TabPage.cs: add internal property to store the bounds of a tab
35392 2004-10-30 04:23 ravindra
35394 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35397 2004-10-30 04:21 ravindra
35399 * ListView.cs, ListViewItem.cs: Added support for scrolling and
35400 fixed calculations.
35402 2004-10-30 03:06 pbartok
35405 - Removed extension of DllImported libs
35407 2004-10-29 09:55 jordi
35409 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
35410 navigation, itemcollection completion, menu fixes
35412 2004-10-27 22:58 pbartok
35415 - Now throws a nice error message when no X display could be opened
35417 2004-10-26 13:51 jordi
35419 * ListView.cs: removes warning
35421 2004-10-26 03:55 ravindra
35423 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
35424 ThemeWin32Classic.cs: Some formatting for my last checkins.
35426 2004-10-26 03:36 ravindra
35428 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
35429 control and default values.
35431 2004-10-26 03:35 ravindra
35433 * Theme.cs: Added some default values for ListView control.
35435 2004-10-26 03:33 ravindra
35437 * ToolBar.cs: ToolBar should use the user specified button size, if
35438 there is any. Added a size_specified flag for the same.
35440 2004-10-26 03:33 ravindra
35442 * ColumnHeader.cs: Added some internal members and calculations for
35445 2004-10-26 03:32 ravindra
35447 * ListViewItem.cs: Calculations for ListViewItem.
35449 2004-10-26 03:31 ravindra
35451 * ListView.cs: Added some internal members and calculations for
35454 2004-10-22 13:31 jordi
35456 * MenuAPI.cs: speedup menus drawing
35458 2004-10-22 13:16 jackson
35460 * XplatUIX11.cs: Make sure to update exposed regions when adding an
35463 2004-10-22 11:49 jackson
35467 2004-10-22 11:41 jackson
35469 * Control.cs: Check to see if the window should have its background
35470 repainted by X when drawing.
35472 2004-10-22 11:31 jackson
35474 * XplatUIX11.cs: When invalidating areas only use XClearArea if
35475 clear is true, this way we do not get flicker from X repainting the
35478 2004-10-22 11:28 jackson
35480 * XEventQueue.cs: Queue properly
35482 2004-10-21 09:38 jackson
35484 * XEventQueue.cs: Fix access modifier
35486 2004-10-21 09:36 jackson
35488 * XEventQueue.cs: Don't loose messages
35490 2004-10-21 09:22 jackson
35492 * XEventQueue.cs: Don't loose messages
35494 2004-10-20 04:15 jordi
35496 * BootMode.cs: enum need it by SystemInfo
35498 2004-10-19 21:58 pbartok
35501 - Small sanity check
35503 2004-10-19 21:56 pbartok
35506 - Added private FormParentWindow class which acts as the container
35507 for our form and as the non-client area where menus are drawn
35508 - Added/Moved required tie-ins to Jordi's menus
35509 - Fixed/Implemented the FormStartPosition functionality
35511 2004-10-19 21:52 pbartok
35514 - Removed unneeded locals
35515 - Added code to all size and location properties to understand and
35516 deal with the parent container of Form
35518 2004-10-19 21:33 pbartok
35521 - Fixed to deal with new Form subclasses for menus
35523 2004-10-19 17:48 jackson
35525 * XEventQueue.cs: commit correct version of file
35527 2004-10-19 16:50 jackson
35529 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
35531 2004-10-19 16:15 jordi
35533 * MenuAPI.cs: MenuBarCalcSize returns the height
35535 2004-10-19 08:31 pbartok
35538 - Added missing call to PreProcessMessage before calling OnXXXKey
35541 2004-10-19 00:04 ravindra
35543 * ToolTip.cs: Fixed constructor.
35545 2004-10-18 09:31 jordi
35547 * MenuAPI.cs: menuitems in menubars do not have shortcuts
35549 2004-10-18 09:26 jordi
35551 * MenuItem.cs: fixes MenuItem class signature
35553 2004-10-18 08:56 jordi
35555 * MenuAPI.cs: prevents windows from showing in the taskbar
35557 2004-10-18 00:28 ravindra
35559 * ToolTip.cs: Suppressed a warning message.
35561 2004-10-18 00:27 ravindra
35563 * Control.cs: Default value of visible property must be true.
35565 2004-10-17 23:19 pbartok
35568 - Complete implementation
35570 2004-10-17 23:19 pbartok
35573 - Added EnableWindow method
35574 - Added SetModal stub
35575 - Added generation of WM_ACTIVATE message (still needs testing)
35576 - Added SetTopMost stub
35577 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
35579 2004-10-17 23:17 pbartok
35582 - Removed VirtualKeys to XplatUIStructs
35583 - Implemented SetTopMost method
35584 - Implemented EnableWindow method
35585 - Bugfix in ScreenToClient()
35586 - Bugfixes in ClientToScreen()
35588 2004-10-17 22:51 pbartok
35590 * XplatUIStructs.cs:
35591 - Added WS_EX styles to WindowStyles enumeration
35593 2004-10-17 22:50 pbartok
35595 * XplatUI.cs, XplatUIDriver.cs:
35596 - Added method for enabling/disabling windows
35597 - Added method for setting window modality
35598 - Added method for setting topmost window
35600 2004-10-17 22:49 pbartok
35602 * ThemeWin32Classic.cs:
35603 - Added ToolTip drawing code
35605 2004-10-17 22:49 pbartok
35608 - Added ToolTip abstracts
35610 2004-10-17 22:47 pbartok
35613 - Fixed Form.ControlCollection to handle owner relations
35614 - Added Owner/OwnedForms handling
35615 - Implemented Z-Ordering for owned forms
35616 - Removed unneeded private overload of ShowDialog
35617 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
35619 - Fixed Close(), had wrong default
35620 - Added firing of OnLoad event
35621 - Added some commented out debug code for Ownership handling
35623 2004-10-17 22:16 pbartok
35626 - Fixed/implemented flat list of controls
35628 2004-10-17 22:14 pbartok
35631 - Added code to simulate modal dialogs on Win32
35633 2004-10-17 16:11 jordi
35635 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
35638 2004-10-17 13:39 jordi
35640 * MenuAPI.cs: menu drawing fixes
35642 2004-10-15 09:10 ravindra
35644 * StructFormat.cs: General Enum.
35646 2004-10-15 09:09 ravindra
35648 * SizeGripStyle.cs: Enum for Form.
35650 2004-10-15 09:08 ravindra
35652 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
35653 in Theme for ListView.
35655 2004-10-15 09:06 ravindra
35657 * ColumnHeader.cs: Flushing some formatting changes.
35659 2004-10-15 09:05 ravindra
35661 * ListViewItem.cs: Implemented GetBounds method and fixed coding
35664 2004-10-15 09:03 ravindra
35666 * ListView.cs: Implemented Paint method and fixed coding style.
35668 2004-10-15 07:34 jordi
35670 * MenuAPI.cs: fix for X11
35672 2004-10-15 07:32 ravindra
35674 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
35675 - Renamed Paint() method to Draw() for clarity. Also, moved
35676 DrawImage() to OnPaint().
35678 2004-10-15 07:25 ravindra
35680 * CheckBox.cs, RadioButton.cs:
35681 - Removed Redraw (), we get it from ButtonBase.
35682 - Implemented Paint (), to do class specific painting.
35684 2004-10-15 07:16 ravindra
35687 - Redraw () is not virtual now.
35688 - Added an internal virtual method Paint (), so that
35689 derived classes can do their painting on their own.
35690 - Modified OnPaint () to call Paint ().
35692 2004-10-15 06:43 jordi
35694 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
35695 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
35697 2004-10-15 00:30 ravindra
35700 - MessageBox on windows does not have min/max buttons.
35701 This change in CreateParams fixes this on Windows. We
35702 still need to implement this windowstyle behavior in
35705 2004-10-14 05:14 ravindra
35708 - Changed Redraw () to do a Refresh () always.
35709 - Fixed the MouseMove event handling when mouse is pressed,
35710 ie drag event handling.
35711 - Replaced the usage of ToolBarButton.Pressed property to
35712 ToolBarButton.pressed internal variable.
35714 2004-10-14 05:10 ravindra
35716 * ToolBarButton.cs:
35717 - Added an internal member 'inside' to handle mouse move
35718 with mouse pressed ie mouse drag event.
35719 - Changed 'Pressed' property to return true only when
35720 'inside' and 'pressed' are both true.
35721 - Some coding style love.
35723 2004-10-14 00:17 ravindra
35725 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
35728 2004-10-14 00:15 ravindra
35730 * ButtonBase.cs: Redraw () related improvements.
35732 2004-10-14 00:14 ravindra
35734 * MessageBox.cs: Moved InitFormSize () out of Paint method and
35735 removed unnecessary calls to Button.Show () method.
35737 2004-10-13 17:50 pbartok
35741 - Removed destroying of window until we solve the problem of X
35742 destroying the window before us on shutdown
35744 2004-10-13 16:32 pbartok
35747 - Now Redraws on MouseUp for FlatStyle Flat and Popup
35749 2004-10-13 14:18 pbartok
35752 - Added code to destroy the X window
35754 2004-10-13 14:18 pbartok
35757 - Added code to destroy a window
35759 2004-10-13 14:12 pbartok
35762 - Added the Redraw on Resize that got dropped in the last rev
35764 2004-10-13 09:06 pbartok
35766 * ThemeWin32Classic.cs:
35767 - Path from John BouAntoun:
35768 * Fix check rendering (centre correctly for normal style, offset
35769 correctly for FlatStyle).
35770 * Fix border color usage (use backcolor) for FlatStyle.Popup
35771 * Use checkbox.Capture instead of checkbox.is_pressed when
35772 rendering flatstyle states.
35774 2004-10-12 21:48 pbartok
35776 * ThemeWin32Classic.cs:
35777 - Removed all occurences of SystemColors and replaced them with the
35778 matching theme color
35780 2004-10-12 21:41 pbartok
35782 * ThemeWin32Classic.cs:
35783 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
35784 him using the function for flatstyle drawing
35785 - Changed functions to use the new version of CPDrawBorder3D
35787 2004-10-12 21:15 pbartok
35790 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
35791 match MS documentation. They need to return defined colors if the
35792 passed color matches the configured control color. Thanks to John
35793 BouAntoun for pointing this out.
35795 2004-10-12 20:57 pbartok
35798 - Fix from John BouAntoun: Raise ForeColorChanged event when text
35801 2004-10-12 20:46 pbartok
35804 - Fix from John BouAntoun: Now properly sets the Appearance property
35806 2004-10-12 20:45 pbartok
35808 * ThemeWin32Classic.cs:
35809 - Fixes from John BouAntoun: now handles forecolors and backcolors
35810 for flatstyle rendered controls much better; It also fixes normal
35811 checkbox rendering when pushed or disabled.
35813 2004-10-08 02:50 jordi
35815 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
35818 2004-10-07 08:56 jordi
35820 * ThemeWin32Classic.cs: Removes deletion of cached brushes
35822 2004-10-06 03:59 jordi
35824 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
35825 XplatUIWin32.cs: removes warnings from compilation
35827 2004-10-05 12:23 jackson
35829 * RadioButton.cs: Fix ctor
35831 2004-10-05 11:10 pbartok
35834 - Partial implementation by Benjamin Dasnois
35836 2004-10-05 10:15 jackson
35838 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
35841 2004-10-05 03:07 ravindra
35844 - Removed a private method, Draw ().
35845 - Fixed the ButtonDropDown event handling.
35846 - Fixed MouseMove event handling.
35848 2004-10-05 03:04 ravindra
35850 * ThemeWin32Classic.cs:
35851 - Added DrawListView method and ListViewDefaultSize property.
35852 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
35853 - Changed DOS style CRLF to Unix format (dos2unix).
35855 2004-10-05 03:03 ravindra
35858 - Added DrawListView method and ListViewDefaultSize property.
35860 2004-10-05 02:42 ravindra
35862 * ToolBarButton.cs: Added an internal member dd_pressed to handle
35863 clicks on DropDown arrow.
35865 2004-10-04 22:56 jackson
35867 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
35868 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
35869 Control handle the buffers, derived classes should not have to
35870 CreateBuffers themselves.
35872 2004-10-04 21:20 jackson
35874 * StatusBar.cs: The control handles resizing the buffers now.
35876 2004-10-04 21:18 jackson
35878 * Control.cs: When resizing the buffers should be invalidated. This
35879 should be handled in Control not in derived classes.
35881 2004-10-04 14:45 jackson
35885 2004-10-04 02:14 pbartok
35887 * LeftRightAlignment.cs:
35890 2004-10-04 01:09 jordi
35892 * ThemeWin32Classic.cs: fixes right button position causing right
35893 button not showing on horizontal scrollbars
35895 2004-10-02 13:12 pbartok
35898 - Simplified the Invalidate method by using an X call instead of
35899 generating the expose ourselves
35900 - Added an expose when the window background is changed
35901 - Implemented ClientToScreen method
35903 2004-10-02 13:08 pbartok
35906 - Added Win32EnableWindow method (test for implementing modal
35908 - Added ClientToScreen method and imports
35910 2004-10-02 13:07 pbartok
35912 * XplatUI.cs, XplatUIDriver.cs:
35913 - Added ClientToScreen coordinate translation method
35915 2004-10-02 13:06 pbartok
35917 * KeyPressEventArgs.cs:
35918 - Fixed access level for constructor
35920 2004-10-02 13:06 pbartok
35923 - Changed access level for the window_collection hash table
35925 2004-10-02 13:05 pbartok
35928 - Added KeyPreview property
35929 - Added Menu property (still incomplete, pending Jordi's menu work)
35930 - Implemented ProcessCmdKey
35931 - Implemented ProcessDialogKey
35932 - Implemented ProcessKeyPreview
35934 2004-10-02 13:02 pbartok
35937 - Added private method to get the Control object from the window
35939 - Implemented ContextMenu property
35940 - Implemented PointToScreen
35941 - Implemented PreProcessMessage
35942 - Implemented IsInputChar
35943 - Implemented IsInputKey
35944 - Implemented ProcessCmdKey
35945 - Completed ProcessKeyEventArgs
35946 - Fixed message loop to call the proper chain of functions on key
35948 - Implemented ProcessDialogChar
35949 - Implemented ProcessDialogKey
35950 - Implemented ProcessKeyMessage
35951 - Implemented ProcessKeyPreview
35952 - Added RaiseDragEvent stub (MS internal method)
35953 - Added RaiseKeyEvent stub (MS internal method)
35954 - Added RaiseMouseEvent stub (MS Internal method)
35955 - Added RaisePaintEvent stub (MS Internal method)
35956 - Added ResetMouseEventArgs stub (MS Internal method)
35957 - Implemented RtlTranslateAlignment
35958 - Implemented RtlTranslateContent
35959 - Implemented RtlTranslateHorizontal
35960 - Implemented RtlTranslateLeftRight
35961 - Added generation of KeyPress event
35963 2004-10-02 05:57 ravindra
35965 * ListViewItem.cs: Added attributes.
35967 2004-10-02 05:32 ravindra
35969 * ListView.cs: Added attributes.
35971 2004-10-01 11:53 jackson
35973 * Form.cs: Implement the Close method so work on MessageBox can
35976 2004-09-30 14:06 pbartok
35981 2004-09-30 11:34 jackson
35983 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
35985 2004-09-30 07:26 ravindra
35987 * ListViewItemConverter.cs: Converter for ListViewItem.
35989 2004-09-30 07:26 ravindra
35991 * SortOrder.cs: Enum for ListView control.
35993 2004-09-30 07:25 ravindra
35995 * ColumnHeader.cs: Supporting class for ListView control.
35997 2004-09-30 07:24 ravindra
35999 * ListView.cs, ListViewItem.cs: Initial implementation.
36001 2004-09-30 07:20 ravindra
36003 * ItemActivation.cs: Enum for ListView Control.
36005 2004-09-29 20:29 pbartok
36008 - Added lookup of pixel value for background color; tries to get a
36009 color 'close' to the requested color, it avoids having to create a
36010 colormap. Depending on the display this could mean the used color
36011 is slightly off the desired color. Might have to change it to a more
36012 resource intensive colormap approach, but it will work as a
36013 workaround to avoid red screens.
36015 2004-09-29 14:27 jackson
36017 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36019 2004-09-28 12:44 pbartok
36021 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36022 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36023 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36024 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36025 TrackBar.cs, VScrollBar.cs:
36026 - Streamlined Theme interfaces:
36027 * Each DrawXXX method for a control now is passed the object for
36028 the control to be drawn in order to allow accessing any state the
36029 theme might require
36031 * ControlPaint methods for the theme now have a CP prefix to avoid
36032 name clashes with the Draw methods for controls
36034 * Every control now retrieves it's DefaultSize from the current
36037 2004-09-28 12:17 jackson
36039 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36042 2004-09-24 14:57 jackson
36044 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36045 Gives us a nice little performance boost.
36047 2004-09-24 12:02 jackson
36049 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36050 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36051 Control and supporting classes. Initial checkin
36053 2004-09-23 13:08 jackson
36055 * Form.cs: Temp build fixage
36057 2004-09-23 01:39 ravindra
36059 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36060 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36061 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36062 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36063 EventHandlers needed by ListView Control.
36065 2004-09-22 14:12 pbartok
36067 * ScrollableControl.cs:
36068 - Implemented DockPadding property
36069 - Implemented AutoScroll property
36070 - Implemented AutoScrollMargin property
36071 - Implemented AutoScrollMinSize property
36072 - Implemented AutoScrollPosition property
36073 - Implemented DisplayRectangle property (still incomplete)
36074 - Implemented CreateParams property
36075 - Implemented HScroll property
36076 - Implemented VScroll property
36077 - Implemented OnVisibleChanged property
36079 2004-09-22 14:09 pbartok
36082 - Added Form.ControllCollection class
36083 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36084 RemoveOwnedForm (still incomplete, missing on-top and common
36085 minimize/maximize behaviour)
36086 - Added StartPosition property (still incomplete, does not use when
36088 - Added ShowDialog() methods (still incomplete, missing forcing the
36091 2004-09-22 14:05 pbartok
36094 - Added message loop for modal dialogs
36096 2004-09-22 14:02 pbartok
36099 - Fixed wrong types for events
36101 2004-09-22 14:00 pbartok
36103 * Shortcut.cs, FormWindowState.cs:
36104 - Fixed wrong values
36106 2004-09-22 12:01 jackson
36108 * Control.cs: Text is never null
36110 2004-09-20 22:14 pbartok
36113 - Fixed accessibility level for Idle handler
36115 2004-09-20 18:54 jackson
36117 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36118 XplatUIX11.cs: New message loop that uses poll so we don't get a
36121 2004-09-17 10:43 pbartok
36124 - Fixed behaviour of arrow buttons. Now properly behaves like
36125 Buttons (and like Microsoft's scrollbar arrow buttons)
36127 2004-09-17 10:14 pbartok
36130 - Added missing release of keyboard/mouse capture
36132 2004-09-17 06:18 jordi
36134 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36135 Theme.cs: Very early menu support
36137 2004-09-16 17:45 pbartok
36140 - Fixed sending a window to the front
36141 - Added overload for SetWindowPos to avoid casting
36143 2004-09-16 17:44 pbartok
36146 - Added SendToBack and BringToFront methods
36148 2004-09-16 07:00 ravindra
36150 * Copyright: Added Novell URL.
36152 2004-09-16 07:00 ravindra
36154 * ToolBar.cs: Invalidate should be done before redrawing.
36156 2004-09-15 21:19 ravindra
36158 * ColumnHeaderStyle.cs: Enum for ListView Control.
36160 2004-09-15 21:18 ravindra
36162 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36165 2004-09-13 18:26 jackson
36167 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36170 2004-09-13 18:13 jackson
36172 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36173 a second thread and post messages into the main threads message
36174 queue. This makes timing much more consistent. Both win2K and XP
36175 have a minimum timer value of 15 milliseconds, so we now do this
36178 2004-09-13 15:18 pbartok
36180 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36182 - Added Z-Ordering methods
36184 2004-09-13 10:56 pbartok
36187 - Fixed #region names
36188 - Moved properties and methods into their proper #regions
36190 2004-09-13 10:51 pbartok
36193 - Added Accept and CancelButton properties
36194 - Added ProcessDialogKey() method
36196 2004-09-13 08:18 pbartok
36198 * IWindowTarget.cs:
36201 2004-09-10 21:50 pbartok
36204 - Added DoDragDrop() [incomplete]
36205 - Properly implemented 'Visible' handling
36206 - Added SetVisibleCore()
36207 - Implemented FindChildAtPoint()
36208 - Implemented GetContainerControl()
36209 - Implemented Hide()
36211 2004-09-10 19:28 pbartok
36214 - Moved methods into their appropriate #regions
36215 - Reordered methods within regions alphabetically
36217 2004-09-10 18:57 pbartok
36219 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36220 - Added method to retrieve text from window
36222 2004-09-10 18:56 pbartok
36225 - Moved some internal functions into the internal region
36226 - Implemented FontHeight
36227 - Implemented RenderRightToLeft
36228 - Implemented ResizeRedraw
36229 - Implemented ShowFocusCues
36230 - Implemented ShowKeyboardCues
36231 - Implemented FromChildHandle
36232 - Implemented FromHandle
36233 - Implemented IsMnemonic
36234 - Implemented ReflectMessage
36235 - All public and protected Static Methods are now complete
36237 2004-09-10 16:54 pbartok
36240 - Implemented remaining missing public instance properties
36241 - Alphabetized some out of order properties
36243 2004-09-10 05:51 ravindra
36245 * PictureBox.cs: Added a check for null image.
36247 2004-09-10 00:59 jordi
36249 * GroupBox.cs: remove cvs tag
36251 2004-09-09 05:25 ravindra
36253 * ToolBar.cs: Make redraw accessible from ToolBarButton.
36255 2004-09-09 05:23 ravindra
36257 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36260 2004-09-09 02:28 pbartok
36262 * ThemeWin32Classic.cs:
36263 - Improve disabled string look
36265 2004-09-09 01:15 jordi
36267 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36270 2004-09-08 23:56 ravindra
36272 * ItemBoundsPortion.cs: It's enum, not a class!
36274 2004-09-08 23:47 ravindra
36276 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36279 2004-09-08 21:13 ravindra
36281 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36284 2004-09-08 21:03 ravindra
36286 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36289 2004-09-08 21:01 ravindra
36291 * ScrollableControl.cs: Removed unreachable code.
36293 2004-09-08 06:45 jordi
36295 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36297 2004-09-08 01:00 jackson
36299 * XplatUIX11.cs: Only run the timers when updating the message
36300 queue. This effectively gives X messages a higher priority then
36301 timer messages. Timers still need love though
36303 2004-09-07 14:01 jackson
36305 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36306 this for us and the handle is no longer valid.
36308 2004-09-07 13:59 jackson
36310 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36311 loop that manages to not crash. TODO: Add poll and cleanup timers
36313 2004-09-07 11:12 jordi
36315 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36317 2004-09-07 03:40 jordi
36319 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36320 fixes, methods, multiple links
36322 2004-09-06 06:55 jordi
36324 * Control.cs: Caches ClientRectangle rectangle value
36326 2004-09-05 02:03 jordi
36328 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36331 2004-09-04 11:10 jordi
36333 * Label.cs: Refresh when font changed
36335 2004-09-02 16:24 pbartok
36338 - Added sanity check to creation of double buffer bitmap
36340 2004-09-02 16:24 pbartok
36343 - Fixed selection of text color
36344 - Fixed handling of resize event; now properly recreates double
36346 - Added missing assignment of TextAlignment
36347 - Added proper default for TextAlignment
36349 2004-09-02 14:26 pbartok
36352 - Added missing RadioButton.RadioButtonAccessibleObject class
36354 2004-09-02 14:26 pbartok
36357 - Added missing Control.ControlAccessibleObject class
36358 - Started to implement Select()ion mechanisms, still very incomplete
36360 2004-09-02 14:25 pbartok
36362 * AccessibleObject.cs:
36363 - Added missing methods
36365 2004-09-02 14:23 pbartok
36367 * AccessibleNavigation.cs, AccessibleSelection.cs:
36370 2004-09-02 10:32 jordi
36372 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36373 pool for pens, brushes, and hatchbruses
36375 2004-09-01 15:30 jackson
36377 * StatusBar.cs: Fix typo
36379 2004-09-01 14:44 pbartok
36384 2004-09-01 14:39 pbartok
36386 * Button.cs, RadioButton.cs:
36387 - Functional initial check-in
36389 2004-09-01 14:01 pbartok
36392 - Added missing default
36393 - Added missing region mark
36395 2004-09-01 09:10 jordi
36397 * Label.cs: fixes method signatures, new methods, events, fixes
36400 2004-09-01 07:19 jordi
36402 * Control.cs: Init string variables with an empty object
36404 2004-09-01 04:20 jordi
36406 * Control.cs: fires OnFontChanged event
36408 2004-08-31 20:07 pbartok
36411 - Enabled display of strings
36413 2004-08-31 20:05 pbartok
36416 - Added (partial) implementation of DialogResult; rest needs to be
36417 implemented when the modal loop code is done
36419 2004-08-31 19:55 pbartok
36422 - Fixed to match the removal of the needs_redraw concept
36424 2004-08-31 19:55 pbartok
36427 - Removed the rather odd split between 'needs redraw' and redrawing
36428 - Now handles the events that require regeneration (ambient
36429 properties and size)
36431 2004-08-31 19:41 pbartok
36434 - Added firing of BackColorChanged event
36435 - Added TopLevelControl property
36436 - Fixed handling of WM_ERASEBKGRND message
36438 2004-08-31 12:49 pbartok
36444 2004-08-31 12:48 pbartok
36447 - Finished (famous last words)
36449 2004-08-31 04:35 jordi
36451 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
36452 scrolling bugs, adds new methods
36454 2004-08-30 14:42 pbartok
36457 - Implemented CheckBox drawing code
36459 2004-08-30 14:42 pbartok
36462 - Made Redraw() and CheckRedraw() virtual
36463 - Improved mouse up/down/move logic to properly track buttons
36465 2004-08-30 09:44 pbartok
36468 - Updated to fix broken build. Not complete yet.
36470 2004-08-30 09:28 pbartok
36475 2004-08-30 09:17 pbartok
36480 2004-08-27 16:12 ravindra
36482 * ToolBarButton.cs: Added TypeConverter attribute.
36484 2004-08-27 16:07 ravindra
36486 * ImageIndexConverter.cs: Implemented.
36488 2004-08-27 14:17 pbartok
36491 - Removed unneeded stack vars
36492 - First attempt to fix sizing issues when layout is suspended
36494 2004-08-25 15:35 jordi
36496 * ScrollBar.cs: more fixes to scrollbar
36498 2004-08-25 14:04 ravindra
36500 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
36501 Added the missing divider code and grip for ToolBar Control.
36503 2004-08-25 13:20 pbartok
36506 - Control now properly passes the ambient background color to child
36509 2004-08-25 13:20 jordi
36511 * ScrollBar.cs: small bug fix regarding bar position
36513 2004-08-25 12:33 pbartok
36516 - Now only calls SetTimer or KillTimer if the enabled state has
36519 2004-08-25 12:33 pbartok
36522 - Fixed timer handling, now seems to work
36523 - Improved error message for window creation
36525 2004-08-25 12:32 pbartok
36528 - Fixed generation of MouseUp message
36530 2004-08-25 12:29 jordi
36532 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
36533 and fixes for progressbar
36535 2004-08-24 18:43 ravindra
36537 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
36538 in ToolBar control.
36540 2004-08-24 17:15 pbartok
36544 - Added missing events
36547 2004-08-24 17:14 pbartok
36549 * StatusBar.cs, PictureBox.cs:
36550 - Now uses Control's CreateParams
36552 2004-08-24 16:36 pbartok
36555 - Fixed background color handling
36556 - Fixed sending of enter/leave events on a grab
36558 2004-08-24 16:35 pbartok
36561 - Refined definitions for CrossingEvent
36563 2004-08-24 12:37 jordi
36565 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
36566 formmating, methods signature, and adds missing events
36568 2004-08-24 12:24 jordi
36570 * Control.cs: fire OnEnabledChanged event
36572 2004-08-24 11:17 pbartok
36575 - Implemented SetTimer() and KillTimer()
36577 2004-08-24 11:16 pbartok
36580 - Now uses Remove instead of Add to kill the timer
36582 2004-08-24 10:16 jackson
36584 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
36585 picture boxes in the theme now. Draw picture box borders and obey
36588 2004-08-24 05:49 jackson
36590 * Timer.cs: Remove top secret debugging code
36592 2004-08-24 05:34 jackson
36594 * PictureBox.cs: Temp hack to make picture boxes draw their full
36597 2004-08-24 05:29 jackson
36599 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36600 XplatUIX11.cs: Move timers to the driver level. On X they are
36601 queued by the driver and checked on idle.
36603 2004-08-24 01:07 jackson
36605 * XplatUIX11.cs: Use a queue for async messages instead of passing
36606 them as ClientMessages since that was totally broken. Also simply
36607 check for events and return an idle message if none are found. This
36608 gives us an idle handler, and prevents deadlocking when no messages
36611 2004-08-23 18:19 ravindra
36613 * XplatUIWin32.cs: Removed the unwanted destructor.
36615 2004-08-23 17:27 pbartok
36618 - Finishing touches. Works now, just needs some optimizations.
36620 2004-08-23 16:53 jordi
36622 * ScrollBar.cs: small fix
36624 2004-08-23 16:45 pbartok
36627 - Removed debug output
36630 2004-08-23 16:43 jordi
36632 * ScrollBar.cs: [no log message]
36634 2004-08-23 16:10 pbartok
36637 - Fixed handling of WM_CLOSE message
36638 - Removed debug output
36640 2004-08-23 16:09 pbartok
36643 - Added handling of Idle event
36644 - Added handling of form closing
36645 - Fixed reporting of MessageLoop property
36646 - Removed some unneeded code, should provide a bit of a speedup
36648 2004-08-23 15:22 pbartok
36651 - Added InitLayout() method
36652 - Added code to properly perform layout when Anchor or Dock property
36654 - Changed 'interpretation' of ResumeLayout. MS seems to have a
36655 LAMESPEC, tried to do it in a way that makes sense
36657 2004-08-23 14:10 jordi
36659 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
36660 properties and methods
36662 2004-08-23 13:55 pbartok
36665 - Properly fixed Jordi's last fix
36666 - Now uses Cursor's Position property instead of calling XplatUI
36669 2004-08-23 13:44 jordi
36671 * PaintEventHandler.cs: Adding missing attribute
36673 2004-08-23 13:39 pbartok
36676 - Implemented Position property
36678 2004-08-23 13:39 pbartok
36680 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36681 - Added method to move mouse cursor
36683 2004-08-23 13:39 pbartok
36686 - Fixed setting of background color
36687 - Added method to move mouse cursor
36689 2004-08-23 13:16 jordi
36691 * Control.cs: avoids null exception
36693 2004-08-22 17:46 jackson
36695 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
36698 2004-08-22 17:40 jackson
36700 * XplatUIX11.cs: Add some missing locks
36702 2004-08-22 15:10 pbartok
36704 * Control.cs, Form.cs:
36705 - Removed OverlappedWindow style from Control, instead it's default
36707 - Made form windows OverlappedWindow by default
36709 2004-08-22 13:34 jackson
36711 * ScrollBar.cs: Update the position through the Value property so
36712 the OnValueChanged event is raised.
36714 2004-08-22 12:04 pbartok
36717 - Added Cursor.cs and UserControl.cs
36719 2004-08-22 12:03 pbartok
36722 - Started implementation, not usable yet
36724 2004-08-22 12:00 pbartok
36727 - Implemented UserControl (complete)
36729 2004-08-21 19:20 ravindra
36731 * ToolBar.cs: Correcting the formatting mess of VS.NET.
36733 2004-08-21 18:49 ravindra
36735 * ToolBar.cs: Probably this completes the missing attributes in
36738 2004-08-21 18:03 ravindra
36740 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
36741 Fixed toolbar control signatures.
36743 2004-08-21 16:32 pbartok
36748 2004-08-21 16:30 pbartok
36753 2004-08-21 16:19 pbartok
36755 * Control.cs, Label.cs:
36758 2004-08-21 15:57 pbartok
36761 - Added loads of debug output for development
36762 - Fixed typo in method name
36764 2004-08-21 15:52 pbartok
36766 * ToolBarButtonClickEventArgs.cs:
36767 - Added missing base class
36769 2004-08-21 14:53 pbartok
36772 - Updated to match new GrabWindow signature
36774 2004-08-21 14:51 pbartok
36776 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36777 - Added method to get default display size
36779 2004-08-21 14:23 pbartok
36781 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36782 - Added method to query current grab state
36783 - Added argument to allow confining a grab to a window
36785 2004-08-21 14:22 pbartok
36788 - Added [Flags] attribute so that modifiers can be used in bitwise
36791 2004-08-21 14:21 pbartok
36793 * TrackBar.cs, ScrollBar.cs:
36794 - Replaced direct XplatUI calls with their Control counterpart
36796 2004-08-21 13:32 pbartok
36799 - Implemented Created property
36801 2004-08-21 13:28 pbartok
36804 - Implemented ContainsFocus
36806 2004-08-21 13:26 pbartok
36809 - Implemented CausesValidation
36811 2004-08-21 13:21 pbartok
36814 - Implemented CanFocus
36815 - Implemented CanSelect
36816 - Implemented Capture
36818 2004-08-21 12:35 pbartok
36821 - Fixed bug with Async message handling
36822 - Implemented getting the ModifierKeys
36824 2004-08-21 12:32 jackson
36826 * AsyncMethodResult.cs: Make sure we have the mutex before we
36827 release it. Fixes BeginInvoke on windows
36829 2004-08-21 11:31 pbartok
36831 * XplatUIWin32.cs, XplatUIX11.cs:
36832 - Drivers now return proper mouse state
36834 2004-08-21 10:54 jackson
36836 * Control.cs: Implement EndInvoke
36838 2004-08-21 10:48 jackson
36840 * Timer.cs: Remove unneeded finalizer
36842 2004-08-20 19:52 ravindra
36844 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
36845 in mouse event handling in the ToolBar control.
36847 2004-08-20 19:50 ravindra
36849 * ImageList.cs: Changed draw method to use the arguments passed in
36852 2004-08-20 18:58 pbartok
36854 * XplatUIStructs.cs:
36855 - Added private message for async communication
36857 2004-08-20 17:38 ravindra
36859 * Control.cs: Made RightToLeft property virtual and removed a
36862 2004-08-20 14:39 jordi
36864 * ThemeGtk.cs: use style_attach
36866 2004-08-20 14:39 pbartok
36869 - Added jackson's Async code from X11 to Win32
36871 2004-08-20 14:09 pbartok
36874 - Added all new files
36876 2004-08-20 14:09 pbartok
36879 - Added call to set window background color
36881 2004-08-20 14:03 pbartok
36883 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36884 - Added method for setting the window background
36886 2004-08-20 14:02 pbartok
36889 - Added method for setting the background color
36890 - Added handling for erasing the window background
36892 2004-08-20 13:45 jordi
36894 * TrackBar.cs: fixes timer, new properties and methods
36896 2004-08-20 13:34 jackson
36898 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
36901 2004-08-20 13:22 jackson
36903 * Timer.cs: Timer Tick events are now handed through Controls Async
36904 mechanism so the callbacks are executed in the same thread as X
36906 2004-08-20 13:19 jackson
36908 * XplatUIDriver.cs: Expose functionality to send async messages
36911 2004-08-20 13:18 jackson
36913 * Control.cs: Implement Begininvoke
36915 2004-08-20 13:14 jackson
36917 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
36918 messages through the driver
36920 2004-08-20 13:12 jackson
36922 * XplatUIX11.cs: Lock before all X operations. Also added Async
36923 method functionality through XSendEvent
36925 2004-08-20 13:11 jackson
36927 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
36928 This will screw up on 64 bit systems)
36930 2004-08-20 13:10 jackson
36932 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
36933 Async messages through X/Win32
36935 2004-08-19 19:39 pbartok
36938 - Updated code to match new HandleData.DeviceContext type
36940 2004-08-19 19:38 pbartok
36943 - Made DeviceContext a generic object to allow usage from various
36945 - Added support for queueing Windows messages
36947 2004-08-19 19:37 pbartok
36950 - Added generation of MouseEnter, MouseLeave and MouseHover events
36951 - Added cleanup on EndPaint
36953 2004-08-19 19:17 pbartok
36956 - Added handling of WM_MOUSEHOVER
36957 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
36960 2004-08-19 18:55 jordi
36962 * ThemeGtk.cs: fixes button order
36964 2004-08-19 18:12 jordi
36966 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
36968 2004-08-19 17:09 pbartok
36971 - Added Right property
36972 - Added RightToLeft property
36974 2004-08-19 16:27 jordi
36976 * ThemeGtk.cs: experimental GTK theme support
36978 2004-08-19 16:26 jordi
36980 * ITheme.cs, Theme.cs: move themes from an interface to a class
36982 2004-08-19 16:25 jordi
36984 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
36987 2004-08-19 16:04 pbartok
36990 - Added colormap basics
36991 - Added a way to re-initialize with a different display handle
36992 - Fixed setting of the window background color
36993 - Added various X11 imports related to colors and colormaps
36995 2004-08-19 15:51 pbartok
36998 - Removed packing hints (Paolo suggested this a while back)
36999 - fixed colormap type
37000 - Added default Atom types
37001 - Added Screen and color structs and enums
37003 2004-08-19 15:39 pbartok
37006 - Added missing Draw() method
37007 - Added missing RecreateHandle event
37009 2004-08-19 15:30 pbartok
37012 - Added handling of WM_CLOSE
37014 2004-08-18 13:16 jordi
37016 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37019 2004-08-18 09:56 jordi
37021 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37023 2004-08-17 15:31 ravindra
37025 * SWF.csproj: Updated project.
37027 2004-08-17 15:25 pbartok
37030 - Drawing improvement; don't call UpdateBounds if we are not visible
37031 (or have been minimized)
37033 2004-08-17 15:24 pbartok
37036 - Finished IsVisible
37037 - Added Win32GetWindowPlacement
37039 2004-08-17 15:08 jackson
37041 * Panel.cs: Initial checkin of the Panel
37043 2004-08-17 14:25 pbartok
37046 - Fixed broken handling of default window sizes
37048 2004-08-17 13:29 jackson
37050 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37051 has a large startup time.
37053 2004-08-17 10:25 jackson
37055 * HandleData.cs: union areas properly
37057 2004-08-17 10:12 jackson
37059 * HandleData.cs: union areas properly
37061 2004-08-16 20:00 ravindra
37063 * ToolBar.cs, ToolBarButton.cs: Added attributes.
37065 2004-08-16 18:48 ravindra
37067 * ToolBar.cs: Added attributes.
37069 2004-08-16 17:17 ravindra
37071 * SWF.csproj: Updated project.
37073 2004-08-16 17:16 jackson
37075 * XplatUIX11.cs: Check for more expose events before sending a
37076 WM_PAINT so they can all be grouped together. This makes dragging a
37077 window across another window redraw in a sane way.
37079 2004-08-16 15:47 pbartok
37082 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37083 support OnMouseEnter/Leave()
37084 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37087 2004-08-16 15:46 pbartok
37089 * XplatUIStructs.cs, XplatUIX11.cs:
37090 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37091 OnMouseEnter/Leave()
37093 2004-08-16 15:34 jackson
37095 * XplatUIX11.cs: Group multiple expose events in HandleData, make
37096 sure messages get the message field set to WM_NULL if they are not
37099 2004-08-16 15:24 jackson
37101 * HandleData.cs: HandleData is used for storing message information
37104 2004-08-15 17:23 ravindra
37106 * ColorDepth.cs: Added attribute.
37108 2004-08-15 17:23 ravindra
37110 * SWF.csproj: Updated project for ToolBar Control.
37112 2004-08-15 17:20 ravindra
37114 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37115 control and also dos2unix format.
37117 2004-08-15 17:13 ravindra
37119 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37120 ToolBarButtonClickEventArgs.cs,
37121 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37122 ToolBarTextAlign.cs: First Implementation of ToolBar control.
37124 2004-08-15 15:31 pbartok
37127 - First (mostly) working version
37129 2004-08-13 16:15 pbartok
37132 - Fixed Anchor default
37134 2004-08-13 15:43 pbartok
37137 - Changed GetCursorPos signature
37139 2004-08-13 15:42 pbartok
37141 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37142 - Changed signature for GetCursorPos
37144 2004-08-13 15:25 pbartok
37148 - Fixed resizing/exposure handling
37150 2004-08-13 15:22 jordi
37152 * ThemeWin32Classic.cs: removes redundant code and fixes issues
37155 2004-08-13 14:55 jordi
37157 * TrackBar.cs: change from wndproc to events
37159 2004-08-13 13:00 jordi
37161 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37162 XplatUIX11.cs: implements PointToClient (ScreenToClient)
37164 2004-08-13 12:53 pbartok
37167 - Changed GetWindowPos to also provide client area size
37168 - Fixed broken prototypes for several win32 functions
37170 2004-08-13 12:53 pbartok
37172 * XplatUI.cs, XplatUIDriver.cs:
37173 - Changed GetWindowPos to also provide client area size
37175 2004-08-13 12:52 pbartok
37178 - Added generation of WM_POSCHANGED
37179 - Changed GetWindowPos to also provide client area size
37181 2004-08-13 12:52 pbartok
37184 - Added Dispose() and destructor
37185 - Fixed resizing and bounds calculation
37187 - Added memory savings for invisible windows
37189 2004-08-13 12:46 jordi
37191 * TrackBar.cs: adds timer and grap window
37193 2004-08-13 10:25 jackson
37195 * Timer.cs: SWF Timer
37197 2004-08-12 16:59 pbartok
37199 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37200 - Implemented method to get current mouse position
37202 2004-08-12 14:29 jordi
37204 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37205 enhancement, fix mouse problems, highli thumb, etc
37207 2004-08-12 13:31 pbartok
37210 - Fixed Anchoring bugs
37212 2004-08-12 13:01 jackson
37214 * StatusBar.cs: Don't forget things
37216 2004-08-12 12:54 jackson
37218 * ThemeWin32Classic.cs: Handle owner draw status bars
37220 2004-08-12 12:54 jackson
37222 * StatusBar.cs: Implement missing properties, events, and methods.
37223 Handle mouse clicking
37225 2004-08-12 10:19 jackson
37227 * StatusBarPanelClickEventArgs.cs,
37228 StatusBarPanelClickEventHandler.cs: Classes for handling status
37229 bar panel click events
37231 2004-08-12 10:10 jackson
37233 * Control.cs: Add missing properties
37235 2004-08-12 09:46 pbartok
37237 * BindingsManagerBase.cs:
37238 - Name changed to BindingManagerBase.cs
37240 2004-08-12 09:25 jordi
37242 * ScrollableControl.cs: calls ctrlbase instead of exeception
37244 2004-08-11 16:28 pbartok
37246 * InputLanguageChangingEventArgs.cs:
37247 - Never check in before compiling. Fixes the last check-in
37249 2004-08-11 16:26 pbartok
37251 * InputLanguageChangingEventArgs.cs:
37252 - More signature fixes
37254 2004-08-11 16:20 pbartok
37256 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37257 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37258 ImageListStreamer.cs, InputLanguage.cs,
37259 InputLanguageChangedEventArgs.cs,
37260 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37261 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37262 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37263 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37266 2004-08-11 16:16 pbartok
37270 - Added .Net 1.1 method
37272 2004-08-11 15:25 pbartok
37275 - Fixed BindingManagerBase.cs filename
37277 2004-08-11 15:22 pbartok
37279 * BindingManagerBase.cs:
37280 - Was checked in with wrong filename
37282 2004-08-11 14:50 pbartok
37287 2004-08-11 13:41 jordi
37289 * XplatUIWin32.cs: Fixes ClientRect
37291 2004-08-11 13:19 pbartok
37293 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37295 - We had SetWindowPos and MoveWindow to set window positions and
37296 size, removed MoveWindow. We have GetWindowPos, so it made sense to
37297 keep SetWindowPos as matching counterpart
37298 - Added some X11 sanity checking
37300 2004-08-11 12:59 pbartok
37303 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37304 (It seems that SetBounds is just a front for SetBoundsCore and
37305 SetBoundsCore updates the underlying window system and
37306 UpdateBounds is responsible for updating the variables associated
37307 with the Control and sending the events)
37308 - Major cleanup of Size handling; we now have two sizes, client_size
37309 and bounds. Bounds defines the window with decorations, client_size
37312 2004-08-11 12:55 pbartok
37314 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37315 - Added method to calculate difference between decorated window and
37318 2004-08-11 12:54 pbartok
37321 - Forcing redraw on resize
37323 2004-08-11 11:43 pbartok
37326 - Removed disposing of the actual images when the list is disposed
37328 2004-08-11 09:13 pbartok
37331 - Now properly reparents windows
37333 2004-08-11 08:37 pbartok
37338 2004-08-11 07:47 pbartok
37341 - Rewrote the collection stuff. Might not be as fast now, not
37342 keeping the number of children around and accessible directly, but
37343 it's more straightforward
37345 2004-08-11 07:44 pbartok
37347 * AccessibleObject.cs:
37348 - Fixed to match ControlCollection rewrite
37350 2004-08-11 07:43 pbartok
37353 - Added missing creation of the collection list
37355 2004-08-10 20:08 jackson
37357 * StatusBar.cs: Get the paint message from WndProc
37359 2004-08-10 19:31 jackson
37361 * ThemeWin32Classic.cs: Create Brushes as little as possible
37363 2004-08-10 19:20 jackson
37365 * UICues.cs: Add Flags attribute
37367 2004-08-10 19:19 jackson
37369 * StatusBarPanel.cs: Signature cleanup
37371 2004-08-10 19:10 jackson
37373 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37374 Initial implementation of status bar item drawing
37376 2004-08-10 17:27 jordi
37378 * TrackBar.cs: add missing methods, properties, and restructure to
37381 2004-08-10 16:24 jackson
37383 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37384 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37387 2004-08-10 13:21 jordi
37389 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37390 enhancements and standarize on win colors defaults
37392 2004-08-10 12:52 jackson
37394 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37395 ThemeWin32Classic.cs: Implement DrawItem functionality
37397 2004-08-10 12:47 jordi
37399 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37401 2004-08-10 12:32 jordi
37403 * Control.cs: throw ontextchange event
37405 2004-08-10 11:43 pbartok
37408 - Added more to the still unfinished Dock/Anchor layout code
37410 2004-08-10 11:39 pbartok
37412 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37413 - Added GetWindowPos method
37415 2004-08-10 11:36 pbartok
37418 - Implemented several methods
37420 2004-08-10 09:47 jackson
37422 * TrackBar.cs: Allow control to handle buffering
37424 2004-08-10 09:41 jackson
37426 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
37428 2004-08-10 09:24 jackson
37430 * Label.cs, LinkLabel.cs: Let Control handle buffering.
37432 2004-08-10 09:09 jackson
37434 * StatusBar.cs: Let Control handle all the buffering.
37436 2004-08-10 09:08 jackson
37438 * Control.cs: Control will now handle the buffering code, so each
37439 control does not have to implement this.
37441 2004-08-10 08:34 jackson
37443 * XplatUIDriver.cs: Use default colors from the theme
37445 2004-08-09 17:12 pbartok
37448 - Fixed several bugs Ravindra pointed out
37450 2004-08-09 16:11 pbartok
37453 - Added incomplete dock layout code
37454 - Added support for mouse wheel
37456 2004-08-09 16:09 pbartok
37459 - Added handling for middle and right mousebutton
37460 - Added handling for mouse wheel
37461 - Added handling for key state and mouse state and position
37462 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
37465 2004-08-09 15:40 jackson
37467 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
37468 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
37471 2004-08-09 15:37 jackson
37473 * StatusBar.cs: Initial implementation of StatusBar
37475 2004-08-09 15:36 jackson
37477 * ITheme.cs: Add support for drawing status bar and getting status
37480 2004-08-09 15:35 pbartok
37485 2004-08-09 15:34 jackson
37487 * ThemeWin32Classic.cs: Add support for drawing status bar and get
37488 status bar item sizes
37490 2004-08-09 15:21 jackson
37492 * ThemeWin32Classic.cs: Use known colors for default control
37495 2004-08-09 15:12 jackson
37497 * ThemeWin32Classic.cs: Make the default font static, it is static
37498 in control so this doesn't change functionality and creating fonts
37501 2004-08-09 14:56 pbartok
37504 - Added GrabMode enum
37506 2004-08-09 14:55 pbartok
37508 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37509 - Removed Run method, was only required for initial development
37511 2004-08-09 14:51 pbartok
37513 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37514 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
37517 2004-08-09 13:48 pbartok
37520 - Fixed default sizing for child windows
37522 2004-08-09 12:56 pbartok
37525 - Added generation of WM_DESTROY message
37526 - Added handling of window manager induced shutdown
37528 2004-08-09 11:31 jackson
37530 * ThemeWin32Classic.cs: New names for control properties
37532 2004-08-09 11:25 jackson
37534 * Control.cs: Use new color names
37536 2004-08-09 11:02 jackson
37538 * XplatUI.cs: Get default window properties from the theme
37540 2004-08-09 11:01 jackson
37542 * ITheme.cs: The theme engine now controls default window
37545 2004-08-09 11:00 jackson
37547 * ThemeWin32Classic.cs: Add default window color properties
37549 2004-08-09 10:17 jackson
37551 * ThemeWin32Classic.cs: Use correct default back color
37553 2004-08-09 10:05 jackson
37555 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
37558 2004-08-09 09:56 jackson
37560 * XplatUI.cs: Remove defaults, these are handled by the theme now.
37562 2004-08-09 09:54 jackson
37564 * Control.cs: Get default properties from the theme.
37566 2004-08-09 09:53 jackson
37568 * ITheme.cs: Themes now handle default control properties
37570 2004-08-09 09:53 jackson
37572 * ThemeWin32Classic.cs: Themes now handle default control
37573 properties so coloring will be consistent
37575 2004-08-08 16:54 jordi
37577 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
37579 2004-08-08 15:08 jordi
37581 * XplatUIX11.cs: fixes keyboard crash
37583 2004-08-08 13:47 jordi
37585 * Label.cs: add cvs header info
37587 2004-08-08 12:09 jackson
37589 * ThemeWin32Classic.cs: Add pen_buttonface
37591 2004-08-08 11:52 jordi
37593 * Label.cs, LinkLabel.cs: [no log message]
37595 2004-08-08 11:34 jordi
37597 * ThemeWin32Classic.cs: Use Windows Standard Colours
37599 2004-08-07 17:32 jordi
37601 * TrackBar.cs: throw exceptions of invalid enums values
37603 2004-08-07 17:31 jordi
37605 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
37608 2004-08-07 16:56 jackson
37610 * HorizontalAlignment.cs: Initial checkin
37612 2004-08-07 13:16 jordi
37614 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
37617 2004-08-07 13:05 jordi
37619 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
37620 GetSysColor defines
37622 2004-08-06 18:01 pbartok
37624 * ThemeWin32Classic.cs:
37625 - Fixed some rounding issues with float/int
37627 2004-08-06 18:00 jackson
37629 * DockStyle.cs, AnchorStyles.cs:
37631 Add flags and serializable attributes.
37633 2004-08-06 17:46 pbartok
37636 - Implemented GetParent
37638 2004-08-06 17:18 pbartok
37641 - Fixed some rounding issues with float/int
37643 2004-08-06 17:17 pbartok
37645 * X11Structs.cs, XplatUIX11.cs:
37646 - Fixed Refresh and Invalidate
37648 2004-08-06 15:30 pbartok
37650 * Control.cs, X11Structs.cs, XplatUIX11.cs:
37651 - Fixed recursive loop when resizing
37652 - Improved/fixed redrawing on expose messages
37654 2004-08-06 09:53 jordi
37656 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
37657 keyboard navigation
37659 2004-08-06 08:02 pbartok
37661 * X11Structs.cs, XplatUIX11.cs:
37662 - Fixed reparenting
37663 - Fixed window border creation
37665 2004-08-05 15:38 pbartok
37668 - Attempted fix for reparenting problems
37670 2004-08-04 15:14 pbartok
37673 - Fixed Invalidation bug (calculated wrong client area)
37674 - Added ClientSize setter
37676 2004-08-04 15:13 pbartok
37679 - Added AutoScale properties
37681 2004-08-04 15:13 pbartok
37684 - Added latest files
37686 2004-08-04 14:11 pbartok
37688 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37690 - Added Invalidate handling
37692 2004-08-03 17:09 jordi
37694 * XplatUIDriver.cs: fixes spelling mistake
37696 2004-07-27 09:53 jordi
37698 * TrackBar.cs: fixes trackbar events, def classname, methods
37701 2004-07-27 09:29 jordi
37703 * ScrollBar.cs: fixes scrollbar events
37705 2004-07-27 04:38 jordi
37707 * Control.cs: changes to be able to run winforms samples
37709 2004-07-26 11:42 jordi
37711 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
37712 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
37714 2004-07-26 05:41 jordi
37716 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
37717 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
37720 2004-07-22 09:22 jordi
37722 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
37723 check link overlapping, implement events, and fixes
37725 2004-07-21 10:28 jordi
37727 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
37729 2004-07-21 10:19 jordi
37731 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
37732 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
37733 LinkLabelLinkClickedEventArgs.cs,
37734 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
37735 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
37738 2004-07-19 13:09 jordi
37740 * Control.cs, Label.cs: label control re-written: added missing
37741 functionlity, events, and properties
37743 2004-07-19 10:49 jordi
37745 * Control.cs: fixes SetBounds logic
37747 2004-07-19 01:29 jordi
37749 * Control.cs: Call RefreshWindow only if the window has created
37751 2004-07-15 14:05 pbartok
37753 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
37754 - Implemented ImageList and ImageList.ImageCollection classes
37755 - Added ColorDepth enumeration
37756 - Updated SWF VS.Net project
37758 2004-07-15 11:06 jordi
37760 * XplatUIStructs.cs: added MsgButons enum
37762 2004-07-15 11:03 jordi
37764 * Control.cs: added basic mouse handeling events
37766 2004-07-15 03:38 jordi
37768 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
37769 Vertical TrackBar control implementation
37771 2004-07-13 09:33 jordi
37773 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
37775 2004-07-13 09:31 jordi
37777 * Control.cs, Form.cs: commit: new properties and fixes form size
37780 2004-07-09 14:13 miguel
37782 * ProgressBar.cs: Spelling
37784 2004-07-09 11:25 pbartok
37787 - Removed usage of Rectangle for drawing. Miguel pointed out it's
37790 2004-07-09 11:17 miguel
37792 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
37794 * ProgressBar.cs: Fixed spelling for `block'
37796 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
37799 Avoid using the += on rect.X, that exposed a bug in the compiler.
37801 2004-07-08 23:21 pbartok
37803 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
37804 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
37805 BaseCollection.cs, Binding.cs, BindingContext.cs,
37806 BindingMemberInfo.cs, BindingsCollection.cs,
37807 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
37808 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
37809 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
37810 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
37811 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
37812 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
37813 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
37814 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
37815 FrameStyle.cs, GiveFeedbackEventArgs.cs,
37816 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
37817 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
37818 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
37819 InputLanguageChangedEventArgs.cs,
37820 InputLanguageChangedEventHandler.cs,
37821 InputLanguageChangingEventArgs.cs,
37822 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
37823 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
37824 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
37825 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
37826 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
37827 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
37828 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
37829 QueryAccessibilityHelpEventArgs.cs,
37830 QueryAccessibilityHelpEventHandler.cs,
37831 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
37832 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
37833 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
37834 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
37835 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
37836 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
37837 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
37838 XplatUIX11.cs, lang.cs: