1 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
3 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
4 to not depend on the item being clicked.
6 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
8 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
9 longer throws a NotImplementedException.
11 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
13 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
14 IDataGridViewEditingControl for editing.
16 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
18 * DataGridViewComboBoxCell.cs: Implement data binding support.
20 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
22 * DataGridView.cs: Use the CurrencyManager to update the data source
23 binding position instead of casting the data sourcde to BindingSource.
24 This enables position updating for other type of data sources.
26 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
28 * ComboBox.cs: Update the SelectedIndex before updating the Text
29 in OnDisplayMemberChanged.
31 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
33 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
36 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
38 * DataGridView.cs: Sorting fixes:
39 - Be strict when sorting is enabled.
40 - If there is a data source delegate the sorting request.
42 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
44 * Binding.cs: When converting the data also try with the destination
45 type typeconverter. This indirectly adds support for Nullable types
46 in our databinding layer.
48 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
50 * DataGridView.cs: When cell editing is finished focus back the
51 DataGridView. Fixes keyboard navigation post-editing.
53 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
55 * DataGridView.cs: Fix the cell editing by delaying the currentCell
56 setting to after EndEdit is called for the old cell.
58 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
60 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
62 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
64 * XplatUIX11.cs: Send WM_HELP only to the focused window.
66 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
68 * CurrencyManager.cs: Fix exceptions when resetting the data source
69 for the same time (e.g. in ComboBox):
70 - Do not set the list position if we are still transferring data
71 - When resetting the list firstly push the data then update the
73 * Binding.cs: Check BindingManager.Position == -1 instead of
74 BindingManager.Current == null in order to avoid unexpected
77 2008-12-05 Brad Taylor <brad@getcoded.net>
79 * MonthCalendar.cs: Add UIA specific events so that we can know when
80 the selection changes, and when MaxSelectedCount changes.
82 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
84 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
87 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
89 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
90 to the control being drawn for the first time by:
91 - Implement DisplayedRowsCount to not rely on the control being
92 already painted. Also added support for the partial row flag.
93 - Fix scrolling to take into account partial rows and scroll to
97 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
99 * DataGridView.cs: Do not reset the CurrentCell when the handle is
100 created if the user has already set it.
102 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
104 * DataGridView.cs: Fix CurrentCell to actually select the cell.
106 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
108 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
109 text and then let the underneath users of IDataObject interpret and
113 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
115 * DataGridView.cs: Fix my previous commit to actually update what it
118 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
120 * DataGridView.cs: Ensure that when a row is removed the all the
121 current row/column/cell get updated. Fixes multiple exceptions.
123 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
125 * DataGridView.cs: Fix scrolling to the current cell when key navigation
129 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
131 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
132 * DataGridViewCell.cs: Set the cell as selected prior to setting the
134 [Fixes issue 1 in bug #443560]
136 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
138 * DataGridView.cs: Invalidate after the current row/column seletion
142 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
144 * DataGridView.cs: Refresh the data if the data list is reset, etc.
146 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
148 * DataGridView.cs: Handle datasource state changes:
149 - IBindingList - list changes
150 - BindingSource - list changed and datasource changes
152 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
154 * DataGridView.cs: Select the first cell when databound.
155 Visually select when CurrentCell is set.
157 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
159 * DataGridView.cs: Set the current cell before raising CellClick.
161 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
163 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
164 CellLeave events as this is already done in SetCurrentCellAddressCore.
166 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
168 * DataGridView.cs: Set the minimum size for the columns to be the
169 width of their header, so that the columns don't get squashed
172 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
174 * DataGridView.cs: After the data is bound PerformLayout, so that
175 the columns get autosized.
177 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
179 * DataGridView.cs: Move all currentCell setting code into
180 one central place - SetCurrentCellAddressCore. That way the
181 current cell is properly updated when programatically set.
182 Fire RowEnter/Leave events.
184 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
186 * DataGridView.cs: Update the CurrencyManager.Position, so that
187 when a BindingSource is used BindingSource.Current will be correct.
189 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
191 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
192 - No caption text is drawn because Color.Empty is used.
193 - Fix top and height off by 1.
195 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
197 * DataGridViewRow.cs: Implement DataBoundItem.
199 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
201 * BindingSource.cs: Return null for Current if there is no data present.
203 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
205 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
206 menus using the arrow keys. Also when handling the left arrow key, don't
207 assign the current menu to the parent one, if the parent is null.
210 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
212 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
215 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
218 * ScrollableControl.cs: Simplify the code to manually set the size of
219 the thum area, avoiding duplication of code, and also preserving the
220 right value for different code paths - this can happen when size
221 changes are made to the scrollbar after setting LargeChange, Maximum
222 or related properties for the ScrollBar.
224 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
226 * ScrollableControl.cs: When scrolling, don't invalidate the entire
227 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
228 what .Net does: copy the visible area, and only invalidate the part of
229 the area that wasn't visible before scrolling.
232 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
234 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
235 can clear ourselves when it is raised, we don't have a newrowindex
236 if we don't have any columns.
237 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
238 re-index after each delete so the NewRow will have the correct index.
241 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
243 * Form.cs: Don't change min/max size if it is empty.
246 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
249 * ScrollableControl.cs: When the manual thumb size is used, the
250 maximum allowed value should depend on that thumb size, instead of
251 LargeChange (using the maximum - LargeChange + 1 value). But
252 LargeChange should be used normally when incrementing/decrementing.
253 Fixes the remaining part of #441546.
255 2008-11-23 Andreia Gaita <avidigal@novell.com>
257 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
258 until an about:blank has been loaded (according to spec). Fix
259 ScrollbarsEnabled to set when a document is loaded (since we use js
260 for it). Fix url so it reflects the current loading document and not
261 the previous one. Send StatusChanged events.
263 2008-11-23 Andreia Gaita <avidigal@novell.com>
265 * Application.cs: If a message comes in for an embedded control
266 (like webbrowser) when we're capturing the keyboard, release the
267 capture and continue.
270 2008-11-22 Andreia Gaita <avidigal@novell.com>
272 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
274 2008-11-21 Andreia Gaita <avidigal@novell.com>
276 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
278 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
281 * ScrollableControl.cs: Set manually the thumb size for the
282 ScrollableControl scrollbars, so any further changes to the underneath
283 scrollbars respect the original size.
284 Fixes part of #441546.
286 2008-11-21 Geoff Norton <gnorton@novell.com>
288 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
289 PlatformID.MacOSX now exists.
291 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
293 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
294 Having something internal abstract isn't very nice for people who want
295 to inherit from this class.
297 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
299 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
300 invalid value. Just return null for the Image, and use the ImageList's
301 ImageSize for calculations.
303 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
305 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
306 through DroppedDown so the proper events get called and state gets reset.
309 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
311 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
312 the collection is modified.
314 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
316 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
317 aren't always correct, and fixing them for every case is not worth the
318 negligible benefit they provide.
321 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
323 * DataGridView.cs: We should never add actual cells to the RowTemplate.
324 Internally, use RowTemplateFull to give us a new row with cells.
325 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
326 * DataGridViewRowCollection.cs: Use RowTemplateFull.
328 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
330 * XplatUIX11.cs: Forms without borders should be able to change its
331 size - specially they should be able to be maximized, adding the
332 respective MotifFunctions.Resize bit when setting window properties as
333 well as *not* marking the Hwnd as size fixed.
336 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
338 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
342 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
344 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
345 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
346 AutoSizeColumnModeChanged.
349 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
351 * DataGridViewRowCollection.cs: Guard against the user deleting the
352 NewRow. Add an internal delete so we can still delete it.
353 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
356 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
358 * TextControl.cs: Add some order of operation to our math so
359 we don't end up with a negative height for our invalidate rect.
362 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
364 * Control.cs: When our enabled changes, notify our implicit children
365 controls as well as our regular controls.
368 2008-11-08 Andreia Gaita <shana@jitted.com>
370 * HtmlElement.cs: Small code cleanup
372 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
374 * BindingNavigator.cs: MoveFirstItem should be enabled only if
375 position is larger than 0, not only different than 0. Also Position
376 and Count items should be enabled if the BindingSource is non null and
380 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
382 * TabControl.cs: Don't raise SelectedIndexChanged until we have
383 actually modified the tab collection, so TabCount will be correct.
386 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
388 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
389 NonSerialized to fix serialization of ListViewItem.
391 2008-11-04 Mike Gorse <mgorse@novell.com>
393 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
394 focus change, and always call in SetFocusedItem.
395 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
397 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
399 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
400 mode. Based on a patch by John Mortlock.
403 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
405 * ListView.cs: Use the UsingGroups property where needed, instead of
406 duplicating the check in other places.
408 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
410 * ListView.cs: When calculating layout, refresh the count of items
411 belonging to the default item, insteas of doing it only one time. This
412 was already working fine for icon views, not not for details.
415 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
419 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
420 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
424 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
426 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
428 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
430 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
431 #441280, patch by Mike Gorse <mgorse@novell.com>.
433 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
435 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
436 if there is no scrollbar.
439 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
441 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
442 patch from Andy Hume that fixes many issues with ProgressBar.
445 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
447 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
450 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
454 * NumericUpDown.cs: Internal events added to UpDownBase:
455 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
458 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
460 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
462 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
465 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
466 Application.EnableVisualStyles hasn't been called.
467 Fixes part of #437933.
469 2008-10-31 Andreia Gaita <shana@jitted.com>
471 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
472 if the container is not focused already, we need to specifically set
473 focus to the first available control, or to the form itself if there
476 2008-10-31 Andreia Gaita <shana@jitted.com>
478 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
479 WM_ACTIVATE have been processed before returning, so it is guaranteed that
480 once it returns and the form is visible, it is actually on the screen on X11
482 * ContainerControl.cs: Only send focus to the control if the top container
483 is already focused. This is so that, when a form is first shown, all
484 the enter/leave events are done first before any focus stuff comes in.
485 If a control has no top container, there's an extra check on Control.Focus
486 to make sure it gets focused in this particular case.
488 * Control.cs: Force focus if the control is active but did not receive
489 focus after being set as active.
491 * MdiClient.cs: Dispose the form when closing
493 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
494 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
495 if the window is a top Form.
496 Reset all hwnd properties when the window has been destroyed so that
497 we don't land in any codepaths that might try to do something with it.
498 Added a bunch of debugging messages. If TRACE is defined, all X calls
499 are logged through DebugHelper. Set a few missing EntryPoint attributes.
501 2008-10-29 Mario Carrion <mcarrion@novell.com>
503 * ListViewItem.cs: Control enabled to support Accessibility:
504 - Internal events: UIATextChanged, UIASubItemTextChanged.
505 - Internal event UIATextChanged in ListViewSubItem that triggers
506 UIASubItemTextChanged.
507 * ListView.cs: Control enabled to support Accessibility:
508 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
509 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
510 - Internal event UIACollectionChanged in ColumnHeaderCollection.
511 - Internal event UIACollectionChanged in ListViewItemCollection.
512 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
513 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
514 - Internal methods: UIAGetHeaderBounds.
516 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
518 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
519 the event from the respective scrollbars.
522 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
524 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
525 textbox to know whether any navigation key will be handled or not. If
526 not, don't pass the message to the textbox, and use it here instead.
527 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
528 is more precise- than the previous AutoCompleteMatches one.
529 This should the keyboard navigation in ComboBox when using auto
532 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
534 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
537 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
539 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
540 overridden methods will get called.
541 * ToolStripItem.cs: Raise Click before MouseUp.
542 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
543 the item's location into account.
546 2008-10-24 Neville Gao <nevillegao@gmail.com>
548 * NumericUpDown.cs: Control enabled to support accessibility.
551 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
553 * TextBox.cs: Check that we actually have items no navigate, select
554 text when pressing enter, as well as handle direction keys only if
555 mode is different to Suggest or the suggest listbox is visible.
557 2008-10-23 Andreia Gaita <shana@jitted.com>
559 * WebBrowser.cs: Use the new ContentStream property to retrieve
560 a stream encoded from the document content
562 2008-10-23 Andreia Gaita <shana@jitted.com>
566 HtmlWindow.cs: Fix GetHashcode for null objects
568 2008-10-22 Andreia Gaita <shana@jitted.com>
572 HtmlWindow.cs: Fix equality operators (fixes #428173)
574 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
576 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
577 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
580 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
582 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
583 same item with the mouse as was already selected.
586 2008-10-21 Brad Taylor <brad@getcoded.net>
588 * TextControl.cs: Break out code to get the visible range into
589 GetVisibleLineIndexes to be used in UIA code.
593 * TextBoxBase.cs: Add comments indicating that the method or property
594 is used via reflection from UIA code.
596 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
598 * ListViewItem.cs: Match .net serialization.
599 Fixes remaining part of #417520.
601 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
603 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
605 2008-10-20 Mario Carrion <mcarrion@novell.com>
607 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
608 added: UIAToolTipRectangle.
610 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
612 * ListViewItem.cs: When deserializing enumerate over the data, instead
613 of accessing the data directly. This way we handle much better the
614 cases were we lack information.
617 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
619 * ListView.cs: When removing an item from a main ListView.Items
620 collection (and not a ListViewGroupCollection.Items one), remove it
621 also from the group, as .net does. Patch by Mario Carrion (mario at
625 2008-10-19 Andreia Gaita <avidigal@novell.com>
627 * Form.cs: Forms that get closed without a handle being created are
628 disposed in 2.0. Fixes failing FormTest.FormClose and
629 FormTest.FormClose2 on windows.
631 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
633 * ListView.cs: If both scrollbars are visible, the vertical one
634 shouldn't extend too far down.
637 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
639 * DataGridView.cs: Add the ability to resize columns and rows with
640 the mouse. Also support double-clicking to autoresize.
641 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
642 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
643 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
644 isn't shown on autoresize.
647 2008-10-17 Mario Carrion <mcarrion@novell.com>
649 * ComboBox.cs: Remove UIAListbox.
651 2008-10-17 Mario Carrion <mcarrion@novell.com>
653 * ComboBox.cs, ListBox.cs: Using added/removed item in
654 OnUIACollectionChangedEvent instead of index.
656 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
658 * ComboBox.cs: When we are sorting the items, if the item's type
659 doesn't support IComparer, use a default one that compares based
660 off the item's visible text.
663 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
665 * ColumnHeader.cs: Invalidate ListView.header_control when setting
667 * ThemeWin32Classic.cs: When drawing the column header, draw a image
668 for the column if available, and make the required adjustments to the
672 2008-10-17 Neville Gao <nevillegao@gmail.com>
674 * StatusBarPanel.cs: Control enabled to support accessibility.
677 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
679 * DataGridView.cs: When a user begins an edit in the 'new row',
680 make that a real row, and add a new 'new row'. If the user
681 cancels the edit, remove the new 'new row' and reset everything.
682 Also, ensure UserAddedRow and UserRemovedRow events are raised.
685 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
687 * TableLayoutSettings.cs: Fix NREs when deserializing and
688 panel is not yet set.
691 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
693 * DataGridView.cs: Invalidate after deleting a row.
695 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
697 * DataGridView.cs: Handle Enter and Escape keys.
698 - Move call to EndEdit to MoveCurrentCell.
699 - Remove call to EndEdit from navigation key routines.
700 - Fire CellLeave and CellEnter.
702 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
704 * DataGridViewCell.cs: Some fixes to the new cell border
707 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
709 * ThemeEngine.cs: Enable visualstyles rendering by default
710 (on platforms that support it).
712 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
714 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
715 MainForm.OnLoad has completed unless DoEvents is forced.
718 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
720 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
722 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
724 * Control.cs: Make our implementation of DrawToBitmap better
725 match WmPaint. [Fixes bug #435579]
727 2008-10-14 Andreia Gaita <avidigal@novell.com>
729 * WebBrowser.cs: Use DocumentElement as the document's root for the
730 whole content. Should fix DocumentText and DocumentStream problems.
732 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
734 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
735 these will get called in DGV.OnCollectionChanged. Make sure
736 OnCollectionChanged always gets called.
737 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
738 from every row. Call this in OnCollectionChanged.
741 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
743 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
744 textbox if auto complete is used, since we need to navigate over it.
745 And in this case don't pass this messages to the base impl. Also hide
746 the auto complete list box when displaying the drop down listbox.
747 * TextBox.cs: new internal members to expose some of the auto complete
748 functionality to combobox.
750 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
752 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
753 MainForm.OnLoad has completed.
756 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
758 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
759 Append support to this controls. We need it to apply new patches.
761 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
763 * Control.cs: When updating z order in child controls, send to back
764 the implicit controls. Also, do it explicitly, instead of making
765 GetAllControls return the implicit controls in a specific order, and
766 thus avoid depending on that, which could change in the future.
769 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
771 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
772 call to StartDrag, since we must fire DragDrop/DragLeave *before*
773 that, as .net does - instead of firing DragDrop/DragLeave *after* the
774 call to Control.DoDragDrop has completed. This is needed since at the
775 point of returning, we have sent related dnd ClientMessages, but we
776 need to wait for them to fire the wmf respective ones.
779 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
781 * LinkLabel.cs: Recreate link pieces when change Padding.
783 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
785 * LinkLabel.cs: Take Padding into account when recreate link pieces.
788 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
790 * Control.cs: Implement internal property PaddingClientRectangle, it will be
791 useful for drawing controls that must take care about Padding property.
793 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
795 * BindingSource.cs: Make item_type internal so we can access it in DGV.
796 * DataGridView.cs: Add support for autogenerating columns from a
799 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
801 * DataGridView.cs: Comment out an exception that is getting thrown
804 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
806 * DataGridView.cs: Always rebind to the datasource, as things may
807 have changed in it that we aren't capturing yet.
809 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
811 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
812 drawing mode. If we are top aligned, give ourselves some top padding.
814 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
816 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
817 events on the control under the mouse pointer, instead of firing them
818 on the window generating the dnd operation. To achieve this re-use the
819 code used to get the window under the pointer when getting MouseMove
823 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
825 * X11Dnd.cs: Don't check that that the window sending the dnd events
826 is the owner of the selection. Although Gtk+ sets it that way, it's
827 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
828 So, just as Gtk+ does, we set our window sending the dnd events as the
829 owner of the selection, but don't check it when receiving them. This
830 should fix interoperability with Qt/Kde.
833 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
835 * DataGridView.cs: Make sure we take the vertical scrollbar into
836 account when autosizing columns.
838 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
840 * DataGridView.cs: Handle sorting datetimes.
842 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
844 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
845 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
846 compilation warnings.
848 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
850 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
851 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
852 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
853 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
854 compilation warnings.
856 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
858 * DataGridView.cs, DataGridViewCell.cs,
859 DataGridViewCellValidatingEventArgs.cs,
860 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
861 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
862 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
864 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
866 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
867 Cleanup compilation warnings.
869 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
871 * XplatUIWin32.cs: Cleanup compilation warnings.
873 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
875 * PropertyGrid.cs: Cleanup compilation warnings.
877 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
879 * DataGridViewRow.cs: Only clear the row background if we
880 are going to paint a new background.
882 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
884 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
885 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
886 use PaintBorder instead.
888 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
890 * DataGridView.cs: When CellBorderStyle is set, update the
891 AdvancedCellBorderStyle to match.
893 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
895 * DataGridViewCell.cs: Add helper methods to convert Alignment
896 to TextFormatFlags and align rectangles.
897 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
898 * DataGridViewImageCell.cs: Use Alignment when painting the image.
900 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
902 * ToolTip.cs: Display tooltips only for controls on the active form.
905 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
907 * DataGridView.cs: Make OnCellValueNeeded internal.
908 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
909 user can supply their own value if they choose.
911 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
913 * DataGridViewColumnHeaderCell.cs: Create a new style object
914 so the DefaultCellStyle doesn't get changed.
916 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
918 * ToolStripItem.cs: Check to make sure the owner is actually
919 changing in InternalOwner before doing any work. Fixes some
922 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
924 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
925 * DataGridView.cs: Use a column header's inherited style instead
926 of just using the default.
928 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
930 * SplitContainer.cs: Raise SplitterMoved when the splitter is
933 2008-10-01 Mario Carrion <mcarrion@novell.com>
935 * ScrollBar.cs: Internal property added: UIAThumbPosition.
937 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
939 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
941 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
943 * ToolStripItem.cs: When the user sets Owner, we need to remove
944 it from its previous owner and then add it to the new owner's
945 item collection. Also, create InternalOwner, so we can set the owner
946 that doesn't do this new stuff.
947 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
949 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
951 * ToolStripItem.cs: When our parent changes, recalculate our text
952 size, since we may be getting our Font from our parent. When our
953 owner's Font changes, recalculate ourselves as we may be using
956 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
958 * MenuAPI.cs: Select the first option of a popup when opening the popup via
959 return key. [Fixes bug #413792].
961 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
963 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
964 ambient properties. (Get their value from their parents if
965 values haven't been set.)
967 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
969 * ToolStripSystemRenderer.cs: Call overridden methods' bases
970 after our logic, so users can do painting by handling the events.
971 Currently, we draw over any user painting.
973 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
975 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
976 after our logic, so users can do painting by handling the events.
977 Currently, we draw over any user painting.
979 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
981 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
983 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
985 * TreeNode.cs, TreeView.cs: Move logic that determines the node
986 image to draw to TreeNode. Give Index/Keys put on the node
987 precedence over the global one for the TreeView.
989 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
991 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
993 2008-09-29 Mario Carrion <mcarrion@novell.com>
995 * ListBox.cs: Index fixed.
997 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
999 * TabControl.cs: When expanding the tab -because it's selected now-,
1000 using Right alignment, instead of adding some selected delta value to
1001 the X origin, substract it, so it gets a location adjacent to the panel,
1002 instead of be more separated.
1005 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
1007 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1010 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1012 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1013 as well as the other static fields, to avoid using their previous
1014 values my mistake when handling the dnd events. This should avoid
1015 handling any status event after the drop has been finalized/cancelled.
1017 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1019 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1020 operation, instead of waiting until we get any movement - this will
1021 help us to have the data available in case no movement was detected
1022 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1023 Finally add a windows.forms-only fallback to fire the mentioned events
1024 if no movement at all was detected, just like .net does.
1027 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
1029 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1030 return early if the text is empty because the icon doesn't get
1031 drawn then. [Fixes bug #428113]
1033 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1035 * FileDialog.cs: Implement basic support for sorting by columns in
1036 Details view. Patch by Eric Petit.
1039 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1041 * ThemeWin32Classis.cs: When drawing gridlines take into account the
1042 case where ListView.ItemSize hasn't been computed, and provide a
1043 fallback as well. This prevents a division by 0.
1045 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1047 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1048 correctly draw tooltip backgrounds.
1050 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1052 * ImageList.cs: Change CopyTo implementation to ensure clones are
1053 created of our images.
1056 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1058 * Control.cs: When setting fonts, we need to ensure we change our
1059 reference to the new font object, even if it represents the same
1060 font as before. If we don't, the original font can get disposed
1061 and we will still try to use it.
1064 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1066 * FileDialog.cs: Take into account Tile view when selecting the view
1069 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1071 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1072 the item bounds, since we can't iterate over them in virtual mode.
1073 Also fix wrong calculation of the gridlines when using scrolling.
1076 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1078 * XplatUIX11.cs: When handling EnterNotify events, take into account
1079 both the public and implicit controls when trying to detect the
1080 grab/ungrab process. This should fix ListView selection in Details
1083 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1085 * TreeView.cs: Redraw the whole node area when the selected node changes.
1086 Things like state images were not getting redrawn because the invalid
1087 rectangle was too small.
1090 2008-09-23 Mario Carrion <mcarrion@novell.com>
1092 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1095 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1097 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1100 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1102 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1105 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1107 * StatusBar.cs: Add tooltip support.
1110 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1112 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1113 alignments of sub items in Details view. Patch by John Mortlock (johnm at
1114 hlaustralia.com.au).
1117 2008-09-23 Neville Gao <nevillegao@gmail.com>
1119 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1122 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
1124 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1127 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1129 * ListView.cs: Don't do anything when EnsureVisible is called inside a
1130 BeginUpdate/EndUpdate block.
1133 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1135 * ListViewItem.cs: The semantics for the public .ctor of
1136 ListViewSubItemCollection need us to already have a Text value for the
1137 item, which in our implementation have as available *after* adding the
1138 first sub item. So create an internal .ctor that satisfies our needs
1139 and let the public .ctor have the same semantics as .net.
1142 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1144 * ListControl.cs: Changes in Formatting related values should call
1145 RefreshItems, as .net does.
1147 * ListBox.cs: In the respective overrides of RefreshItems calculate
1148 layout as well as refreshing - again, this is what .net does.
1151 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1153 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1154 since we are already doing that when we change the value of the
1155 scrollbar or force the call to ScrollWindow in the same method. This
1156 way we don't cause a Invalidate call for all the listbox bounds for
1157 methods calling UpdateTopItem with an already updated top item. This
1158 was happening specially calling EnsureVisible with already visible
1161 2008-09-18 Mike Gorse <mgorse@novell.com>
1163 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1164 XplatUIStructs.cs: Added KeyFilter
1167 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1169 * RelatedPropertyManager.cs: The properties returned by
1170 GetItemProperties should be that ones of the *actual* object returned
1171 by the property, not the property type - this is very special when the
1172 property exposes a type, but the returned object actually is a child
1173 class and implements more functionality and properties.
1175 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1177 * Binding.cs: Don't look for the property in the data source if the
1178 passed string is empty.
1180 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1182 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
1183 fix unused variable warnings.
1185 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1187 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1190 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1193 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
1194 leads to the window manager overriding our border style and zorder.
1195 - Allow the activation of non-modal forms, which are children of a
1199 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1201 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
1202 ask the window manager to do the work instead of changing the property
1206 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1208 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1209 AddNew to fix some navigation for empty datasets. [Fixes #323053]
1211 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1213 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
1214 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1215 border and fixes some drawing issues when resize form.
1217 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1219 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1221 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1224 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1226 * TextBoxBase.cs: For standard textbox the scrollbars are always
1227 visible if Multiline is true.
1230 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1232 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1235 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1237 [Fixes most od DBNull and HeadersVisible problems]
1240 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1241 returns the value that we need.
1242 - Fixed FromPixelToColumn method that return zero for first column and for
1243 row header cell, now it returns -1 for row header cell.
1244 - Fixed HitTest to check row header cell in column header area, it now
1245 returns HitTestType.None. [Fixes #322864]
1246 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1247 checks for RowHeadersVisible and other things.
1248 - If an exception occurs when setting CurrentCell and user type 'yes' in
1249 message dialog, invalidade current and new cell and set setting_current_cell
1250 to false to prevent future errors. [Partially fixes #323050]
1252 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1253 value (SetColumnValueAtRow), it must be done by grid to properly show
1254 messages. [Fixes #323050]
1256 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1257 better draw column and row header. Also dont draw anything when column
1258 headers is not visible.
1260 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1262 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1265 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1267 * TreeView.cs: Don't start editing a node on right click, only
1270 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1272 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1273 disabled over a year ago.
1274 * Form.cs: Wrap calling Load in a try/catch because it can happen
1275 before the catch-all one in NativeWindow.
1278 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1280 * ToolStripDropDownMenu.cs: Calculate the connected area better
1281 to take into account when the drop down is not directly under the
1283 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1285 2008-09-16 Mario Carrion <mcarrion@novell.com>
1287 * ScrollBar.cs: New event added: UIAValueChanged, generated when
1288 LargeChange, SmallChange, Maximum or Minimum values are changed.
1291 2008-09-16 Mario Carrion <mcarrion@novell.com>
1293 * ErrorProvider.cs: Component enabled to support accessibility.
1294 * Application.cs: Updated to Initialize UIA in ErrorProvider.
1297 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1299 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1300 so we don't highlight on first focus.
1303 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1305 * TextControl.cs: Correctly calculate the height of the area we
1306 need to invalidate when we have started scrolling and viewport_y
1307 is used. [Fixes bug #387608]
1309 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1311 * TextControl.cs: When getting the SelectedText, don't add in
1312 NewLine characters, as they are already contained in the lines.
1315 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1317 * TextBoxBase.cs: Replace the buggy Lines setter with one that
1318 simply concats the lines and send it to the Text setter.
1319 [Fixes issue #2 and #3 of 388115]
1321 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1323 * Binding.cs: The default value of DataSourceNullValue should be
1324 Convert.DBNull actually. Also, the NullValue should only be used *if*
1325 itself is not null, and use the null/Convert.DBNull value instead.
1327 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1329 * TextControl.cs: Add a method to convert a string newline to the
1331 * TextBoxBase.cs: When the user hits enter, insert a native newline.
1332 [Fixes part 1 of bug #388115]
1334 2008-09-15 Mario Carrion <mcarrion@novell.com>
1336 * ToolTip.cs: UnPopup event set to internal to match public API.
1338 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1340 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1341 have to remove the Ctrl in order for the focus moving code to kick in.
1344 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1346 * CheckedListBox.cs: Return the real item index from Add. It may not be
1347 the last item if the list is sorted. The user can change the NewValue in
1348 the ItemCheck event, we need to use that value if so.
1349 * ListBox.cs: Return the real item index from a sorted Add.
1352 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
1354 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
1355 happen that the icons from the theme is missing or the particular size
1359 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1361 * Binding.cs: When assigning null or DBNull depending on value/ref type,
1362 use IsValueType instead to get the precise desired value.
1365 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1367 * TreeNodeCollection.cs: When adding a new node to an opened node,
1368 we have to invalidate everything below the parent node because
1369 every node scoots down and we have to repaint them.
1372 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1374 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1375 property into account when drawing.
1378 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1380 * ListBox.cs: When calling Items.Clear(), call
1381 SelectedIndexCollection.ClearCore instead of normal Clear method, to
1382 not fire any Selected*Changed event - this is done to match .net and
1383 don't have invalid values when changing the DataSourceProperty.
1386 2008-09-12 Mario Carrion <mcarrion@novell.com>
1388 * HelpProvider.cs: Control enabled to support accessibility.
1389 * Application.cs: Updated to Initialize UIA in HelpProvider.
1392 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1394 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1395 make the dialog TopMost as well.
1398 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1400 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1401 clipboard data better.
1404 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1406 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1407 TextChanged and SelectionChanged events fire in the same order as .Net.
1410 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1412 * DataGridView.cs: When sorting a column, if it only contains numbers,
1413 do a numeric sort instead of a string sort.
1416 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1418 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1419 against NRE's when the settings have a null panel.
1420 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1424 2008-09-11 Mario Carrion <mcarrion@novell.com>
1426 * ToolTip.cs: Control enabled to support accessibility.
1427 * Application.cs: Updated to Initialize UIA in ToolTip.
1430 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1432 * Control.cs: Make the custom Enumerator internal to fix build.
1434 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1436 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1437 already in edit mode, begin edit mode. Generally edit mode isn't
1438 started until the second click, but CheckBoxes are special.
1440 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1442 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1443 since that can be set to anything. Always add them to the Control's
1444 parent. [Fixes bug #416058]
1446 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1448 * ListView.cs: Use a custom enumerator for ListViewItemCollection
1449 so items can be deleted in a foreach.
1452 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1454 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1455 Store the user set explicit height so that the row can be AutoSized
1456 and then when AutoSize is turned off, it can get its original size back.
1457 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
1458 duplicating the logic. When setting AutoSizeRowsMode to None, reset
1459 rows' heights back to their explicit values.
1462 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1464 * DateTimePicker.cs: When getting focus, select the checkbox if we are
1465 already showing it. Also, don't change its value when pressing space
1466 if the checkbox is not visible (ShowCheckBox as false). Finally, the
1467 checkbox should remain selected as long as Checked is false, and the
1468 other parts are disabled.
1471 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1473 * MessageBox.cs: Handle shortcut keys to dialog buttons.
1476 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1478 * Binding.cs: When the value retrieved from the control property is
1479 null, don't return Convert.DBNull for Nullable instances, since they
1480 can *actually* get a null value.
1483 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1485 * Control.cs: Add an internal field to force doublebuffering regardless
1486 of what the public mechanisms are set to. This is because MS's native
1487 controls are doublebuffered even though their .Net bits are set to false.
1488 * ProgressBar.cs: Set force_double_buffer to true.
1491 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1493 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1495 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1496 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1497 without EditingControls, paint background selection for types without
1498 EditingControls, reset the EditingCellValueChanged flag when the
1499 cell's value is committed.
1500 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1501 have EditingControls, remove a double call to a cell's OnContentClickInternal,
1502 don't do cell changing logic in OnMouseDown if the cell didn't change.
1505 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1507 * DateTimePicker.cs: Fix the edition of am/pm specifier.
1509 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
1511 * TextControl.cs: Add "&" to the list of valid characters in a URL.
1513 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1515 * DateTimePicker.cs: Before incrementing or decrementing any part in
1516 the textbox, end any current edit. Also when ending the current edit
1517 use the editing_part_index field instead of the current selected
1518 value, since they can be out of synch, and we really need to work on
1519 the *real* current edit part. Finally when PartData.Selected changes,
1520 always try to end any ongoing edit.
1521 This should fix some small errors handling mouse navigation and
1522 increase/decrease operations.
1524 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1526 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1527 respectively) should handled different, since the 12 hours format
1528 needs the value typed by the user to be adjusted depending on the
1529 a.m/p.m value, so it is preserved, and only changed when the value
1530 reaches the 12 value (when it changes from a.m to p.m).
1531 Fixes part of #416555.
1533 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1535 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1536 * ToolStripDropDownItem.cs: Don't fire events and such again if
1537 ShowDropDown is called on an already dropped down item.
1538 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1539 subitems, the user may add some in the DropDownOpening event.
1542 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1544 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1547 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1549 * MdiClient.cs: When looking for menustrips on a child form to merge,
1550 look inside ToolStripContainers.
1553 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1555 * ErrorProvider.cs: Unbreak my previous commit.
1557 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1559 * ErrorProvider.cs: Icon should always be 16x16.
1562 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1564 * GridEntry.cs: Invalidate the child items cache when the property
1567 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1569 * GridEntry.cs, PropertyGridView.cs:
1570 - Update the ReadOnly detection and rendering to finally hopefully
1571 match the one of MSFT.
1572 - Niceify and move the debug CWLS.
1575 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1577 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1578 since we are already calling Invalidate for the entire control when
1579 needed - and call Redraw() when size changes, since we need to paint
1580 there by ourselved and not anymore from the mentioned method.
1581 This should improve the layout process. Also clean some not needed calls
1584 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1586 * MenuAPI.cs: Add a null check to the Alt-F4 code.
1589 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1591 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1594 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
1596 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
1597 PropertyGridView.sc: Implement lazy/delayed propertygrid population
1598 on item expansion. Improves performance and fixes bug #417955.
1601 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
1603 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1606 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1608 * TextControl.cs: Add "_" to the list of valid characters in a URL.
1611 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1613 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
1617 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1619 * FontDialog.cs: When storing our font size from the starting font,
1620 use SizeInPoints instead of Size in case Size is a different unit
1624 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1626 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1627 don't use it for anything else, check if a directory is highlighted.
1628 If it is, navigate into it.
1631 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1633 * Binding.cs: When acquiring a BindingManagerBase for the first time,
1634 check that the specified property actually exists in the data source,
1635 and throw an ArgumentException if that's not the case - this is only
1636 done for this scenario, since for later cases (such Position changes)
1637 we throw different exceptions (match .Net).
1639 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
1641 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
1642 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
1643 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
1644 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
1645 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
1646 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
1650 2008-09-03 Neville Gao <nevillegao@gmail.com>
1652 * StatusBar.cs: Control enabled to support accessibility.
1655 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1657 * Binding.cs: When connecting the event handler for the "Changed"
1658 event for the property, only do it for PropertyManager, and not for
1659 CurrencyManager - this is exactly what does .Net, totally ignoring any
1660 change in the property of the elements of a list.
1663 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
1665 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1666 to Windows when creating a window, as we fake MDI stuffs.
1669 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
1671 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
1672 change takes effect.
1674 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
1676 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
1679 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1681 * DataGridView.cs: Raise CellContentClick event.
1682 [Fixes part of bug #420351]
1684 2008-08-27 Mario Carrion <mcarrion@novell.com>
1686 * ScrollBar.cs: Control enabled to support accessibility.
1689 2008-08-27 Mario Carrion <mcarrion@novell.com>
1691 * ComboBox.cs: Control enabled to support accessibility.
1694 2008-08-27 Mario Carrion <mcarrion@novell.com>
1696 * ListBox.cs: Control enabled to support accessibility.
1699 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1701 * ComboBox.cs: Don't suppress the TextChanged event when changing
1703 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
1707 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
1709 * ErrorProvider.cs: Fix a regression NRE when setting properties
1710 for a control before it has a parent.
1713 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1715 * Binding.cs: Use the BindingManagerBase.Current value to obtain
1716 connect the property "Changed" event, instead of using the data
1717 sources - this is useful when the property specifies actually a
1718 multiple objects path.
1719 Fixes part of #417973.
1721 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1723 * RelatedPropertyManager.cs: PropertyManager instances associated to a
1724 nested properties should return not the properties of the data source
1725 itself, but the properties of the type of a specific property in the
1726 data source - match .net.
1728 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
1730 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
1731 AddRange overloads into AddItems method, and added missing NULL check.
1732 Added extra argument check to RemoveAt for compatibility with MS.
1733 Modified IList implementation of Add, Contains, IndexOf and Remove to
1734 throw an ArgumentException if item is not an int. Modified IList.Insert
1735 to throw a NotSupportException instead of an Exception. Implemented
1737 (ObjectCollection): To avoid duplication, use AddItems method from
1738 AddRange overloads. On 1.0 profile, first perform NULL check on items
1741 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
1743 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
1746 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1748 * X11Keyboard.cs : comment out some Console.WriteLine().
1750 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1752 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
1753 even if premises are not filled. Also XLookupString() was not
1754 receiving correct input, which blocked precise input handling
1757 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1759 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
1760 type of delegate, instead of EventHandler - this was causing a type
1761 cast exception in all apps handling this event.
1764 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
1766 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
1767 ShowDropDown to give the user a chance to dynamically add
1768 drop down items. [Step 1 of fixing bug #417877]
1770 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1772 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
1773 had any mouse motion since the call to StartDrag, to match the dnd
1775 Fixes part of #381876.
1777 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1779 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
1780 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
1781 Also, if we are actually moving into a different window after
1782 grabbing, generate a LeaveNotify event for the previous window, since
1783 we need to fire the leave events until the grab ends, not when
1784 actually moving outside of the control.
1786 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1788 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
1789 events only for client windows was wrong - we need to compare the
1790 client window against the window receiving the EnterNotify event, not
1791 against zero (since client window is never Zero, btw).
1792 This prevents having unnecessary handling of EnterNotify events for
1793 non-client windows when a gran begins.
1795 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1797 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
1798 MouseMove/MotionNotify events at all (which should only happen after
1799 MouseUp/ButtonRelease, as .Net does).
1800 This avoids firing an extra and unnecessary MouseMove event just after
1801 every MouseDown event.
1803 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1805 * LinkLabel.cs: Always clear any previous links when LinkArea
1806 is set. [Fixes bug #410709]
1808 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1810 * ToolStripProfessionalRenderer.cs: Revert last change.
1811 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
1812 for ToolStripDropDownBackground.
1814 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1816 * ToolStripProfessionalRenderer.cs: Use Window color for the
1817 background of dropdowns to match .Net when the user is not
1818 using the default white. [Fixes bug #418108]
1820 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
1822 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
1823 it caused timer registration twice. Fixed bug #418107.
1825 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1827 [Correction: This is the actual change to X11Dnd issue, not the
1828 previous one, which was actually a different issue.]
1830 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
1831 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1832 when the pointer is actually in motion, but only when the pointer
1833 seems to stop (as .net does).
1834 Fixes part of #381876.
1837 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
1839 * ListBox.cs: Fix CopyTo implementation.
1842 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
1844 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
1845 drawing a ComboBox's background. Fixes bad disabled rendering when
1846 the control is not at 0,0.
1849 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
1851 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
1852 ComponentModel layer, which will properly prioritize the attributes.
1853 Avoids wrong prioritization of duplicate attributes when retrieving
1854 the converter and editor.
1857 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1859 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
1860 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1861 when the pointer is actually in motion, but only when the pointer
1862 seems to stop (as .net does).
1863 Fixes part of #381876.
1865 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
1867 * GridEntry.cs: Perform stricter check for the ParentEntry's
1868 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
1872 2008-08-14 Geoff Norton <gnorton@novell.com>
1874 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
1875 Fixes #396983. Properly fix ActiveWindow trackin and do not
1876 prematurely show POPUP windows.
1878 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1880 * XplatUIX11.cs: Handle the obscured regions while scrolling using
1881 GraphicsExpose event, processing it just after we copy the scrolled
1882 area. This ensures that the next calls to ScrollWindow will copy
1883 regions already updated, and the scrolling will be smooth. Also remove
1884 the code that was trying to detect the obscured regions, since we are
1885 not using it anymore (too slow).
1887 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1889 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
1890 MultiExtended mode, by separating some logic between the ctrl/shift
1891 handling. Also ignore any MouseMove events generated together with
1892 MouseDown events - we are only interested in the real motion event.
1893 Fixes part of #414963.
1895 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
1897 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
1898 is selected. [Fixes bug #414143]
1900 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
1902 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
1903 and not the parent one (the propertyowner). Fixes the behavior of
1904 GetConverter/GetEditor.
1907 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
1909 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
1910 [Fixes part of bug #415452]
1912 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
1914 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
1915 GridEntry, not the current.
1918 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
1920 * TextBoxBase.cs: De-internalize max_length field.
1921 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
1922 share the same logic.
1925 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1927 * ListBox.cs: Selection changes made in the MouseDown handler should
1928 use the *Core versions of selection in SelectedIndices collection,
1929 since the SelectedIndexChanged/SelectedValueChanged events are fired
1930 until we get a MouseUp event, and thus we need to separate the logic
1931 from the events, as done in the keyboard navigation. Also, fire those
1932 selection events from keyboard navigation in SelectionMode.None, even
1933 if we don't have a selection, as .Net does.
1935 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
1937 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
1938 last change introduced when an item is clicked but isn't on a toolstrip.
1940 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1942 * ListBindingHelper.cs: When looking for an object's properties, check
1943 if it implements ICustomTypeDescriptor, in which case we should
1944 resolve the propertu based on its GetProperties method, not in its
1945 actual properties. This is what .Net seems to do.
1946 Fixes a UsingWebBrowser problem during initialization.
1948 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1950 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
1951 sitting on a MenuStrip.
1953 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1955 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
1956 no children with the keyboard, we need to release the keyboard capture.
1959 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1961 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
1962 no children with the keyboard, we need to release the keyboard capture.
1965 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
1967 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
1968 the GTK+-based implementation of VisualStyles.
1969 * ThemeWin32Classic.cs: Exposed various layout values for use in the
1970 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
1971 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
1972 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
1973 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
1974 TrackBarHorizontalTrackHeight.
1976 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
1978 * TabControl.cs: Added hot style handling for the scroll buttons.
1979 right_slider_state, left_slider_state are now of type PushButtonState to
1980 allow for a hot state. Added tracking of the mouse button being held down
1981 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
1982 LeftScrollButtonArea.
1983 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
1984 TabControlGetRightScrollRect.
1986 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1988 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
1991 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
1993 * Form.cs: Ensure that we reset the shown_raised flag after
1994 the form is closed, so that we raise the show events the next
1995 time the form is shown.
1998 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2000 * Form.cs: Ensure closing events are raised only once.
2003 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2005 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
2006 so that we can successfully generate the LParam in-place instead of
2007 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
2008 navigation for menus.
2010 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2012 * MenuAPI.cs: When montion don't set the keyboard navigation state to
2013 'navigating'. Fixes bug #411356.
2015 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2017 [Fixed remaining issues of #406773 (#1)]
2018 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2020 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2021 MainMenu (already done) and ContextMenu creation.
2023 * ContextMenu.cs: Create tracker on construction.
2025 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2027 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2028 possible to instantiate MenuTracker without GrabControl.
2030 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2032 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2034 * MainMenu.cs: Set GrabControl on SetForm using current form.
2036 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2038 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2040 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2042 * MenuAPI.cs: Check if menu is activated before deactivate it in
2045 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2047 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
2049 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2050 - One style instance can only participate in a single style collection.
2051 - Styles can request their owner to layout whenever their properties
2053 [Fixes bugs #412583 and #412582]
2055 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
2057 * X11Keyboard.cs: Implement the generation of the LParam for
2058 all keyboard messages.
2061 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
2063 * ListBox.cs: Don't let the user set TopIndex so high that it
2064 scrolls up far enough to show empty items.
2067 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2069 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2070 (I'm an idiot and forgot to commit the actual changes, as well as
2071 specify the right file, which is this one, not ListView.cs).
2073 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2075 * ListView.cs: Don't draw ListViewSubItem instances from
2076 DrawListViewItem - we need to reuse the main item's drawing for the
2077 first sub item in case owner draw is true, but wants the system to
2078 do the default draw for the first sub item, without incurring in a
2082 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
2084 * ToolStripButton.cs: Update Checked for CheckOnClick before
2085 raising the Click event. [Fixes bug #412505]
2087 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
2089 * Form.cs: Remove some seems leftover code for non-TopLevel's
2090 CreateParams, which is breaking ClientSize sizing, because it
2091 removes the border window styles.
2093 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
2095 * PropertyGrid.cs: Invalidate the View when the PropertyTab
2098 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
2100 * WebBrowser.cs: Removed debug output.
2102 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
2104 * FileDialog.cs: Apply patch from Ernesto to clean up some
2107 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2109 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
2110 that the change has an immediate effect.
2112 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2114 * ScrollableControl.cs: Update PerformLayout calls to include
2115 provide the name of the property that changed.
2117 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2119 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
2120 location. Fixes drawing of border and cell borders if scrollable.
2122 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2124 * ScrollableControl.cs: Perform layouting after the AutoScroll
2125 properties have changed, so that the changes have immediate
2129 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2131 * XplatUIX11.cs: Non Client area is actually Client such in the
2132 case of NotifyIcon, so double check WholeWindow == ClientWindow
2133 when adding an expose.
2134 [Fixes bugs #324237 and #357022]
2136 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2138 * TableLayoutPanel.cs: Invalidate after layouting, so that we
2139 repaint the cell borders.
2141 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2143 * PropertyGridTextBox.cs: Stop filtering messages prior to our
2144 disposal to avoid unexpected ObjectDisposedExceptions.
2146 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
2148 * TableLayoutPanel.cs: Layout on Row/Column count change.
2150 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
2152 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2154 * PictureBox.cs: When ImageLocation is set to null or an empty string,
2155 only set image to null if it was previously initialized from an url
2156 (or using ImageLocation). In ImageLocation, load specified image
2157 asynchronously if WaitOnLoad is false. Added support for local file
2158 paths to LoadAsync, and added missing argument check.
2160 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2162 * DateTimePicker.cs:
2163 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2164 order to set the value as required (which means: when selection
2165 changes for a part being edited, and not before that if not needed).
2166 Also use an enum to describe which part are we using, and use the
2167 selection as a property in PartData, in order to notify the
2168 DateTimePicker owner that we need to end the current edit.
2171 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
2173 * PropertyGridTextBox.cs: Validation should be performed only if we
2174 are focused. We can lose focus for example if the Return key is used
2175 to set the entry and there is an error. When the message box is
2176 displayed we would have validate on click in the message box.
2178 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
2180 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
2181 in order to determine that we are expandable is wrong. There was a bug,
2182 now fixed, in TypeDescriptor that was causing the wrong converter to be
2183 returned which caused GetPropertiesSupported == false in most cases.
2186 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
2188 * ImageList.cs: Fix ICollection.CopyTo implementation for
2189 ImageListCollection. [Fixes bug #409169]
2191 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2193 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2194 WorkingArea so that menus can appear on the second monitor
2195 when one has dual monitors.
2197 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2199 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2202 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2204 * TextBox.cs: Implement navigation support for auto complete in
2205 TextBox, as well as refactor the code to show the auto complete window
2206 when receiving a WM_CHAR message, instead of TextChanged, since
2207 autocomplete itself should be able to set the Text a lot of times and
2208 finally only typing should show it, not changes from code.
2210 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2212 * TabControl.cs: When expanding the selected tab, don't adjust the
2213 width if alignment is Right, since it has a different offset than 0,
2214 as opposed to the other alignments.
2215 Fixes the selected tab not being painted at all with alignment = Right
2216 and using FillToRight size mode.
2218 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2220 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
2222 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2224 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2225 values from the textbox to the boundary values. [Fixes bug #409026]
2227 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2229 * TreeNodeCollection.cs: We were copying one too many elements when
2230 doing our array copy. Fixes a crash when RemoveAt is called.
2233 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2235 * TabControl.cs: When doing the layout and need to call FillRow -using
2236 FillToRight size mode-, use the overload receiving a bool param
2237 indicating whether we need to do a vertical or horizontal calculation.
2238 Fixes part of #399583.
2240 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2242 * TextBox.cs: When painting, use the value returned by
2243 GetLastVisibleItem instead of using the cached last_item field, since
2244 there could be a desynchronization between the layout and the
2245 painting. Fixes a AOOR exception in auto complete mode.
2247 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
2249 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2250 NonClientAreaEnabled until our VisualStyles is modified to allow it.
2252 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
2254 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2256 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2258 * TextBox.cs: When focus is lost, if the auto complete listbox is
2261 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2263 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2264 tracking size for tool windows.
2265 * Theme.cs, ThemeWin32Classic.cs : Extracted
2266 ManagedWindowSpacingAfterLastTitleButton.
2268 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2270 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2271 They are bit-rotted and have always been listed as "unsupported".
2273 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2275 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2277 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2279 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2281 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2283 * ListBox.cs: Make sure last_item_visible gets reset before we try
2284 to do a layout due to scrollbars appearing or disappearing.
2287 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2289 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2290 for different window themes. [Fixes bug #339140]
2292 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2294 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2295 in ManagedWindowBorderWidth.
2297 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2299 * InternalWindowManager.cs: Change MouseMove to take a point, so
2300 we can use the same point later on.
2301 * MdiWindowManager.cs: Store point sent to MouseMove so we can
2302 later reset to it. On Windows, the Cursor.Position had already
2303 changed by the time we were resetting to it.
2306 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2308 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2310 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2314 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2316 * MdiWindowManager.cs: Double-clicking on the title bar should not
2317 maximize a MDI form if MaximizeBox = false.
2319 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2321 * ThemeVisualStyles.cs: Fixed a warning.
2323 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2325 * ThemeVisualStyles.cs: Fixed warnings and formatted.
2327 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2329 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2330 implementation produces a better result.
2332 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2334 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2337 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2339 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2340 cannot be used from the ThemeEngine constructor.
2341 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2342 Application.VisualStylesEnabled because it does not work on X11.
2344 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
2346 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2347 that we did not always check for, as well as fixes to the IList
2348 implementations. [Fixes bug #402703]
2350 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2352 * IDeviceContext.cs: Added Dispose.
2354 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2356 * Control.cs: Added OnSizeInitializedOrChanged.
2357 * Form.cs: OnLoadInternal: Added a call to
2358 Control.OnSizeInitializedOrChanged.
2359 * InternalWindowManager.cs:
2360 * HandleTitleBarMouseMove: No longer invalidates the parent window.
2361 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2362 * TitleButton: Added Entered.
2363 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2364 * MdiWindowManager.cs:
2365 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2366 move over the maximized title buttons causes a change.
2367 * IsActive: Can now be called before the window is added to a MDI parent.
2368 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2369 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2370 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2371 * ThemeWin32Classic.cs:
2372 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2373 * DrawTitleButton takes a new form parameter.
2374 * Added ManagedWindowTitleButtonHasHotElementStyle,
2375 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2377 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2379 * ThemeEngine.cs: ThemeVisualStyles is now selected if
2380 Application.EnableVisualStyles has been called, even if the current system
2381 configuration does not support rendering with Visual Styles.
2382 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2383 Styles should not be used.
2385 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
2387 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
2388 ComboBox in FormsTest.
2390 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
2392 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
2393 for fixed toolwindows.
2395 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
2397 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2399 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2401 * Control.cs: CreateControl just returns if the Control is diposed
2402 and doesn't throw ObjectDisposedException.
2405 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2407 * Control.cs: Do not create the control if the parent isn't created
2408 yet, e.g in the case of a parented form on which .Show is called.
2409 It will be created when the parent is made visible/created.
2412 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2414 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
2415 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2418 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2420 * Form.cs: When disposed set owner to null. Improves #402446.
2422 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2424 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
2425 use children's PreferredSize if in AutoSize mode and ExplicitBounds
2427 * Form.cs: Take the Padding into account for the PreferredSize.
2430 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2432 * TabControl.cs: Since we don't support more than one direction in
2433 TabControl rows alignment (this is, the row becomes the
2434 bottom row when selected), make Direction return always 1. This way
2435 the layout doesn't get confused about a bad calculation.
2438 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2440 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
2441 so that the wparam is properly set.
2442 Fixes form moving in the test case in bug 402446.
2444 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
2446 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2447 the full tree instead of nothing. [Improves bug #406584]
2449 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2451 * ThemeWin32Classic.cs: Adjusted minimized window painting.
2453 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2455 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2458 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
2460 * TreeView.cs: Add a null check when using CollapseAll on an
2461 empty tree. [Fixes bug #406449]
2463 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2465 * Form.cs: Make OnMenuComplete internal so we can call it.
2466 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2469 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2471 * TabControl.cs: Handle Up and Down keys when TabControl is in
2475 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2477 * TabControl.cs: Invalidate when we remove a tab. Guard against
2478 an AOORE when trying to remove a tabpage that is not owned by the
2482 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2484 * ScrollBar.cs: Change the LargeChange calculation to be correct.
2485 Ensure we are using LargeChange instead of large_change so we our
2486 calculations are correct.
2489 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2491 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2492 we need to ensure the ColumnCount/RowCount gets set.
2495 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2497 * ListBox.cs: When handling item navigation, if selection mode is
2498 None, call EnsureVisible, since scrolling is normally handled by
2499 selection, that we are not calling in this case.
2502 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2504 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2505 a null check to our focus walking code. [Fixes bug #394332]
2507 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
2509 * ComboBox.cs: Case missed in bug 379596 "Support item
2510 navigation by entering text": On _close_ drop-down select
2511 the first item matching the text in the textbox. [Fixes bug #397265]
2513 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2515 * DataGridView.cs: Fix a crash when sorting by column headers,
2516 mentioned in bug #404841. Remove some dead switch cases.
2518 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2521 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2522 uses the AutoComplete support in the internal TextBox. Also TextBox
2523 can store a reference to ComboBox, in case AutoCompleteSource is set
2524 to ListItems (this is, ComboBox's items, and we don't want to pass an
2525 additional collection).
2527 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2529 * ListViewItem.cs: Restore the initial value of bounds rect to
2530 Rectangle.Empty, and is this value for Layout detection in virtual
2531 mode. Fixes the tests.
2533 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
2535 * XPlatUI.cs: Remove references to "new" X11 backend.
2537 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2539 * Control.cs: Add an internal virtual OnDragDropEnd method
2540 to allow controls such as ListBox, which depend on a sequence
2541 of MouseDown+Move+End events, to handle the lack of a MouseUp
2542 when a DnD operation is started in MouseDown.
2543 * ListBox.cs: If a DnD operation is started in MouseDown we won't
2544 get a MouseUp, so reset our state whenever a DnD operation ends.
2546 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2548 * PropertyGrid.cs: Clear the root griditem first thing when
2549 new object/s is/are selected. Fixes some rare cases where
2550 the View will get a paint request and won't know that the
2551 grid is in the process of repopulating.
2553 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2555 * XplatUIX11.cs, InternalWindowManager.cs:
2556 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
2557 doesn't automagically update the FormBorderStyle, so we must
2558 double check the CreateParams explicitly to determine if the
2559 window is a toolwindow.
2560 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
2561 instead of doing custom checks.
2563 Fixes toolwindows for the test case in bug #402446
2565 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2567 * Control.cs: Visibility of the control should be false
2568 when the handle is destroyed in WmDestroy and not immediately
2569 in Dispose(). This is effectively where the disposing process
2570 ends even though the control is marked as Disposed immediately
2571 after calling Dispose().
2574 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2576 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
2577 when the textbox gets focus.
2580 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2582 * PropertyGridTextBox.cs, PropertyGridView.cs:
2583 - Alt + Down should show the drop down editor.
2584 - Focus the editor when showing it
2587 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
2589 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2590 that are not the first panel.
2591 * StatusBar.cs: Ensure that the X coordinate of panels is always
2592 stored. Fix IList implementation of StatusBarPanelCollection to
2593 call the regular methods.
2594 [Fixes bug #403599, #402165]
2596 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
2598 * ThemeWin32Classic.cs: Fix position calculation for centered
2599 text on status bar panels. [Fixes bug #402165]
2601 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2603 * Splitter.cs: Fix Splitter to:
2604 - Work for arbitrary splitter size
2605 - Handle MinSize and MinExtra properly
2606 - Get rid of absolute positioning during drag and use relative
2607 - Multiple other fixes
2610 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2612 * Cursor.cs: Show shouldn't hide the cursor.
2614 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2616 * ListViewItem.cs: When invalidating, add some extra space to bounds,
2617 since focus rectangle and selection can add some space and need to
2618 take into account those small offsets - specially in Details view.
2619 * ListView.cs: Instead of invalidate using item Bounds directly, call
2620 item.Invalidate, to have the code centralized.
2621 Fixes focused/selection garbage when selecting and deselecting items
2624 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2626 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2627 mode we can check whether we have to force a Layout or not, and can
2628 cache based on this, instead of avoiding caching all the the time. Do
2629 this check in GetBounds and TextBounds.
2630 Fixes selection in Details view.
2632 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2634 * ListView.cs: Make HeaderControl internal, thus the theme engine can
2635 get its *real* height instead of trying to infere it.
2636 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2637 get the position of them, since it's in general a bad idea in general,
2638 and because we can't do that in virtual mode. Instead get the first
2639 visible item as well as item height, and draw them.
2642 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
2644 * ToolStripSplitButton.cs: We can't add in extra width if
2645 the button is not AutoSize. [Fixes bug #401279]
2647 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
2649 * PaddingConverter.cs:
2650 - Implement conversion to InstanceDescriptor
2651 - Handle "All" in CreateInstance by using the supplied
2652 ITypeDescriptorContext.
2653 [Fixes bugs #396076 and #396078]
2655 Patch by Andy Hume <andyhume32@yahoo.co.uk>
2656 Code contributed under MIT/X11 license.
2658 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
2660 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
2662 Add Category attributes.
2663 Code is contributed under the MIT/X11 license.
2665 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
2668 - Fix a NRE when unparenting a form.
2669 - Do not recreate or destroy a parented form when
2672 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2674 * TextBox.cs: Implement basic support for AutComplete with custom
2677 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
2679 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
2680 DropDownButtonBounds should be from the origin of the button, not the
2681 ToolStrip. [Fixes bug #401279]
2683 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
2685 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
2686 running gtk_init_check. This prevents GAIL from loading
2687 unnecessarily, which was breaking UIA support. Initial fix for bug
2689 * Application.cs: Add UIA support to Winforms. New static constructor
2690 uses reflection to initialize UIAutomationWinforms assembly. Added
2691 PreRun event so UIA can initialize before the mainloop starts, and
2692 FormAdded event so UIA can provide a11y support for new Forms in an
2695 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
2697 * DataGridView.cs: When binding to a dataset, subscribe to table
2698 and column change events. Unsubscribe to these when we clear bindings.
2701 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
2703 [DataGrid drawing refactory]
2705 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
2707 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
2708 must be handle by Theme, now it call DataGridPaintColumnHeader.
2710 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
2711 test cases must be also fixed because it checks for wrong size.
2713 * ThemeWin32Classic.cs:
2714 - Draw the bottom line of grid caption.
2715 - Prevent to draw caption text when it is empty.
2716 - Use CPDrawBorder3D for 3D efects to simplify code.
2717 - Uses 3D (when not flat) to paint corner shared between row and column
2719 - Fix header drawing issues on win32, now borders are drawing.
2720 - Fix column header paint issues to mimic win32.
2721 - Adjust header drawing for last column, like first one it must be draw
2723 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
2725 - DataGridPaintColumnHeader created to draw column headers, it also
2726 paint stuff right on Win32.
2727 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
2731 - DataGridPaintRowHeaderStar method added.
2732 - DataGridPaintColumnHeader method added.
2734 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
2736 * Control.cs: Don't reset to Dock style layout if DockStyle is
2737 set to none. [Fixes bug #399316]
2739 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
2741 * Win32DnD.cs: Fix the check for control not equal null.
2742 Fixes bug #341420 and #381886.
2744 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2746 * DataGridViewRowCollection.cs: Update the indexes of rows after
2747 one has been removed.
2748 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
2749 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
2750 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
2751 rows for the Rows collection, or deleting rows from the bound DataSet.
2753 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2755 * DataGridView.cs: Listen to a DataSet's changed event even
2756 when autogeneratecolumns is false. Refactor the changed event's
2757 add row code to use the same as the existing add row code.
2760 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2762 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
2763 much any time the caret moves and there is text, not just when
2764 the selection changes as one would think.
2765 * RichTextBox.cs: Override RaiseSelectionChanged and fire
2769 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2771 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
2772 instead of trying to duplicate the code.
2773 * ListBox.cs: Make method internal so we can send keyboard events.
2776 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2778 * TextBoxBase.cs: When pasting and checking the max length,
2779 subtract the selected text length (the text we will be replacing) from
2780 the document length.
2781 * TextControl.cs: Ensure every character insertion is reflected in
2782 charcount, so max length will work properly.
2785 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2787 * ListBox.cs: Ensure scrollbars are updated when a single
2788 column listbox with an already set top-index is created.
2791 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2793 * FontDialog.cs: Typing in the font/style textboxes should search
2794 the list boxes case-insensitively. [Fixes bug #398343]
2796 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
2798 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
2799 widths of icon and buttons instead of hard coded values.
2801 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2803 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
2804 as well as generating a SelectedIndexChanged event, just like .Net does
2808 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2810 * ListBox.cs: When navigating items visually, use FocusedItem as the
2811 reference point instead of SelectedIndex, since even in
2812 SelectionMode.None we need to support navigation, and in that case we
2813 just can't use SelectedIndex.
2814 Fixes part of #398345.
2816 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
2818 * Control.cs: Make a SetBoundsInternal that avoids the new
2820 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
2821 SetBoundsInternal instead of SetBoundsCoreInternal.
2823 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
2825 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
2826 SetBounds for the scrollbars.
2828 2008-06-10 Andreia Gaita <avidigal@novell.com>
2830 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
2831 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
2832 OnMouseMove, OnMouseOver, OnMouseUp
2833 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
2834 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
2835 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
2836 to the WebControl object to pass to new collection objects
2837 * HtmlHistory.cs: Implement support for individual window histories.
2838 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
2839 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
2840 GotFocus, LostFocus, OnLoad, OnUnload
2841 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
2843 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
2844 security level changes and context menu event support.
2846 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2848 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
2849 as happens with Esc, patch my Andy Hume.
2852 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2854 * MdiWindowManager.cs: DrawMaximizedButtons now uses
2855 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
2856 * Theme.cs: Made MenuButtonSize platform dependent. Added
2857 ManagedWindowButtonSize.
2858 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
2859 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
2861 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2863 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
2864 Added support for rendering with VisualStyles.
2866 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2868 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2869 support for rendering the border with VisualStyles.
2871 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2873 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
2874 the icon is not shown.
2875 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
2878 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2880 * InternalWindowManager.cs: Draw minimized windows even if they don't have
2883 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
2885 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
2887 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
2889 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
2892 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2894 * ComboBox.cs: When snaping height -because of IntegralHeight set to
2895 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
2896 if the requested height leaves the listbox area with *less* than the
2897 required are to see one item. We were setting it to PreferredHeight
2898 even for values matching the height for a single item.
2901 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
2903 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
2905 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
2907 * DataGridViewCell.cs: Use property instead of field.
2909 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2911 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
2914 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2916 * Theme.cs: Added #region around the managed window code. Made the managed
2917 window methods abstract.
2918 * ThemeWin32Classic.cs: Added #region around the managed window code.
2920 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2922 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
2924 * ThemeWin32Classic.cs: Removed HasBorders checks in
2925 DrawManagedWindowDecorations.
2927 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2929 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2930 Extracted ManagedWindowGetTitleBarIconArea.
2932 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2934 * DataGridViewCellStyle.cs: Don't clone the font.
2936 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2938 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
2940 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2942 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
2943 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
2946 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2948 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
2949 Use Format/FormatProvider before trying converters.
2950 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
2951 are 'set'. Change constructor to not use ApplyStyle since it wants
2952 everything applied. Clone the Font.
2953 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
2954 ApplyStyle the rest.
2956 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2958 * ListView.cs: We need to calculate the scrollbars even if the handle
2959 hasn't been created - this is needed when methods using scrollbars
2960 info, such EnsureVisible, are called before control has been created.
2963 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
2965 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
2966 only if the elements are defined.
2968 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2970 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
2971 section. Also, when setting bounds, snap height as well as save the
2972 requested height if Dock has any value affecting the height: Left,
2973 Right and Bottom - important if using IntegralHeight as true.
2975 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2977 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
2978 passed to SetBounds to reflect the new adjusted height (Integral-wise),
2979 instead of doing that only in our SetBoundsCore override, since the
2980 bounds cached can be the same as saved one and we could not get the
2984 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2986 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
2987 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
2988 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
2989 ToolWindowCaptionButtonSize.
2990 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
2992 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2994 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
2996 * Theme.cs: Made DoubleClickTime plaform dependent.
2998 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3000 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3001 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3002 ToolWindowCaptionHeight.
3004 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3006 * InternalWindowManager.cs: The adjustment to ensure positive client area
3007 sizes is now platform dependent (disabled on Windows).
3008 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3009 RequiresPositiveClientAreaSize.
3011 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3013 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3015 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3017 * InternalWindowManager.cs: Changed IconicSize to use
3018 SystemInformation.MinimizedWindowSize.
3019 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3020 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3022 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3024 * ComboBox.cs: If the combobox is anchored both on top and bottom,
3025 adjust height if IntegralHeight is true when calling SetBoundsCore (as
3026 likely the height was modified even if Height wasn't specified in
3027 BoundsSpecified parameter).
3028 Fixes part of #396297.
3030 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3032 * InternalWindowsManager.cs: Changed minimum window size while resizing to
3033 SystemInformation.MinWindowTrackSize.
3034 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3035 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3037 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3039 * MenuItem.cs: Fixed Dispose.
3041 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3043 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3044 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3045 EnteredHeaderCell, PressedHeaderCell: Added.
3046 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3047 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3048 theme a chance to override default painting.
3049 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3050 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3051 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3052 ListView and DataGridView header rendering.
3054 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3056 * RichTextBox.cs: GetPositionFromCharIndex should return the
3057 visual position of the character relative to the viewport.
3058 [Fixes part of bug #396664]
3060 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3062 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
3063 and not just for the existance of an UITypeEditor. In some cases
3064 there is an editor associated just to do PaintValue, but which
3065 doesn't actually support editing.
3068 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3070 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3071 if needed, instead of 0 - this should help us in the corner case where
3072 we have more than one item but we are only partially showing 1 item.
3073 Fixes part of #374713.
3075 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3077 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3078 control, return immediately if the any parent control's handle hasn't
3079 been created or isn't visible, as well as avoiding creating the parent
3080 Form if the handle hasn't been previously created.
3083 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3085 * TableLayoutPanel.cs: Use border sizes when calculating the
3086 panel's preferred size. [Fixes part of bug #396433]
3088 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3090 * SplitContainer.cs:
3091 - Fix SplitterDistance to update only if needed.
3092 - Make it force min and max validation.
3093 - Handle properly mouse moves outside the resizeable area.
3096 2008-06-02 Andreia Gaita <avidigal@novell.com>
3098 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3099 (which also suppresses all popup dialogs). Throw NotSupported
3100 exceptions for activex getters/setters.
3101 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3102 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3103 StatusText, Version, GoSearch
3104 * HtmlDocument.cs: Add DocType support
3106 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
3108 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3111 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3113 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3115 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3117 * TableLayoutPanel.cs: When calculating preferred size, use the
3118 actual number of columns and rows, not what the user set them to.
3121 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
3123 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3126 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3128 * XplatUIX11.cs: When detecting areas obscured in a control by other
3129 toplevel windows while scrolling, return if the control hasn't a
3133 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3135 * XplatUIX11.cs: Properly detect the visible area of a control being
3136 scrolled (obscured by other winforms controls and any X toplevel
3137 windows), to mark as invalid the requested area to be scrolled that
3138 isn't visible and thus can't be copied.
3141 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3143 * ListBox.cs: Compute the precise amount to vertically scroll when
3144 using DrawMode.OwnerDrawVariable.
3145 Patch by jkeymer (j.keymer@gmx.net).
3147 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3149 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
3150 to avoid setting an invalid value for the verticall scrollbar
3151 when navigating items. And, duh, also remove my silly debug messages
3152 from previous commits.
3155 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3157 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
3158 make it MS compatible.
3160 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3162 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
3163 - Allow the editing of entries even if their parent is read-only.
3164 - Do not render expandable properties read-only.
3165 - Refactor expansion checks form PropertyGrid into PropertyGrid.
3167 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
3169 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3170 support for the hover style.
3172 2008-05-29 Andreia Gaita <avidigal@novell.com>
3174 * ContainerControl.cs: Check for null dead-end when traversing the tree
3177 [Fixes #394332, patch by Ernesto Carrea]
3179 2008-05-29 Geoff Norton <gnorton@novell.com>
3181 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3182 constant that it is. Fixes #393981
3184 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3186 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3187 that the user probably doesn't want to set this.
3189 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3191 * ThemeWin32Classic.cs: Don't let the text size be bigger than
3192 the control size for CheckBox/RadioBox.
3193 [Fixes part of bug #394645]
3195 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3197 * PropertyGrid.cs: Update the state of the sorting buttons in
3198 the toolbar if PropertySort is set programatically.
3200 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3202 * GridItemCollection.cs: Add multiple items with conflicting names
3203 support and also preserve name ordering.
3206 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3208 * GridItemCollection.cs: Revert my multiple items with same
3211 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3213 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3215 Fixes part of #393908.
3217 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
3219 * ToolStripDrowDown.cs: When using the Show () methods that have a
3220 Control parameter, set the menu owner to that Control.
3223 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
3225 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3228 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3230 * GridItemCollection.cs: Refactor to support multiple items with the
3234 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
3236 * Control.cs: The 2.0 check for illegal cross thread calls in
3237 Control.Handle were throwing an exception when we were getting
3238 the Handle in order to invoke correctly. Created a private
3239 version that does not contain this check.
3242 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3244 * PropertyGrid.cs: Respect DefaultTabType.
3246 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3248 * ListView.cs: SPACE selects an item.
3251 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3253 * ListView.cs: Reset the search string whenever the items are
3257 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3259 * ListControl.cs: For the first added item PositionChanged is fired
3260 _before_ ItemChanged, which leave us in a temporary invalid state - so
3261 we need to set the selected index from ItemChanged handler *if* we
3262 know that the first item has just been added *and* the items have been
3263 actually added to the ListControl.
3266 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3268 * TabControl.cs: Only clicks with the left button should be
3272 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3276 * TextBox.cs: Expose an internal method in TextBox to restore the
3277 original context menu, and call it from ComboBox to re-use it in the
3278 combobox containing the file name in FileDialog.cs.
3279 Fixes part of #393775.
3281 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3283 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3286 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3288 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3291 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3293 * ComboBox.cs: Minor correction to previous patch: PageDown should
3294 also *try* to move by one item if the computed offset is negative,
3295 just like the PageUp case.
3297 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3299 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3300 should be done for at least 1 item, and not stay at the same item.
3301 Fixes part of #374713.
3303 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
3305 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3306 directories. [Fixes bug #393931]
3308 2008-05-22 Andreia Gaita <avidigal@novell.com>
3310 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3311 Don't fire events until the initial about:blank page has finished
3312 loading. Clean up events.
3314 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3316 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3317 FocusIn() too. This should fix the issue on switching
3320 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3322 * X11Keyboard.cs : set XIM font size to somewhat reasonable
3323 number (ideally the input textbox size, but that could be
3326 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
3328 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3329 the ToolStripItem's TextChanged. [Fixes bug #393597]
3331 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3333 * TabControl.cs: When invalidating in SelectedIndex and we need to
3334 inflate to take into account the border of the tabs, make sure that
3335 the invalidated rect doesn't overflow the control bounds, since that
3336 would avoid updating at all.
3338 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3340 * TabControl.cs: Don't substract scroller width from the row width,
3341 since we need to take into account the total width of the control when
3342 calculating the position of the tabs. This avoids showing scroller
3343 when it is actually not needed.
3344 Fixes part of #322325.
3346 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3348 * ThemeVisualStyles.cs: Added support for TextBoxBase.
3350 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3352 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3353 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3355 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3357 * DataGridView.cs: Only paint the top left header cell if there
3360 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3362 * DataGridView.cs: When binding to a BindingSource, get the underlying
3363 list to bind to. [Fixes bug #345483]
3365 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3367 * DataGridView.cs: Do not bind to collection properties.
3370 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3372 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3374 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3376 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3379 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3381 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3383 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3385 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3388 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3390 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3392 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3394 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3397 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3399 * TabControl.cs: Extended to handle the hot style.
3401 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3403 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3404 Extended UpDownBase code to handle hot and disabled styles.
3406 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3408 * DataGridView.cs: Handle databinding to generic list type things.
3411 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3413 * DataGridViewCellCollection.cs: Add a method to find the cell
3414 with the given DataPropertyName.
3415 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3416 * DataGridViewColumnCollection.cs: Add a method to clear all
3417 autogenerated columns.
3418 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3422 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3424 * DataGridView.cs: Don't try to update the RowTemplate with
3425 a null CellTemplate.
3427 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3429 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3430 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3431 * DataGridView.cs: Lots of fixes/enhancements to databinding to
3434 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3436 * Control.cs: Remove invalidating implicit child controls when
3437 control is invalidated. It was causing too many redraws on
3438 controls with implicit scrollbars.
3439 * ListView.cs: Listen to the Invalidated event and invalidate
3442 2008-05-20 Andreia Gaita <avidigal@novell.com>
3444 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3445 * HtmlDocument.cs: Check for nulls
3447 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3449 * Control.cs: In ControlCollection.RemoveInternal, remove the
3450 internal control before calling PerformLayout and OnControlRemoved,
3451 which was leaving us in an invalid state and causing a X error (bad
3452 match). Observe that Remove () call has the same order.
3453 Fixes an X error changing ComboBoxStyle.DropDownStyle.
3455 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3457 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3458 being fired if ControlStyles.UserPaint style is activated.
3461 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3463 * GridEntry.cs: Don't be so strict when setting the value -
3464 do not check if what we set is what we get.
3467 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3469 * XplatUIX11.cs: If there are no timers timeout should be 0
3472 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3474 * Control.cs: As a followup to invalidating implicit children when
3475 a control is invalidated, only invalidate them if they are in the
3478 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3480 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3482 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3484 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3486 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3488 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3489 * XplatUIWin32.cs: Made Win32DeleteObject public.
3491 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3493 * GridEntry.cs: Determine HasDefaultValue more strictly by using
3494 PropertyDescriptor.ShouldSerializeValue.
3497 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3499 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3500 in the classic theme.
3502 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3504 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3506 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3507 ScrollBarHasPressedThumbStyle.
3509 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3511 * TextRenderer.cs: Included some methods in the 1.1 profile.
3513 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3515 * Control.cs: When we make a control visible, it may have been
3516 previously visible and while it wasn't visible, the z-order of
3517 things may have been shuffled, so the control needs to have its
3518 z-order updated just in case. [Fixes bug #391518]
3520 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3522 * ThemeVisualStyles.cs: Added support for GroupBox.
3524 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3526 * GroupBoxRenderer.cs: Included in the 1.1 profile.
3528 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
3530 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3531 bug #389996; XSelectInput() behaved as mouse handler robber,
3532 so remove extra call to it.
3534 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3536 * Control.cs: Simplify ControlCollection.Contains method.
3538 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3540 * DataGridViewRow.cs: Implement GetPreferredSize.
3542 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3544 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
3546 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3548 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3549 painting and edit control fixes.
3551 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3553 * DataGridView.cs, DataGridViewCell.cs: Work around some external
3554 checks to make sure we are in an actual row/col for top left header cell.
3555 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3557 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3559 * Control.cs: Use long instead of int when handling WParam from
3560 mousewheel scrolling. Int was overflowing on Win64.
3562 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3564 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3565 flow panel without scrolling first, and then calculate the
3566 scrolling based on the new layout. [Fixes bug #390149]
3568 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3570 * ListBox.cs: Invalidate after scrolling up when selected index
3571 changes. [Fixes bug #390151]
3573 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3575 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3576 set, default height to 150. I tried first with DefaultSize, but this
3577 is not generating a SetBoundsCore call before handle creation time, so
3578 we can take it into account. This is just what .net does.
3580 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3582 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3583 as it broke some stuff. Calberto is filing a bug for eno to
3586 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3588 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3589 to 0 is the current value is -1, and if style is not Simple, just
3590 return, like .net does.
3591 Fixes part of #374713.
3593 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3595 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3596 progress bar stuffs, use doubles instead of ints to prevent
3597 overflow. [Fixes bug #389798]
3599 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3601 * XplatUIX11.cs, X11Keyboard.cs :
3602 Significant refactoring on XIM support. Now IM engine UI
3603 should show up, at mostly-correct preedit position.
3604 - Eliminated use of FocusWindow, as it is never mapped
3605 and hence blocks correct preedit position. XIC is now
3606 created per window, and it must be destroyed too when
3607 the window is destroyed.
3608 - WM_QUIT messages should not be filtered even when hwnd
3609 is zombie. Filtering it could cause endless loop.
3610 - Preedit position must move only when the window is alive.
3611 - Make it IDisposable and make sure to release XIM/XICs.
3613 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3615 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3616 XplatUIX11.cs, XplatUIWin32.cs :
3617 fix for bug #325033 and #387693;
3618 - WM_QUIT should not be sent when no running application
3620 - SetTimer/KillTimer (especially on win32) should be
3621 invoked for the window that the timer is/will_be attached.
3622 - There could be unattached timers to a window when it's
3623 started. For those timers, hold pending timers and when
3624 a window is mapped, attach them to it.
3625 - WaitForHwndMessage() could run into loop when
3626 WM_SHOWWINDOW is handled before this method is called.
3627 So, strictly check wm_showwindow state.
3628 - Tick handler should not be invoked while one Tick handler
3629 call is still running (introduced Busy state).
3631 2008-05-13 Andreia Gaita <avidigal@novell.com>
3633 * WebBrowserBase.cs: Override Internal alternative methods for
3634 SetBoundsCore and OnResize instead of the protected ones.
3635 * Control.cs: Move SetBoundsCore and OnResize implementations to
3636 SetBoundsCoreInternal and OnResizeInternal, so they can be
3637 overriden internally (WebBrowserBase needs to catch them but can't
3638 override the protected methods without api compat problems)
3640 2008-05-13 Andreia Gaita <avidigal@novell.com>
3642 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3644 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3647 * ListView.cs: Remove debug messages.
3649 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3651 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3652 area is empty. Also calculate scrollbars in Simple mode based in area
3653 height and total number of items, not in MaxDropDownItems.
3654 Fixes part of #371991.
3656 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3658 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
3660 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3662 * BindingSource.cs: GetListSortDescription is not public.
3664 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3666 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3668 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3670 * HtmlElement.cs: Fix parameter names to match MS.
3671 * HtmlWindowCollection.cs: Should not be sealed.
3673 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3675 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
3676 button, because the thumb button will not get drawn if the scrollbar
3677 is disabled. [Fixes bug #389262]
3679 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3681 * ListBox.cs: Handle End key for multi-column listboxen.
3684 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3686 * ListBox.cs: Fix algorithm to determine which column our item is in.
3689 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3691 * ListBox.cs: Invalidate when the listbox is resized.
3694 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3696 * ListBox.cs: There is always at least one row in the ListBox (if
3697 we are doing these calculations.) [Fixes bug #389253]
3699 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3701 * ListBox.cs: There is always at least one column in the ListBox.
3704 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3706 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
3707 ensure in Simple mode that the height is exactly the requested one.
3708 Also add the ComboBoxListControl to the controls collection in Simple
3709 mode even if handle hasn't been created.
3710 Fixes part of #371991.
3712 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3714 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
3715 our ComboBox owner instead of giving it back to the previous control (
3716 as done in other controls). Also remove the empty override of Select
3717 method, since we want to be selected *and* give focus to our owner.
3718 This should let the user do keys-navigation in Simple mode.
3720 2008-05-10 Geoff Norton <gnorton@novell.com>
3722 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
3723 problems with rapid scrolling of treeviews. Fixes #381084
3725 2008-05-10 Geoff Norton <gnorton@novell.com>
3727 * XplatUICarbon.cs: Deactivate the active window before
3728 activating the desired window. Completes fixing #386504
3730 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3732 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
3733 SmallChange to the item size width plus the padding, to match .net.
3735 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3737 * FileDialog.cs: Apply the custom filter typed by the user in the file
3738 name combobox as much as possible while navigating in the file dialog.
3741 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3743 * Binding.cs: Actually use NullValue if the retrieved value of
3744 data source is null or DBNull. Makes a test pass.
3746 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
3748 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
3749 * MimeIcon.cs: Provide a way to get icons from resources.
3751 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3753 * Binding.cs: When the value retrieved from the control to be assigned
3754 to the data source is null, actually use the 2.0 DataSourceNullValue
3755 value. Make pass a data binding test.
3757 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3759 * Control.cs: We need to invalidate implicit children even when
3760 invalidate is called with invalidatechildren = false. (Implicit
3761 children are really part of the parent.)
3762 * ListView.cs: Double-buffer internal child controls for less
3764 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
3765 owner ListView subitems for greatly increased performance.
3768 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
3770 * FileDialog.cs: When the user types a wildcard character in the
3771 filename combobox, update the contents of the folder using the text as
3773 Fixes part of #385261.
3775 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3777 * ListBox.cs: Various fixes for MultiColumn listboxen.
3780 2008-05-08 Andreia Gaita <avidigal@novell.com>
3782 * HtmlElement.cs: Implement Style property
3784 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3786 * ListBox.cs: Respect checkboxes when measuring item size.
3787 * ThemeWin32Classis.cs: When drawing list items, don't draw
3788 text outside of the item's bounds to prevent overlapping.
3789 (.Net actually overlaps, but that's just silly.)
3792 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
3794 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
3795 Gert Driesen. Fixes bug #324830.
3797 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
3799 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
3802 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3804 * BindingSource.cs: When calling IsSynchronized, return the value of
3805 the related IList list.
3807 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3809 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
3812 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
3814 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
3815 navigation to scroll the grid if the current cell is not visible.
3817 2008-05-07 Andreia Gaita <avidigal@novell.com>
3819 * HtmlElement.cs: Implement TabIndex
3821 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
3823 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
3824 properties, even when there are no items.
3827 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
3829 * NativeWindow.cs: Add support for multiple handles per window.
3830 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
3831 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
3832 directly - use FromHandle instead.
3835 2008-05-07 Andreia Gaita <avidigal@novell.com>
3837 * HtmlElement.cs: Implement InnerHTML setter
3839 2008-05-07 Andreia Gaita <avidigal@novell.com>
3841 * HtmlDocument.cs: Implement Focused
3843 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3845 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
3846 methods, as well as add messages to the exceptions.
3848 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3850 * BindingSource.cs: Setting DataSource should only reset DataMember if
3851 the previous value was null (make pass a not working test).
3853 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3855 * BindingSource.cs: When EndInit call is postponed and is called until
3856 DataSource.EndInit is called, remove the handler for data source.
3858 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3860 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
3862 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3864 * ToolStripManager.cs: Store references to toolstrips as
3865 weak references so they do not prevent forms from getting collected.
3868 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3870 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
3871 on .Net. So do the same thing in WndProc.
3873 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3875 * TrackBar.cs: Commit patch from Andy Hume that corrects
3876 the clickable areas to better match .Net.
3879 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3881 * TrackBar.cs: Commit patch from Andy Hume that adds the
3882 ResizeRedraw control flag so the track bar repaints itself
3883 when it is resized. [Fixes bug #387072]
3885 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3887 * TrackBar.cs: Commit patch from Andy Hume that adds better
3888 support for keyboard navigation when the TrackBar is vertical.
3891 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3893 * BindingSource.cs: Implement ISupportInitializeNotification support.
3895 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
3897 * ThemeVisualStyles.cs: Added support for ToolBar.
3899 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
3901 * ToolBar.cs: Made the Vertical property internal.
3903 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3905 * ThemeVisualStyles.cs: Added support for TrackBar.
3907 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3909 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
3910 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
3911 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
3912 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
3913 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
3914 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
3916 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3918 * ThemeVisualStyles.cs: Added support for UpDownBase.
3920 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3922 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
3923 Extracted Theme.UpDownBaseDrawButton.
3925 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
3927 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
3928 removed from the static toolstrips collection in ToolStripManager
3929 when they are disposed. Provides a workaround for bug #386483.
3931 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
3933 * GridEntry.cs: Read-only properties with Editor with
3934 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
3937 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
3939 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
3940 the menu key and there are no items on the menu.
3943 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
3945 * Control.cs: Avoid calling ToString on a string.
3946 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
3947 * GroupBox.cs: In FlatStyle property throw, not just create, the
3948 exception. Avoid calling ToString on a string.
3949 * ProgressBar.cs: Avoid calling ToString on a string.
3950 * ScrollBar.cs: Avoid calling ToString on a string.
3951 [All issues were found using Gendarme]
3953 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
3955 * NotifyIcon.cs: Prevent click events to be trigger after double click
3956 events. Fixes remaining issues of bug #324832.
3958 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
3960 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
3961 to mimic win32 behavior. Partially fixes bug #324832.
3963 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3965 * BindingSource.cs: Implement Find methods.
3967 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3969 * BindingSource.cs: Implement Sort, ApplySort overloads, and
3972 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3974 * ListBindingHelper.cs: When calling GetListItemProperties and the
3975 passed object is ITypedList, return the result of
3976 ITypedList.GetItemProperties instead.
3978 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3980 * LinkLabel.cs: Set default value of name on constructor of Link class
3981 only for 2.0 profile.
3983 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3985 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
3986 Fixes remaining issues of bug #346154.
3988 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3990 * LinkLabel.cs: Set a default value for name on internal contructor of
3991 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
3993 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3995 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
3996 and refer all instances to owner.links. Partially fixes #346154.
3998 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4000 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
4001 length equal zero. Also called CreateLinkPieces in constructor. It fixes
4002 the LinkLabel test 'TestLinkArea'.
4004 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4006 * Form.cs: Remove menu before close form to prevent form to be not gaced.
4009 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4011 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4014 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4016 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4019 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4021 * MenuAPI.cs: Remove unused ProcessCmdKey method.
4023 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4025 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
4028 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4030 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4033 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4035 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4036 sometimes we open a conext menu on mouse down of some controls and the mouse
4037 up is dispatched to menu and dont need to. It fix remaining issues of
4038 #363711 and other problems related to menu mouse click events.
4040 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4042 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4043 some var names to better fit changes, now we have month_menu and today_menu
4044 vars. Fixes bug #363711.
4046 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4048 * MonthCalendar.cs: Handle every right mouse click to open context menu,
4049 right now the default month menu but it will be change to have "Go to today"
4052 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4054 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4056 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4058 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4060 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4062 * ThemeVisualStyles.cs: Added support for TreeView.
4064 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4066 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4067 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4069 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4071 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4073 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4075 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4076 Implement 2.0 SP1 stuffs.
4078 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4080 * FileDialog.cs: Implement 2.0 SP1 stuffs.
4082 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4084 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4085 Implement CanEnableIme property. (2.0 SP1)
4087 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4089 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4092 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4094 * Control.cs: Provide an internal way for a control to override
4095 the setting of Height.
4096 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4097 set height using new method.
4099 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4101 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4103 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4105 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4106 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4108 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4110 * ThemeVisualStyles.cs: Added support for StatusBar.
4112 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4114 * DataObject.cs: Add the other IDataObject interface.
4116 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4118 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4119 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4121 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4123 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4124 * ListView.cs: Hide non-public API.
4125 * MaskedTextBox.cs: Remove extra attribute.
4127 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4129 * DataGridViewImageCell.cs: Use formatted value instead of value
4130 to calculate preferred size.
4132 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4134 * ListBox.cs: Move some initialization around so that selected_indices
4135 is not accessed before it is created.
4137 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4139 * InputLanguageCollection.cs: Implement the collection better.
4142 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4144 * ToolStripDropDownItem.cs: Get the correct event object for
4145 DropDownItemClicked.
4146 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4149 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4151 * DataGridViewRowCollection.cs: We don't currently support shared
4152 rows. Should fix test failures caused by previous commit.
4154 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4156 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4157 datagridview gets set. Only paint cells in visible columns.
4158 * DataGridViewCell.cs: Draw border after cell content.
4159 * DataGridView.cs: Invalidate after setting some properties. Only
4160 use visible columns. Fit hit test bug with areas in the col/row header
4161 area but not in a row or col. Implement UpdateCell/Row methods.
4163 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4165 * DataGridViewElement.cs: Don't throw NIEX.
4166 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4167 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4168 * DataGridViewCheckBoxColumn.cs: Implement ToString.
4169 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4170 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4171 if the user filled in the formatting Value, use it.
4173 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4175 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4178 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4180 * BindingSource.cs: Some corrections to Filter property, as well as
4181 setting it for our list when resetting it.
4183 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
4185 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4186 than the maximum. Fixes reopened bug #384182.
4188 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4190 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4191 Fixes remaining issues of #367490.
4193 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4195 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
4196 SystemInformation.WorkingArea to get max_screen value.
4198 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4200 * BindingSource.cs: Implement Filter and RemoveFilter.
4202 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4204 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4206 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4208 * X11Dnd.cs: When trying to convert data and we know we started the
4209 dnd loop, don't try to use the cached data if the loop is not running,
4210 which means that the data has been resetted.
4213 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4215 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4218 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4220 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4221 it to drawn off screen edge. Fixes bug #367490.
4223 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4225 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4226 menu position to have only one assignment of Location var.
4228 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4230 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4231 for this patch. Fixes bug #384115.
4233 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4235 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4236 the same. If LargeChange is zero, set a minimum size for the scroll
4237 thumb grip. [Fixes bug #384182]
4239 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4241 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4244 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4246 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
4248 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4250 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4251 patch from Ernesto).
4253 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4255 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4257 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4259 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4261 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4263 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4265 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4267 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4269 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
4271 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4273 2008-04-27 Andreia Gaita <avidigal@novell.com>
4275 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4276 supposed to return a reference to an mshtml interface, which we
4278 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4279 reference to an mshtml interface, which we don't support). Code
4281 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4282 DomDocument getter (it's supposed to return a reference to an
4283 mshtml interface, which we don't support). Code formatting cleanup.
4285 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4287 * ListView.cs: Ouch, forgot to commit.
4289 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4292 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4294 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4296 * ListView.cs: When calculating box selection for virtual mode, don't
4297 look for intersection with item's text, but item bounds, since that
4298 would mean read ListViewItem's text for _every_ item, and that's
4299 something we just can't do in virtual mode (items are only requested
4302 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
4304 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4305 partial support for managed windows (based on the patch from Ernesto).
4307 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4309 * ListView.cs: When doing a key search use FindItemWithText method
4310 instead of doing the search by ourselves, this way we avoid
4311 duplicating the code and also we handle the special case for virtual
4312 mode. To achieve that make our private overload of FindItemWithText
4313 internal and also have a 'roundtrip' parameter.
4315 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4317 * ListView.cs: When doing the layout don't request the
4318 ListViewItem instance if we are in virtual mode (since we can't request it
4319 until the item is actully drawn).
4321 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4323 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
4326 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4328 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
4329 the patch from Ernesto).
4331 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4333 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4334 * ThemeVisualStyles.cs: Added.
4336 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4338 * IDeviceContext.cs: Added a missing using.
4340 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4342 * ButtonBase.cs: Made IsDefault protected internal.
4343 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4345 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4347 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4348 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4349 RadioButtonRenderer.cs: Included in the 1.1 profile.
4350 * IDeviceContext.cs: Added.
4351 * TextRenderer.cs: Included a member in the 1.1 profile.
4353 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4355 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4357 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4359 * ErrorProvider.cs: Make the error icons come after the control
4360 they refer to. It isn't the way the MS does it, but its better
4361 than what we were doing. See bug #368587.
4363 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4365 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4366 from Eric Albright that lazy loads the input language as ensures
4367 everything gets properly initialized. Fixes bug #373871.
4369 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4371 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4372 implicit mnemonics. [Fixes bug #383000]
4374 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4376 * X11Dnd.cs: When canceling the operation, automatically restore the
4377 default cursor - normally the default cursor is restored when the
4378 mouse buttons are released, but we should be able to restore it even
4379 if the buttons are still pressed (for example, when pressing ESC to
4383 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4385 * X11Dnd.cs: When starting a new drad and drop operation, set control
4386 field to null, just as the other fields, to avoid calling any
4387 operation on a previous control. Also, when calling DndLeave on a
4388 control, set it to null, thus we don't fire that event multiple times
4392 2008-04-23 Geoff Norton <gnorton@novell.com>
4394 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4395 the whole_window object. Fixes #377084.
4397 2008-04-23 Andreia Gaita <avidigal@novell.com>
4399 * HtmlElement.cs: Implement RaiseEvent (event injection into the
4402 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
4404 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4406 2008-04-23 Andreia Gaita <avidigal@novell.com>
4408 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4411 2008-04-23 Andreia Gaita <avidigal@novell.com>
4413 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4416 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4418 * X11Dnd.cs: When the drop was cancelled, or could just not be
4419 performed, return DragDropEffect.None always (match .net).
4421 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4423 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4425 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4427 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4429 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4431 * DataGridView.cs: Add support for error icon tool tips.
4432 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4433 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4435 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
4437 * X11Structs.cs: Add mouse button masks enum.
4438 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
4439 WM_EXITSIZEMOVE only once at the beginning and at the end of the
4440 form resize/move operation instead of for each step of it.
4441 [Fixes bug #346529 for the x11 backend]
4443 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4445 * DataGridView*: Implement support for drawing error icons.
4447 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4449 * TreeView.cs: Make vbar and hbar internal.
4450 * TreeNode.cs: If collapsing the node removes one of the TreeView's
4451 scrollbars, invalidate the whole thing.
4454 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4456 * TreeView.cs: Calling Sort() sets Sorted = true.
4457 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4458 if the nodes need to be sorted.
4461 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
4463 * Form.cs: Fire SizeChanged for both when the form is minimized and
4465 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
4466 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4468 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4470 * ComboBox.cs: If the combobox is disabled, draw a disabled
4471 background before painting anything else.
4474 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4476 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4477 forget to send a Leave event to the target window - just as .net does
4478 when cancelling dnd operations.
4480 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4482 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4483 soon as possible - this happens when we send the drop message to the
4484 target window. This way we avoid firing any DragOver _after_ drop finished.
4487 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4489 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4490 * Form.cs: Handle form minimization as a special state, where size doesn't
4491 change, but we have to fire SizeChanged.
4492 [Fixes bug #325122 for the win32 and x11 backends]
4494 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4496 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
4497 if the handle is disabled.
4500 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4502 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
4503 for forms with FormBorderStyle.None.
4506 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4508 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
4510 [Fixes bug #346529 for the X11 backend]
4512 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4515 - Send a mouse Enter message after say dragging the mouse with a
4516 button down and then release it in another client.
4517 - Reset the cursor to prevent X11 from remembering it and setting it
4518 before the control gets WM_SETCURSOR.
4519 - Qeueue a mouse move after a mouse enter like win32.
4522 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4524 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
4525 It's sent when the form gets moved, resized, closed.
4526 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4527 [Fixes bug #359193 for X11]
4529 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4531 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
4534 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4536 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
4537 group. Fixes the 1.1 build.
4539 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4541 * ListView.cs: Use display indexes for selection in Details view, as
4542 well as do the proper layout based on display indexes for that view
4545 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4547 * ListView.cs: Focused item information is now stored as a display
4548 index, and display indexes are used all over the place for selection,
4549 instead of ListViewItem.Index values, which doesn't give us enough
4550 information to modify the selection in groups mode, and was broken.
4552 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
4554 * Control.cs: Do not fire MouseDown if validation of the control has
4556 * Form.cs: Validate the form before closing.
4557 [Fixes bugs #330501 and #353310]
4559 2008-04-18 Andreia Gaita <avidigal@novell.com>
4561 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4562 CreateWebBrowserSiteBase implementations
4563 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4564 Style and TabIndex setters
4566 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4568 * ListViewGroup.cs: When returning the actual item count, return the
4569 proper count for default group.
4572 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4575 * ListViewGroup.cs: When calculating groups layout, get the actual
4576 number of items per group, since groups added to the group BUT not
4577 added to the ListView are just ignored, and can cause some nasty
4578 exceptions because of the lack of synchronization. Also for
4579 ListViewGroup don't use lazy initialization for items, since we
4580 the common scenario is to use it always - and it helps us to refactor
4581 and clean the .ctor overloads.
4583 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4585 * ListView.cs: When adding an item to a ListViewItemCollection
4586 belonging to a group (ListViewGroup.Items), don't generate a redraw if
4587 the added item hasn't beeen previously added to the ListView instance
4588 refered by the group, since it will be ignored. This should avoid some
4589 really nasty flickering.
4591 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4593 * ListView.cs: When accessing an item in a specific display
4594 position, use the helper method GetItemAtDisplayIndex, instead of
4595 direct access to the reordered_items_indices array. When doing layout
4596 for groups set the correct Items index for the display position (since
4597 in groups mode items don't have the same position as in Items
4599 * ListViewGroup.cs: Add a field to store the starting item number,
4600 which is later used when calculating the layout.
4604 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
4606 * Application.cs: Fixed ProductVersion to fallback to the assembly
4607 version. Fixes regression for bug #325413.
4609 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4611 * ListView.cs: New helper method to retrieve an item in a _specific
4612 display_ position (the items can be displayed in a different order
4613 than one of Items collection).
4614 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4615 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4616 specific display position (again remember that items can be sorted
4617 different than Items).
4619 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4621 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4622 list and update it when the collection changes. We were recreating
4623 this several times per row paint and for every pixel the mouse moved
4625 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4628 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4630 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4631 list to use generics.
4632 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4633 and remove unneccessay casts.
4635 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4637 * DataGridViewBand.cs: Add internal way to set displayed variable.
4638 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4639 * DataGridView.cs: Make sure we always keep track of Displayed
4640 rows and columns, and only draw things that are displayed.
4642 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
4644 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4645 whether the key events are filtered or not. Introduced
4646 PreFilter() process for this purpose. This fixes atokx3/iiimx
4649 2008-04-16 Andreia Gaita <avidigal@novell.com>
4651 * HtmlHistory.cs: Implement Length property
4653 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
4655 * DataGridView.cs: Call EndEdit when a sort is performed so we take
4656 away the edit textbox. Refactor to reuse column sort code.
4658 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
4660 * MenuAPI.cs: Remove the code that save and restore capture status of
4661 grab_control, this fixes some Menu and Context menu bugs but maybe it can
4662 cause some others, I cant figure the possible problems of this patch but
4663 right now remove the code looks to be better than keep it. This patch fixes
4664 bugs #357638, #378721 and #379570.
4666 2008-04-12 Andreia Gaita <avidigal@novell.com>
4668 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4669 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
4670 add missing properties and event handlers.
4672 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
4674 * ListBox.cs: Make sure the LargeChange we are setting is at least
4675 zero, to prevent an IOORE. [Fixes bug #379531]
4677 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
4679 * ComboBox.cs: Support item navigation by entering text. Firstly,
4680 in DropDownList mode, for each key-press select the next item
4681 starting with that letter.
4682 For other modes, when no item selected, on arrow-up/-down and open
4683 drop-down select the first item matching the text in the textbox.
4685 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
4687 * X11Keyboard.cs : Control.FromHandle() could return null
4688 in MoveCurrentCaretPos().
4690 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4692 * ListView.cs: When changing the size in VirtualMode, also Reset the
4694 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
4695 changing selection info for VirtualMode.
4698 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4700 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
4701 view, don't use LineLimit for the first item - use NoWrap *always*
4702 instead, since ListView.LabelWrap is not used for this view.
4705 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4707 * Binding.cs: Call UpdateIsBinding when setting control - probably
4708 Binding is already usable and we don't need to wait to check the
4709 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
4710 Created, just like 2.0 does.
4711 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
4713 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4715 * Binding.cs: Just realized we don't need to have a handler for
4716 BindingContextChanged, since this info should be now consumed directly
4717 in the BindingManagerBase. And also, the manager.IsBindingSuspended
4718 state info is checked directly, instead of caching it.
4720 * CurrencyManager.cs: IsSuspended should return always false if Count
4723 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4725 * Binding.cs: When calling PushData, return if manager.Count == 0,
4726 since we just don't have data to be read. Also, when setting the
4727 Control for binding, hook up some events to refresh the IsBinding
4728 state when BindingContext change or control gets created; use
4729 Control.IsHandleCreated instead of Control.Created check to set
4730 IsBinding state - we *actually* need to modify IsBinding when control
4731 is created, but we don't have any Created event, only HandleCreated.
4732 Fixes part of #349364.
4734 2008-04-11 Geoff Norton <gnorton@novell.com>
4736 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
4737 warping a null Caret.
4739 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4741 * DataGridView.cs: Implement row/column autosizing methods. Implement
4743 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
4744 * DataGridViewRowCollection.cs: Add an internal sorting method.
4746 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4748 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
4749 value in ListView drawing code.
4751 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4753 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
4754 is clicked. Respect the user setting Cancel in FileOk.
4756 2008-04-11 Geoff Norton <gnorton@novell.com>
4758 * ListView.cs: Avoid setting and resetting control Width/Heights and
4759 calculate the final value and set it once. Prevents a feedback loop
4762 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4764 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
4767 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
4769 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
4770 Add some on-the-spot code, but it seems we don't need it.
4772 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4774 * Form.cs: Add method for DataGridView to trigger focus cues
4775 even when it handles the tab keypress.
4777 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4779 * DataGridView.cs: More keyboard handling, tab, esc.
4780 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
4781 when at the beginning or end of the text in the text box.
4783 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4785 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
4787 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4789 * DataGridView.cs: Some fixups for showing and adding the edit control.
4790 * DataGridViewButtonColumn.cs: Implement ToString.
4791 * DataGridViewCell.cs: Size and position the control simultaneously.
4792 * DataGridViewTextBoxCell.cs: Use base to position control.
4794 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4796 * DataGridViewCell.cs: Fix up some formatting and painting code.
4797 * DataGridViewImageCell.cs: Implement some NIEX methods.
4799 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4801 * ToolStripItemCollection.cs: What moving an item from one owner
4802 to another, remove from source owner before adding to destination.
4805 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4807 * PictureBox.cs: Call Load when ImageLocation is set.
4810 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
4812 * X11Keyboard.cs, XplatUIX11.cs :
4813 Implement over-the-spot mode (with some odd offsets).
4814 - set preedit position when caret is set.
4815 - Wrap XMoveResizeWindow() to move preedit position.
4817 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4819 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
4822 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4824 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
4825 and ScanTableIndex public, it fix compilations errors when compiling
4826 WinForms to generate keyboard layout resources.
4828 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4830 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
4831 different element count than scan table. It prevents some errors in non
4834 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
4836 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
4838 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
4840 * DataGridView.cs: Call OnContentClick.
4841 * DataGridViewCell.cs: Do a null check on ValueType instead
4843 * DataGridViewCheckBoxCell.cs: Implement.
4845 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
4847 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
4849 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
4851 * X11Keyboard.cs : Check XGetIMValues() return value in
4852 case it does not return input styles in some environment.
4854 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
4856 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
4858 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4860 * BindingContext.cs: Stub UpdateBinding method.
4862 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
4864 * X11Structs.cs : added couple of structs for XIM support.
4866 Release XIM in case it failed to create XIC.
4867 Use consts for XNblah string.
4868 Add support for IM style customization and XIC creation
4869 for preedit-position and preedit-callback.
4870 Right now use MONO_WINFORMS_XIM_STYLE environment variable
4871 (list of: over-the-spot | on-the-spot | root). Only root
4874 (redoing r99172 with fix.)
4876 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
4878 * TreeView.cs: Center the checkbox a little better.
4880 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
4882 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
4883 Apply very nice patch from Ernesto Carrea that simplifies our
4884 scrollbar drawing. [From bug #376146]
4886 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
4888 * TreeView.cs: Correct the location of the root node checkbox when
4889 ShowRootLines = false. Don't draw the root lines for the root node
4890 when ShowRootLines = false. [Fixes bug #377535]
4892 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
4894 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
4896 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
4898 * MaskedTextBox.cs: Added missing attribute. Code formatting.
4899 * PageSetupDialog.cs: Added missing attribute. Code formatting.
4900 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
4901 * ImeMode.cs: Added missing field.
4902 * HtmlWindow.cs: Code formatting. Fixed line endings.
4903 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
4905 * HtmlHistory.cs: Code formatting. Fixed line endings.
4906 * HtmlDocument.cs: Code formatting. Fixed line endings.
4907 * ToolStripPanel.cs: Added missing IList implementation.
4908 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
4910 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
4912 * BindingContext.cs: Changed argument names to fix corcompare errors.
4913 * DataGridView.cs: Removed extra explicit interface implementation
4914 of IDropTarget. Code formatting.
4915 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
4916 * ComboBox.cs: Changed argument names to fix corcompare errors.
4917 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
4919 * GridColumnStylesCollection.cs: Changed argument names to fix
4920 corcompare errors. Removed extra tabs.
4921 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
4923 * Control.cs: Changed argument names to fix corcompare errors. Code
4924 formatting. Removed extra explicit IList implementation.
4925 * TextBox.cs: Changed argument names to fix corcompare errors. Code
4926 formatting. Use string.Empty instead of "".
4927 * GridItemCollection.cs: Changed argument names to fix corcompare
4928 errors. Code formatting.
4929 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
4930 corcompare errors. Code formatting.
4931 * ImageList.cs: Changed argument names to fix corcompare errors.
4932 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
4933 * DataGridViewRowCollection.cs: Changed argument names to fix
4934 corcompare errors. Code formatting.
4935 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
4936 * DataGridViewSelectedCellCollection.cs: Changed argument names to
4937 fix corcompare errors. Code formatting.
4938 * DataGridViewComboBoxCell.cs: Changed argument names to fix
4939 corcompare errors. Code formatting.
4940 * LinkLabel.cs: Changed argument names to fix corcompare errors.
4941 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
4943 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
4945 * BindingSource.cs: Changed argument names to fix corcompare errors.
4946 Removed extra explicit interface implementations.
4947 * DataGridViewSelectedRowCollection.cs: Changed argument names to
4948 fix corcompare errors. Code formatting.
4949 * ToolStripItemCollection.cs: Removed extra explicit interface
4950 implementation of IList.ReadOnly.
4951 * DataGridViewColumnCollection.cs: Changed argument names to fix
4952 corcompare errors. Code formatting.
4953 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
4954 * ListView.cs: Changed argument names to fix corcompare errors.
4955 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
4957 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
4959 * ListBindingHelper.cs: Changed argument names to fix corcompare
4961 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
4962 fix corcompare errors. Code formatting.
4963 * ToolStripPanel.cs: Removed extra explicit implementation of
4964 IDropTarget interface.
4965 * ListBox.cs: Changed argument names to fix corcompare errors. Code
4966 formatting. Removed extra tabs and spaces.
4967 * DataGridViewCellCollection.cs: Changed argument names to fix
4969 * Help.cs: Changed argument names to fix corcompare errors. Code
4971 * TabControl.cs: Changed argument names to fix corcompare errors.
4972 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
4974 * TableLayoutSettings.cs: Changed argument names to fix corcompare
4977 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4979 * ListBindingHelper.cs: When returning properties, only return those
4980 that are browsable. Also, don't do a linear search of the properties,
4981 but use the indexer of the PropertyDescriptorCollection class.
4983 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4985 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
4986 Dictionary containing the related (child) currency managers. Also,
4987 when setting DataSource, add datasource to our List if it is not a list.
4989 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
4991 * PropertyGridTextBox.cs: Fix background color of the buttons.
4992 * PropertyGridView.cs: Make the entry less jumpy.
4994 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
4996 * PropertyGrid.cs: Fix unused variable warnings.
4998 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5000 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
5001 double-click. It expanded it once in the mouse down and then
5002 again in the double-click handler.
5004 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5006 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
5007 TypeConverter and UITypeEditors.
5009 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5011 * Control.cs: Visibility should be set synchronously,
5012 so we must also redraw once it is and not rely on layouting or
5013 other code to repaint.
5016 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
5018 * DataGridViewCell.cs: Respect DataGridView.GridColor.
5020 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5022 * Control.cs: Invalidate when the alpha channel is less than 255,
5023 not only when control is transparent.
5025 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5027 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5028 Implement some painting convenience methods that threw NIEX.
5030 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5032 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5033 * DataGridViewLinkCell.cs: Implement.
5035 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5037 * GridEntry.cs: Report the conversion exception error description.
5040 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5042 * PropertyGridView.cs: Do not scroll to item on resize.
5045 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5047 * BindingContext.cs: When retrieving a BindingManagerBase, if the
5048 dataSource parameter is ICurrencyManagerProvider, then return
5049 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5050 instead of creating a new one.
5052 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5054 * BindingSource.cs: Implement support for Type instances as
5057 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5059 * DataGridView.cs: Minor cleanups and call CellMouseUp.
5060 * DataGridViewCell.cs: Make some painting routines internally virtual.
5061 * DataGridViewButtonCell.cs: Implement.
5063 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5065 * Control.cs: We always need to invalidate our children with
5066 transparent backgrounds when we are invalidated.
5069 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5071 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5072 and CancelCurrentEdit on CurrencyManager respectively. Implement
5073 support for ICancelAddNew too.
5075 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5077 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5078 call EndNew/CancelNew if list is ICancelAddNew.
5080 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5082 * DataGridView.cs: Guard against an exception while painting
5083 if there are no rows.
5085 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5087 * DataGridView.cs: Implement a bunch of keyboard commands.
5089 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
5091 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
5092 isn't set, don't call OnPaint. [Fixes bug #375300]
5094 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5096 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5097 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5098 hookup the remaining events related to CurrencyManager, and fire
5099 OnListChanged also for the Clear () method.
5101 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5103 * BindingSource.cs: Use Current and Position implementations in
5104 CurrencyManager instead of using our own routines, since we need
5105 to be in synch with it. Count should NEVER return a -1 value, and
5106 also report ListChanged events for both simple IList data
5107 sources (manually) as well for IBindingList ones (by hooking up an
5108 event handler for it).
5110 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5112 * BindingSource.cs: Make one .ctor call the another, to avoid
5113 duplicate code. Add the CurrencyManager property, and also for AddNew
5114 throw the proper exceptions and show better error messages.
5116 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5118 * ComboBox.cs: Only adjust selectedindex if Handle has been
5119 created. Fixes failing test.
5121 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5123 * ComboBox.cs: Adjust selectedindex if we insert a new item
5124 above the current selectedindex in a sorted ComboBox.
5127 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5129 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5132 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5134 * DataGridViewTextBoxCell.cs: Implement stuffs.
5136 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5138 * TreeView.cs: Create the scrollbars even earlier to be
5139 double dog certain they are created before they are accessed.
5141 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5143 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5145 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5147 * ScrollBar.cs: Create an internal safe Value setter so we
5148 won't crash if we try to set a value outside the min and max.
5149 * TextBoxBase.cs: Use safe value setter to guard against a
5150 potential NRE that is being reported by Reflector.
5152 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5154 * TreeView.cs: Create the scrollbars earlier in the constructor
5155 to attempt to guard against an NRE in SetTop in Reflector.
5157 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5159 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5160 DataGridViewRowCollection.cs: Do not scroll column and row headers,
5161 show messagebox on data format error, use column display index
5162 correctly, make sure HitTest supports new layout stuff,
5163 make sure scrollbars support new layout stuff.
5165 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5167 * XplatUIX11.cs : Patch by Doug Rintoul.
5168 For some IM engines, keypress events need to delay call
5169 to XPending() and XNextEvent() in the loop so that it
5170 does not mess the orders in XIM commit callback.
5171 Some KeyRelease events such as shift keys need to be
5172 processed both in the IM engine and winforms driver
5173 itself since winforms holds its own state check.
5175 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5177 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5179 * X11Keyboard.cs, XplatUIX11.cs :
5180 add primitive support for XIM input support (preedit-
5181 nothing and status-nothing). It requires precise event
5182 capturing (XSelectInput/"filterEvents") and different
5183 call to XFilterEvent against root window.
5184 Get composed string and send dummy WM_IME_COMPOSITION.
5185 Free XIM and XIC instances in finalizer.
5187 (This first patch does not include suggested changes
5188 by Doug Rintoul. It will follow.)
5190 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5192 * DataGridView.cs: When binding to a property, if the property
5193 doesn't have a setter, set the column to readonly.
5196 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5198 * ComboBox.cs: Guard against NRE if an arrow key is hit while
5199 we aren't dropped down. Support Home/End in DropDownList mode.
5202 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5204 * TreeNodeCollection.cs: Don't increment count until we've
5205 saved our index to return.
5208 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5210 * Label.cs: Add padding to the label's AutoSize calculation.
5213 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5215 * ListBindingHelper.cs: Actually implement GetListName method.
5217 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5219 * BindingSource.cs: Throw the propert expceptions for some methods, as
5220 well as detect the list item type for Add method if DataSource is null.
5222 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5224 * DataGridViewCell.cs: I don't know why I commented this out,
5225 putting it back for now.
5227 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5229 * DataGridViewCell.cs: Remove storage for owning column, just
5231 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5232 * DataGridViewColumnHeaderCell.cs: If the header text has been
5233 explicitly set, return it.
5236 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5238 * DataGridViewRowCollection.cs: Disable row sharing when
5239 using data binding. Its a great feature, but lets work on
5240 getting DGV usable first before we worry about optimizations.
5242 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5244 * BindingSource.cs: When resetting our internal list, compute list
5245 item type information to be used for indirect list access. Also
5246 implement/tune some properties and methods related to the list access
5248 * ListBindingHelper.cs: Add a stub for GetListName method, used from
5251 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5253 * DataGridView.cs: If RowCount is increased while ColumnCount
5254 is zero, add a column. [Fixes bug #331649]
5256 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5258 * DataGridViewRowCollection.cs: When adding new rows for
5259 databinding, make sure they are place before the add row.
5262 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5264 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5265 instead of Index order.
5267 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5269 * DataGridView.cs: If columns are added by increasing ColumnCount,
5270 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5273 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5275 * DataGridView.cs: Turn off and on the "new row" when
5276 AllowUserToAddRows is toggled. When the handle is created,
5277 set current cell and selected cell/row/col.
5279 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5281 * ComboBox.cs: When navigating the drop down by keyboard, we
5282 need to scroll the list box if our selection moves out of the
5283 currently shown items. [Fixes bug #371990]
5285 2008-03-24 Luke Page <luke.a.page@gmail.com>
5287 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5288 on the control. Also now handles unicode compatibility characters and
5289 stores the unicode compatibility length on the stack. Fixes Bugs
5290 #355198 and #366436.
5292 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5294 * BindingSource..cs: Take into account DataMember when re-creating the
5295 List property, and also create a specific kind of list as needed.
5297 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5299 * ListBindingHelper.cs: Add a new case for GetList () method - when we
5300 get an empty IEnumerable, try to detect whether the datamember is
5301 valid or not for that type, if true, return null, and throw exception
5304 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
5306 * ComboBox.cs: Alt-Down should drop down the list, Esc should
5307 retract it. [Fixes bug #371989]
5309 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5311 * PropertyGrid.cs: Initialize the sorting button as pushed.
5313 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5316 - Visually select the PropertyTab.
5317 - Filter Properties by Attributes properly.
5319 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5321 * MenuItem.cs: Remove menu item from parent when disposed.
5324 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5326 * ToolBar.cs: Don't reset layout_type if Dock = None.
5328 2008-03-21 Andreia Gaita <avidigal@novell.com>
5330 * UserControl.cs: Select the first available control when we get focus.
5333 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5335 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5336 the content if we are in edit mode. [Fixes bug #343964]
5338 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5340 * DataGridViewCell.cs: Fix border painting for column headers.
5342 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5344 * BindingSource.cs: When setting or resetting data source,
5345 use ListBindingHelper.GetList () method, since it will get the list in
5346 case datasource is IListSource.
5348 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5350 * DataGridViewCell.cs: Implement lots more stuffs.
5352 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5354 * PropertyGridView.cs, GridEntry.cs: Implement support for
5355 UITypeEditor.IsDropDownResizable.
5357 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5359 * DataGridViewCell.cs: Remove unused variables, improve how
5360 several of the property getters work.
5361 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5362 get its size from the parent row/col.
5364 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5366 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
5367 user alters manually the PropertyTabs collection via the
5368 PropertyTabs property.
5370 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5372 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5373 new tests for them to be sure to be compatible with .net.
5375 2008-03-20 Andreia Gaita <avidigal@novell.com>
5377 * WebBrowserBase.cs: Fix attributes, add events
5378 * WebBrowser.cs: Fix Padding signature
5380 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5382 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5384 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
5386 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5387 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5388 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5389 passes the new suite of tests for it.
5391 2008-03-18 Andreia Gaita <avidigal@novell.com>
5393 * WebBrowser.cs: Add missing attributes, missing Padding and
5394 DefaultSize properties, remove extraneous getters
5396 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5398 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5401 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5403 * ComboBox.cs: Move resetting the selected index to keypress
5404 instead of textchanged. Changing the text programmatically
5405 should not trigger resetting the selected index. Fixes test.
5407 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5409 * ComboBox.cs: When the user types into the textbox, reset
5410 the selected index to -1. [Fixes bug #371672]
5412 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5414 * FileDialog.cs: Support Control-A for selecting everything
5415 in an OpenFileDialog. [Fixes bug #371564]
5417 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
5419 * DataGridView.cs: When row/column visible/height properties
5420 change, invalidate. Take the NIEX out of InvalidateRow/Column
5421 etc. We don't support them yet, but we can just invalidate
5422 everything until we do support them. (Added MonoTODO). Set
5423 proper control styles.
5424 * DataGridViewRow.cs: Don't call PaintHeader if row headers
5427 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5429 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5431 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5433 * DataGridViewRow.cs: Only paint the white background in
5434 cell bounds, the row bounds extends past the cells if the
5435 grid width isn't as wide as the DGV.
5437 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5439 * DataGridView*: Completely revamp the drawing to match the
5440 public API. Our grids now look better, and call all the
5441 appropriate methods and event to allow users to override
5442 the painting and do their own.
5444 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5446 * ListBindingHelper.cs: Implement 2.0 GetList methods.
5448 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5450 * DataGridView.cs: Implement BorderStyle.
5452 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5454 * FileDialog.cs: Apply patch from Andy Hume: Any time we
5455 are comparing attributes, make sure we only look at the
5456 one we are interested. These calls were failing if there
5457 were more than one attribute.
5460 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5462 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5464 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5466 * PageSetupDialog.cs: Stub EnableMetric.
5467 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5468 * PrintPreviewDialog.cs: Add ProcessDialogKey,
5471 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5473 * MonthCalendar.cs: Remove unused variable.
5475 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5477 * DataGridView*.cs: corcompare stuffs.
5479 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5481 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5482 The savings aren't worth the extra code to fix the optimization.
5485 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5487 * ToolBar.cs: Always call base.Dock in the Dock override so that
5488 Control's layout_type gets reset correctly.
5491 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
5493 * X11Dnd.cs: End DnD operation also for the middle mouse button.
5495 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5497 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5498 at the same time we do explicit ones, because we have to give all
5499 other controls on the container a chance to handle explicit ones
5500 first. If no one has an explicit mnemonic, then we can let the
5501 MenuStrip have a shot at implicit mnemonics.
5502 * MenuStrip.cs: Create an implicit mnemonic function.
5503 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5504 mnemonics for MenuStrips.
5507 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5509 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5510 DataGridColumnStyle.cs: corcompare stuffs.
5512 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5514 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5515 Details - This is needed after we added the bits to use any available
5516 column also for List and SmallIcon view.
5518 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5520 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5521 at the proper place, not only when changing SelectedIndex and changing
5522 the selection using keys/mouse, as .net does.
5524 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5526 * ControlBindingsCollection.cs: Implement last 2.0
5527 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5528 in the new 2.0 Add methods.
5530 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5532 * ListBox.cs: When calling SelectedIndexCollection.Clear,
5533 return if no items are previously selected - this is done to avoid
5534 firing OnSelectedIndexChanged without need to do so. Also,
5535 when creating handle ensure that the focused item is visible (as
5538 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5540 * ListBox.cs: Rewrote/refactored most of selection code. We require
5541 the following things in selection: a) keep selection sorted (both
5542 indices and items), b) SelectedIndices automatically detect the
5543 selection mode, c) SelectedIndex should be the first selected item
5544 index, d) Need to Focus/adjust scroll bar when selecting a new item,
5545 not only for SelectedIndex, which is specially important in Multi*
5546 selection modes. To achieve this we are moving the selection core to
5547 SelectedIndexCollection and make depend all selection modifications on
5551 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5553 * ToolStrip.cs: Enable implicit mnemonics for drop down
5554 menu strips. [Fixes part of bug #367692]
5556 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5558 corcompare - fix parameter names [stragglers].
5559 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5560 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5563 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5565 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5566 was a mnemonic pressed as well as Alt. Also, if nothing handles a
5567 mnemonic, let the ToolStripManager have it even if it doesn't
5568 have a matching mnemonic.
5571 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5573 corcompare - fix warning about implicit implementation
5574 * ToolStrip.cs: Add IToolStripData interface.
5575 * IToolStripData.cs: Add.
5577 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5579 corcompare - fix warning about implicit implementation
5580 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5583 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5585 corcompare - fix parameter names [N-Z].
5586 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5587 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5588 PropertyManager.cs, RichTextBox.cs,
5589 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5590 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5591 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5592 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5593 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5594 ToolStripContentPanel.cs, ToolStripDropDown.cs,
5595 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5596 ToolStripPanel.cs, ToolStripSeparator.cs,
5597 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5598 UICuesEventHandler.cs, UpDownBase.cs.
5600 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5602 corcompare - fix parameter names [G-M].
5603 GridColumnStylesCollection.cs, GridItemCollection.cs,
5604 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5605 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5606 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5607 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5608 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5610 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5612 corcompare - fix parameter names [A-F].
5613 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5614 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5615 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5616 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5617 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5618 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5619 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5621 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5623 * GridEntry.cs: Do not convert not only if the types match,
5624 but also if the property type is assigneable from the value's
5628 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5630 * PropertyGridView.cs:
5631 - Subscribe to the listbox only once and not everytime.
5632 - Update the textbox even if SetValue fails.
5633 - Close the listbox before calling TrySetValue just in case.
5636 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
5638 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5640 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5642 * ListView.cs: Implement support for custom column width based on
5643 Columns collection (we were previously using this collection only
5647 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5649 * ListViewItem.cs: For Tile view, always set bounds for the first
5650 subitem (which is the main one), and also don't let Width be larger
5651 than ListView.TileSize.Width. Improve code readibility also.
5652 * ThemeWin32Classic.cs: When painting the ListViewItem instances
5653 in Tile view, _always_ use the NoWrap flag.
5656 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
5658 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
5660 * GridEntry.cs: For MS compitability make all child properties
5661 readonly if the parent is readonly. Ugh.
5662 [Fixes bug #365945 and #365944]
5664 2008-02-29 Andreia Gaita <avidigal@novell.com>
5666 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5667 relative to the history
5669 2008-02-29 Andreia Gaita <avidigal@novell.com>
5671 * HtmlElement.cs: More handlers for mouse and key events
5673 2008-02-28 Andreia Gaita <avidigal@novell.com>
5675 * WebBrowserBase.cs: MouseClick sig changed.
5676 * HtmlHistory.cs: Implement history navigation
5677 * HtmlElement.cs: Add event handlers, and connect them.
5679 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
5682 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
5683 so that DisplayNameAttribute doesn't get ignored.
5684 - Check for ParenthesizeNameAttribute and parenthesize the Label.
5685 - Add support for PasswordPropertyTextAttribute
5686 * PropertyGridView.cs: Check if an entry is a password.
5687 [Fixes bugs #365589, #365586, #365588]
5689 2008-02-28 Andreia Gaita <avidigal@novell.com>
5691 * PropertyGridView.cs: Revert the message filtering change, as we
5692 need it to block after all. Remove block parameter, unnecessary.
5694 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
5696 * UserControl.cs: Better implementation of GetPreferredSize.
5697 First step to fixing bug #361441.
5699 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5701 * Binding.cs: Actually implement data binding support for
5702 classes implementing IBindableComponent.
5703 * ControlBindingsCollection.cs: Likewise.
5705 2008-02-26 Andreia Gaita <avidigal@novell.com>
5707 * PropertyGridView.cs: Use a message filter to check when to
5710 2008-02-26 Andreia Gaita <avidigal@novell.com>
5712 * Application.cs: Change the message_filters loop so a filter
5713 can be removed while looping.
5715 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
5717 * GridEntry.cs: Optimization in ToggleValue so that it caches
5719 * PropertyGridView.cs: An optimization so that the property isn't
5720 re-read twice for each StandardValue added to the drop-down menu.
5721 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
5725 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
5727 * Application.cs: Apply patch from Justin Cherniak to match
5728 MS better for ProductName, ProductVersion, and CompanyName.
5731 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5733 * Binding.cs: Actually implement 2.0 NullValue property. Also
5734 when changing the formatting related properties, only update the state
5735 if formatting_enabled is true (we don't mind otherwise).
5737 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
5739 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
5742 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5744 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
5745 of GetType on the current value as it uses reflection to
5746 determine the type. This fixes the case where the new value is
5749 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5751 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
5754 2008-02-24 Luke Page <luke.a.page@gmail.com>
5756 * Line.cs, TextControl.cs: Implement offset x and y so that a
5757 document doesn't have to begin at (0,0) on the viewpoint.
5758 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
5759 bars and switches the text alignment (and therefore is now
5760 implemented for textbox). Fixes #321383.
5762 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5764 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
5765 properties. Also when changing FormattingEnabled update the control
5766 property -as .Net does-.
5768 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
5770 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
5771 * Binding.cs: Add stubs for the overloads of the Add method in
5774 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5776 * Binding.cs: PullData () returns a false value if we got an exception.
5777 Also when validating the control and we get an error, instead of
5778 setting the value of the previous one, cancel the event (tested in 1.1
5781 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
5783 * TreeView.cs: Make selected_node and highlighted_node internal.
5784 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
5785 to null when Nodes.Clear is called.
5788 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5790 * FontDialog.cs: Ensure that when the Font is set in code,
5791 all the gui pieces are updated accordingly.
5794 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5796 * TextRenderer.cs: Respect proposed size for MeasureString.
5797 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
5798 autosize, use a proposed width to force wrapping for long text.
5801 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5803 * TreeView.cs: Factor in checkboxes = false and state images in
5804 to HitTest. [Fixes bug #363360]
5806 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5808 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
5809 when drawing the selected range.
5812 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5814 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
5815 ResizeRedraw control styles.
5818 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5820 * TreeView.cs: StateImages are basically custom checkboxes, so
5821 factor their size the same as real checkboxes when determining
5825 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5827 * MessageBox.cs: Make the message box wider if the form caption
5828 is longer than the text in the form.
5831 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
5833 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
5835 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5837 * TreeNode.cs: Guard against an NRE when the parent's
5838 StateImageList hasn't been set.
5841 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5843 * SplitContainer.cs: Add SupportsTransparentBackColor and
5844 OptimizedDoubleBuffering control styles.
5847 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5849 * Application.cs: For the app data paths and the registry key paths,
5850 ensure they are created before returning them to the user.
5853 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5855 * Application.cs: Guard against an NRE in CompanyName and
5858 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5860 * Application.cs: For CompanyName, ProductName, and ProductVersion,
5861 make sure we handle all three cases correctly: attribute is present,
5862 attribute is present but is an empty string, and attribute is not
5865 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
5867 * PropertyGridView.cs:
5868 - Fix a NRE that caused a test failure
5869 - Another performance improvement - cache the standard values
5872 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
5874 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
5877 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
5879 * PropertyGridView.cs: Fix a big performance bug.
5881 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
5883 * SelectionRange.cs: Apply patch from Andy Hume to make
5884 constructor behavior more accurate. [Fixes bug #362117]
5886 2008-02-19 Andreia Gaita <avidigal@novell.com>
5888 * Control.cs: Added a new flag is_disposing to track if the
5889 window is currently in the process of being disposed of.
5890 This is used so that, when firing visibility changes triggered
5891 by unparenting controls during Dispose, the control doesn't
5894 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
5896 * ComboBox.cs: Set height to preferred height when the handle
5897 is created. [Fixes bug #360862]
5899 2008-02-18 Andreia Gaita <avidigal@novell.com>
5901 * XplatUIX11.cs: Create FosterParent with border width at 0.
5902 With the previous value of 4, everytime a control got reparented
5903 from parent = null, it's location would be shifted right and
5904 down by 4, since these coordinates would be offset by the
5905 FosterParent's border width.
5907 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
5909 * Control.cs: During diposing firstly remove ourselfes from
5910 the parent and *then* destroy our handle, because removing
5911 ourselfes from the parent controls collection causes
5912 VisibilityChange, etc events, which require a handle and end
5913 up recreating the control.
5915 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
5917 * GridEntry.cs: Set expanded state before notifying that the
5918 expansion has taken place.
5919 * PropertyGridView.cs:
5920 - Set the propertygridtextbox text to the selected
5921 StandardValue before proceeding to setting it.
5922 - Scrolling bugfixes.
5924 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5927 - Fix ValueText to not return null.
5928 - Fix conversion error reporting to actually happen.
5929 * PropertyGridView.cs: Set entry only if the text has changed.
5932 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5935 - Fix handling of a null current value.
5936 - Swallow editor exceptions.
5939 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5941 * PropertyGrid.cs: Clear current items first thing before
5942 repopulating subitems.
5944 - Handle null StandardValuesCollection.
5945 - Mark as not editable if there is no PropertyDescriptor and
5946 if the Converter cannot convert from string.
5947 [Part of fix for bugs #360666 and #358332]
5949 2008-02-15 Luke Page <luke.a.page@gmail.com>
5950 * MaskedTextBox.cs: Now skips non editable characters after a
5951 character has been entered and we are progressing to the next
5952 position in the MaskedTextBox.
5954 2008-02-15 Luke Page <luke.a.page@gmail.com>
5955 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
5956 that it changes the selection rather than just repositioning the
5957 cursor. Fixes Bug #360873.
5959 2008-02-15 Luke Page <luke.a.page@gmail.com>
5960 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
5961 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
5962 correctly. See #359330
5964 2008-02-15 Andreia Gaita <avidigal@novell.com>
5966 * XplatUIX11.cs: If the handle is null when posting a message, use the
5967 current thread queue to post instead. Fixes #332409
5969 * SendKeys.cs: Slight optimization
5971 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
5973 * PropertyGrid.cs, PropertyGridView.cs:
5974 Fix multiple scrolling and sizing issues.
5977 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
5979 * PropertyGridView.cs: Ensure that drop down editors are shown
5980 in the WorkingArea of the screen.
5983 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
5985 * GridEntry.cs: Fail silently when UITypeEditor is missing.
5988 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5990 * Binding.cs: Implement 2.0 DataSourceNullValue property.
5992 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
5994 * PropertyGridView.cs:
5995 - Clear the controls in the drop down form after it is hidden.
5996 - Fix Width sizing of the dropdown editors to match MSFT.
5998 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6000 * PropertyGridView.cs:
6001 - Fix height for drawing the grid entry
6002 text value, so that it clips multiline text properly.
6003 - Fix unfocusing to match MSFT.
6005 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6007 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6008 Fixes a bug where on repopulation after value changed items become
6011 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6013 * Binding.cs: For the 2.0 profile, look for a
6014 'PropertyChanged' event in the target control, and add checks for
6015 DataSourceUpdateMode property to change -or not- the data source
6016 from validation/control property change.
6018 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
6020 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6021 not compare struct with null in 2.0).
6023 2008-02-10 Luke Page <luke.a.page@gmail.com>
6025 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6026 updates the provider and if not using a provider, uses the internal document
6027 class implementation of password char. Also when showing text, uses display string
6028 from the provider, instead of the actual text.
6030 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6032 * Binding.cs: Ooooops, forgot to take into account the data_source
6033 and binding_member_info null case (it was breaking the Binding tests).
6035 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6037 * Binding.cs: Implement support for data source changes exposed by
6038 'PropertyNameChanged' events, and update the control property as
6041 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6043 * Binding.cs: Implement 2.0 WriteValue method.
6045 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6047 Commit patch from James Purcell for better AutoScale implementation:
6049 * ScaleControl should call GetScaledBounds with the control's total size rather
6050 than client size. GetScaledBounds should handle ignoring the borders in its
6051 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
6052 (for the most part they just call the base code now since that is fixed).
6053 * Added ScaleChildrenInternal to allow controls to disable scaling of children
6054 without having to override ScaleChildren (since none of .NET's controls do).
6055 This is required for most controls in Mono that have scrollbars to prevent the
6056 scrollbars from being moved/resized.
6057 * Nested ContainerControls can have a different scale mode than their parent.
6058 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6059 designer produce different results both of which look incorrect).
6060 * Default AutoScaleMode for ContainerControl should be Inherit.
6061 * Simplified workaround for ComboBox scaling issue.
6062 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
6063 1.0 style auto scaling should scale the whole control's size instead of
6064 ignoring the borders (except for Form) and the rounding is done differently to
6065 preserve control alignment.
6066 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6068 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6069 * CurrentAutoScaleDimensions should round the estimated character width instead
6071 * ListBox's GetScaledBounds should always use the height it was set to instead
6072 of the height that was passed in. This prevents rounding errors from
6073 accumulating quickly with IntegralHeight.
6076 2008-02-08 Andreia Gaita <avidigal@novell.com>
6078 * Form.cs: Add a null check (darn it).
6080 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6082 * MdiClient.cs: Make sure the requesting form actually owns the
6083 control menu items before removing them. Also, use
6084 Suspend/ResumeLayout when adding or removing items so we only
6088 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6090 * Control.cs: Guard against an NRE in ShowFocusCues.
6093 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6095 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6096 property, as well as stubbing DataSourceUpdateMode.
6098 2008-02-08 Andreia Gaita <avidigal@novell.com>
6100 * Form.cs: When closing forms, get focus back to the active control of the
6101 active form. [Fixes #341314, corner case]
6103 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6105 * MdiClient.cs: After we move the scrollbars, invalidate the NC
6106 area, so any old scrollbar artifacts are cleaned up.
6109 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6111 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6112 for our menus, display that control box menu instead of the 1.1
6115 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6117 * MdiControlStrip.cs: Add property to access the mdi form tied to
6119 * MdiClient.cs: Be smarter about removing and adding toolstripitems
6120 to the implicitly merged menu. Every time we clicked the form, items
6121 were getting removed and the re-added, causing the form to jump around
6122 as the menu resized.
6124 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6126 * MdiClient.cs: Make sure the NormalBounds always gets set. It
6127 was being reset by the implicit menu merge for menustrips.
6130 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6132 * Form.cs: Don't do the previous change when WindowState = Normal,
6133 or it messes up where the window is placed. Fixes test failure.
6135 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6137 * Form.cs: When becoming visible, if we are an MDI child, call
6138 SetWindowState with a dummy old_state so that changes will actually
6140 [Fixes the 2nd part of bug #325473]
6142 2008-02-07 Andreia Gaita <avidigal@novell.com>
6144 * Control.cs: Reset properties to their pre parent-change values in case
6145 the new parent == null (in which case we're basically removing the control,
6146 and don't want any events fired due to fake property changes)
6149 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
6151 * PropertyGridView.cs:
6152 - Refactor SetValue to allow setting the value
6153 when a custom editor is used, but the entry is not editable.
6154 - Remove the custom editor control on CloseDropDown.
6157 2008-02-06 Andreia Gaita <avidigal@novell.com>
6159 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6160 reflection only on 1.1, this property is public on system.drawing on 2.0.
6163 2008-02-06 Andreia Gaita <avidigal@novell.com>
6165 * WebBrowser.cs: Do a normal page refresh by default.
6167 2008-02-05 Andreia Gaita <avidigal@novell.com>
6169 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
6170 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6171 platforms. Fixes #359036
6173 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
6174 platform-specific flags.
6176 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6178 * Binding.cs: Add 2.0 BindableComponent property - just return control
6181 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
6183 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6184 Jonathan for this patch. Fixes #358442.
6186 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
6188 * Form.cs: If we change the active MDI child form, let the others
6189 know they need to repaint their title bar so it will appear inactive.
6190 [Fixes part 1 of bug #325473]
6192 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
6194 * PropertyGridView.cs: Do not trucate custom editors' width
6195 and align them to the left.
6196 [Fixes #358353 and #358349]
6198 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6200 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6201 Also fix the arguments passed to CollectionChangeEventArgs in the
6204 2008-02-04 Geoff Norton <gnorton@novell.com>
6206 * Hwnd.cs: The conversion to Quartz coordinates happens in
6207 System.Drawing. Removing this translation from here.
6209 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6211 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6212 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6213 GridItemCollection.cs:
6214 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6216 2008-02-04 Geoff Norton <gnorton@novell.com>
6218 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
6219 SYSKEYUP if any other key has been pressed in the mean time.
6222 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6224 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6225 when the item in current position is different than 0. Also, save the
6226 item index in the beginning of the operation, instead of getting the
6227 index of the item when the event is actually performed. Lastly clean
6228 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6232 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6234 * Form.cs: Alt-Minus for MDI children system menu should work
6235 with both the minus keys on the keyboard.
6238 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6240 * Control.cs: Don't invalidate on region change. The WM should
6241 take care of this automagically. Keeps us out of an infinite
6242 paint loop if someone changes the Region in the OnPaint.
6245 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6247 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6249 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6251 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6252 down the MonthCalendar only on F4, not Alt+F4.
6253 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6256 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6258 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6259 if its part of a DateTimePicker, else, use the back color.
6262 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6264 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6267 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6269 * CurrencyManager.cs: When we get a ListChanged event from our source,
6270 always fire our own ListChanged event, as .Net does.
6272 2008-02-03 Luke Page <luke.a.page@gmail.com>
6274 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6277 2008-02-03 Luke Page <luke.a.page@gmail.com>
6279 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6280 property. Removed if for richtext property that was always true.
6281 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6283 2008-02-03 Luke Page <luke.a.page@gmail.com>
6285 * TextBoxBase.cs - commited patch from James Purcell that
6286 correctly sets the FixedHeight control style when the MultiLine
6287 property is changed on a TextBox control. Fixes bug 358229.
6289 2008-02-02 Luke Page <luke.a.page@gmail.com>
6291 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6292 Fixes bug 351938 - caret is positioned correctly when drawn
6293 and when calculating textual position of caret, no longer
6294 has a NRE in certain situations.
6296 2008-02-01 Geoff Norton <gnorton@novell.com>
6298 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6299 get that region removed from the paint event.
6300 * XplatUICarbon.cs: Remove the window mapping after disposing of
6301 window. Prevents a crash with handle reuse. Optimize exposes
6302 only onto visible windows (rare; but possible).
6304 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6306 * UpDownBase.cs: Make sure the internal textbox calls the base's
6307 OnMouseDown and OnMouseUp so the textbox will function correctly.
6308 There were notes saying it doesn't chain up, but its an internal
6309 class, so our implementation may differ.
6312 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6314 * ListBox.cs: Fix a logic error and don't process MouseDown
6315 for mouse buttons other than Left.
6317 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6319 * Control.cs: Remove HeightInternal.
6320 * ListBox.cs: Commit patch from James Purcell that correctly
6321 calculates heights for ListBoxen.
6324 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6326 * Label.cs: Apply patch from James Purcell that corrects the
6327 signature of the AutoSize property.
6330 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6332 * ListBox.cs: Don't throw [Mouse]Click events for buttons
6333 other than the left mouse button.
6335 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
6337 * Control.cs: Remove my awesome optimization as it caused some
6338 regressions with control ordering. :(
6341 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
6343 * PropertyGridView.cs: Fix a NRE on double click when there is no
6346 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6348 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6350 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
6352 * ListBox.cs: Call MouseClick and MouseDoubleClick.
6355 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6357 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6358 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6359 instead of Hwnd.bmp_g.
6361 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6363 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6364 Use the Hwnd one instead.
6366 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6368 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6370 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6372 * Form.cs: corcompare for RestoreBounds.
6374 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6376 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6378 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6380 * Form.cs: Handle Alt-Minus for MDI children forms.
6381 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6382 Add mnemonics to the control menu.
6385 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6387 * Binding.cs: Initial implementation bits of FormattingEnabled
6388 property and BindingComplete event (2.0).
6389 * BindingCompleteEventArgs.cs: Internal methods for setting error text
6392 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6394 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6395 table.Location. [Fixes bug #354672]
6397 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6399 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6400 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
6402 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6404 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6405 of doing all the re-bound work, just invalidate and call SetControlText
6406 to set the updated text of selected item to our textbox.
6409 2008-01-28 Andreia Gaita <avidigal@novell.com>
6411 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
6412 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6413 missing properties and methods. Add Load, Unload, Error, GotFocus,
6414 LostFocus, Resize, Scroll events (only load and unload are connected)
6416 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
6418 * AccessibleObject.cs: Modified argument names to match MS.
6419 * Button.cs: Modified argument names to match MS.
6420 * BindingContext.cs: Modified argument names to match MS.
6421 * BindingMemberInfo.cs: Modified argument names to match MS.
6422 * ButtonBase.cs: Modified argument names to match MS.
6423 * ComboBox.cs: Modified argument names to match MS.
6424 * Control.cs: Modified argument names to match MS.
6425 * CheckedListBox.cs: Modified argument names to match MS.
6426 * CommonDialog.cs: Modified argument names to match MS.
6427 * DataGrid.cs: Modified argument names to match MS.
6428 * CursorConverter.cs: Modified argument names to match MS.
6429 * ControlPaint.cs: Modified argument names to match MS.
6430 * CheckBox.cs: Modified argument names to match MS.
6431 * ControlBindingsCollection.cs: Modified argument names to match MS.
6432 * BindingSource.cs: Modified argument names to match MS.
6433 * DataFormats.cs: Modified argument names to match MS.
6434 * ContainerControl.cs: Modified argument names to match MS.
6435 * CurrencyManager.cs: Modified argument names to match MS.
6436 * Application.cs: Modified argument names to match MS.
6437 * ContextMenuStrip.cs: Modified argument names to match MS.
6438 * ContextMenu.cs: Modified argument names to match MS.
6439 * BindingManagerBase.cs: Modified argument names to match MS.
6440 * WindowsFormsSection.cs: Fixed line ending.
6442 2008-01-27 Andreia Gaita <avidigal@novell.com>
6444 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6445 detecting that the dropdown toolwindow is hidden. EndLoop outside the
6448 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
6450 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6451 MS. Code formatting.
6453 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6455 * Binding.cs: Don't avoid the Format event if the control
6456 property type is object. Also, if the value retrieved by
6457 the data source is null _and_ the control proeprty type
6458 is object, return Convert.DBNull (match .Net).
6459 Fixes part of #324286.
6461 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6463 * ListControl.cs: Since we are getting two BinginContextChanged events
6464 for the same binding context instance (when the control is added to
6465 form, and when the form is actually shown), take it into account only the
6466 first time for a given binding context instance.
6467 Fixes part of #324286.
6469 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6471 * PropertryGridView.cs: Ops.
6473 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6475 * PropertyGridView.cs: Close dropdown form if the owner form is
6479 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
6481 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
6482 RootGridEntry.cs, CategoryGridEntry.cs:
6483 PropertyGrid rewrite.
6484 - Rewrite all of the control logic in PropertyGrid.
6485 - Rewrite all of the ComponentModel logic in GridEntry.
6486 - Rewrite all UI work in PropertyGridView.
6487 - Many bugfixes, etc.
6489 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
6491 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6492 when all contained controls are autosize or dock-fill. Also take into
6493 account when the total percentage of column/row sizes is not 100%.
6496 2008-01-24 Andreia Gaita <avidigal@novell.com>
6499 - Save a reference to the IDocument in the instance and
6500 use that one instead of going to WebHost.Document; the document that the
6501 WebHost returns might not be the right one (in case of frames).
6502 - Use the hashcode returned from the IDocument interface.
6503 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
6504 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
6505 LinkColor, Url, VisitedColor, Window
6508 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
6509 set_Attribute, NextSibling, Parent, TagName, AppendChild,
6510 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6511 SetAttribute, Equals, equality operators.
6512 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
6513 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
6515 * HtmlElementCollection.cs: Change implementation to use a generic
6516 collection. Implemented Enumerator and CopyTo
6518 * HtmlHistory.cs: Add constructor, no implementation yet.
6520 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6521 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
6522 Equals, equality operators.
6524 * HtmlWindowCollection.cs: Implemented.
6526 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6527 has been deprecated).
6529 * WebBrowserBase.cs: Use Completed event to track document loading
6530 (Navigated has been deprecated)
6532 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
6534 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
6535 level MenuItems do not respect tabs.
6538 2008-01-23 Geoff Norton <gnorton@novell.com>
6540 * XplatUICarbon.cs: Ensure that windows are created in their initial
6541 FormWindowState. Finished fixing Fullscreen windows on Carbon
6543 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6545 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6546 be used as grab_control. Also save status of capture before show ContextMenu
6547 and restore it after close.
6549 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6551 * Control.cs: Internal FindRootParent method added to return high control
6554 2008-01-23 Geoff Norton <gnorton@novell.com>
6556 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6557 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6558 it work again. Handle HITTEST events.
6560 2008-01-23 Geoff Norton <gnorton@novell.com>
6562 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
6563 a crash in certain cases. Support for fullscreen windows in certain cases.
6565 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
6567 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6570 2008-01-23 Geoff Norton <gnorton@novell.com>
6572 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6574 2008-01-23 Geoff Norton <gnorton@novell.com>
6576 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
6578 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6580 * SplitContainer.cs: Remove unused declarations.
6581 * Binding.cs: Remove unused declarations.
6583 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6585 * Form.cs: Remove unused declaration of 'active' in Activate method.
6586 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
6587 prevent compilation warnings.
6588 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6589 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6590 * Bindings.cs: Remove unused formatting_enabled declaration.
6591 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6593 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6595 * PropertyGridView.cs: Remove usused 'ex' declaration.
6596 * DataGridView.cs: Remove unused declarations.
6598 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6600 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6602 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
6603 to Control class, it makes possible to grab menu to controls that can't
6604 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6605 WmMouseMove removed since it was used only to track menu events.
6608 - Moved all active_tracker stuff from Form.
6609 - ProcessActiveTracker added to prevent code duplicity, now mouse events
6610 can call this method instead of reimplement all necessary code handle for
6612 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6616 - Remove special handle to ToolStripOverflow, now we can grab menu to
6617 controls that can't reach Form using parent tree.
6618 - Change type of grab_control from Form to Control.
6620 2008-01-22 Geoff Norton <gnorton@novell.com>
6622 * TextBoxBase.cs: Split up the sizing of controls and placing of
6623 controls. Fixes a bug where scrollbars in Reflector could be sized
6624 wrong and have non-working thumbers.
6626 2008-01-23 Geoff Norton <gnorton@novell.com>
6628 * XplatUI.cs: Refactor environment variables to default support to the
6629 Carbon driver on the Mac.
6631 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6633 * Label.cs: Uses new LabelPainter for drawing operations.
6634 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6635 * Theme.cs: DrawLabel and LabelDefaultSize removed.
6637 2008-01-22 Geoff Norton <gnorton@novell.com>
6639 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6641 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6643 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6644 through the normal flat button code and don't draw the checkbox glyph.
6645 * Theme.cs: Button->ButtonBase signature change.
6648 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6650 * LinkLabel.cs: Uses new class LinkLabelPainter.
6652 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6654 * MessageBox.cs: Adjust right border space, we don't need to add
6655 "space_border*2" two times.
6657 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6659 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6660 becomes a wrapper around Padding.
6661 [Fixes a part of bug #354676]
6663 2008-01-22 Geoff Norton <gnorton@novell.com>
6665 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
6666 acquired. Also ensure the buffer is large enough to grab the header
6667 we need on linux boxes.
6669 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6671 * Control.cs: Implement a custom enumerator so people can delete
6672 from the Controls collection while in a foreach.
6675 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6677 * PropertyGridView.cs: Fix focusing behavior:
6678 - Tab should focus the grid text box.
6679 - Clicking on the labels shouldn't focus the grid text box.
6681 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6683 * PropertyGridView.cs: IsValueTypeGridItem should return true
6686 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6688 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
6689 - Renamed GridEntry.SelectedObjects to TargetObjects to better
6690 reflect the property name role.
6691 - PropertyGrid.GetTarget is not required as the target is known
6693 - Setting values will handle value types as a special case now and
6694 populate them up in the chain.
6697 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
6699 * Hwnd.cs: Create a public property for the Graphics we keep around.
6701 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6703 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
6704 when the current object selection changes.
6705 Fixes failing test SelectedObject_Null2.B5.
6707 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6709 * PropertyGrid.cs: Process Browsable properties with
6710 DesignerSerializationVisibilityAttribute.Content as being expandable.
6711 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
6712 will not be expandable. We should be nested components-friendly now.
6714 2008-01-21 Andreia Gaita <avidigal@novell.com>
6716 * WebBrowserBase.cs: Check if control was loaded properly,
6717 don't bind if it wasn't.
6719 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
6720 GetElementFromPoint, equality operators, OpenNew, Write.
6721 Remove extra set_Body
6723 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6725 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
6726 that makes our AutoScale* stuff more tolerant to different orders
6727 of being set. [Fixes bug #354669]
6729 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6731 * PropertyGridView.cs, PropertyGridTextBox.cs:
6732 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
6733 [Fixes #339005 and #348209]
6735 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6737 * PropertyGridView.cs: Hide the grid text box before adjusting it
6738 for the newly selected GridItem.
6741 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6743 * Form.cs: Give MDI children the opportunity to cancel the parent form
6744 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
6745 properly for both the parent and child.
6746 * Application.cs: Signature of internal method changed, pass the previous
6750 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6752 * PropertyGridView.cs: Set the property value only if it has changed.
6755 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6757 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
6758 If the mouse hasn't actually moved, ignore these messages so the currently
6759 highlighted menuitem isn't reset to the one under the mouse.
6762 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6764 * PropertyGridView.cs: When the property changes Invalidate the GridItem
6765 in order for the properties with UITypeEditor.GetPaintValueSupported == true
6766 to reflect the change visually.
6769 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6771 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
6772 to 2.0 button drawing.
6773 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
6774 the button text is tall enough for one line. LineLimit says it will
6775 always draw at least one line, but it is a lie.
6778 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
6780 * XplatUIStructs.cs, X11Keyboard.cs :
6781 added some more VK_* keys to be handled.
6783 2008-01-16 Andreia Gaita <avidigal@novell.com>
6785 * Control.cs: Check if there is a container before setting or getting
6786 the validation flag.
6788 2008-01-16 Andreia Gaita <avidigal@novell.com>
6790 * ContainerControl.cs: Add flag to track if a control cancels validation,
6791 so we don't fire click events.
6794 - (HandleClick) Check if validation was cancelled before firing the click
6795 events (doubleclicks are fired, but not clicks)
6796 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
6797 ContainerControl.set_ActiveControl, but in the case of non-selectable
6798 controls, like a Label, activecontrol is not set.
6800 * ButtonBase.cs: Only fire clicks if validation passes.
6804 2008-01-16 Geoff Norton <gnorton@novell.com>
6806 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
6809 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
6811 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
6812 SelectedPath, just display the default dialog instead of crashing.
6815 2008-01-16 Geoff Norton <gnorton@novell.com>
6817 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
6818 AddExpose instead of trusting apples compositing manager which doesn't
6819 work for our use case. Remove some dead code causing warnings and
6820 redecorate some other code to prevent warnings.
6822 2008-01-16 Geoff Norton <gnorton@novell.com>
6824 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
6825 carbon signals us to redraw. Fixes another portion of the flickering bug
6827 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6829 * Form.cs: Prevent the MdiParent property to be set when value is the same
6830 as value already set. Fixes bug #328019.
6832 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6834 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
6835 it prevents NRE when closing mdi child windows. Fixes bug #325211.
6837 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6839 * InternalWindowManager.cs: Invalidade close button after mouse up when
6840 mdi form is prevented to close.
6842 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6844 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
6845 thanks to Andy Hume. Fixes bug #325433.
6847 2008-01-16 Andreia Gaita <avidigal@novell.com>
6849 * LinkLabel.cs: Reset focused_index when resellecting the control.
6852 2008-01-15 Geoff Norton <gnorton@novell.com>
6854 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
6857 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
6859 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
6862 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
6864 * ContainerControl.cs: Setting AutoScaleMode to anything should set
6865 Form.AutoScale to false.
6866 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
6867 AutoScaleBaseSize should be changed on Font change unless it has been
6871 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
6873 * MenuAPI.cs: On instance of MenuTracker check if source control is
6874 ToolStripOverflow and use properly method to find form.
6877 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
6879 [Fixes bug #323241 Transparent toolbar support]
6881 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
6884 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
6885 defined in control style to mimic win32 behavior.
6887 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
6888 it will be transparent.
6890 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
6892 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
6893 CreateParams for ToolBar controls.
6895 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6897 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
6898 FixedToolWindow, SizeableToolWindow, or None for border styles have
6899 different minimum sizes than regular forms. Implemented to fix
6900 regression in PDN with toolbox being too wide.
6902 2008-01-14 Andreia Gaita <avidigal@novell.com>
6904 * HtmlElementCollection.cs: Implemented
6906 * HtmlElement.cs: Implemented:
6914 * HtmlDocument.cs: Implemented GetElementsByTagName.
6916 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6918 * Screen.cs: Stub BitsPerPixel to always return 32.
6920 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6922 * Form.cs: Implement RestoreBounds.
6924 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6926 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
6927 Sebastien and his fabulous magical problem-finding machine:
6928 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
6929 respect the value set.
6931 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
6933 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
6934 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
6936 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6938 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
6939 messages (to match .Net), we need to remove the capture ourselves.
6941 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
6943 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
6944 will process the message and close our window.
6947 2008-01-10 Geoff Norton <gnorton@novell.com>
6949 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
6950 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
6953 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6955 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
6958 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6960 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
6961 Linux doesn't care, having a minimum matches MS and keeps the window
6962 from becoming too small to use window decorations.
6965 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6967 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
6968 ShowFocusCues. Make focus rectangles fit the text instead of the whole
6969 control. [Fixes bug #325419]
6971 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6973 * ComboBox.cs: Guard against an NRE if the user open a new form from a
6974 SelectedIndexChanged event. This closes the combobox dropdown, and we
6975 were trying to dispose it. [Fixes bug #352830]
6977 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
6979 * Control.cs, Form.cs: Implement the necessary semantics for
6980 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
6981 to determine if a focus rectangle should be drawn.
6982 * PropertyGrid.cs: Fix property visibility to match override.
6983 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
6985 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
6987 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
6990 2008-01-09 Geoff Norton <gnorton@novell.com>
6992 * XplatUICarbon.cs: Scroll windows in the correct direction.
6994 2008-01-09 Geoff Norton <gnorton@novell.com>
6996 * XplatUICarbon.cs: Track all created utility windows so we can hide them
6997 when the app is deactivated or spaces is enabled.
6999 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7001 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7002 extra separation pixel for the label rect origin if SmallImageList is
7003 null, and thus we don't need that separation between icon and label
7005 Patch by Ernesto Carrea.
7008 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
7010 * StatusStrip.cs: Invalidate after completing a layout. The base
7011 OnLayout does this, but we don't call the base.
7012 * ToolStripItem.cs: Revert the previous change to invalidate after
7014 [Fixes bug #351341 better.]
7016 2008-01-07 Geoff Norton <gnorton@novell.com>
7018 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
7019 not a notification to exit the application. Listen for WM_QUIT
7022 2008-01-07 Andreia Gaita <avidigal@novell.com>
7024 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7026 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
7028 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7029 so it can repaint at the correct location.
7032 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7034 * ListControl.cs: SelectedValue should return a null value if
7035 SelectedIndex is -1. Also, when setting it, it should throw an
7036 ArgumentNullException if the value is null, as well as taking
7037 into account the String.Empty value, instead of ignoring it (we have
7038 tests for that now).
7039 Fixes part of #324286.
7041 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
7043 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7044 SelectionStart is updated after pressing enter. Fixes bug #351918.
7046 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7048 * TextControl.cs: Revert a piece r92316 that prevented the fix
7049 from working when there were multiple tags in the text box.
7052 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7054 * TextControl.cs: Apply patch from Luke Page that prevents an
7055 NRE when determining the beginning of a paragraph.
7058 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7060 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7061 caret gets moved with clicking away from a selected block of
7062 text. Fixes bug #351885.
7064 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7066 * TextControl.cs: Apply patch from Luke Page that takes line
7067 alignment into account for mouse selection, so that center and
7068 right aligned text can be selected.
7071 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7073 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7074 issues after loading an RTF file by using the correct line feeds.
7077 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7079 * TextControl.cs: When deleting multiple line selections, we need
7080 to invalidate every line beginning at the first line of the selection.
7081 Patch from Luke Page fixes bug #351791.
7083 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7085 * ListControl.cs: When getting a CurrencyManager.PositionChanged
7086 event, don't set SelectedIndex if the number of items is 1. This is
7087 because, for the first item, PositionChanged is fired _before_
7088 ItemChanged (the place where we actually populate the items), and
7089 leave us in a temporary invalid state (since items collection is
7093 2008-01-04 Geoff Norton <gnorton@novell.com>
7095 * XplatUICarbon.cs: Create native toolwindows instead of
7096 the managed drawing ones.
7098 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7100 * LineTag.cs: If the line doesn't have any characters, return
7101 0 for GetCharIndex. Fixes an AOORE exception after certain
7102 caret movements. Fixes bug #351683. Patch by Luke Page.
7104 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7106 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7107 is hit when there is selected text, only the selected text gets
7108 deleted, not the character in front of the selection as well.
7111 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7113 * ComboBox.cs: When the values are displayed, calculate the
7114 ComboListBox scrollbar's LargeChange based on the visible area's
7115 height and the actuall ItemHeight, instead of calculating it
7116 based on MaxDropItems value, since it's not used by our _current_
7120 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7122 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7123 Patch from Luke Page that fixes issues with font colors and styles
7124 not showing up in a readonly RichTextBox. Fixes bug #324354.
7126 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7128 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7129 from Luke Page. This one fixes bug #349926.
7131 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7133 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7134 an item in the IBindingList source changes with
7135 ListChangedType.ItemAdded. Ignore for now firing the event for other
7136 changes, since we want to have tests for those cases as well.
7138 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7140 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7143 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7145 * TextBoxTextRenderer.cs: Implement a cache for measuring each
7146 character. This is effective because the typical usage of a
7147 TextBox is with a limited amount of fonts and characters, and
7148 the current implementation of TextBox measures everything one
7149 character at a time. Another second or two speedup for bug #347238.
7151 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7153 * Control.cs: Rewrite the Font getter to only query the parent's
7154 Font property once instead of twice. Since this operation is
7155 recursive, the queries were growing exponentially as the control
7156 tree got deeper. Another second or two speedup for bug #347238.
7158 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7160 * Control.cs: Avoid setting a parent (and more importantly, updating
7161 the zorder of all its children) if the parent is already correct in
7162 WmShowWindow. Decreases the startup time of the test case on bug
7163 #347238 from 35 seconds to 11 seconds.
7165 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7167 * X11Dnd.cs: When the dnd operation has started and we are
7168 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7169 This is done to match .Net, which doesn't send those messages after
7170 dnd operation was completed/cancelled.
7173 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7175 * ToolStrip.cs: Previous change should be != null, not == null.
7178 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7180 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7181 user may have moved the mouse off the current item during the event.
7183 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7185 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7186 calling GetItemAt for every MouseMove event by also taking into
7187 account whether any mouse button is pressed (probably dragging);
7188 if so, we can call GetItemAt, and if not, try to not call it
7189 (GetItemAt can be quite expensive when used with a large number of items).
7191 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7193 * ListView.cs: Implement -finally- support for dnd, by calling
7194 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7196 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7197 simple calculation of distances for all the items in the owner
7200 2007-12-21 Geoff Norton <gnorton@novell.com>
7202 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
7203 for windows that are originally created as invisible. Fixes missing
7204 main window in paint-mono.
7206 2007-12-21 Geoff Norton <gnorton@novell.com>
7208 * XplatUICarbon.cs: Register our D&D handler. Register our custom
7209 subclass handler for com.novell.mwfview subclassing HIView. Implement
7210 Pasteboard and Dnd methods.
7212 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7214 * ListBox.cs: When we got focus, give focus to first item if there
7215 wasn't any pervious focused item. Also update navigation to depend on
7216 SelectedIndex rather than FocusedItem, just as .Net does.
7219 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7221 * ListBox.cs: Both FindString and FindStringExact methods must do an
7222 case insensitive search, should allow the last valid index to be
7223 passed in the overload taking an initial index, and should also
7224 continue searching from the top back to the specified index when it
7227 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7229 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7230 redraw issue, and allows RichTextBox to draw colored text even while
7231 disabled or readonly.
7233 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7235 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7236 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7237 and doesn't grey text in a disabled RichTextBox.
7239 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7241 * RichTextBox.cs: Apply patch from Luke Page that adds better support
7242 for many RTF commands: quad alignment, separate formatting for blocks
7243 inside groups, and ParDef support. Makes the test case from bug #324589
7246 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7248 * LineTag.cs: Fix an error in the new Draw method that caused
7249 a crash when rendering the document on bug #324589.
7251 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7253 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7254 TextControl.cs: Apply patch from Luke Page that adds support
7255 for URL links in RichTextBox.
7256 [Fixes enhancement #342516]
7258 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
7260 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7261 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7263 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7265 * ListBox.cs: When a key gets pressed, try to find a string
7266 if the key is a character or a digit.
7269 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7271 * TableLayoutPanel.cs: Remove some unused variables.
7273 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7275 * DateTimePicker.cs: Commit patch from Luke Page that ensures
7276 we don't end up at an invalid date when we click the up/down
7277 spinner to change the month or year. Fixes bug #348682.
7279 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7281 * Application.cs: Calling Exit in 2.0 should chain to the
7282 Exit (CancelEventArgs) version so it can be cancelled.
7283 * Form.cs: Create a flag to allow raising the Closing
7284 events to be skipped. We raise them once in Application.Exit
7285 and don't want to raise them again when the Form is actually
7286 closed. [Fixes bug #349073]
7288 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
7290 * ToolStripDropDown.cs: Guard against an NRE when there
7291 hasn't been a mainform set in the application context.
7294 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7296 * ListBox.cs: When SetBoundsCore gets called, besides
7297 calling UpdateScrollBars, update the value of
7298 last_visible_index, since we could need to show more items
7299 than before, and we need to let the paint routines know that.
7302 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7304 * ListView.cs: Add DesignerSerializationVisibility attribute to
7305 InsertionMark property.
7306 * ListViewItem.cs: Add same attribute to Position property.
7308 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7310 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7313 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
7315 * ThemeWin32Classic.cs: Don't draw the background on a
7316 flat button if there is a background image.
7319 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7321 * ListBox.cs: If we remove the item currently selected,
7322 remove it not only from SelectedItems, but also
7323 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
7324 the items count decreased and focused_item has bigger value than that.
7326 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7328 * Control.cs: Perform our layout after we resize ourselves
7329 if we had to adjust our AutoSize. Missed commit for bug
7332 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7334 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7335 we can provide an implementation of AutoSize.
7338 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7340 * ListBox.cs: Add the internal overload Sort (bool paint),
7341 to indicate whether we actually need a paint or we will
7342 call Refresh ourselves. This way we don't request a paint
7343 _before_ having an updated and valid layout.
7346 2007-12-12 Andreia Gaita <avidigal@novell.com>
7348 * XPlatUIX11.cs: Send paint messages when updating a systray icon
7349 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7350 properly invalidated.
7353 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7355 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7356 don't simply assign it to our internal group field, but instead
7357 use our Group property, which should do all the neccessary work
7358 required to support groups. Fixes an issue reported to me (mail) by a
7359 guy using this new feature.
7361 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
7363 * Control.cs: Use Scale instead of ScaleControl to ensure the
7364 whole hierarchy gets scaled.
7367 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7369 * DateTimePicker.cs: Don't set the internal MonthCalendar's
7370 Parent property. Doing this causes the control to be hosted by
7371 the Form instead of being a popup window.
7374 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7376 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7377 at an index higher than Count, just use Add instead of Insert.
7380 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7382 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7383 DrawPictureBox, this is handled by Control.PaintBackground.
7386 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
7388 * MenuAPI.cs: When process menu keys return true by default only if menu is
7389 active. Fixes bug #342892.
7391 2007-12-09 Andreia Gaita <avidigal@novell.com>
7393 * Control.cs: check if windows are actually mapped before
7394 trying to zorder. Fixes #342509, #346955
7396 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7399 * ListViewInsertionMark.cs:
7400 * ThemeWin32Classic.cs: Implement the drawing side of the
7401 new 2.0 ListView.InsertionMark property.
7403 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
7405 * CurrencyManager.cs: Silence some debug spew.
7407 2007-12-07 Geoff Norton <gnorton@novell.com>
7409 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7410 masks for our children as well as siblings to avoid having to query
7411 Quartz for this information.
7412 * XplatUICarbon.cs: Implement a delegate based system to pass
7413 information to System.Drawing. Implement Async methods. Remove
7414 the hack for the resize thumb and imlpement a transparent Grow Box.
7415 Rework the messaging system to proplery create window's and messages,
7418 2007-12-06 Andreia Gaita <avidigal@novell.com>
7420 * X11Keyboard.cs: Use Xutf8LookupString to support international
7421 characters under alternate codepages. Patch from #340878
7423 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7425 * ListView.cs: When doing layout computations, set position in the
7426 ListView instances (we cache the position just as .Net does).
7427 * ListViewItem.cs: New internal setter method for Position. Also set
7428 position field as also available in 1.1, since we are going to use it
7429 now in the common case.
7431 2007-12-06 Andreia Gaita <avidigal@novell.com>
7433 * Control.cs: When removing controls, get the actual container
7434 to notify about active control changes. Fixes 341314.
7436 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7438 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7440 2007-12-05 Andreia Gaita <avidigal@novell.com>
7442 * Control.cs: When updating the zorder, ignore windows that are not
7443 mapped. Fixes #342509
7445 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7447 * ListViewItem.cs: Actually implement serialization on this class.
7449 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
7451 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7452 LinkCollection. Spaces to tabs, and removed extra tabs.
7454 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7456 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7457 tests to fail (hopefully).
7459 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7461 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7462 the image margin so custom renderers can correctly place it.
7464 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7466 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7467 so custom renderers can correctly place it.
7469 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7471 * Application.cs: Let WM_CHAR messages flow through to controls
7472 hosted in Strips. [Fixes bug #343972]
7474 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7476 * ToolStripManager.cs: Guard against an NRE I ran into.
7478 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7480 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
7481 a Link is manually added to the Links collection, we need to set
7482 its owner, so it can invalidate properly.
7485 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7487 * ListView.cs: When changing ListViewItem.Position (which calls
7488 ListView.ChangeItemLocation), invalidate not only the area
7489 corresponding to the main item, but also to the area occupied
7490 by the items being moved.
7492 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7494 * ListView.cs: When changing the position of a given item,
7495 don't use item bounds, but item areas (which includes the item spacing
7496 between them). Also, use first/last position if the requested
7497 position is outside bounds (as .Net does). Invalidate the previous and
7498 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7499 in a specific position, instead of directly accessing Items collection
7500 (this is done to get the right item - remember an Item can have a
7501 different position in the grid than in the Items collection).
7503 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7505 * MessageBox.cs: Calculate text area instead of just top left, this rect
7506 area will be used in DrawString. Fixes bug #343364.
7508 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7510 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7511 screen width. Partially fixes bug #343364.
7513 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7515 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7516 code inside recalculate, it makes code more simple.
7518 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
7520 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7521 between update or add icon. Fixes bug #324344.
7523 2007-11-21 Andreia Gaita <avidigal@novell.com>
7525 * XPlatUIX11.cs: Do not treat tool windows as if they have no
7526 window manager, since that stretches the drawing area to include
7527 the window decorations, and they get hidden. Reverts r84444 and fixes
7528 #335849 and #342790 (mdi and pdn3 regression)
7530 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7532 * ListView.cs: When setting focused item, try to give focus to the
7533 previous one _only_ if the previous one remains valid.
7536 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
7538 * Application.cs: Revert r89650, as it broke a common case to fix
7539 an obscure case. Fixes bug #342606.
7541 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7543 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7545 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7547 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
7548 alignment. [Fixes #324228]
7550 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7552 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7555 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
7557 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7558 it prevent problems when empty captions. [Fixes #342141]
7560 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7562 * Label.cs: Use Size instead of None. Fixes bug #342077.
7564 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7566 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7568 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7570 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7571 but there isn't a MdiContainer.
7574 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7576 * TextControl.cs: Don't recalculate document if the recalc_start and
7577 recalc_end hasn't changed.
7580 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
7582 * DataGridViewTextBoxCell.cs: Removed CWL.
7584 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7586 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7588 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7590 * TextControl.cs: Missed some code for bug 341534 to trigger a
7591 recalculation when the font changes.
7593 2007-11-16 Andreia Gaita <avidigal@novell.com>
7595 * Control.cs: When updating the zorder, check if the child to update is
7596 the same control that is set to always be on top (i.e., scrollbars), and
7597 just put it on top directly. Fixes BadMatch error on pdn3
7599 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7601 * ListView.cs: Throw the needed exceptions for FindNearestItem.
7603 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7605 * Control.cs: Don't perform a new layout when a label changes its text,
7606 cause label handles its own autosizing.
7609 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7611 * ListView.cs: Implement 2.0 FindNearestItem methods.
7613 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7615 * ToolStripPanel.cs: Make Join at least add the control to the panel,
7616 even if the rest of what Join does isn't supported. Add some more
7617 support for vertical toolbars.
7618 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7619 [Fixes the application breaking parts of bug #341998]
7621 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7623 * ToolStripItem.cs: When determining if we have a check/image margin,
7624 we need to look at ShowCheckMargin as well as ShowImageMargin.
7626 2007-11-15 Geoff Norton <gnorton@novell.com>
7628 * XplatUIOSX.cs: Rename to...
7629 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7630 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
7632 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7634 * KeysConverter.cs: The default values should be an array of Keys, not
7635 strings. Also, the array has more values for 2.0.
7638 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7640 * Application.cs: Change ExecutablePath to use
7641 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7644 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7646 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7647 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7648 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7649 be ignored. Create a new GetLineEnding that can specify which types of
7650 line endings to look for. On Insert, only create new lines for \n and \r\n.
7653 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7655 * TextBoxBase.cs: As we loop through each line changing the font, tell
7656 the document that the line needs to be recalculated. Fixes bug #341534.
7658 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
7659 [Another round of refactoring]
7660 * Line.cs: Add DeleteCharacters.
7661 * LineTag.cs: Add Delete.
7662 * TextBoxBase.cs: Update to use new methods.
7663 * TextControl.cs: Refactor the Delete* methods.
7665 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
7667 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7668 the patch. [Fixes #324856]
7670 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7673 * ListViewItem.cs: Add an initial implementation of
7674 2.0 ListViewItem.Position getter.
7676 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7678 * ListView.cs: Add a reordered_items_indices array, to allow us
7679 to have a different sorting than that of Items (the sorting in Items
7680 could not match the actual sorting in screen). This is needed to
7681 implement a pair of 2.0 features.
7682 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
7683 actual position in the ListView grid, since it could have a position
7684 different than its Index (position in ListViewItemCollection).
7686 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7688 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
7689 not draw partial lines.
7690 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
7691 LineLimit flag from the base is preserved.
7692 Fixes the windows part of bug #338965.
7694 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7696 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
7697 so that it can be canceled in KeyPress.
7700 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7702 * ListView.cs: In ItemControl, reset mouse-handling related
7703 fields even if we dont' have items (we still should reset them when
7704 we had items but then called Items.Clear). Partially based in a patch
7708 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
7710 * Application.cs: In ProductVersion first try AssemblyFileVersion
7711 before falling back to assembly version. Fixes bug #339787.
7713 2007-11-08 Andreia Gaita <avidigal@novell.com>
7715 * HtmlElement.cs: Implement InnerText setter.
7716 * WebBrowserBase.cs: Implement Navigated event support.
7717 Add flag to track when the browser "document" is ready to be retrieved.
7718 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
7719 Make sure browser document is ready before retrieving it.
7720 Clean up cached objects (document) when moving to a new page through
7721 any of the navigation methods.
7722 Use the new Mono.WebBrowser.INavigation interface to control navigation.
7723 Implement OnNavigated event.
7725 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
7727 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
7728 DrawLinkLabel, this is handled by OnPaintBackground.
7729 Fixes bug #339565, part II.
7731 2007-11-07 Andreia Gaita <avidigal@novell.com>
7733 * Control.cs: Revert r88915. Selecting text on a textbox depends on
7734 getting a Select call on click, so this call needs to be here for now.
7737 2007-11-07 Geoff Norton <gnorton@novell.com>
7739 * OSXStructs.cs: Add the kEventClassApplication constants.
7740 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
7741 application is deactivated otherwise Menu overlays linger on top of
7742 other application windows.
7744 2007-11-07 Geoff Norton <gnorton@novell.com>
7746 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
7747 dont support cursors yet anyways. This allows Reflector to run.
7749 2007-11-07 Geoff Norton <gnorton@novell.com>
7751 * XplatUIOSX.cs: Implement DragSize.
7753 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7755 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
7756 ItemControl, request the focus, as .Net does. This is needed after
7757 Control does not request focus anymore when it receives a
7760 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
7762 * Label.cs: Make DrawImage internal so it can be called from Theme code.
7763 Remove the DrawImage call from OnPaint.
7764 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
7765 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
7766 but before we draw the text for DrawLabel and DrawLinkLabel.
7769 2007-11-05 Andreia Gaita <avidigal@novell.com>
7771 * Control.cs: Remove select call on click. Fixes #325809
7773 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7775 * ListViewItem.cs: Add 2.0 Position property getter.
7777 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7779 * ListView.cs: Add 2.0 BackgroundImageTiled property.
7780 Also, to make it work properly, change item's BackColor and
7781 BackgroundImageLayout as needed.
7782 * ThemeWin32Classic.cs: Don't fill any background rectangle
7783 in ListView.ItemControl when drawing items; just let the Control
7784 base implementation fill it.
7786 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7788 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
7789 as well as adding a custom 'dummy' Converter, as .net does.
7791 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7793 * PropertyGridView.cs: When clicking drop-down button,
7794 select an index in the listbox only if our standard values collection
7795 has one or more items.
7797 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7799 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
7802 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
7804 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
7805 the value is not changed. This ensure a pushed button remains in that
7806 state when clicked again. When switching the value of PropertySort
7807 between Categorized and CategorizedAlphabetical, do not update the
7808 grid items and do not fire a PropertyChangedEvent. When clicking the
7809 sorting buttons, do not modify the PropertySort value when switching
7810 between Categorized and CategorizedAlphabetical but only update the
7813 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
7815 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
7817 * PropertyGrid.cs: Also put Categorized button in pushed state when
7818 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
7819 for help description label.
7821 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7823 * ListView.cs: When calculating the biggest item for a given column,
7824 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
7827 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
7829 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
7830 value for PropertySort on 1.0 profile. PropertySortChanged event
7831 should only be fired on 2.0 profile. Fixed NullReferenceException
7832 in UpdateSortLayout when PropertyGrid contains no items.
7834 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
7836 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
7839 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7841 * ListViewItem.cs: Implement 2.0 IndentCount property.
7843 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7845 * X11Dnd.cs: When sending status in a dnd operation, compare current
7846 effect with the 'allowed' field instead of 'drag_data.Allowed', since
7847 the later is only created when a Winforms application is both the
7848 source and the target, but not when we are the target only.
7849 Fixes part of #324251.
7851 2007-11-01 Geoff Norton <gnorton@novell.com>
7853 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
7855 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
7856 children out of the drawing view on mac.
7857 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
7858 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
7860 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
7862 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
7863 on the non-hosted-control part of it shouldn't do anything.
7864 Fixes part of bug #327498.
7866 2007-11-01 Andreia Gaita <avidigal@novell.com>
7868 * WebBrowserBase.cs: revert previous change, resize can be called anytime
7870 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
7872 * Application.cs: When a toolstrip has the keyboard input loop, let messages
7873 it does not use flow through to controls that are hosted in menus.
7874 Same with mouse clicks.
7875 * Form.cs: Don't close all menus on click if the click is on a
7876 control hosted in a menu.
7877 Fixes part of bug #327498, and part of bug #325969.
7879 2007-10-31 Andreia Gaita <avidigal@novell.com>
7881 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
7883 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
7885 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
7886 Addresses an issue raised in bug #336218.
7888 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
7890 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
7891 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
7893 2007-10-30 Andreia Gaita <avidigal@novell.com>
7895 * ContainerControl.cs: Check if the active control is a
7896 child of a removed control and update active_control accordingly.
7899 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7901 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
7902 or the MaxDate. Fixed bug #337693.
7904 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7906 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
7907 after calling SetWindowLong for a form, to force an immediate NC refresh.
7908 Fixes first part of bug #325150.
7910 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7912 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
7913 simple. Fixes the last part of bug #322668.
7915 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7917 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
7918 needs to be TopMost as well, or else the MessageBox is under the form.
7919 Patch by George fixes bug #325300.
7921 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7923 * X11Dnd.cs: When starting a new drag operation, reset the static
7924 'dropped' field to false (previously the implementation didn't reset
7925 it and got confused after the first drag).
7928 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7930 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
7931 items instead of re-creating them all. For this purpose we now cache
7932 both CategoryGridEntry items and the GridEntries for the main object's
7934 * GridItem.cs: Make SetParent method abstract.
7935 * GridEntry.cs: Override the SetParent method (already there, but now
7939 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7941 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
7942 depending on its depth (as .Net does). Update the needed values in
7943 MouseDown handler. Also draw the plus/minus rect after the label,
7944 so we don't draw on top of it.
7946 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
7948 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
7949 processed by forms or controls when menu is active. [Fixes #333548]
7951 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7953 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
7954 parent doesn't have focus. This was causing ToolStripTextBoxes to take
7955 focus on mouse over.
7957 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7959 * TextControl.cs: Code cleaning, simplifying.
7961 2007-10-24 Geoff Norton <gnorton@novell.com>
7963 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
7964 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
7966 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7968 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
7969 the cap is maxvalue, not actually 0. [Fixes bug #336218]
7971 2007-10-24 Andreia Gaita <avidigal@novell.com>
7973 * SendKeys.cs: apply jpobst's patch to bug #332409
7975 2007-10-23 Andreia Gaita <avidigal@novell.com>
7977 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
7978 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
7981 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7983 * PropertyGridView.cs: If a property has an UIEditor available,
7984 make the drop-down/editor button available only if the property
7987 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7989 * PropertyGridView.cs: Don't make the grid item textbox
7990 editable when a drop-down control is available, but
7991 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
7992 true. The same bur the color of the grid item value's label.
7994 2007-10-22 Geoff Norton <gnorton@novell.com>
7996 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
7997 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
7998 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
7999 driver. Padd the bottom of all real windows so the resize thumb doesn't
8000 obscure scroll/status bars.
8002 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
8004 * WindowsFormsSection.cs: Implement.
8006 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8008 * MdiClient.cs: Maximize new active mdi child when a maximized child is
8009 closed see #325434 patch.
8011 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8013 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8016 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8018 * PropertyGridView.cs: When showing the textbox for a grid item,
8019 have two local variables to store the read-only and non-editable
8020 status of a grid item (we were previously using just one variable
8021 to do this, when actually they are slightly different).
8022 Fixes part of #325023.
8024 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8026 * PropertyGridView.cs: When showing a drop-down list, try to get the
8027 values using TypeConverter.ConvertTo (to convert to a string). Fixes
8030 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8032 * PropertyGrid.cs: When updating a property and populating sub grid
8033 items, remove the previous ones, and invalidate the specific area.
8034 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8035 area behind a grid item.
8036 * GridItemCollection.cs: Add an internal Clear method, to allow us to
8037 clean the items if needed (specially for controls implementing
8038 ICustomTypeDescriptor and returning a variable number of properties).
8041 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
8043 * TextControl.cs: Clean up and document the Insert function.
8045 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8047 * TextControl.cs: Make sure we know our start point for updating the view
8048 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
8051 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8053 * ListView: Couple of corcompare fixes.
8055 2007-10-17 Geoff Norton <gnorton@novell.com>
8057 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
8058 the title caption of real window.
8060 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8062 * ErrorProvider.cs: Add the error provider's internal window to a
8063 containercontrol when the parent changes. [Fixes bug #329714]
8065 2007-10-17 Geoff Norton <gnorton@novell.com>
8067 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
8068 When we make a new window; restore the old active window - fixes dialogs.
8070 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8072 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8073 when modifying a property, and if found then invalidate as
8075 Fixes part of #324865.
8077 2007-10-17 Geoff Norton <gnorton@novell.com>
8079 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
8080 highly experimental. Fixed coordinate translation. Fixed window locations.
8081 Initial support for clipping. Implemented NC areas and menus. Support for
8082 launching from command line from Will Johansson (wjohansson@atacomm.com).
8083 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8084 wjohansson@atacomm.com)
8085 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8086 Hwnds now track the existence of all of their children for Mac clipping.
8087 * XplatUI.cs: Re-enabled the native driver on the Mac.
8089 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8091 * Line.cs: Move the InsertString function to here.
8092 * TextControl.cs: Cleanup some duplicate code, move some InsertString
8093 functionality to Line.
8095 2007-10-17 Geoff Norton <gnorton@novell.com>
8097 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
8099 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
8101 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8102 always setting value to true.
8103 * Form.cs: When changing AcceptButton, notify new and original button.
8105 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
8107 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8108 a custom control that implements IButtonControl instead of an actual
8109 button. [Fixes bug #334244]
8111 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8113 * Form.cs: Change SelectActiveControl to internal, we need to call it in
8116 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8117 active control when activate a new mdi window.
8121 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8123 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8127 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8129 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8130 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
8131 so we always recalculate the whole document instead of just the new part.
8134 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8136 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8137 when the mouse was to the left of the first character in the line.
8139 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8141 * TextBox.cs, TextBoxBase.cs: When setting the document's password
8142 character, use the property instead of the variable so that the
8143 UseSystemPasswordChar property is taken into account.
8146 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8148 * FolderBrowserDialog.cs: When a node is right clicked and the "New
8149 folder" contex menu appears, actually add the new folder to it, even
8150 if the node is not currently selected. Still use SelectedNode in case
8151 there wasn't found a node under the pointer.
8154 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8156 * ListViewItem.cs: When retrieving the focused state, the index check
8157 should be done only when ListView is in virtualmode, as it is an
8158 expensive check for normal mode.
8160 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8162 * ListViewItem.cs: Make the focus state information be stored
8163 in the ListView, not in the items. This is done to match the MS
8164 behaviour for items that are not yet part of a ListView control;
8165 besides that, since just one item can be focused at the same time,
8166 we save a little space in our items.
8167 Fixes part of #331643.
8169 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8171 * ComboBox.cs: When focus is lost, deselect the text. When setting
8172 text of control, select all text. Do not hide selection when control
8173 does not have focus. Fixes bug #333663.
8175 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8177 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8178 instead of ArgumentException when SelectionLength is set to negative
8179 value. Added same check to SelectionStart. Code formatting.
8181 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8183 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8184 or SelectionStart. Code formatting.
8186 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8188 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8189 indicating that there was not a previous drag-and-drop operation going
8191 Fixes part of #325071.
8193 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8195 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8196 AllowedEffect, don't let the drop operation happen.
8199 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8201 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8203 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8205 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8208 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8210 * Line.cs: Add a method that finds the tag that contains an x-coord.
8211 * LineTag.cs: Add a method that finds the character at an x-coord using
8212 a binary search, the old way was a linear search.
8213 * TextControl.cs: Change FindCursor to use the above new methods.
8215 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8217 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8218 value different than AllowedEffect). This should be possible to
8219 indicate that dragging is not possible in some control/area.
8221 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
8223 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
8224 descent internally when font changes instead of outside code being responsible
8226 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8227 instead of accessing internal variables.
8229 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
8231 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8232 remove special treatment for ArrangeIcons since it is already arranged.
8234 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8236 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8237 the Win32 backend uses Color.
8238 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8239 Refactor to store a Color instead of a Brush for Color.
8241 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8243 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8244 away. I didn't realize I needed this when I refactored these earlier.
8246 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8248 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8249 store a Color structure and use the ResPool for back color instead of
8250 holding onto brushes.
8252 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8254 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8257 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8259 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8260 to recalculate its size. Fixes a part of bug #331052.
8262 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8264 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8265 button. Fixes a part of bug #331052.
8267 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8269 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8271 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8275 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8277 * TextBoxTextRenderer.cs: Don't make this a static class, as static
8278 doesn't exist in 1.1. (Thanks jb!)
8280 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8282 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8283 class to allow us to use different backends on different platforms.
8284 Linux uses the current [Draw|Measure]String backend. Windows uses
8285 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8286 of GDI+. This leads to better looking text and more accurate measurements
8287 on Windows, fixing many of the reported issues.
8288 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8290 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8292 * FolderBrowserDialog.cs: When running on Windows,
8293 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8294 since we must match both "C:" and "C:\" forms. A little hackish, but
8298 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8300 * ListView.cs: When calling EndEdit (after editing an item),
8301 create a new instance of LabelEditEventArgs to keep clean the fields
8302 in case we get a new call to BeginEdit; also do Application.DoEvents
8303 to have focus in synch. This is a fix similar to TreeView's #325244.
8305 2007-10-07 Andreia Gaita <avidigal@novell.com>
8307 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8308 * WebBrowserBase.cs: Added dialog support, calling the
8309 WebBrowserDialogs classes for each specific dialog type.
8311 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8313 * ListView.cs: When the last item is focused and is removed,
8314 move the focus to the previous item (in Items order). This is what MS
8318 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8320 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8321 instead of the opposite (RemoveAt call Remove). This is a better
8322 approach since we don't need to to a pair of traversals when using
8325 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8327 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8328 check that the node actually has nodes, and if not, move to the
8329 parent node instead.
8332 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8334 * TreeView.cs: Move the previous change to the general case (to
8335 call Application.DoEvents in cases where the method was called by
8338 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8340 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8341 call Application.DoEvents. This is neccessary when we get a call to
8342 BeginEdit from an AfterLabelEdit handler, because the focus always
8343 goes to the TreeView, even if we try to give it to our
8344 LabelEditTextBox. The call do Application.DoEvents seems to
8345 synchronize the focus, basically.
8348 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8350 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8351 should be false. This also removes some nasty recursive paths. Fixes
8354 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
8356 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8357 state to normal. Also resize window when cascading. Fixes #325433.
8359 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8361 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8362 DefaultForeColor, as drawing empty colored lines isn't very useful.
8363 [Fixes the not drawn lines part of bug #324358]
8365 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8367 * TextControl.cs: Move Line and LineTag classes into separate files to
8368 make things easier to find.
8369 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8370 * RichTextBox.cs: Capitalize LineTag.Length property access.
8371 - This is purely an organizational/formatting change, no logic changed. -
8373 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8375 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8378 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8380 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8383 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8385 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8386 prevent calling of OnBackColorChanged. Fixes #325321.
8388 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8390 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8391 because control can be disabled because owner is disabled.
8393 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8395 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8396 string.Empty, test failed from previous change.
8398 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8400 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8401 is null, not String.Empty. See bug #323038.
8403 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
8405 * TextControl.cs: Change the margins to match MS a little better.
8406 Still not perfect for X11 due to some DrawString differences, but
8407 is still an improvement over the old stuff.
8408 Partially fixes #324467.
8410 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8412 * FolderBrowserDialog.cs: When using MyComputer as
8413 RootFolder, let absolute paths be considered as valid ones. Also, use
8414 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8415 for Windows compatibility.
8416 Partially fixes #325247.
8418 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8420 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8421 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8422 method, since it causes the dialog to not select folders directly
8423 under the root path (when setting SelectedPath property).
8425 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8427 * TreeNode.cs: When calling Expand/Collapse and need to call
8428 ExpandBelow/CollapseBelow respectively, take into account
8429 partially visible nodes (previously Expanding/Collapsing
8430 a partially visible node in the bottom was not updating its +- sign).
8432 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8434 * TreeView.cs: When calling Expand on a TreeNode, and we need to
8435 expand nodes below (ExpandBelow), scroll the entire Viewport
8436 area if the node is above it and not visible (instead of scrolling
8437 the area from node's Bottom, which applies only when the node is
8441 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8443 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8444 node in the bottom area (as .Net does). This is done to preserve the
8445 scroll position when ExpandAll is called before handle is created for
8446 the 1.1 profile (bottom area, as opposed to top area in 2.0).
8449 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8451 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
8452 bottom area if we are in fact not using the vertical scroll bar.
8455 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8457 * Control.cs: Comment out a double buffering optimization that doesn't
8458 take into account invalidates created in OnPaint, causing the control
8459 to never be redrawn. It would take quite a bit of work to work around
8460 this, but I left it commented with an explanation for later possible
8464 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8466 * Control.cs: Ask parent to perform a layout if control is AutoSize and
8468 * RadioButton.cs: Implement GetPreferredSizeCore.
8471 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8473 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8476 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8478 * Application.cs: Move the sync context stuff to Run instead of RunLoop
8479 so that it doesn't get uninstalled on modal forms.
8480 * Control.cs: Install a sync context when a control is created.
8481 * WindowsFormsSyncronizationContext.cs: Create a private static control
8482 to invoke on. This is easier than trying to find a created control we
8486 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
8488 * Application.cs: Install a WindowsFormsSynchronizationContext in the
8489 run loop, and uninstall it when done.
8490 * WindowsFormsSynchronizationContext.cs: Implement.
8491 [Fixes the common case in bug #327608]
8493 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
8495 * DataGridViewCellCollection.cs: Added argument checks for indexers.
8496 Use case-insensitive lookup of column name in indexer. Code
8499 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8501 * TreeNode.cs: When collapsing or expanding a node, check whether its
8502 change will affect the visible area (we were previously doing a
8503 IsVisible check, but that check is not enough since children nodes
8504 could be still visible). Fixes part of #325266.
8506 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8508 * TreeView.cs: Always select the first node when the TreeView gets
8509 focus if there is no currently selected node.
8512 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8514 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8515 node being selected is null.
8516 [Patch from Yves Bastide fixes bug #326858]
8518 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8520 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8521 whether all the parent nodes are expanded.
8522 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8523 call RecalculateVisibleOrder if all previous nodes are expanded.
8524 Before that we were doing a IsVisible check, but sometimes the node
8525 is not in the visible area, but _should_already be ready, because of
8526 all previous nodes are expanded. Fixes #325259.
8528 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8530 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8531 portion of the item is clicked.
8533 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8535 * TextControl.cs: Do not tell the system to move the cursor if the
8536 textbox isn't focused. Fixes part of bug #322668.
8538 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8540 * ComboBox.cs: When there are no items, do not show the dropdown if
8541 the down arrow is clicked. Fixes part of bug #322668.
8543 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8545 * ToolStripComboBox.cs: Manually set the size of this control in the
8546 constructor, as it doesn't seem to be the same as DefaultSize.
8547 Fixes a failing monobuild test.
8549 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8551 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8552 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
8554 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8556 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8557 Desktop. This lets it work for people who have moved their desktops
8558 from the default location on windows. For people who have not, both
8559 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
8561 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8563 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8564 but when the base constructor sets this, the control is null. Set it
8565 again in the constructor. Fixes a failing monobuild test.
8567 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8569 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8571 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8574 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8576 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8577 will handle it themselves.
8578 * ToolStripItem.cs: When deciding what the text of a tooltip should
8579 be, use the Text property instead of the text field.
8580 * ToolStripTextBox.cs: Handle tooltips.
8581 [Fixes bugs #325417 and #325973]
8583 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8585 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8586 left click. Fixes the easy part of bug #325969.
8588 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8590 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8591 bug #325406, but set a minimum for StatusStrip to 22 to keep
8592 bug #325390 fixed. I think this minimum would have been figured
8593 up automatically if the grip was actually a ToolStripItem, but it
8596 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8598 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8599 as this is apparently the actual value used by .Net. Also apply
8600 ItemPadding in Details view only, and decrease the general width padding,
8601 to have only the needed. This should fix #324340 in Windows too.
8603 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8605 * ListViewItem.cs: Don't Invalidate item if parent is inside
8606 a BeginUpdate/EndUpdate block. This prevents to have differences
8607 between the ListView and items state, as well as avoid some exceptions
8609 * ListView.cs: Make 'updating' field internal.
8611 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8613 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8614 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8615 size if appropriate.
8616 Fixes reopened bug #325414.
8618 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8620 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8621 * ToolStripItem.cs: Invalidate before and after our new autosize when
8623 Fixes reopened bug #325390.
8625 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8627 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8628 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
8631 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8633 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
8635 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8637 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8638 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8641 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8643 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
8644 item to select when the ToolStrip is selected.
8645 * ToolStripControlHost: Realign the control when the bounds or visibility
8647 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8648 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8650 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8651 base.OnPaint. Was causing text not to be drawn.
8653 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8655 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8657 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8659 * TreeView.cs: When creating the label edit text box,
8660 set is initially to Visible = false. This is done to
8661 prevent a confusion in the layout which makes it to lose
8662 focus when shown the first time. Fixes part of #82592.
8664 2007-09-13 Andreia Gaita <avidigal@novell.com>
8666 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8668 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8670 * ToolStrip.cs: Take Margin into account when calculating preferred
8671 size. Also, allow preferred size to get smaller than the explicit
8673 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
8674 First step towards fixing bug #82747.
8676 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8678 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
8679 full row select background over the plus/minus glyph. Also, turn
8680 off the focus rectangle for full row select since MS doesn't seem
8681 to ever paint it. [Fixes bug #81839]
8683 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8685 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
8686 This was causing keyboard opened dropdowns to lose focus.
8689 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8691 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
8692 ClientRectangle instead. [Fixes bug #82838]
8694 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8696 * SplitContainer.cs: We can't reset Visible on every layout because
8697 someone may have set Visible = false explicitly on a SplitterPanel.
8698 Make sure when we switch orientation the SplitterDistance does not
8699 change. Fixes two failing tests.
8701 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8703 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
8704 TextRenderer, since the latter is only available in 2.0.
8706 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
8708 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
8709 * SplitContainer.cs: Implement FixedPanel layouting.
8711 2007-09-12 Andreia Gaita <avidigal@novell.com>
8713 * WebBrowserBase.cs: setup shutdown routine
8715 2007-09-12 Andreia Gaita <avidigal@novell.com>
8717 * Application.cs: Let keyboard events that are targetted
8718 to non-mwf windows hosted inside mwf (as in, webbrowser),
8719 propagate properly. Fixes keyboard handling on the webbrowser.
8721 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8723 * ListView.cs: When handling MouseUp event and we are
8724 highligting a node with the mouse right button, don't trigger
8725 Before/AfterSelecting event, since we are not actually selecting
8728 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8730 * TreeView.cs: When editing a node, modify the edit text box
8731 depending on the text length (as you are typing), like MS does.
8733 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8735 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
8736 Override GetPreferredSizeCore to perform calculations. Remove custom
8737 autosize logic. [Fixes bug #82739]
8739 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8741 * TextBoxBase.cs: Modified should default to false.
8743 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8745 * Control.cs: Update the anchoring distances even when layout is supspended.
8746 Patch provided by George fixes bug #82805.
8748 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8750 * Control.cs: Provide a setter for ExplicitHeight.
8751 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
8752 remove the hacks in here for requested_height.
8755 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8757 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
8758 Maximum to lower that its current Value caused an ArgumentException by setting
8759 the Value to the new Maximum.
8761 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8763 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
8764 handle moves to the closest tick when it is being dragged.
8767 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8769 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
8770 can't let them count as real items when calculating where to merge in the
8771 user's items. [Fixed bug #82786]
8773 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8775 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
8776 who want to add a menu item directly onto a toolstrip.
8777 [Fixes bug #82775, part II]
8779 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8781 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
8782 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
8783 don't set it to available.
8784 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
8785 [Fixes bug #82727, part II]
8787 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8789 * StatusStrip.cs: Change item placement to None if not visible.
8790 * ToolStripItem.cs: Invalidate when InternalVisible changes.
8791 These should have been committed to fix 82723, but I missed them.
8793 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8795 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
8796 Click, and that it is only called once.
8797 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
8798 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
8802 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8804 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
8806 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
8807 instead of 8, just like above. Partially fixes #82734.
8809 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8811 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
8814 * ListView.cs: Remove extra space between rows in Details view (match
8816 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
8819 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
8821 * Application.cs: Modified ProductVersion to return value of
8822 AssemblyInformationVersion if available, and fallback to assembly
8823 version. Fixes bug #82746. Code formatting.
8824 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
8827 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8829 * Control.cs: When updating ZOrder for a child control,
8830 take into account the implicit ones (we need it in our controls
8831 using them). Fixes #82642.
8833 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
8835 * ToolStripItem.cs: Add support for animated images.
8838 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
8840 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
8841 visible. [Fixes bug #82727]
8843 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8845 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
8846 so we repaint using the new size. [Fixes bug #82723]
8848 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8850 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
8851 option. [Fixes bug #81779]
8853 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8855 * TreeView.cs: Override HandleClick because the StandardClick style is
8856 set to false. According to MSDN (and testing), the click events should
8857 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
8859 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8861 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
8862 the border will disappear. Fixes reopened #82653.
8864 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8866 * Control.cs: If the control is autosize, and its preferred size changes
8867 when it lays out its children, tell its parent so it can be re-layed out.
8868 Fixing some of the fallout from r85433.
8870 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8872 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
8873 and CheckBox share some code.
8875 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8877 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
8878 the TrackBar, not every mouse move. [Fixed bug #82718]
8880 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8882 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
8883 under 2.0 rendering. [Fixes bug #82657]
8885 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8887 * TreeView.cs: If we found a TreeNode to display a context menu, but
8888 it doesn't have one to show, let the TreeView display its menu
8889 instead. [Fixes bug #82680]
8891 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8893 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
8894 OnPaintInternal instead. Give the internal TextBox a Border property
8895 so it can draw itself more correctly. [Fixes bug #82653]
8897 2007-09-06 Zoltan Varga <vargaz@gmail.com>
8899 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
8901 2007-09-05 Everaldo Canuto <everaldo@simios.org>
8903 * ComboBox.cs: Adjust combobox button state to reflect current state when
8904 back to enabled = true. Fixes first issue of #82654.
8906 2007-09-05 Everaldo Canuto <everaldo@simios.org>
8908 * Control.cs: Fix last patch regression, prevent forms to update zorder when
8909 setting visible property.
8911 2007-09-05 Everaldo Canuto <everaldo@simios.org>
8913 * Control.cs: Update zorder after control creation in SetVisibleCore, it
8914 fix zorder for controls initially created as non visible. Fixes #82667.
8916 2007-09-04 Everaldo Canuto <everaldo@simios.org>
8918 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
8919 mimic win32 look. Fixes #82656.
8921 2007-09-01 Zoltan Varga <vargaz@gmail.com>
8923 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
8924 Stubs for new net 3.5 classes.
8926 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8928 * ListViewItem.cs: In ListViewItemCollection operations calculate
8929 Layout for owner as well as invalidate it. Fixes part of #82642.
8931 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
8933 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
8934 when returning Enabled. [Fixes bug #82651]
8936 2007-08-30 Everaldo Canuto <everaldo@simios.org>
8938 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
8940 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8942 * ListView.cs: Put item padding info in a single place
8943 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
8945 * ThemeWin32Classic.cs:
8946 * Theme.cs: Likewise.
8948 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8950 * ListView.cs: When a ListViewSubItem instance is invalidated,
8951 invoke Invalidate on parent ListViewItem, not parent ListView.
8954 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8956 * ListView.cs, ListViewItem.cs: corcompare stuffs.
8958 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8960 * BindingMemberInfo.cs: Implement == and != operators.
8962 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8964 * HtmlElementEventArgs.cs: Implement properties.
8966 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8968 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
8970 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8972 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
8973 Add (string,string,string) to implement the imagekey. It turns out, we
8974 use the requested imagekey whereas .Net does not. So I broke ours to match
8977 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8979 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
8981 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8983 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
8985 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
8987 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
8988 up-to-date. Fixes bug #82618.
8990 2007-08-29 Everaldo Canuto <everaldo@simios.org>
8992 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
8993 reflect document changes. Fixes #82367.
8995 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8997 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
8998 as well as add new ones. This should make work the BackgroundImage
8999 property for ListView again.
9001 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9003 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9004 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9005 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9007 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9009 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9012 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9014 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9015 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9017 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9019 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
9020 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9022 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9024 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9026 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9028 * GridEntry.cs: Implement GetService.
9030 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
9032 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9033 for label editting, make sure we focus back on the TreeView.
9036 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9038 * ListView.cs: Add some 2.0 overrides.
9040 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9042 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9043 because getter dont returns right value before handle creation. Thanks
9044 to George. Fixes #82569.
9046 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9048 * Theme.cs: Revert last patch, it causes error under win32.
9050 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9052 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
9053 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
9054 logical Desktop rather than the physical file system location. Fixes #82603.
9056 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
9058 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9059 for the patch. Fixes #82568.
9061 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9063 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9066 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9068 * ListViewInsertionMark.cs: New stubbed class.
9070 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9072 * FolderBrowserDialog.cs: When adding folder, immediately create the
9073 directory with temporary name and rename the directory when editing
9074 finishes. This matches MS. Ensure the node for the new folder is
9075 selected and LabelEdit is disabled, when editing is either finished
9078 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9080 * TreeView.cs: When editing label of node, ensure node is visible.
9082 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
9084 * PropertyGridView.cs: Set the value only if it has changed.
9086 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9088 * ListView.cs: Some more code refactoring to add support sorting
9089 with groups (now for Details view). Remove unused code also.
9091 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9093 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9094 Not a big fan of reacting immediately to a field in an EventArg, but that's
9095 the way it's done. (This is part of the previous commit that got left out.)
9097 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9099 * FolderBrowserDialog.cs: Removed need for separate description field.
9100 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9101 has focus when dialog box is displayed again, regardless of what
9102 button was pressed the previous time. Set RootFolder and SelectedPath
9103 each time dialog box is displayed. This ensures the treeview is
9104 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9105 when it does not have focus. Added support for more special folders.
9107 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9109 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
9110 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
9111 it resets the edit_args.
9112 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9115 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
9117 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9118 button to match MS. Provide more meaningful exception message for
9119 invalid RootFolder value. Use zero-length string when SelectedPath
9120 is set to null. Allow non-rooted paths in SelectedPath, but ignore
9121 them in FolderBrowserTreeView. Allow folders to be created in
9122 RootFolder. Fixes bug #82576.
9124 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9126 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9127 since we need to take into account the group headers and the margin
9129 * ListViewGroup.cs: Add a rows field to store the number of rows per
9132 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9134 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9135 Anyways, let's just follow the lead.
9137 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9139 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9140 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
9141 controls in GetPreferredSizeCore.
9142 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9145 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9147 * PrintDialog.cs: Need to instantiate the form variable here too.
9149 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9151 * ListView.cs: Do some reorganization to support sorting in groups,
9152 by doing the layout sequentially in ListView.Items. Also add support
9153 for the Default Group, which should be available for items with no
9155 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9156 for storing layout info also.
9157 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9158 collection, as well as providing internal members to do a traversal
9159 including the default group (needed when doing layout/drawing).
9160 * ThemeWin32Classic.cs: When drawing group headers use internal
9161 ListViewGroupCollection members to take into account the default
9164 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
9166 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
9168 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9170 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9171 been created. If handle is created, we want arror keys. If we are editing
9172 a node, we want things like enter, esc, home, end, page up, page down.
9173 Allows Esc to work for FolderBrowserDialog.
9175 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9177 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9178 they close when ESC is pressed. Thanks Andy!
9180 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9182 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9183 This way we can tell if this is a CommonDialog provided with mono, or one
9184 that is being implemented outside by a developer. If it is an external one,
9185 the developer is responsible for showing their own form. We were showing
9186 our blank form after the developer showed his.
9187 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9188 PageSetupDialog.cs: Instantiate form variable in our constructor.
9191 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9193 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9194 and always return true. [Fixes bug #81616]
9196 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9198 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9199 TextBox. [Fixes bug #82549]
9201 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
9203 * FileDialog.cs: When Save/Open is clicked and no filename is selected
9204 or entered then do not close the dialog. Fixes bug #82539. Removed
9207 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
9209 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9210 code to this method. It is calling every time filter changes. This method
9211 will help to fix the bug #80887.
9213 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9215 * CheckBox.cs: Implement AutoSize calculation.
9217 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9219 * CheckBox.cs: Use new 2.0 rendering for 2.0.
9220 * Theme.cs: Method declarations for 2.0 rendering path.
9221 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9223 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9225 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9227 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9229 * ListViewGroupCollection.cs: Implement AddRange the right way, to
9230 only call Redraw on the parent one time.
9232 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9234 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9235 GetClipboardContent.
9236 * DataGridViewCell.cs: Implemented GetClipboardContent,
9237 GetEditedFormattedValue, GetFormattedValue.
9238 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9240 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9242 * TableLayoutStyleCollection.cs: corcompare fix.
9244 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9246 * DataObject.cs: Implemented retrieval of convertible / not convertible
9249 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9251 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9252 ourselves. This ensures the entire old bounds are repainted, in case our new
9253 size is smaller. [Fixes bug #82518]
9255 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
9257 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9258 flag to make fast handle of mouse events, without this the mouse move is
9259 handled in some manner, whether it is a mouse move or not. Fixes #81588.
9261 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9263 * ListView.cs: When doing layout calculations don't use a ref
9264 param to keep the current item; instead use its Index value (this
9265 is specially important when doing the layout with Groups
9266 and Items being sparse). Also don't take into account items added to
9267 the Group but not yet added to the main ListView.Items collection.
9269 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9271 * ListViewGroupCollection.cs: Forgot to mimic an issue
9272 in the indexer (don't assign the ListView owner for new values).
9274 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9276 * ListViewGroupCollection.cs: Make the string indexer use
9277 the int based indexer to re-use code, instead of duplicate the code.
9278 Also Redraw as needed and take into account null values.
9280 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9282 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9285 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9287 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9288 when other buttons are clicked or navigated to.
9290 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9292 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9293 it's XplatUIX11 that attaches them.
9295 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9297 * DataGridView.cs: If a column has been added, recreate the editing row.
9300 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9302 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9303 of the tag to draw. Makes disappearing text show up again.
9305 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9307 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9308 Contents. Fixes #82487.
9310 2007-08-19 Andreia Gaita <avidigal@novell.com>
9312 * Added HtmlElement.cs, HtmlElementCollection.cs,
9313 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9315 2007-08-19 Andreia Gaita <avidigal@novell.com>
9317 * BindingSource.cs: Implement this, dispose and getenumerator.
9318 * DataGridViewRowCollection.cs: Move the InvalidOperationException
9319 out of AddInternal, throw it only on public Add calls. The
9320 UsingWebBrowser sample was blowing up with this when setting the
9321 DataSource after adding DataBindings, so it's likely that .net
9322 only throws this exception when Add is called directly.
9324 * ToolStripControlHost.cs: Return the hosted control's text
9325 property, and not the ToolStripItem one (it would always return
9328 * HtmlDocument.cs: Implement GetElementById and All
9329 * WebBrowser.cs: Remove exception on set_DocumentStream.
9331 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9333 * Form.cs: Fix the max and min value for opacity (0~1).
9335 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9338 * DataGridTableStyle.cs: Default header font is now null, on getter it
9339 returns datagrid font when is null. On setter permits null.
9342 - When ResetHeaderFont set header font to null.
9343 - On EndInit set grid_style.DataGrid.
9345 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9347 * TabControl.cs: Fix regression in default padding x.
9349 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9351 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9353 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9355 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9356 not 2. Fixes #82229.
9358 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9360 * TabControl.cs: Fix tab size when image height is less than text height.
9361 Partially fixes #81837.
9363 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9365 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
9366 "alt + tab". It works only for Win32, for X11 theres no way to remove window
9367 from taskbar and keep it on "alt_tab". Fixes #81722.
9369 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9371 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9372 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
9373 Fixes #80877 and #79418.
9375 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9377 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
9378 between position and one of the screen borders. Fixes #82349.
9380 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9382 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9383 the MessageBox in the taskbar. Fixes #82457.
9385 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9387 * MessageBox.cs: Fix form size when icon is set and text height is bigger
9388 than icon. Fixes #82468.
9390 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9392 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9393 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9394 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9395 Refactored HandleNCCalcSize somewhat to avoid code duplication.
9396 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9397 FormBorderStyle to decide if we're calculating a new size from the
9398 client size or not. CreateParams: Don't fake tool windows, only the X11
9399 backend manages toolwindows manually.
9401 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9403 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9404 ObjectDisposedException.
9406 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9408 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
9409 in OnLoad should not have any effect. [Fixes bug #82470]
9411 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9413 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9414 paint for controls that create their own ToolTipWindow instead of
9415 going through ToolTip.
9417 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9419 * ToolTip.cs: Make Hide internal instead of public to match MS API.
9421 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9423 * ListViewGroupCollection.cs: Use generic List instead of an
9424 ArrayList, since this collection is 2.0 only.
9426 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
9428 * ToolTip.cs (Hide): Made public to make the build work (should
9429 this not be public?).
9431 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9433 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9435 * ToolTip.cs: Add an internal Visible property to facilitate transition.
9437 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9439 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9440 PopupEventHandler.cs: Make these internal for 1.1.
9441 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9442 use ToolTipWindow internals.
9443 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
9444 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9446 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9448 * X11Dnd.cs: Add a null check.
9450 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9452 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9453 nothing else succeeds. Fixes #82453.
9455 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9457 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9458 rectangle if we're painting to another window than the one the paint
9459 message was generated on. Simplify the code somewhat, which makes
9460 PaintEventEnd also simpler.
9462 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9464 * Control.cs: When changing parent of a form, let the form decide whether
9465 XplatUI.SetParent should be called or not.
9466 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9467 recreating the handle. If the new parent's handle isn't created, don't
9468 recreate our handle, just destroy it. CreateParams: Check if the
9469 parent's handle is created before fetching it.
9471 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9473 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9474 Update calls to PaintEventStart/End to take a Message argument.
9475 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9476 take a Message argument.
9477 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9478 Message argument, and handle the case where we don't paint to the window
9479 for which the paint message was generated.
9481 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9483 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9484 Marshal.GetLastWin32Error. Plug nasty memory leak in
9485 PaintEventStart/End, we were creating a DC we weren't releasing.
9487 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9489 * ListView.cs: Add Groups support in Details view. Also have a small
9490 method to do the layout of the group header. Don't use a separate
9491 method to do the groups calculation in Icons view, since our methods
9492 are now a little simpler.
9493 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9495 * ThemeWin32Classic.cs: Likewise.
9497 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9499 * Application.cs: Add FilterMessage method and rework our message loop
9502 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9504 * Application.cs: Add some methods and stub a few methods that are
9505 pretty much never used.
9507 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
9509 * TreeNode.cs: Add some serialization methods.
9511 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9513 * ListView.cs: In ListViewItemCollection have a
9514 'is_main_collection' field to not modify ListViewItem.ListView
9515 when using it as ListViewGroup.Items (and not ListView.Items)
9516 and also don't modify selection state (.Net behaviour).
9517 Instead, set group for items contained in a ListViewGroup.Items collection.
9518 * ListViewItem.cs: Simplify some code in Group setter.
9519 * ListViewGroup.cs: use the new .ctor to pass the current instance
9520 to the ItemsCollection.
9521 * ListViewGroup.cs: Set the ListView property for ListViewGroup
9522 instances when adding/removing. Also make Remove use RemoveAt, which
9523 should perform better.
9525 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9527 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9528 that crept into the 1.1 profile.
9530 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9532 * ToolBarButton.cs: Implement ImageKey.
9534 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9536 * ToolBar.cs: Implement ScaleControl/ScaleCore.
9538 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9540 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9541 created, it might have gotten destroyed since we last checked. Fixes
9544 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
9546 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9547 tooltip will hide when mouse is moved off the control.
9550 2007-08-11 Andreia Gaita <avidigal@novell.com>
9552 * WebBrowserBase.cs, WebBrowser.cs: add implementation
9553 using Mono.Mozilla for loading and navigating webcontrol
9555 The initial implementation was done on
9556 /trunk/mozembed/tests/browser , and copied here.
9558 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
9560 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9561 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9563 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9565 * DataGridView.cs: Add support for an editing row. Fixes #82226.
9566 RowTemplateFull: throw an exception if a column doesn't have a template.
9567 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9568 add the row just before it.
9569 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9571 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9572 DataGridView field to be able to reach the grid's editing row.
9574 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9576 * ToolTip.cs: If the control's handle hasn't been created when it has a
9577 tooltip set on it, don't check to see if we need to show the tooltip. This
9578 check was causing the control's handle to be created.
9581 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9583 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9585 Handle Not Created -1 0
9589 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9591 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9594 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9596 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9597 * ToolTip.cs: Implement some properties and owner draw.
9599 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9601 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9602 show them again, since setting visibility causes a paint, causing an
9603 endless loop (instead use a temporary and set it all when it's known if
9604 they should be shown or not). Fixes #79265.
9606 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9608 * DataGridView.cs: Only do a full column/row selection if a header was
9609 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9610 isn't pressed, deselect everything before selecting something.
9612 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9614 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9615 behaviour according to bug #81075 - they are returned in the order they
9616 are selected. Fix HitTest to check if the point is within any of the
9617 headers. Allow for row/column selection when in ColumnHeader or
9618 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9619 the row and column to call when their selected state changes, and
9620 updated selected_[rows|columns] whenever SetSelected* is called.
9621 * DataGridViewBand.cs: Initialize isRow correctly. Call
9622 SetSelected[Row|Column]CoreInternal when the selected state changes, and
9623 add a SelectedInternal to avoid StackOverflows.
9624 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9625 ReadOnly no matter what.
9626 * DataGridViewSelectedColumnCollection.cs,
9627 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9628 the items in reverse order (just as MS does...)
9630 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9632 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9633 itself, not part of a mnemonic. [Fixes bug #82378]
9635 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9637 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9638 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9639 the DGV, the column, the row, or the cell itself is readonly.
9641 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9643 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9645 * FileDialog.cs: Same.
9646 * TextRendered.cs: Same.
9647 * FolderBrowserDialog.cs: Same.
9648 * TextBoxBase.cs: Same.
9649 * Application.cs: Same.
9651 * ThemeClearLooks.cs: Same.
9653 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9655 * XplatUI.cs: Added RunningOnUnix property to be used by controls
9656 instead of duplicating these checks everywhere.
9657 * FileDialog.cs: Use case-insensitive comparison for populating the
9658 DirComboBox when not running on unix. Fixes bug #82385.
9659 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
9662 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9664 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9665 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9666 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9667 cell and column selection with ctrl and shift pressed. Call the correct
9668 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9669 the corresponding virtual method (PaintBackground to paint background,
9671 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
9672 either the column, row or the cell itself is selected.
9673 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
9675 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
9676 here. When the row is selected, don't select all cells. Each cell now
9677 queries the row to see if the row is selected.
9679 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9681 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
9684 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9686 * ListView.cs: In ListViewItemsCollection check that owner is
9687 not null before trying to access it (this happens quite often
9688 using Groups). Also don't duplicate calls by calling CollectionChanged
9691 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9693 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
9694 when we are dismissed to clear keyboard mnemonics.
9695 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
9696 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
9697 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
9698 was activated by keyboard or the OS tells us to always draw them.
9699 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
9700 [Fixes bugs #82376, #82377]
9702 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9704 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
9705 shot at having it because Alt was pressed.
9706 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
9707 the first real menu item.
9708 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
9709 a mnemonic if Text is null.
9712 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9714 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
9715 search do check whether the item is already contained in the
9716 collection or not; instead check if the owner of the item is the same
9717 as ours. Also, remove a redundant check in the same method.
9719 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9721 * Control.cs: Allow the clip region to be set back to null.
9722 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
9723 [Fixes button still showing up in bug #82370 when Show Through is turned off]
9725 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9727 * GridEntry.cs: Add a null check.
9728 * PropertyGrid.cs: When checking for existing grid entries, ignore category
9729 entries. Fixes #82297.
9731 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9733 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
9736 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9738 * ListBox.cs: Implement ScaleControl.
9740 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9742 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
9744 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
9745 parent has a menu strip. Fixes #81689.
9747 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9749 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
9750 moments, so apply some fuzzy logic to determine if the mouse is still
9751 inside a control or not. Fixes #82288 (for the third time).
9753 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9755 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
9756 Don't create the child if it has been disposed already (may happen if
9757 the user closes the form the Load event).
9759 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9761 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
9764 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9766 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
9767 might call us after we've been destroyed, in which case our own private
9768 parent field is null. Fixes #82326.
9770 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9772 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
9773 check for setting the dropdown's owner.
9775 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9777 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
9778 before removing system menu items.
9780 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
9782 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
9784 * MdiControlStrip.cs: Added. These are the menu items used in mdi
9786 * ToolStrip.cs: Add a null check to mnemonics.
9787 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
9789 [Fixes most of bug #81689]
9791 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9793 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
9795 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9797 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
9799 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9801 * DataGridViewCell.cs: EditType: returns
9802 DataGridViewTextBoxEditingControl always.
9804 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
9806 * TextRenderer.cs: Remove the LineLimit string format flag from the
9807 DrawString fallback method so that things like buttons that aren't
9808 tall enough to draw a full line will still draw part of the text.
9809 [Fixes part of bug #82272]
9811 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9813 * DataGridView.cs: Implemented AutoResizeColumn(s).
9814 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
9815 according to the Alignment.
9816 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
9817 Implement alignment and padding when painting.
9818 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
9820 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
9822 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
9825 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9827 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
9830 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9832 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
9833 hide GetPreferredSize from public API.
9834 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
9835 * ToolStripItem.cs: Stub out drag and drop methods and events.
9836 * ToolStripManager.cs: Stub out Save/LoadSettings.
9837 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
9838 * ToolStripPanel.cs: Fix corcompare error.
9839 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
9840 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
9841 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
9843 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9845 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
9846 bounds height instead of PreferredHeight. Puts things back the way
9847 they were for height while still fixing the width. Fixes broken unit
9850 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9852 * Binding.cs: Implement 2.0 constructors and add a null check.
9854 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9856 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
9857 and fix row index (off by one).
9859 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9861 * PropertyGridView.cs: Remove debug output.
9863 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9865 * Control.cs: We need to reset the is_created flags when the handle is
9866 destroyed. Fixes #82187.
9867 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
9868 client coordinates if the window doesn't have a parent.
9869 Win32GetParent returns the parent or the owner, and for top-level
9870 windows with no parent (but with an owner) we were calculating the
9871 location from the location of the owner.
9872 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
9873 form has been disposed.
9874 * MdiClient.cs: Add a null-check.
9876 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
9878 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
9879 actually do auto-sizing. Override the internal GetPreferredSizeCore
9880 so we can provide an implementation that returns the current width
9881 and preferred height. Allows anchor = right to work with TextBox 2.0.
9884 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9886 * ListView.cs: Add support for navigating items in Groups mode, by
9887 creating a big matrix containing all rows and cols of all groups. When
9888 are in other mode than Details, pressing Up should have a similar
9889 behaviour as that one of Down (moving to the next available column if
9890 current one doesn't have an item in the requested row). Also, don't
9891 proceed to use groups if ShowGroups is false.
9892 * ListViewGroup.cs: Add an internal int field to store the starting
9893 row of the group (used by the big matrix used for navigating the
9895 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
9898 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
9900 * ToolStripDropDown.cs: When we do Show, start with the
9901 DefaultDropDownDirection, but if our popup menu is going to off-screen,
9902 modify the direction to keep it on screen. [Fixes bug #82210]
9904 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
9906 * FileDialog.cs: Accept any FilterIndex value, and store it
9907 unmodified. When FilterIndex is less than 1, or greater than number
9908 of filters, then default to first filter. Only add filter extension to
9909 file if user did not specifiy an extension. When type of dialog is
9910 OpenFileDialog and DefaultExt is set, then only use filter extension
9911 if: CheckFileExists is true and no file wih the default extension
9912 exists, or CheckFileExists is false, and user specified file does not
9913 exist. When CheckFileExists is true, then add first extension of
9914 selected filter that matches existing file. Perform checks for
9915 existing file, overwrite and create after extension has been added to
9916 file name. When CheckFileExists is true and type is SaveFileDialog,
9917 then only consider first filter extension if DefaultExt is set.
9918 When CheckFileExists is true, then ignore DefaultExt if file with that
9919 extension does not exist. Also perform check for existing file when
9920 type is SaveFileDialog. Changed some field to constants.
9922 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9924 * ListView.cs: Take into account the region used by header
9925 control when doing the vertical scroll (this way we invalidate
9926 the precise area, and don't get any dirty one).
9928 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
9930 * FileDialog.cs: Check for valid filterIndex on button open/save.
9933 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9935 * ListView.cs: Update some layout calculations in details view
9936 and clean the code in a pair of assignations.
9938 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9940 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
9941 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
9942 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
9943 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
9945 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9947 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
9948 performance of thread-safe Graphic methods. (Thanks rolf!)
9950 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9952 * ListView.cs: When doing the layout calculations, don't calculate
9953 scroll bars before handle is created. This is unnecessary and also
9954 calculating them before handle creation item causes a number of random
9955 bugs (which begin to appear after Chris' big patch for handle creation
9958 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9960 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
9961 for things that don't have a Graphics object. Currently, things just use
9962 the static Hwnd.bmp_g which is not thread safe.
9964 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9966 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
9967 dialog. Fixes #82187.
9969 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9971 * DataGridViewElement.cs: Initialize state.
9972 * DataGridView.cs: Forward a few Mouse events to cells. Add
9973 GetRowInternal and GetCellInternal that doesn't unshare rows.
9974 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
9975 don't use the index, but look it up. Add
9976 DataGridViewControlCollection.RemoveInternal to remove controls
9977 that Remove won't remove (scrollbars, edit control).
9978 * DataGridViewColumn.cs: Initialize State correctly.
9979 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
9980 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
9982 * DataGridViewRowCollection.cs: Implemented shared rows.
9983 * DataGridViewRow.cs: Throw exceptions as MS do.
9984 * DataGridViewCell.cs: A few properties are implemented by a
9985 Get<Property> method, so move implementation there and remove the
9986 NIEX in the method. Add a bunch of OnXInternal that DataGridView
9987 calls when necessary.
9988 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
9989 complicates matters.
9990 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
9993 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
9995 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
9996 the children controls. Instead, we will just set up the proper docking for the
9997 children controls so we don't have to worry about it. [Fixes bug #82188]
9999 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10001 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10002 canceling and correct Before/AfterLabelEdit properties as layed out in bug
10003 81847. [Fixes bug #81847]
10005 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10007 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10008 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
10009 an explicit size based on the design-time size of the text. Since our fonts
10010 may not match this explicit size, we tend to cut off the ends of people's labels.
10012 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
10014 * Menu.cs: Add some missing methods to MenuItemCollection.
10016 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10018 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10019 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10020 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10021 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10022 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10023 * DataGridViewElement.cs: State defaults to Visible.
10024 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10025 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10027 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10029 * Control.cs: Minor 1.1 corcompare fix.
10031 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10033 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10034 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10036 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10038 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10039 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10040 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10041 DataGridViewSelectedColumnCollection.cs,
10042 DataGridViewSelectedRowCollection.cs: Corcompare work.
10044 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10046 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
10047 it is autoset by VS2005 designer and the effect is barely noticeable.
10049 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10051 * TreeView.cs: Implement HitTest.
10053 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10055 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10056 manually adding and removing the control from the Controls
10058 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10059 EditingControlInternal property that tracks the editing control.
10060 Always keeping the scrollbars in the Controls collection, as MS
10061 testing confirms is the right behaviour.
10063 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10065 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10066 according to MSDN and new test.
10068 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10070 * TreeNode.cs: Implement ToolTipText.
10071 * TreeView.cs: Implement tooltips, NodeMouse* events.
10073 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10075 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10077 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10079 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10080 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10082 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
10084 * Control.cs, Form.cs, ContainerControl.cs,
10085 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
10086 for misc properties.
10088 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10090 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10091 * TreeView.cs: Implement StateImageList.
10093 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10095 * Form.cs: Don't check if the current form is the active form before
10096 activating it. Fixes #81904.
10098 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10100 * Form.cs: Don't check if the current form is the active form before
10101 activating it. Fixes #81904.
10103 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10105 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10107 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10109 * Form.cs: Don't try to position the form after loading if the form was
10110 disposed. Fixes #81969.
10112 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10114 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10115 properties. Had to change ToolBar into ToolStrip, which required a
10118 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10120 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10121 resized, fixes part of #79829 (vertical lines in toolbar).
10122 PropertyGrid: Refactored Populate* to something that's easier to
10123 follow at least for me, as well as splitting it up into several new
10124 methods, required to update only subitems when something has
10125 changed by a popup editor or listbox. Don't use events to check
10126 when any values are changed, since the events are unreliable (we're
10127 changing the objects the events are registered with, and if the
10128 event handling requires the objects to be immutable (objects stored
10129 in hashtables for instance), the events will never be raised).
10130 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10131 everytime we change a value, since events are unreliable.
10132 DropDownButtonClicked: For the same reason don't compare objects to
10133 check if it has changed or not, it would require all objects to
10134 derive Equals. Fix dialog location on windows, MS is doing weird
10135 things when creating parented forms.
10136 * GridEntry.cs: Add a SelectedObject setter.
10138 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10140 * TreeNode.cs: Add some corcompare attributes.
10141 * TreeNodeCollection.cs: Implement 2.0 stuffs.
10142 * TreeView.cs: Implement some 2.0 stuffs.
10144 2007-07-18 Andreia Gaita <avidigal@novell.com>
10146 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10149 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10151 * ListBox.cs: Implement custom tab offsets.
10153 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10155 * ToolStripContentPanel.cs: Support System renderer.
10156 * ToolStripControlHost.cs: Set RightToLeft to default to No.
10158 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10160 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10162 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10164 * CheckBox.cs: Chain TextAlign to base implementation instead of
10165 maintaining another one.
10167 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10169 * ButtonBase.cs: Fix an incorrect string constant.
10171 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10173 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10174 of creating one for measuring strings.
10176 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10178 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
10179 Implement MaxItemSize.
10181 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10183 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10184 for DeviceContext. Instead, use the static one available in Hwnd.
10185 Informal tests show this saves about 500k on formtest.exe.
10187 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10189 * ContainerControl.cs: Implement 2.0 AutoScaling.
10191 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10193 * ComboBox.cs: Work around bug #82120 (bug in mcs).
10195 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10197 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10198 Darken the focus color.
10200 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10202 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10204 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10205 X, Y instead of a rect for drawing text.
10206 - For ControlPaint.DrawCheckBox, center the check a little better when the
10207 checkbox is odd width. When drawing a flat checkbox, use a white background
10208 when state != inactive.
10209 [Fixes bugs #82097, 82100]
10211 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
10213 * ListControl.cs: When changing CurrencyManager, disconnect event
10214 handlers from previous one. Fixes bug #81771. Code formatting.
10216 2007-07-15 Andreia Gaita <avidigal@novell.com>
10218 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10219 full preview invalidation from layout invalidation, and only invalidate
10220 the layout when setting zoom or other properties. Invalidation should
10221 always be done even when resetting properties with the same values as
10222 what is there. Fixes #81744 and #79830.
10224 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10226 * ListView.cs: Implement initial support for Groups. Split some of the
10227 LayoutIcons code to render a partial list of the items (needed by
10228 items contained in ListViewGroup instances). Let the
10229 ListViewItemsCollection.ListView property be modifiable (needed when
10230 using Groups, too).
10231 * ListViewGroup.cs: Use a Bounds property rather than a Location
10232 one. Also invalidate the bounds when they get changed.
10233 * ThemeWin32Classic.cs: When drawing items, also draw the group header
10234 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10237 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10239 * ListView.cs: When space gets pressed and CheckBoxes is true,
10240 don't invoke the Begin and EndUpdate methods. We are generating
10241 a redraw of the entire control without need to do so.
10243 2007-07-13 William Holmes <billholmes54@gmail.com>
10245 * Control.cs: Changing logic in FindFlatForward and
10246 FindFlatBackward to handle multiple Controls with
10248 This fixes bug 81687.
10250 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
10252 * OSFeature.cs: Enable IsPresent.
10254 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10256 * Control.cs: Don't do anything in WmShowWindow if the control has been
10257 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10258 control is created, put on a form, the control is disposed (the
10259 form is never shown), and then we get a MapNotify, triggering a
10261 * Form.cs: Exclude the current form when sending Deactivate to all
10263 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10264 there was a race condition because assigning the handle raises
10265 events, we can get more messages, therefore trying to assign the
10266 handle again, which would fail if any of those event handlers
10267 closed/disposed the control.
10269 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10271 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10273 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10275 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10276 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10278 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10280 * DateTimePicker.cs: If there's no part format specifier, return an
10283 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10285 * FlatButtonAppearance.cs: Throw NotSupportedException for a
10286 Transparent BorderColor.
10288 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10290 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10291 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10292 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10293 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10294 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10295 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10296 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10298 * X11Structs.cs: Remove warnings, add ToString implementations.
10300 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10302 * XplatUIX11.cs: Translate min/max size according to the actual min/max
10303 size, and not the current size. Fixes #81798.
10305 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10307 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10308 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10309 to the control yet).
10311 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10313 * PropertyGridTextBox.cs: Add a method that sends any forwarded
10314 mousedowns to the contained textbox.
10315 * X11Structs.cs: More ToString implementation.
10316 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10319 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10321 * PropertyGridView.cs: Add a null-check, fixes a few tests.
10323 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10325 * TableLayoutPanelCellPosition.cs: TypeConverter.
10327 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10331 * PropertyGridTextBox.cs: Propagate any color changes to all contained
10333 * PropertyGridView.cs: A few color fixes.
10335 2007-07-10 Jackson Harper <jackson@ximian.com>
10337 * TextControl.cs: Remove some old unused text formatting stuff.
10339 2007-07-10 Jackson Harper <jackson@ximian.com>
10341 * TreeView.cs: Update full row select invalidation to match the
10342 newer DrawSelection... method.
10343 - Make sure to invalidate the entire width when selecting a new
10344 node, if we have full row selection enabled.
10346 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10348 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10349 display of properties again.
10351 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10353 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10354 to existing collections.
10356 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10358 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10359 that changed between 1.1 and 2.0.
10361 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10363 * PowerStatus.cs: Added. This is just a data class, it is filled
10364 in by SystemInformation.
10366 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10368 * Message.cs: Add op_Equality and op_Inequality.
10370 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10372 * MenuStrip.cs: Finish corcompare work.
10374 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10376 * LinkArea.cs: Add op_Equality and op_Inequality.
10378 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10380 * Application.cs: Add MessageLoopCallback delegate.
10382 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10384 * ListBox.cs: First set of 2.0 stuffs.
10386 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10388 * Control.cs: Make an internal Height property we can override
10389 without messing up the public API.
10390 * ListBox.cs: Override HeightInternal to always return the size
10391 the user set. [Fixes bug #80466]
10393 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
10395 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10396 paint cell borders if we haven't calculated where they go yet.
10397 [Fixes bugs #82040 and #82041]
10399 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10401 * ListView.cs: In Details view, set the location of item_control
10402 in the (0,0) position (and the header_control is thus on the
10403 item_control). This way the Bounds of the Items are relative to the
10404 ListView control (before this, they had a Bounds value without the
10405 header_control offset, which wasn't matching .Net). Fixes #82004.
10407 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10409 * ListControl.cs: When DataSource is set to null, pass an empty
10410 array of object to SetItemsCore. This is done to clean the items
10411 in the ListContol children. Fixes #81788.
10413 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10415 * ListControl.cs: Add 2.0 stuffs.
10417 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10419 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
10420 Refresh is overkill for just about every repaint request.
10422 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10424 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10425 so remove my custom Get method and fix the property getter.
10427 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10429 * Label.cs: DefaultMargin for 2.0.
10431 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10433 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
10434 reported issue where other controls with mnemonics would steal strokes
10435 from a selected ComboBox.
10437 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10439 * ScrollOrientation.cs: Make internal for 1.1.
10440 * ScrollEventArgs.cs: Add 2.0 stuffs.
10442 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
10444 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10445 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10446 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10448 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10450 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10452 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10454 * ListView.cs: Implement the so-incredibly broken 2.0
10455 VirtualItemsSelectionRangeChanged event.
10457 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10459 * ListView.cs: When enter is pressed and selection is non empty,
10460 an OnItemActivate event must be fired.
10462 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10464 * ListView.cs: Store the FocusedItem information as an
10465 int instead of a ListViewItem (needed by VirtualMode).
10466 Update the calls to SetFocusedItem to pass an index instead of
10468 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10469 the Focused state from the owner ListView.
10471 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10473 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10474 property. Also, invalidate previous focused item in the mentioned
10475 property (match .Net).
10477 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10479 * ListView.cs: Implement 2.0 FocusedItem property setter.
10481 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10483 * ListView.cs: Implement 2.0 TopItem property setter.
10485 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
10487 * StatusStrip.cs: The default renderer is System.
10488 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
10489 if the user specifies it.
10490 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10491 if we are ManagerRenderMode.
10492 * ToolStripMenuItem.cs: Calculate our text color better.
10493 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10494 from Professional to the base class based off working with the System renderer.
10495 * ToolStripSystemRenderer.cs: Added.
10497 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10499 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10501 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
10503 * ToolTip.cs: Implement 2.0 Tag property.
10505 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10507 * ListView.cs: Implement 2.0 HitTest methods.
10509 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10511 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10512 item is under the pointer or not (sugar). Also remove the TODO
10513 regarding to the cursor changes in OneClick activation.
10514 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10515 the subitems use the parent's HotFont if UseItemStyleForSubItems is
10516 true; otherwise don't show the underline style.
10518 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10520 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10521 the code to retrieve the item at position only one time. Also
10522 change cursor when Activation is ItemActivation.OneClick as well
10523 as invalidate the item if HotTracking is true (to show/hide the
10524 underline style). Add an internal HotItemIndex property to retrieve
10525 the current hot item's index.
10526 * ListViewItem.cs: Add an internal HotFont property to cache the
10527 font used when HotTracking is true and the pointer moves within the
10529 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10530 HotFont depending on the hot state of the item.
10532 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10534 * ListView.cs: Implement 2.0 HotTracking property.
10536 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10538 * ToolStripControlHost.cs: If our hosted control never got created,
10539 don't try to dispose it. [Fixes bug #81909]
10541 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10543 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10545 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10547 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
10549 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10551 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
10553 * DrawListViewColumnHeaderEventArgs.cs:
10554 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10555 using the DrawText () methods.
10557 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
10559 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10560 background which got erased in my changes yesterday.
10562 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10564 * ListViewItem.cs: Actually set bounds for subitems in Details view
10566 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10567 can invoke from the owner draw routines if we need it. Also, add
10568 support for Owner draw in Details view.
10570 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10572 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10573 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10574 ShowImageMargin setting, properly align text in a ToolStripLabel
10575 hosted on a ToolStripDropDown.
10577 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10579 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10580 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10582 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10584 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10586 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10588 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10589 location to match ToolStripMenuItems.
10591 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10593 * DrawListViewColumnHeaderEventArgs.cs:
10594 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10595 column headers in ListView.
10597 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10599 * UserControl.cs: Implement AutoSize.
10601 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10603 * DrawListViewItemEventArgs.cs:
10605 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10608 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10610 * ToolStripDropDownItemAccessibleObject.cs: Added.
10611 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10612 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10613 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10614 ToolStripTextBox.cs: corcompare work.
10616 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10618 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10619 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10620 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10623 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10625 * OSFeature.cs: Add IsPresent.
10626 * PrintPreviewControl.cs: Add RightToLeft.
10627 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10628 * SplitterPanel.cs: Add AutoSizeMode.
10630 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10632 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10633 * MdiClient.cs: Add 2.0 ScaleControl.
10634 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10635 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10637 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10639 * Form.cs: Implement some scaling methods, stub some RTL methods,
10642 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10644 * Control.cs: corcompare work.
10645 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10647 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10649 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10650 ControlPaint 2.0 stuffs.
10652 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10654 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10656 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10658 * UpDownBase.cs: Add 2.0 stuffs.
10660 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10662 * NumericUpDown.cs: Add 2.0 stuffs.
10664 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10666 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10668 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10670 * ErrorProvider.cs: Implement 2.0 stuffs.
10672 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10674 * DomainUpDown.cs: Implement 2.0 stuffs.
10676 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10678 * CheckedListBox.cs: Fix RefreshItems signature.
10680 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10682 * PictureBox.cs: Implement 2.0 stuffs.
10684 2007-06-12 Andreia Gaita <avidigal@novell.com>
10686 * TabControl.cs: Check if there are tabpages before checking
10687 the selected index - fix #81802 (font changes raise a ResizeTabs
10688 call on controls.add, which blew up nicely with no tabpages)
10690 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10693 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
10695 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10698 * ListViewItem.cs: In VirtualMode the selection information
10699 resides in the ListView, rather than in the Items. Also, throw
10700 InvalidOperationExceptions when VirtualMode is being used and
10701 CheckedItemCollection is accessed.
10703 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10705 * ComboBox.cs: Add ScaleControl.
10707 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10709 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
10711 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10713 * GroupBox.cs: Add 2.0 stuffs.
10715 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10717 * Panel.cs: Add autosize properties/event.
10719 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10722 - When we remove a control, remove it from the collection before performing the layout.
10723 - Setup an internal property for explicit_bounds.
10724 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
10725 - Perform a layout when we set a new AutoSizeMode.
10727 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10729 * ScrollableControl.cs: Add 2.0 stuffs.
10731 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10733 * ScrollBar.cs: Add 2.0 stuffs.
10735 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10737 * Splitter.cs: Add 2.0 stuffs.
10739 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10741 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
10742 to have BindingContext simply use base implementation.
10744 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10746 * ColumnHeader.cs: corcompare fix.
10748 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10750 * Button.cs: corcompare fixes.
10751 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
10753 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10755 * Button.cs: Override GetPreferredSizeCore.
10756 * ButtonBase.cs: PerformLayout after changing properties that can affect
10757 AutoSize. Simplify some mouse/keyboard code.
10758 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
10759 * MouseEventArgs.cs: Make Location internal for 1.1.
10760 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
10761 * Theme.cs: Add CalculateButtonAutoSize.
10762 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
10764 2007-06-05 Miguel de Icaza <miguel@novell.com>
10766 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
10768 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10770 * ListViewItem.cs: We can't cache Bounds in VirtualMode
10771 since we can get different item instances every time we retrieve it.
10773 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10775 * ListView.cs: Work around for #81602, since an unkown an pretty
10776 infrequent condition appears only in some systems (old linux boxes, it
10779 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10781 * Button.cs: Completely reformat and a little refactor to bring
10782 this closer to Mono circa 2007.
10784 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10786 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
10787 to be ButtonBase.Invalidate.
10789 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10791 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
10793 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10795 * ButtonBase.cs: Completely reformat and a little refactor to bring
10796 this closer to Mono circa 2007.
10798 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
10800 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
10801 values for autosize. Fixes #80137.
10803 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10805 * Control.cs: Don't perform layout when AutoSize changes.
10806 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
10807 directly when autosizing, use SetBounds with BoundsSpecified.None.
10808 Fixes unit tests my last commit broke.
10810 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10812 * Control.cs: Perform layout when AutoSize changes.
10813 * Form.cs: Implement AutoSizing.
10815 2007-06-01 Chris Toshok <toshok@ximian.com>
10817 * DataGrid.cs: remove the XXX'ed check at the top of
10818 ProcessGridKey. fixes #80464.
10820 2007-06-01 Chris Toshok <toshok@ximian.com>
10822 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
10823 adding idempotent (add/remove in Edit()), and also make sure we
10824 don't add it until after we set the text, so it's not tripped in
10825 Edit(). Fixes unit test regression.
10827 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10829 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
10830 change is user explicit, not when the layout engine moves stuff. Fixes
10831 anchoring to bottom and right. [Fixes bug #81790]
10833 2007-06-01 Andreia Gaita <avidigal@novell.com>
10835 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
10837 2007-06-01 Andreia Gaita <avidigal@novell.com>
10839 * ContainerControl.cs:
10840 Fire enter event for common ancestor if it is not a ContainerControl.
10841 Send focus to the active_control and not the 'value', the active
10842 control might have been changed in one of the events fired.
10843 Definitely fixes #80159.
10845 2007-06-01 Andreia Gaita <avidigal@novell.com>
10847 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
10849 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10851 * PropertyGrid.cs: Anchor the help description to the bottom of the
10852 help panel and refactor SelectGridItem into a
10853 SelectGridItemInternal that can be set to null (and update it to
10854 clear the help texts when it is set to null). Set root item to null
10855 when there's no SelectedObject. Fixes #80438.
10856 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
10857 when we're recalculating after a resize (only).
10859 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10861 * ListView.cs: Implement 2.0 RedrawItems method.
10863 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10865 * ListControl.cs: Disconnect PositionChanged and ItemChanged
10866 handlers from previous data manager when DataSource is set to
10867 null. Fixes #81771.
10869 2007-05-31 Jackson Harper <jackson@ximian.com>
10871 * TextBoxBase.cs: These seem to be the correct values.
10873 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
10875 * FileDialog.cs: When close dialog with ok set filterindex using combobox
10876 value. Fixes #81784.
10878 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
10880 * Control.cs: Implement 2.0 scaling methods.
10882 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10884 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
10885 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
10888 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10890 * ProgressBar.cs: Implemented missing 2.0 members.
10892 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10894 * Control.cs: Corcompare issues.
10895 * MessageBox.cs: Implemented missing 2.0 functions.
10897 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10899 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
10900 Implemented more 2.0 members.
10902 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10904 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
10905 null (strange, but it seems to happen when running unit tests).
10907 2007-05-30 Andreia Gaita <avidigal@novell.com>
10909 * ContainerControl.cs: Set active_control even earlier, before
10910 firing any events, and undo it if validation returns false.
10912 2007-05-30 Andreia Gaita <avidigal@novell.com>
10914 * ContainerControl.cs: Raise Validation and Enter/Leave events
10915 even if there is no Form and set active_control earlier, just
10916 before firing Enter events (toshok's patches). Fixes #80647.
10918 2007-05-30 Jackson Harper <jackson@ximian.com>
10920 * TextControl.cs: Redid the pageup/pagedown a little to simplify
10921 things and fix bug #81311.
10923 2007-05-30 Jackson Harper <jackson@ximian.com>
10925 * X11Dnd.cs: Now that we have our own event loop, we need to
10926 cancel when we get a mouseup but it won't be accepted.
10928 2007-05-30 Chris Toshok <toshok@ximian.com>
10930 * DataGrid.cs (set_CurrentCell): guard against negative
10933 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
10934 array index syntax instead of looping over the property names.
10936 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
10937 and set IsInEditOrNavigateMode to false there.
10939 2007-05-30 Jackson Harper <jackson@ximian.com>
10941 * TreeView.cs: Make sure we don't get a bad visible order when
10942 setting to the top node. Fixes some misc crashing in
10945 2007-05-30 Andreia Gaita <avidigal@novell.com>
10947 * UserControl.cs: Add 2.0 AutoSizeMode
10949 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10951 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
10953 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10955 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
10956 lines. Fixes #80285.
10958 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10960 * DataGridColumnStyle.cs: Add char trimming column header text format.
10962 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10964 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
10967 2007-05-29 Jackson Harper <jackson@ximian.com>
10969 * TreeNode.cs: Fix off by one on calculating whether or not a node
10972 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
10974 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
10975 * ScrollableControl.cs: Force an UpdateDistances when we move the
10979 2007-05-29 Andreia Gaita <avidigal@novell.com>
10981 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
10982 update the page setup screen.
10984 2007-05-29 Andreia Gaita <avidigal@novell.com>
10986 * PageSetupDialog.cs: Fix landscape mode.
10988 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10990 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
10991 IconSizeHorizontalSpacing.
10993 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10995 * ListView.cs: The declaration of prev_tooltip_item should be inside
10996 a NET_2_0 conditional (avoid a warning).
10998 2007-05-28 Andreia Gaita <avidigal@novell.com>
11000 * PageSetupDialog.cs: Implement PrintPreview control to display
11001 the preview thumbnail. Change unit conversion to use
11002 PrinterUnitConvert methods.
11004 Note: there is a huge bug in ms.net where the default margins are
11005 interpreted as centimeters (?), when in fact they are set in inches. When
11006 loading the page setup dialog initially (ms.net), the default margins
11007 are set to 1 inch, and the dialog shows them with value 10, when in fact
11008 it should be 25 (properly converted). Our dialog doesn't have this bug.
11010 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
11012 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11014 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11017 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11020 2007-05-28 Andreia Gaita <avidigal@novell.com>
11022 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11023 an IntPtr on csc (it builds fine on mcs, could it be a compiler
11024 bug?), convert the ptr to Int32 first.
11026 2007-05-28 Jackson Harper <jackson@ximian.com>
11028 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11029 recieved, we will exit the dnd tracking loop.
11031 2007-05-28 Jackson Harper <jackson@ximian.com>
11033 * X11Dnd.cs: Keep tracking until the xdnd finished event is
11034 recieved. TODO: I should probably stick a timer on the dropped
11035 event, and finish the drag if the XDND Finished event never shows
11036 (because some apps don't seem to send it).
11038 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
11040 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11043 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11045 * MonthCalendar.cs: Only mark the keypresses we actually handle as
11048 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11050 * MonthCalendar.cs: Set the size after initializing all the relevant
11051 variables. Fixes #81742.
11053 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11055 * KeyEventArgs.cs: Fix typo.
11057 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
11059 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11060 to match MS. Fixed MinDate to only accept value less than or equal
11061 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11062 Removed TODO's that are now verified by unit tests.
11064 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
11066 * TreeNodeCollection.cs: Minor corrections to exceptions to match
11069 2007-05-25 Jackson Harper <jackson@ximian.com>
11071 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11072 it's own message loop.
11073 * XplatUIX11.cs: Remove some of the dnd hooks
11075 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
11077 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11078 instead of MinimizedWindowSize.
11080 2007-05-25 Jackson Harper <jackson@ximian.com>
11082 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11084 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11086 * KeyEventArgs.cs: Added SuppressKeyPress.
11087 * Control.cs: Added support for SuppressKeyPress.
11089 2007-05-24 Andreia Gaita <avidigal@novell.com>
11091 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11092 problems with PieChart. suppress_validation should not be a counter,
11093 if there are several BeginInit calls, the first EndInit will
11094 activate validation. Fix exceptions thrown by set_Value.
11095 * UpDownBase.cs: ValidateText only if it's the user editing it.
11097 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11099 * ListControl.cs: FilterItemOnProperty should return the filtered
11100 item proeprty even if DataSource is null. The same applies for
11101 GetItemText. Fixes #80427.
11103 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11105 * Control.cs: If a control doesn't have a parent when it's Dock is
11106 set, but it has children, it needs to do a layout. Fixes some nested
11107 controls issues. [Fixes bug #81199]
11109 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11111 * ComboBox.cs: If there are few items in the drop down list, make it
11112 the exact size the items need, no bigger. Fixes #81612.
11114 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11116 * Application.cs: When we have captured the keyboard for a menu,
11117 check for mouse down events in case we need to close the menu.
11118 * Control.cs, Form.cs: Remove mouse down checks for menus.
11120 2007-05-24 Jackson Harper <jackson@ximian.com>
11122 * TextControl.cs: Handle tabs in non multiline mode a little
11125 2007-05-24 Jackson Harper <jackson@ximian.com>
11127 * TextControl.cs: We need to manually break apart tabbed text and
11128 move the tabs, since the system.drawing tabbing mechanism relies
11130 * TextBoxBase.cs: Move the caret properly when the user enters a
11133 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11135 * ContainerControl.cs: Don't check CanSelect before calling
11137 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
11138 release a KeyboardActive on click if it's not ours.
11140 2007-05-23 Andreia Gaita <avidigal@novell.com>
11142 * ColumnHeader.cs: Add TypeConverter
11144 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11146 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11148 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11150 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11152 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11154 * LinkLabel.cs: Implement public Padding property.
11156 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11158 * LinkLabel.cs: Implement public FlatStyle.
11160 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
11162 * Control.cs: Apply patch from George to call parent.PerformLayout
11163 when Visible is changed. [Fixes bugs #81118, 81718]
11165 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11167 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11169 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11171 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11173 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11175 * ContextMenu.cs: Implement Collapse.
11177 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11179 * ToolBarButton.cs: Implement Name.
11181 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11183 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11184 use current_item, it prevents some NRE. Fixes #81675.
11186 2007-05-22 Andreia Gaita <avidigal@novell.com>
11188 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11189 without updating the text.
11191 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11193 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11194 without calling DeleteObject. [Should fix bug #81709]
11196 2007-05-22 Jackson Harper <jackson@ximian.com>
11198 * RichTextBox.cs: Set the line endings correctly, when flushing
11201 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
11203 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11204 {Width=0,Height=0}.
11206 2007-05-22 Jackson Harper <jackson@ximian.com>
11208 * TreeView.cs: Setting top with a null node should set to the very
11211 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11213 * Form.cs: ShowDialog: destroy the handle when message loop is
11214 finished, matches MS behaviour. Refactor parts of WmClose into
11215 RaiseCloseEvents, that only raises events if they haven't already
11216 been raised. Fixes #81688 and #81521.
11217 * Application.cs: Don't call close on the form when exiting a modal
11218 loop, it will raise all the (Form)Closed/Closing events again if
11219 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11220 which doesn'r raise any events it they have been raised before.
11222 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11224 * Control.cs: Add OnPrint.
11225 * ToolStrip.cs: Add GetChildAtPoint.
11226 * ToolStripContainer.cs: Add OnRightToLeftChanged.
11227 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11229 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11231 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
11233 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11235 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11236 isn't visible anymore. Fixes #81651.
11238 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11240 * Control.cs: WmShowWindow: Update children's z-order after setting
11241 their parent. SetParent may show the window, thereby corrupting
11242 z-order, since the window will be shown on top.
11243 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11244 multiple (and redundant) WM_SHOWWINDOW messages.
11245 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11246 event has already been raised.
11247 * Form.cs: Change is_changing_visible_state to a counter, since
11248 SetVisibleCore can be called recursively. CreateHandle: when
11249 creating mdi children, send (De)Activated events.
11250 * MdiClient.cs: Update use of is_changing_visible_state.
11251 * Application.cs: OnThreadException: Surround exception handling with
11252 try/finally to ensure we always reset the error-handling state
11255 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11257 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11260 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11262 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11263 SmallIcon views, now that we have a standarized horizontal spacing.
11265 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11266 4, just like the other views (Match .Net).
11268 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
11270 * Control.cs: Delay calculating anchor distances until we actually layout.
11271 Always query the WM for the actual size and location it put us at instead of
11272 only when we send negative values.
11273 [Fixes bugs #81694, 81695]
11275 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11277 * Application.cs: Avoid a possible stack overflow when trying to exit
11280 2007-05-19 Marek Safar <marek.safar@gmail.com>
11282 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11285 2007-05-19 Andreia Gaita <avidigal@novell.com>
11287 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11288 * NumericUpDownAcceleration.cs,
11289 NumericUpDownAccelerationCollection.cs: Added 2.0
11292 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
11294 * RichTextBox.cs: Recalculate the document after the ScrollBars
11295 property is changed. Fixes bug #81681.
11297 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11299 * DataObject.cs: Implement 2.0 methods.
11301 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11303 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11304 in the center of the checkbox, not in the left-top corner.
11307 2007-05-18 Jackson Harper <jackson@ximian.com>
11309 * RichTextBox.cs: Recalculate the document after the scrollbars
11310 property is changed.
11311 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11314 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11316 * CreateParams.cs: Make HasWindowManager marginally faster.
11317 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11318 into Hwnd so that other drivers can use it as well.
11319 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11320 the default location from Hwnd. Fixes MDI client windows always
11321 showing up at (0,0) in Windows (Win32 won't set the default
11322 location since the window styles aren't correct).
11324 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
11326 * TreeView.cs: Modified DoubleBuffered to just use the base
11329 2007-05-18 Jackson Harper <jackson@ximian.com>
11331 * TreeView.cs: Set the top node to the last child node when
11333 - When we get focus, if there is no selected node, use the top
11336 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11338 * KeysConverter.cs: Add CanConvertTo.
11339 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11340 * LinkConverter.cs: Added.
11342 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11344 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11345 it prevents error when file dont have write access. Fixes #81669 and #81667.
11347 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11349 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
11350 button text. Fixes #79640.
11352 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11354 * Control.cs: According to MSDN controls created in the designer theres
11355 keyboard accelerators visible by default. So included check for design
11356 in ShowKeyboardCuesInternal.
11358 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11360 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
11361 text. Fixes #81621.
11363 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11365 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11366 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
11368 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11370 * Control.cs: Finish implementation of UI State using WmChangeUIState
11371 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11372 in some controls to check for show_keyboard_cues to draw accell keys "_".
11374 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11376 * ListBox.cs: When calculating the horizontal scrollbar
11377 in single column mode, don't use values less than 0 for
11378 Maximum. Fixes #81474.
11380 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11382 * ListBox.cs: Throw the some missing exceptions in
11383 ListBox.ObjectCollection methods.
11385 2007-05-17 Jackson Harper <jackson@ximian.com>
11387 * TextBoxBase.cs: Recalculate the document when the word wrap
11388 value has changed. This fixes 81488.
11390 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11392 * Clipboard.cs: Implement missing GetText overload.
11394 2007-05-17 Chris Toshok <toshok@ximian.com>
11396 * Control.cs (CheckDataBindings): remove the binding_context arg
11399 * CurrencyManager.cs (OnItemChanged): fix this now that
11400 BindingManagerBase is fixed. also remove the comment telling where
11401 the fix should go. We set transfering_data to true/false around
11402 the call to PushData to keep UpdateIsBinding from being called.
11403 (ListChangedHandler): remove the extra OnMetaDataChanged call for
11404 PropertyDescriptorAdded in the 1.1 case. The extra call is
11405 actually generated by System.Data generating 2 metadata changed
11406 events of its own per column add. The fix should go there. Add a
11407 comment to that affect in our test's Assert.Ignore.
11409 * BindingManagerBase.cs: Rework PullData and PushData slightly.
11410 we keep a boolean flag (transfering_data) that keeps us from
11411 calling UpdateIsBinding multiple times if we re-enter either of
11414 * ControlBindingsCollection.cs (AddCore): remove the
11415 binding_context arg to binding.Check.
11417 * Binding.cs (IsBinding): don't check if we're binding here, just
11418 return our cached value. we update it in UpdateIsBinding.
11419 (Check): don't take the binding_context arg, we'll just use our
11420 control's. Also, for some reason MS doesn't use the data member
11421 field when getting the bindingmanager for this binding. it just
11422 uses the datasource. Make this method callable multiple times,
11423 and only do the is_null_desc stuff if manager.Position != -1 (so
11424 we don't get an exception accessing manager.Current).
11425 (UpdateIsBinding): move the code from IsBinding here.
11426 (PositionChangedHandler): call Check here to we can initialize
11427 things that require a non- -1 position.
11429 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11431 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11434 2007-05-17 Andreia Gaita <avidigal@novell.com>
11436 * TabControl.cs: Add 2.0 methods and events, including
11437 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11438 * TabPage.cs: Add 2.0 methods
11440 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11442 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11443 keyboard_cues is properly handled by message method.
11445 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11447 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11449 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11451 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11453 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
11456 - WmUpdateUIState added to handle state changes, it make call to
11457 OnChangeUICues event.
11458 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11461 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
11463 * ImageKeyConverter.cs: Added.
11464 * TreeViewImageKeyConverter.cs: Added.
11466 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11468 * ToolTips.cs: Update Text if SetToolTip is called for a control
11469 already showing the tooltip, as well as restarting its timer; show
11470 tooltip if we are inside the control bounds by the time of calling
11471 SetToolTip. Inside ShowTooltip remove the check to not show the
11472 tooltip again for the active control (it is allowed by .Net to
11473 show the tooltip on the same control multiple times).
11475 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11477 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11479 2007-05-16 Andreia Gaita <avidigal@novell.com>
11481 * ContainerControl.cs: only process tab key if there are no
11482 modifier keys present, otherwise the control does the
11483 tab processing, if it needs to. Fixes #81622
11484 * TabControl.cs: Fixes calculation for which tab to select on
11487 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11489 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11491 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
11493 * Control.cs: Make IsInputCharInternal to allow controls to
11494 override it and still match MS API.
11495 * TextBoxBase.cs: Override IsInputCharInternal and always
11499 2007-05-15 Jackson Harper <jackson@ximian.com>
11501 * TextBox.cs: Disable some of the menu options when using a
11504 2007-05-15 Jackson Harper <jackson@ximian.com>
11508 * RichTextBox.cs: Some new 2.0 methods
11510 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
11512 * FileDialog.cs: On 1.0 profile, do not support multidotted
11515 2007-05-14 Jackson Harper <jackson@ximian.com>
11517 * TextBoxBase.cs: Implement some of the new 2.0 methods.
11518 * RichTextBox.cs: We need to override these methods on 2.0.
11519 * MaskedTextBox.cs: These are implemented now
11520 * TextControl.cs: This was off by one.
11522 2007-05-14 Jackson Harper <jackson@ximian.com>
11524 * TextControl.cs: Because the line endings are including in the
11525 text, we don't need to add them in anymore.
11527 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11529 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11530 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11532 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11534 * ToolBar.cs: Adjust size to default size when button theres no text and
11535 image, it fixes remaining issues from #81524.
11537 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11540 - When not flat call redraw to recalculate sizes on creare handle to match
11542 - Revert 77220 because it causes some regressions in toobar
11545 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11547 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11548 now actually enters a usable state.
11550 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11552 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11553 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11556 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11558 * ToolBar.cs: Save default_size on create handle to use later for buttons
11559 without text, needed to mimic win32 behavior.
11561 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11563 * ToolBar.cs: Fix button layour to best fit width or height according to
11564 vertical or not. Fixes #81524.
11566 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11568 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11569 toolbar size info because different styles theres different sizes.
11572 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11574 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11575 if we are using checkboxes, checked is true, and we have less
11576 than two images in StateImageList; for the 1.1 in the same scenario
11577 draw the first image if we have at least one image in StateImageList.
11578 Fixes part of #81191.
11580 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11582 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11583 the owner's Items collection on merge.
11585 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11587 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11588 * ToolStripItemCollection.cs: Lots of fixes to when events get called
11589 and parent/owner gets changed based on gert's unit tests.
11591 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11593 * MaskedTextBox.cs: Started implementing parts of it.
11595 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11597 * ListView.cs: When clicking the checkbox on the items
11598 take into account the double clicks even if we have only
11599 one image in StateImageList (only for 1.0/1.1). Also
11600 generate an extra change of checked state when we receive
11601 the second click on checkbox (match .Net behaviour).
11602 Fixes part of #81191.
11604 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11606 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11608 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11610 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11611 even if OnLoad is overriden and base.OnLoad is not called.
11614 2007-05-10 Andreia Gaita <avidigal@novell.com>
11616 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
11617 shame. (I blame my ever-persisting and annoying cold)
11619 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11621 * ListView.cs: Don't eat navigation keys. Let them flow through to
11622 KeyDown/KeyPress routines. [Fixes bug #81569]
11624 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11626 * ListView.cs: When handling keys for selecting the item based off
11627 keyboard input, do not consider keys pressed with Alt or Control. Also,
11628 correctly handle keys when the Shift key is down. [Fixes bug #81578]
11630 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11632 * Control.cs: When using UseWaitCursor, we have to store the requested
11633 Cursor to use when UseWaitCursor is turned off.
11635 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11637 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
11639 * Application.cs: Use PreProcessControlMessage instead of
11641 * PreProcessControlMessage.cs: Make internal for 1.1.
11643 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11645 * Control.cs: Add InternalContains focus property, which hast the same
11646 functionality of ContainsFocus, but also including implicit controls.
11647 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11648 since we need to know if the focus is contained in our implicit
11649 ItemControl when calculating Layout. Fixes part of #80888.
11651 2007-05-08 Everaldo Canuto <everaldo@simios.org>
11653 * ToolTip.cs: Remove center form string alignment as it must be align to
11656 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
11658 * ToolStripItemCollection.cs: Set the new item's parent and owner
11659 in Insert like we do in Add. [Fixes bug #81568]
11661 2007-05-08 Jackson Harper <jackson@ximian.com>
11663 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11664 - Off by one error in SetTop
11665 - Disable DoubeBuffering
11667 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11669 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
11670 control as much as necessary in order to make it entirely visible,
11671 instead of centering the control in the container (matches MS
11672 behaviour). CalculateCanvasSize: we need to take the current scroll
11673 position into account when calculating the maximum canvas,
11674 otherwise the following scenario will fail: resize so that the
11675 scrollbars appear, use the scrollbars to scroll, resize again
11676 smaller, and now the canvas size is too small. Recalculate: when
11677 showing scrollbars make sure they start off at 0, and try to scroll
11678 the active control into view. Fixes #79540. HandleScrollBar: don't
11679 scroll anywhere if the scrollbar isn't visible.
11681 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11683 * ListView.cs: When focus changed, call Layout/Invalidate
11684 in the focused item to update the selected state (should show
11685 entire label when ListView is focused, and a part of it if is not).
11686 * ListViewItem.cs: When doing layout for LargeIcon, take into account
11687 for displaying the entire label not only the Focused state of the
11688 item, but also the Focused state of the ListView (match .Net
11691 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11693 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
11694 Implement UseWaitCursor.
11696 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11697 Applying contributed patch from Sergey Volk.
11699 * Clipboard.cs: Implement SetDataObject retry logic and new overload
11701 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
11703 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11705 * Control.cs: Implement DrawToBitmap.
11707 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11708 Applying contributed patch from Stefan Noack.
11710 * Control.cs: Add [Get|Set]AutoSizeMode.
11712 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11714 * MdiClient.cs: Unmerge menus when the last child is closed.
11716 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11718 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
11719 * ToolStripManager.cs: Call Merge on DropDowns.
11722 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11724 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
11726 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
11727 visibility. We can't create forms visible, since we have to set the
11728 owner before making the form visible (otherwise Win32 will do
11729 strange things with task bar icons). The problem is that we set the
11730 internal is_visible to true before creating the control, so
11731 is_changing_visible_state is the only way of determining if we're
11732 in the process of creating the form due to setting Visible=true -
11733 this works because SetVisibleCore explicitly makes the form
11734 visibile afterwards anyways. Fixes #80775.
11736 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11738 * ThemeWin32Classic.cs: When drawing ListViewItems,
11739 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
11740 or LargeIcon _and_ item is not focused (match .Net behaviour).
11742 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11744 * Control.cs, Form.cs: Fix some obsolete method warnings.
11746 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11748 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
11749 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
11751 2007-05-04 Andreia Gaita <avidigal@novell.com>
11753 * ContainerControl.cs: Fix active_control attribution when going
11754 up the parent chain so that the first parent container gets the control
11755 and the rest of the parent containers get the child containers (skips
11756 non-containers). Fixes #80729
11758 2007-05-04 Randolph Chung <tausq@debian.org>
11760 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
11763 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11765 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
11766 takes a size parameter, since the CreateParam's size isn't true for
11767 minimized forms. Fixes #81518,
11769 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11771 * Form.cs: Add OnDeactivateInternal.
11772 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
11774 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11776 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
11777 accessing the parent. Fixes #81508.
11779 2007-05-03 Chris Toshok <toshok@ximian.com>
11781 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
11782 2.0 block, pass listposition + 1 to ChangeRecordState when a row
11783 was added before the current listposition. Fixes the
11784 TestInsertRowBeforeCurrent unit test.
11786 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
11788 * Application.cs: Add RaiseIdle.
11789 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11790 XplatUIX11.cs: Implement RaiseIdle.
11792 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
11793 corcompare work: N - Z
11797 * ScrollableControl.cs
11798 * SplitContainer.cs
11801 * SystemInformation.cs
11803 * TableLayoutControlCollection.cs
11804 * TableLayoutPanel.cs
11809 * ToolStripComboBox.cs
11810 * ToolStripContainer.cs
11811 * ToolStripContentPanel.cs
11812 * ToolStripDropDown.cs
11813 * ToolStripDropDownItem.cs
11814 * ToolStripDropDownMenu.cs
11816 * ToolStripItemCollection.cs
11817 * ToolStripMenuItem.cs
11818 * ToolStripPanel.cs
11819 * ToolStripSplitButton.cs
11822 * TreeNodeCollection.cs
11823 * TreeNodeMouseHoverEventArgs.cs
11826 2007-05-01 Everaldo Canuto <everaldo@simios.org>
11828 * ContextMenu.cs: Add public method Show with alignment property to 2.0
11829 stuff. Thanks aatdark for the patch.
11831 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11833 * GridItem.cs: Implement 2.0 Tag property.
11835 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
11837 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
11838 count instead of Nodes.Length. [Fixes bug #81448]
11840 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11842 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
11845 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11846 corcompare work: A - M
11847 * BindingNavigator.cs
11852 * FlowLayoutPanel.cs
11858 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11860 * Application.cs: Give toolstrips a chance to process mnemonics.
11861 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
11862 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
11863 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
11865 2007-05-01 Jackson Harper <jackson@ximian.com>
11867 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
11869 - Don't set the BoundsSpecified
11871 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
11873 * Application.cs: When using the toolstrip shortcut mechanism, allow the
11874 message to pass through to a regular control if it hosted by a toolstrip.
11875 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11876 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
11878 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
11880 * TextRenderer.cs: Use the flags argument when using the MeasureString
11881 fallback algorithm.
11883 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
11885 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
11886 the MDI menu item. [Fixes bug #81483]
11888 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
11890 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
11891 string. When setting Name to null, use zero-length string instead.
11893 2007-04-29 Andreia Gaita <avidigal@novell.com>
11895 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
11896 DeselectTab). Implement missing 2.0 TabPageCollection methods
11897 (Add, ContainsKey, RemoveByKey, IndexOfKey)
11899 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
11901 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
11903 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
11905 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
11906 Fixes bug #81479. Include details of exception when LoadFile fails.
11908 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
11910 * DrawListViewSubItemEventArgs.cs: Added missing setter
11912 2007-04-27 Andreia Gaita <avidigal@novell.com>
11914 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
11915 Hide methods (not complete). Implement missing 2.0 OnPopup event.
11917 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11919 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
11920 removed in ly last commit (it was breaking the Label edit feature).
11922 * ThemeWin32Classic.cs: When drawing a ListViewItem use
11923 StringAlignment.Near for LineAlignment (match .Net).
11925 2007-04-27 Andreia Gaita <avidigal@novell.com>
11927 * TabControl.cs: Change SetTab so it adds the tabpage to the list
11928 of controls if it isn't already there - was blowing up when doing
11929 tabcontrol.TabPages[i]=new TabPage().
11930 SetTab now does a replace by removing the page at the index.
11931 Add a new InsertTab method that inserts a page in a given index
11932 instead of replacing.
11933 Implements TabPageCollection.Insert(int, TabPage).
11935 2007-04-27 Chris Toshok <toshok@ximian.com>
11937 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
11938 internal handler that can be invoked from our subclasses.) Also,
11939 add a comment to PushData about how we need to fix it.
11941 * CurrencyManager.cs: tons of changes here. trying to get things
11942 matching the behavior of .net wrt event orders (ItemChanged,
11943 CurrentChanged, PositionChanged.) I've implemented a private .net
11944 symbol (ChangeRecordState) that appears in stack traces because
11945 it's actually easier to do this than to effective inline all its
11946 various behaviors at every call site.
11948 * RelatedPropertyManager.cs: guard against an exception here by
11949 not using parent.Current if the position is set to -1 (if the
11950 parent datasource is cleared, for instance).
11952 * Binding.cs: don't parse data in PushData (this might be wrong,
11953 but it jives with MS's behavior.) Also, don't call PushData when
11954 we get a CurrentChanged event.
11956 2007-04-27 Andreia Gaita <avidigal@novell.com>
11960 WebBrowserSiteBase.cs,
11961 HtmlDocument.cs: Added stubbed out classes, no real implementations
11964 2007-04-27 Everaldo Canuto <everaldo@simios.org>
11966 * MainMenu.cs: In draw method without parameters call draw method with
11967 PaintEvent, another one (just rect) adjust rectangle and we dont need it
11968 as Rect property is already adjusted. Fixes #80694.
11970 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
11972 * Application.cs: Need to handle keyboard menu deselection here.
11973 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
11974 navigation, allowing keyboard to work on X11.
11975 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
11977 2007-04-27 Everaldo Canuto <everaldo@simios.org>
11979 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
11980 menu bar. It fixes some drawing issues in menu bar.
11982 2007-04-27 Everaldo Canuto <everaldo@simios.org>
11984 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
11985 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
11986 when <alt> key is pressed.
11988 2007-04-26 Everaldo Canuto <everaldo@simios.org>
11990 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
11991 example just set visible to false and make this prevent from other problems.
11992 In SystrayAdd always remove pending expose. Fixes #81072.
11994 2007-04-26 Marek Safar <marek.safar@gmail.com>
11996 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
11999 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12001 * ListView.cs: Added three missing 2.0 events and corresponding
12002 EventHandlers. Added the OwnerDraw property.
12003 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12005 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12007 * DrawListViewItemEventArgs.cs
12008 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12010 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12012 * TextControl.cs: Fixed typo in constructor
12014 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
12016 * Application.cs: Create a shortcut path so that currently selected
12017 MenuStrips can intercept keyboard events without having focus.
12018 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12019 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12020 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12021 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
12022 generate WM_SYSCOMMAND message in X11 for other platforms.
12023 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12024 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12025 * ToolStripSplitButton.cs: Add DefaultItem property.
12027 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12029 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12030 fixes some menu draw problem on Windows with border diferent from default
12031 it also fixes #81403.
12033 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12035 * Form.cs: Refactor WndProc into separate methods, just like Control is
12038 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12040 * Control.cs: set_Text: move the call to the driver into a seperate
12041 virtual method so that Form can override it.
12042 * MaskedTextBox.cs: Corcompare fixes.
12043 * Form.cs: Override UpdateWindowText and only update the styles if the
12044 form has been shown (fixes #81405).
12046 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12048 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12049 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12050 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
12051 the form lost focus or another control was clicked.
12053 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
12055 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12058 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12060 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12061 DrawListViewItemEventHandler.cs,
12062 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12064 * X11Structs.cs: More ToString implementation.
12066 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12068 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12069 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12071 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12073 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12075 * FormCollection.cs: Don't add a form if it's already in the
12077 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12078 according to behaviour and MSDN. The ownerWin32 is the active
12079 window at the moment when we call ShowDialog, not the context's
12080 main form (the context's main form may open another form that opens
12081 a form with ShowDialog, the win32 owner is the second form). Add
12082 and remove forms to the Application.OpenForms in other places to
12083 better match MS behaviour. Add an IsActive property that raises
12084 On(de)Activated only if the active state has changed (we were
12085 raising OnDeactivated before OnActivated while creating forms).
12086 * Application.cs: Refactor Enabling/Disabling of windows for modal
12087 dialog loops out to separate methods, and restore the thread
12088 context when we quit the method. Fixes #81407.
12090 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12092 * ListView.cs: In ItemControl.HandleClicks, also fire
12093 2.0 MouseClick or MouseDoubleClick events on the parent,
12094 not only the Click/DoubleClick events.
12096 2007-04-24 Andreia Gaita <avidigal@novell.com>
12098 * TableLayoutSettings.cs:
12099 - Added a GetControls method and a support structure to help the
12100 TypeConverter to enumerate the controls for serialization.
12101 - Added a new serialization constructor.
12102 - Added a isSerialized flag initialized to true on the
12103 serialization constructor so that the TableLayoutPanel.LayoutSettings
12104 setter does not throw the designed NotSupportedOperation exception
12105 when the object is built through deserialization.
12106 - Implemented GetObjectData
12108 * TableLayoutPanel.cs: Added check on LayoutSettings.
12110 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12112 * ListView.cs: Report Click and DoubleClick events to the parent
12113 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12114 from breaking the click count state when using dialog forms (Control
12115 reports the clicks in a similar fashion). In the previous behaviour
12116 the last WM_LBUTTONUP message in a double click was sent to the
12117 ListView's form, instead of the ListView, which was breaking the click
12118 count for it. Fixes #80387.
12120 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12122 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12124 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12126 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
12127 us from created dropdowns for menu items that do not have subitems.
12128 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12129 Check HasDropDownItems before calling DropDown so a dropdown will not be
12130 created if it isn't needed.
12132 2007-04-24 Jackson Harper <jackson@ximian.com>
12134 * TreeView.cs: Set the first node to the selected node when we get
12135 focus if there is no selected node.
12137 2007-04-24 Andreia Gaita <avidigal@novell.com>
12139 * MimeIcon.cs: remove using blocks so that image streams are
12140 not disposed of. Fixes #80151
12142 2007-04-24 Jackson Harper <jackson@ximian.com>
12144 * TextBoxBase.cs: Fixup the height of textboxes when the control
12147 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12149 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
12150 for each ToolStripItem when the parent's RightToLeftChanged is called.
12152 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12154 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12156 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12157 property, so that the setter can be overriden too.
12158 * TextBox.cs: Change GetContextMenuInternal() to use
12159 ContextMenuInternal.
12161 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12163 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12166 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12168 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12171 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12173 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12174 avoid duplicate work. Mostily skeleton code, it's not working at
12177 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
12179 * NotifyIcon.cs : stub for MouseClick event
12180 * Application.cs: stub for SetUnhandledExceptionMode
12182 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12184 * BindingNavigator.cs : Initial (partial) implementation
12186 2007-04-23 Jackson Harper <jackson@ximian.com>
12188 * TreeView.cs: Do not create the treeview's handle when setting
12189 the scroll position.
12190 - ExpandAll needs to compute the scrollbars so it knows which
12191 position to set the bar too.
12193 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12195 2007-04-23 Jackson Harper <jackson@ximian.com>
12197 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12200 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
12202 * ToolStripItem.cs: Make GetImageSize internal.
12203 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12204 need to draw an item. Fixes a reported issue where images on menus
12205 that were not 16x16 were drawing incorrectly.
12207 2007-04-21 Miguel de Icaza <miguel@novell.com>
12209 * Padding.cs: Use the converter, fixes the resgen2 issue with
12212 2007-04-21 Jackson Harper <jackson@ximian.com>
12214 * TreeView.cs: Dont try to unhighlight the selected node if there
12215 isn't a selected node.
12217 2007-04-21 Jackson Harper <jackson@ximian.com>
12223 * TreeView.cs: Use the InternalBorderStyle property to set the
12224 initial border style, this forces the client rectangle to be sized
12227 2007-04-20 Jackson Harper <jackson@ximian.com>
12229 * TreeView.cs: Simplify scrolling to the last node after expanding
12231 - Fix some off by ones with setting the bottom.
12233 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12235 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12236 that. We were incorrectly doing it the other way around. Also,
12237 update ClientSize if we change the BorderStyle before the control
12240 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12242 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12243 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12244 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12245 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12246 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12247 Caption to CaptionHeight.
12248 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12249 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12250 and FixedFrameBorderSize to return value from current XplatUI driver.
12251 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12252 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12253 and FixedFrameBorderSize using win32 API. Renamed Caption to
12255 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12256 * SystemInformation.cs: Fixed typo in BorderSize.
12258 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12260 * XplatUI.cs: Added MenuAccessKeysUnderlined.
12261 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12262 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12264 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12265 value from XplatUI driver.
12266 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12267 SystemParametersInfo.
12268 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12270 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12273 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12275 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12277 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12279 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12281 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12283 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12284 MenuStrips that contain ToolStripSeparators.
12286 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12288 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12289 DefineStdCursorBitmap.
12290 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12291 has been created off a standard cursor. This is used to get a
12292 bitmap of the standard cursor when Draw or DrawStretched is called
12293 in order to draw the cursor.
12294 * X11Structs.cs: Added XcursorImage and XcursorImages.
12295 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12296 DefineStdCursorBitmap.
12297 * Cursors.cs: Update all relevant creations of Cursor to use the new
12298 internal constructor.
12300 2007-04-19 Jackson Harper <jackson@ximian.com>
12302 * TextBox.cs: Move the has_been_focused into the base control, so
12303 some of the text adding methods can manipulate it (probably time
12304 for a better name for this flag too).
12305 - Call a new version of selectall that doesn't scroll
12306 * TextBoxBase.cs: When we append text, if the document is empty,
12307 don't scroll. If the document has text already, we scroll to the
12308 end of the appended text.
12309 - When the text is changed, we reset the has_been_focused, so the
12310 next time the control gets focused, all the text is selected.
12312 2007-04-19 Jackson Harper <jackson@ximian.com>
12314 * TextControl.cs: Move the margins to the document, add a method
12315 so the margin sizes can be updated.
12316 * TextBoxBase.cs: When the border style is changed, update the
12319 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
12321 * Control.cs: Respect DefaultPadding.
12322 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12323 padding into account.
12324 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
12326 2007-04-19 Jackson Harper <jackson@ximian.com>
12328 * TextControl.cs: Oops, we need to use the ClientRect not the
12331 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12333 * ListView.cs: In ItemControl.ItemsMouseDown, take into
12334 account the double clicks when CheckBoxes are used and
12335 the pointer is inside the checkbox. Fixes part of #81191.
12337 2007-04-18 Jackson Harper <jackson@ximian.com>
12339 * TextControl.cs: Pressing the end key shouldn't move the caret
12340 past the line ending.
12341 * TextBoxBase.cs: We can still delete if we are in the line
12342 ending and the combine will just kill the existing line ending.
12344 2007-04-18 Jackson Harper <jackson@ximian.com>
12346 * TextControl.cs: We can't move lines, then invalidate their
12347 bounds, we need to get the old bounds and combine that with the
12349 * TextBoxBase.cs: Before combining two lines for a delete, we need
12350 to invalidate the area of the old line, since that will be moved
12351 in the combine operation.
12353 2007-04-18 Everaldo Canuto <everaldo@simios.org>
12355 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12356 with transparent background. Fixes #80482.
12358 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
12360 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12361 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12364 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12366 * CreateParams.cs: Add a couple of helper methods and do a less string
12367 concatenation in ToString.
12368 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12369 overload that takes a Control parameter, since this method may be
12370 called before a control is assigned to the hwnd (from
12371 CreateWindow), and update CreateWindow to use the new overload. In
12372 GetMenuOrigin subtract the title bar from the y position if the
12373 form has a window manager (since we're painting it and not X).
12374 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12375 CreateParams to calculate the origin (since border sizes may vary).
12376 In ScreenToMenu only subtract the title height if we actually have
12378 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12379 mdi children never have menus of themselves.
12380 * InternalWindowManager.cs: Implement menu handling like form does.
12381 Added GetMenuOrigin to calculate the menu origin, can't use the
12382 CreateParams from the form like normally since it's lying.
12383 * Hwnd.cs: Implement GetBorderSize better (in the sense more
12384 windows-like) and add Inflate and comparison operators to the
12385 Borders type. When calculating MenuOrigin and it's a form with a
12386 window manager, use the window manager to calculate it.
12388 2007-04-17 Chris Toshok <toshok@ximian.com>
12390 * Control.cs (CreateControl): turns out in 2.0 we don't need this
12391 OnBindingContextChanged thing here. It's only generated from
12392 ContainerControl.OnCreateControl. Fixes a newly written unit test
12393 - BindingTest.BindingContextChangedTest4.
12395 2007-04-17 Jackson Harper <jackson@ximian.com>
12397 * ScrollBar.cs: When setting values, make sure the current
12398 position stays within the new values range.
12400 2007-04-17 Chris Toshok <toshok@ximian.com>
12402 * Control.cs (CreateControl): talk about a bizarre corner case.
12403 Don't emit OnBindingContextChanged here if we're a parentless
12404 control (i.e. if we're a form.). Fixes
12405 BindingTest.BindingContextChangedTest2.
12407 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12409 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
12410 from win32. Fixes #81255.
12412 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12414 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12415 already present in CalculateButtonTextAndImageLayout.
12417 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12419 * XplatUIX11.cs: When setting min/max size for a window we need to
12420 translate the coordinates to x coordinates. Create an overload of
12421 SetWindowMinMax that takes a CreateParams handling this, and change
12422 SetWMStyles to call this function (can't use Control.FromHandle in
12423 the SetWindowMinMax to get the control/CreateParams from the handle
12424 because the handle might not have been assigned to the control
12425 yet). Fixes #81371.
12427 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12429 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12430 if StateImageList is non-null and it has less than two items (match MS
12431 behaviour). Also, in HandleNavKeys handle the Space key, calling
12432 the new ToggleItemsCheckState method, which tries to change the
12433 checked state of the selected items. Fixes part of #81191.
12435 2007-04-16 Jackson Harper <jackson@ximian.com>
12437 * RichTextBox.cs: namespace cleanup.
12439 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12441 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12443 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12446 * Control.cs: Call invalidate in set_Region.
12448 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12449 it dont works here.
12451 2007-04-16 Jackson Harper <jackson@ximian.com>
12453 * TextBoxBase.cs: When enter is pressed, we need to update all
12454 lines below the current.
12456 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
12458 * MdiClient.cs: Implement implicit menu merging for MDI
12459 children. When a child form is active, if it has a menustrip
12460 and the parent form has a MainMenuStrip, automatically merge
12463 2007-04-15 Andreia Gaita <avidigal@novell.com>
12465 * TabControl.cs: Refactored sizing methods to not repeat
12466 code all over the place. Tab bounds are now calculated
12467 as if alignment is top and single line, and only when
12468 setting the bounds are the positions adjusted according
12469 to alignment. Replaced hardcoded positions, spacings and
12470 paddings by getting the values the ThemeEngine.
12473 * Theme.cs: Change TabControl properties and methods so
12474 that all start with TabControl*. Added more properties
12475 to help remove hardcoded values on tabcontrol.
12476 Add CPDrawBorder3D declaration so the Theming classes
12479 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12481 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12482 on the Theming namespace, and call the appropriate methods here.
12483 Change CPDrawBorder3D to public.
12485 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12487 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12488 the control after firing the OnMouseUp event, instead of sending
12489 the message before the mentioned event. This is so we can match the
12490 MS behaviour. Fixes part of #80385.
12492 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12494 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12495 RightToLeft property.
12497 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12499 * ToolStrip.cs: Add properties and internal methods to support merging.
12500 * ToolStripItem.cs: Add MergeAction and MergeIndex.
12501 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12502 not trigger reparenting or layouts.
12503 * ToolStripManager.cs: Add Merge and RevertMerge methods.
12504 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12505 is hosting the overflow menu.
12507 2007-04-13 Jackson Harper <jackson@ximian.com>
12509 * TextControl.cs: Set the line ending correctly for the first
12512 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
12514 * Theme.cs: Update GetMethod to get the new definition for
12515 KnownColors.Update (and fix theme color updates).
12517 2007-04-12 Everaldo Canuto <everaldo@simios.org>
12519 * MessageBox.cs: Fix some test and button position.
12521 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12523 * Form.cs: Consider the implicit controls in
12524 GetRealChildAtPoint. We need it since this method
12525 is called on Form when handling the some messages in
12526 WndProc, and need to consider those implicit ones too.
12529 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
12531 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12532 if there are no ShortcutKeys set.
12533 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12534 set, use it when painting.
12536 2007-04-12 Jackson Harper <jackson@ximian.com>
12538 * TextControl.cs: Fix some off-by-one issues in line duplication
12539 and insertion in the undo manager. Also, overwrite the first tag
12540 of a line on insert, if it is just a zero lengthed tag. This
12541 prevents us from getting an extra stranded tag at the beginning of
12544 2007-04-11 Everaldo Canuto <everaldo@simios.org>
12546 * Label.cs: Remove check for handle created in CalcAutoSize, we need
12547 to calculated proper size including when handle was not created yet.
12549 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12551 * MdiWindowManager.cs: When moving a form, allow the form to be moved
12552 when the mouse is outside of it's parent's client rectangle. Fixes
12553 #79982 (take 3, part 2).
12555 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12557 * X11Structs.cs: Add a few ToString() overrides.
12558 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12559 the window location in a window-manager independent way. Reworked
12560 FrameExtents, it now actually works. Reworked AddConfigureNotify
12561 and ReparentNotify handling to use GetTopLevelWindowLocation
12562 instead of the earlier, more hacky solution. Reworked SetWMStyles,
12563 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12564 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12565 for all other windows (fixes #81281 part 1), a toolwindow is hidden
12566 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12567 and generally refactored to do as few calculations as possible
12570 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
12572 * Theme.cs: Change "reflective-contract" between MWF and SD to
12573 minimize # of calls, avoid Color serialization and avoid updating
12574 every "known colors" each time a single one is updated.
12576 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12578 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12579 when not readonly and the text is explicitly set. Code style updates.
12580 * DataGridTableStyle.cs: Removed extra line.
12581 * DataGrid.cs: Code style updates. Removed extra whitespace.
12582 * DataGridColumnStyle.cs: Code style updates. Removed extra
12585 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12587 * XplatUIX11.cs: Added comment that "fixes" #80021.
12589 2007-04-09 Jackson Harper <jackson@ximian.com>
12591 * TextControl.cs: We don't need this -1 on the line count anymore.
12593 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12595 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12596 entered value to underlying type, and convert it back to a string to
12597 apply formatting. Modified GetFormattedValue to use TypeConverter
12600 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
12602 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12603 Use SubItems property when we want to ensure there's at least one
12604 subitem. Modified SubItems property to ensure there's always at least
12605 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12606 the NRE's reported by MS.
12608 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
12610 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12611 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12612 Spaces to tabs. Removed extra tabs.
12614 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
12616 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12617 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
12619 2007-04-06 Jackson Harper <jackson@ximian.com>
12621 * TextBoxBase.cs: When a delete removes a line, recalculate all
12622 lines below that line (they need to get offsets setup correctly)
12625 2007-04-05 Jackson Harper <jackson@ximian.com>
12627 * TextControl.cs: We need to invalidate across the width of the
12628 document when we are invalidating multiple lines.
12629 * TextBoxBase.cs: Don't delete into the line ending.
12631 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12633 * ListView.cs: Restore the check for the MouseHover event
12634 in ListView. It looks like the ListView fires more than one MouseHover
12635 event when HoverSelection is true _only_ in weird-corner scenarios, but
12636 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12639 2007-04-05 Mike Kestner <mkestner@novell.com>
12641 * ListView.cs : raise MouseDown before updating selection.
12642 [Fixes #80373 tab 1&3]
12644 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12646 * ToolStripRenderer.cs: Add static method to mirror image.
12647 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12648 and RightToLeftAutoMirrorImage.
12649 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12651 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12653 * ToolStripSplitStackLayout.cs: Support Alignment property.
12654 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12656 2007-04-05 Jackson Harper <jackson@ximian.com>
12658 * TextControl.cs: Move around the line endings when crossing line
12660 - When combining lines, strip the ending text off the first line.
12662 2007-04-05 Jackson Harper <jackson@ximian.com>
12665 * TextBoxBase.cs: Try to never move the cursor into the line
12668 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12670 * ToolStripItem.cs: Make sure we aren't firing mouse events when
12671 the item is disabled. Also add a few missing methods.
12673 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12675 * ListView.cs: We don't need the MouseEnter/MouseLeave check
12676 to fire just one MouseHover event when HoverSelection is true, since
12677 .Net does fire more than one MouseHover event in that scenario. Also,
12678 fix the selection in HoverSelection, by invoking UpdateMultiSelect
12679 if MultiSelect is true, instead of only setting ListViewItem.Selected.
12680 Finally, we need to reset the Hover logic in MouseMove, even when we
12681 don't have a selected item.
12683 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12685 * ToolStrip.cs: Add several missing methods, properties, and events.
12687 2007-04-04 Chris Toshok <toshok@ximian.com>
12689 * DataGridTextBoxColumn.cs: set the bounds of the text box to
12690 (0,0,0,0) in Commit, as MS does.
12692 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
12693 make sure we set CurrentRow on a row header click *before* calling
12694 Select. This moves the current cell (and the textbox) to the new
12695 row. The call to Select then hides the textbox, giving us the
12696 correct behavior. Fixes #80362.
12698 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
12699 (ListChangedHandler): reorder the position/current changed events,
12700 and call UpdateIsBinding in the ItemAdded case.
12702 * GridColumnStylesCollection.cs: add some columns events, one of
12703 which raises the CollectionChanged event.
12705 2007-04-04 Jackson Harper <jackson@ximian.com>
12707 * TextControl.cs: When we delete multiple selection lines
12708 invalidate the selection area, don't need to do that for single
12709 lines because the final update view will handle it.
12711 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12713 * Control.cs: When we CreateControl, we need to also create all of the
12714 control's children. The child's OnLoad must also fire before the parent's
12715 OnLoad. Fixes the toolbox size in PDN.
12717 2007-04-04 Jackson Harper <jackson@ximian.com>
12719 * TextBoxBase.cs: When the user presses enter, insert a line
12720 ending into the text. (Maybe this would be a good spot for
12721 Environment.NewLine).
12722 * TextControl.cs: Remove undo manager hack, line endings get
12723 inserted properly now.
12725 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12728 - Remove unneeded parameters in UpdateCursor.
12729 - Fix UpdateCursor to check if menu is active.
12730 - Call UpdateCursor when menu deactivate my click.
12731 [Fixes remaining issues from #80410]
12733 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12735 * Control.cs: GetRealChildAtPoint method added, it make an
12736 recursive child control search for the point.
12738 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
12741 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
12743 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12745 * Form.cs: Fix mouse position when send back mouse event after closes
12748 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12750 * Form.cs: Simplify the BUTTONDOWN for active tracker.
12752 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12754 * Control.cs: Fix an issue where if a user resized a control inside
12755 a sizing method like OnResize, we would overwrite their explicit
12756 value. Also, only call DefaultSize once in the constructor instead
12757 of 4 times. Also, do not call SetBoundsCore from SetBounds if
12758 nothing actually changed.
12760 2007-04-03 Jackson Harper <jackson@ximian.com>
12762 * TextControl.cs: Don't attempt to copy text for lines with no
12763 text in them (technically this shouldn't happen, but we aren't
12764 always inserting line endings when we should be).
12766 2007-04-03 Jackson Harper <jackson@ximian.com>
12768 * TextBoxBase.cs: Calculate the scrollbars before calculating the
12769 document, because this sets some of the document size properties
12772 2007-04-03 Jackson Harper <jackson@ximian.com>
12774 * TextBoxBase.cs: We need to calculate maximums even if this is
12775 not a multiline control, because the maxs are used for scrolling.
12776 - Display the caret after doing a page up/down, we need to
12777 manually display it because a proper CaretMoved event isn't
12778 triggered (this is because of the way the math is done to
12779 determine how far to scroll).
12781 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12783 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
12784 (ToolBar was relying on SetBoundsCore to default the values sent
12785 base off of BoundsSpecified.)
12787 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12789 * DateTimePicker.cs: Change Text so that when a null value or empty
12790 string is assigned to the test we always raise ValueChanged and
12791 TextChanged (earlier implementation would only raise ValueChanged
12792 if the current date value was different from DateTime.Now).
12794 2007-04-03 Andreia Gaita <avidigal@novell.com>
12796 * ButtonBase: Call update after invalidation, fixes #80194
12798 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12800 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
12803 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12805 * XplatUIX11.cs: SetWMStyles: If the control is a form with
12806 FormBorderStyle = None, don't give the window any decorations.
12809 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12811 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12812 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
12813 to check for is a mix of several styles (such as WS_CAPTION for
12815 * Control.cs: Don't paint an area bigger than the client area when
12816 painting the background colour. Add an internal GetCreateParams.
12817 Update calls to XplatUI.CalculateWindowRect due to API change.
12818 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
12819 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
12820 the size if it hasn't been handled by any windows. When creating
12821 and moving windows, X wants the location of the entire window, but
12822 the size of the client window, so add
12823 TranslateClientRectangleToXClientRectangle,
12824 TranslateWindowSizeToXWindowSIze and
12825 TranslatedXWindowSizeToWindowSize to cope with this, and call them
12826 before every window creation and move. Update CalculateWIndowRect
12827 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
12828 In AddConfigureNotify don't do anything if the hwnd is a zombie
12829 (fixes the BadWindow we were getting while running the tests),
12830 always calculate the offsets when it's a parentless window, not
12831 only when reparented, and translate the window size, since we're
12832 getting the client size of the whole window, excluding entire
12834 * Theme.cs: Added BorderSizableSize.
12835 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12836 anymore. Update calls to XplatUI.CalculateWindowRect due to API
12838 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
12839 change. Fake the window styles here instead of in XplatUIWin32 so
12840 that all back-ends get the same window styles (and it's Form that's
12841 deciding when to use wm, not the Win32 backend anyways)
12842 * Hwnd.cs: Completely reworked GetWindowRectangle and
12843 GetClientRectangle - they are now passed a CreateParams and they
12844 only use Style and ExStyle to determine the rectangles (they should
12845 now work just like Win32AdjustWindowRectEx - though quite a few
12846 special cases are probably missing). They should also be 100%
12847 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
12848 == rect), and all numbers (borders, menu sizes) are taken from the
12849 current theme. Added a GetBorders helper function that will return
12850 the borders for any given CreateParams (including captions and
12851 menus), and GetBorderSize that returns the given border size only.
12852 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
12853 Hwnd.GetClientRectangle.
12855 2007-04-02 Chris Toshok <toshok@ximian.com>
12857 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
12858 logic between the values we present to the user and the values
12859 which are stored in the column's property. Also, don't call
12860 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
12862 2007-04-02 Jackson Harper <jackson@ximian.com>
12864 * TextBoxBase.cs: Scroll faster!
12866 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
12868 * StatusStrip.cs: Layout fixes for PDN.
12869 * ToolStrip.cs: Set item's available to true, and placement to main when
12871 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
12872 changing in setter before doing any work, add InternalVisible.
12873 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
12874 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12877 2007-04-02 Jackson Harper <jackson@ximian.com>
12879 * TextBox.cs: LBUTTON does not make the textbox select all of it's
12882 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12884 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
12885 Makes ToolStripComboBoxes show up again.
12887 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12889 * ListView.cs: Add a hover_pending field in ListView
12890 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
12891 cycle (we are resetting the MouseHover logic in XplatUI
12892 to handle HoverSelection). Fixes #80429.
12894 2007-04-02 Jackson Harper <jackson@ximian.com>
12896 * TextControl.cs: Make sure the attributes get set on the last
12898 - Still have to do the end tag if we have stepped all the ways to
12901 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
12903 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
12904 on an internal libgdiplus call when the information is already
12905 available via the public API.
12907 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12909 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
12910 control is removed from a control collecftion.
12911 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
12912 Fixes FormPropertyTest (failed on rare occasions).
12913 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
12914 of Win32SetParent (when changing from no parent to a parent it
12915 might add the new parent's location in screen coordinates to this
12916 window's location).
12917 * Form.cs: Rework ChangingParent once again, now the handle is
12918 recreated whenever a FormWindowManager is added or removed (that is
12919 whenever a normal form is parented or abandoned). Also change
12920 CreateParams so that all non-toplevel windows always get the
12921 specified sice (StartupPosition is never considered for
12922 non-TopLevel forms).
12923 * ContainerControl.cs: Add ChildControlRemoved, the container control
12924 needs to be notified when a control is removed from it's
12925 collection, in the case the removed control is the active control.
12927 2007-04-02 Jackson Harper <jackson@ximian.com>
12929 * RichTextBox.cs: Use the new methods for setting the font and
12930 color, these methods set the specified attribute without
12931 overriding the other attributes.
12933 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
12935 * ToolStripPanel.cs: Fixes for better layouts in PDN.
12937 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
12939 * TextBox.cs: Added internal ChangeBackColor method to special-case
12940 Color.Empty. Added check for invalid ScrollBars value.
12941 * TextBoxBase.cs: Added internal ChangeBackColor method.
12942 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
12943 internal ChangeBackColor method to special-case Color.Empty. Added
12944 check for invalid ScrollBars value.
12946 2007-03-30 Everaldo Canuto <everaldo@simios.org>
12948 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
12950 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
12952 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
12953 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
12954 [Based on submitted patch from Olivier Duff.]
12956 2007-03-30 Jackson Harper <jackson@ximian.com>
12958 * TextBox.cs: Only select all on initial focus if the user has not
12959 specified a selection area.
12961 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
12963 * UserControl.cs: Override CreateParams.
12965 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12969 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12970 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
12971 check for is a mix of several styles (such as WS_CAPTION for instance).
12972 * Control.cs: Don't paint an area bigger than the client area when painting
12973 the background colour. Add an internal GetCreateParams. Update calls to
12974 XplatUI.CalculateWindowRect due to API change.
12975 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
12976 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
12977 hasn't been handled by any windows. When creating and moving windows, X
12978 wants the location of the entire window, but the size of the client
12979 window, so add TranslateClientRectangleToXClientRectangle,
12980 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
12981 to cope with this, and call them before every window creation and move.
12982 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
12983 removing DeriveStyles). In AddConfigureNotify don't do anything if the
12984 hwnd is a zombie (fixes the BadWindow we were getting while running the
12985 tests), always calculate the offsets when it's a parentless window, not
12986 only when reparented, and translate the window size, since we're getting
12987 the client size of the whole window, excluding entire window.
12988 * Theme.cs: Added BorderSizableSize.
12989 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12990 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
12991 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
12992 Fake the window styles here instead of in XplatUIWin32 so that all
12993 back-ends get the same window styles (and it's Form that's deciding when
12994 to use wm, not the Win32 backend anyways)
12995 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
12996 they are now passed a CreateParams and they only use Style and ExStyle
12997 to determine the rectangles (they should now work just like
12998 Win32AdjustWindowRectEx - though quite a few special cases are probably
12999 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13000 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13001 sizes) are taken from the current theme. Added a GetBorders helper
13002 function that will return the borders for any given CreateParams
13003 (including captions and menus), and GetBorderSize that returns the given
13005 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13006 Hwnd.GetClientRectangle.
13008 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13010 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13011 layout of the mdi children is handled by CreateParams. Fixes
13014 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13016 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13019 * Form.cs: When active tracker mouse down is not processed, send event
13020 back to control inside mouse position. [Fixes #81227]
13022 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13024 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13025 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13026 stealing focus from the active form on Windows. (Control will be made
13027 visible in ShowWindow.)
13029 2007-03-29 Mike Kestner <mkestner@novell.com>
13031 * ImageList.cs : add internal Changed event.
13032 * ListView.cs : hook up to StateImageList.Changed to perform
13033 invalidations when the the state icon list changes. [Fixes #81191]
13035 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13037 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13038 to prevent tooltips from stealing focus from the active form on Windows.
13040 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13042 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
13044 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13046 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13048 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13051 2007-03-29 Jackson Harper <jackson@ximian.com>
13053 * TextControl.cs: When deleting text from non multiline textboxes,
13054 we need to update the entire document, because line offsets will
13057 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13059 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13060 added to theme, now we can create themes that uses diferent notify engines
13061 like notification-daemon from galago project or growl for Mac OS.
13063 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13065 * NotifyIcon.cs: Prevent Balloon to show in task bar.
13067 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13069 * XplatUIX11.cs: Prevent system to open more than one balloon.
13071 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13072 some compiler warning messages.
13074 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13078 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13080 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
13081 implemented, this methods is used by NotifyIcon.BalloonWindow class.
13083 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
13086 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13088 * ListViewItem.cs: Forgot to make Invalidate internal.
13090 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13092 * ListView.cs: Add a InvalidateSelection method to
13093 invalidate methods which are currently selected, and call
13094 it when setting FullRowSelect and HideSelection, instead of
13097 2007-03-28 Chris Toshok <toshok@ximian.com>
13099 * XplatUIX11.cs (UnmapWindow): reindent this block.
13101 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13102 the selection_start if we're moving the selection (that is, not
13103 extending it). Fixes bug #80461.
13105 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13107 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13108 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13109 create private ControlCollection.
13111 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13113 * Control.cs: We need to call OnVisibleChanged for our implicit
13114 children as well as our normal children. Fixes scrollbars in
13115 comboboxes not showing up.
13117 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13119 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13120 the check for IsHandleCreated first. The check in CreateHandle is not
13121 good enough because CreateHandle can be overriden, and the override
13122 should not be called if the handle is already created.
13124 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13126 * ToolStrip.cs: Remove MonoTODO for tooltips.
13127 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13128 * ToolStripContainer.cs: Add custom ControlCollection class.
13129 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13130 * ToolStripDropDown.cs: Add some missing properties/methods.
13131 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13132 * ToolStripItem.cs: Remove MonoTODO for tooltips.
13133 * ToolStripManager.cs: Add IsShortcutDefined.
13134 * ToolStripOverflow.cs: Override LayoutEngine.
13135 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13136 * ToolStripSeparator.cs: Add ImageKey.
13138 2007-03-28 Jackson Harper <jackson@ximian.com>
13140 * TextControl.cs: If a char delete removes a line ending, we need
13141 to update the ending style.
13142 - Make sure the line ending calcs get called.
13144 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13146 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13147 it was making the new code not work. Fixed a typo in the new code
13148 as well. Fixes #79826.
13150 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13153 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13154 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13155 - SystrayBalloon method implemented.
13156 [Add support for notifyicon balloon on win32, #79149]
13158 2007-03-27 Mike Kestner <mkestner@novell.com>
13160 * ThemeWin32Classic.cs : update StateImageList selection to mirror
13161 the ms behavior when only one image is added to the list.
13164 2007-03-27 Jackson Harper <jackson@ximian.com>
13166 * TextControl.cs: Improvements to non multiline line ending
13169 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13171 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
13173 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13176 - Balloon message handling added.
13177 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
13179 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13180 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
13181 to SystrayBalloon to me like other Systray method, also a
13182 handle parameter added.
13184 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13186 * ListView.cs: Show scrollbars even when items.Count == 0
13187 but the columns Width is bigger than the ListView.Width.
13188 Also, when columns.Count == 0 set layout_wd and layout_ht
13189 to the ClientRectangle values, so we don't show any scrollbar
13192 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13194 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13196 2007-03-27 Jackson Harper <jackson@ximian.com>
13198 * RichTextBox.cs: The RTF library decodes the text properly for us
13201 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13203 * ListView.cs: Display HeaderControl even when columns.Count == 0.
13204 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13205 ListView header (HeaderControl), instead of Control.BackColor.
13207 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13209 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13210 Fixes tab control issues where controls would not show up because they
13211 never received their OnVisibleChanged call.
13213 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13215 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13218 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13220 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13221 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13222 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13223 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
13224 the handle. Fix WindowState by using the internal variable until we are
13225 sure that we've been shown.
13226 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13230 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13232 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13233 (at least borders). Fixes #79386 on Linux (with a small difference
13234 in behaviour: when trying to resize a caption-less window metacity
13235 shows the sysmenu. Resizing is still possible though).
13236 * XplatUIWin32.cs: When setting window styles send request an extra
13237 WM_NCCALCSIZE when it's a form without title (due to no text and no
13238 caption), since Win32 seems to calculate it wrong the first time we
13239 get the message, though the second time things work as they should.
13240 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13241 newly reparented window might show up unparented. Update
13242 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13243 there's no title text. Fixes #79386.
13245 2007-03-27 Mike Kestner <mkestner@novell.com>
13247 * ListBox.cs : don't perform invalidations if the handle hasn't been
13248 created. [Fixes #80753]
13250 2007-03-27 Mike Kestner <mkestner@novell.com>
13252 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13255 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13257 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
13258 needed to implement Balloon.
13260 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13262 * ListViewItem.cs: In the constructors that take
13263 an array of strings, don't use ListViewSubItemCollection.AddRange
13264 method to add items, since we need to have a different behaviour (in
13265 the constructors we add an item for each null string, opposed to
13266 the behaviour of AddRange, which adds nothing).
13268 2007-03-26 Andreia Gaita <avidigal@novell.com>
13270 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13272 2007-03-26 Jackson Harper <jackson@ximian.com>
13274 * TextControl.cs: Draw and measure line endings when in non
13276 - When searching the text, count the end of the last line as a
13279 2007-03-26 Jackson Harper <jackson@ximian.com>
13281 * RichTextBox.cs: The selection_start and selection_end don't
13282 really track the correct tags for the selection. So we'll manually
13283 compute the correct tag here.
13285 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13287 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13288 and Continuous styles. Fixes #79469.
13290 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13292 * ToolStrip.cs: Implement Tooltips.
13293 * ToolStripItem.cs: Create internal method for determining tooltip.
13295 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13297 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13299 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13301 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13302 it prevents a problem thak keeps icon visible after application
13305 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13307 * NotifyIcon.cs: Balloon properties and methods created.
13309 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13310 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13312 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
13314 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13316 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13318 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
13319 parameter indicates which aspects were explicit/user-set.
13320 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13322 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13324 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13325 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13326 SmallChange, and Value (2.0).
13327 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13329 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13331 * ListView.cs: Always set item_control.Width in LayoutDetails
13332 if View is Details. Setting it later in CalculateScrollBars
13333 in a not-so-corner scenario (the sum of columns width is
13334 not bigger than the ListView width when handle is created, and then
13335 that sum gets bigger by increasing the width of the columns)
13336 causes a very weird recursion path (which shouldn't be happening,
13337 since header_control sets it in CalculateScrollBars too). This bug
13338 appeared after Chris' fixes for handle created issues, so probably
13339 it's related to some handle-creation time.
13341 2007-03-23 Chris Toshok <toshok@ximian.com>
13343 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13344 case where there's an add row, just so we don't end up in a case
13345 where it's not displayed (this happens when the row is partially
13346 obscured). Fixes bug #79574.
13348 2007-03-23 Jackson Harper <jackson@ximian.com>
13352 * RichTextBox.cs: Preserve line endings in the lines text buffer,
13353 also added an enum that represents the line ending type.
13355 2007-03-23 Andreia Gaita <avidigal@novell.com>
13357 * NumericUpDown.cs: Fix logic so Text and Value properties are not
13358 messed with in every method call, but only from DownButton,
13359 UpButton, UpdateEditText() and ValidateText. Fixes #80346
13361 2007-03-23 Chris Toshok <toshok@ximian.com>
13363 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13364 format objects if the format spec is "". Fixes bug #80889.
13366 2007-03-22 Miguel de Icaza <miguel@novell.com>
13368 * ToolStripPanel.cs (Join): added stubs to build PDN3
13370 * Control.cs (AutoScrollOffset): Add.
13372 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13373 property, its only implemented for Win32, on X11 it defaults to
13374 some hardcoded value.
13376 * ToolStripItem.cs (AllowDrop): Add property
13378 2007-03-22 Mike Kestner <mkestner@novell.com>
13380 * ListView.cs : in FullRowSelect Details mode, only enable box
13381 selection if the user clicks over the "item" column outside of the
13382 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
13384 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13386 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13387 handle is not created yet.
13388 * Form.cs: Select: Don't call CreateHandle if the handle is already
13389 created, avoids a stack overflow on Windows when we are recreating
13391 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13392 they are made visible, and override AfterTopMostControl to keep
13393 them on top when other controls are brought to front.
13394 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13395 or force_*scroll_visible is true (old implementation always shows
13396 scrollbars when needed, no matter what auto_scroll was set to).
13397 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13398 IsHandleCreated check.
13400 2007-03-22 Andreia Gaita <avidigal@novell.com>
13402 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13403 row or col separator.
13404 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13406 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13408 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13410 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13412 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13413 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
13414 every time. Fixes #80410.
13416 2007-03-22 Chris Toshok <toshok@ximian.com>
13418 * BindingSource.cs (AddNew): partially implement.
13420 remove a couple of NotImplementedException's
13421 to get bug #81148 closed.
13423 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13428 - UpdateCursor method added to update the screen cursor.
13429 - GetAvailableCursor method added to return cursor for enabled tree,
13430 it searches for cursor on control and it's parent's for enabled control.
13431 - Call UpdateCursor method on setter of Cursor property.
13432 - On setter of Enabled call UpdateCursor when it is false, we need to
13433 change cursor to normal (or to this parent cursor) because cursor
13434 setting theres no effect to disabled controls.
13435 - Some minor source changes to follow the coding style guidelines.
13437 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
13440 2007-03-22 Chris Toshok <toshok@ximian.com>
13442 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13445 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13447 * XplatUIX11.cs: Implement default locations for forms.
13448 * Form.cs: Completely rework startup location for forms. Fixes #79964.
13449 * Hwnd.cs: Add previous_child_startup_location (to track the current
13450 startup location for any child forms of the current form) and
13451 previous_main_startup_location (to track the startup location for
13452 the current toplevel form).
13454 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13456 * Control.cs: Don't trigger a layout if an implicit control is added
13457 that isn't visible. Also, don't notify the owner when an implicit control
13458 is added. (Owners shouldn't even know about their implicit controls.)
13460 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13462 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13463 to save some re-layouts.
13465 2007-03-21 Everaldo Canuto <everaldo@simios.org>
13467 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13470 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13472 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13473 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13475 2007-03-21 Mike Kestner <mkestner@novell.com>
13477 * ListView.cs : disable selection update for non-left button clicks
13478 with mods and over selected items. [Fixes #80524]
13480 2007-03-20 Jackson Harper <jackson@ximian.com>
13483 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13486 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13488 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13489 very probably a more complicated calculation there. Update the
13490 textbox' ForeColor and BackColor when the ComboBox' colors are
13491 changed. Change the border change in LayoutComboBox to only affect
13492 the textbox, not all the calculations there. Seems to fix most of
13495 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13497 * ComboBox.cs: Handle Home and End keys as well as all combinations of
13498 modifiers + navigation keys as input keys, enables advanced text
13499 selection in the combobox (like Shift+Left Arrow for instance).
13500 ComboTextBox now overrides Focused and returns whatever
13501 ComboBox.Focused returns, since it really should be focused
13502 whenever the ComboBox is. Fixes #80795. Also make the border around
13503 the text box one pixel bigger, as mentioned in #79436.
13505 2007-03-20 Jackson Harper <jackson@ximian.com>
13507 * TreeView.cs: Don't offset the images, this was causing some
13508 artifacts when expanding/collapsing with images that were the
13509 exact height of the treenode.
13511 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13513 * TrackBar.cs: Query the theme for the correct value when the mouse
13514 moves and the thumb is pressed.
13515 * Theme.cs: Added TrackBarValueFromMousePosition
13516 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13517 implementation was updating the trackbar value when drawing, now
13518 the drawing methods only draw. Fixes #80900. Refactored the
13519 calculations out to TrackBarValueFromMousePosition and
13520 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13521 according to the mouse position whenever it wants to. Changed the
13522 light coloured pen when drawing the thumb from ControlLight to
13523 ControlLightLight, because the ControlLight is the same colour as
13524 the background so the 3D effect is lost.
13526 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13528 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13529 defined. Fixes #80784.
13531 2007-03-20 Marek Habersack <mhabersack@novell.com>
13533 * ContextMenuStrip.cs: align with the change introduced in
13536 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13538 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
13539 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
13542 2007-03-19 Chris Toshok <toshok@ximian.com>
13544 * Control.cs (WmPaint): don't make use of the Handle property
13545 after an event is emitted, as the user could have closed the
13546 form/destroyed the control. Store the Handle in a local variable
13547 and make use of that. Fixes bug #80768.
13549 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13551 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13552 behavior in X11 environments.
13554 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13556 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13557 because on setter of topmost we dont call SetTopmost when handle is not
13560 2007-03-20 Jackson Harper <jackson@ximian.com>
13562 * TextControl.cs: Need to use SelectionLength () not
13563 selection_length, since that var is reset to -1.
13564 - Draw the caret when we don't have focus.
13565 * TextBox.cs: The selectall actually doesn't occur until the first
13567 * TextBoxBase.cs: Need to update the caret position after a
13570 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13572 * ListView.cs: Enable scrolling when using Tile view.
13574 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13578 * XplatUIDriver.cs: Abstract SetOwner method created.
13580 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
13581 must be implemented and was masked as todo.
13583 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
13586 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
13587 cheking for null owner to remove transient. The SetTopmost will be change
13590 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13591 SetTopmost. Now owned forms will work properly in win32 and X11.
13593 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13595 * MdiWindowManager.cs: Update function name.
13596 * Form.cs: After closing a form MdiParent is always null.
13597 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13598 better what it should do: necessary book-keeping when the form is
13599 closed, it should not close the form itself.
13601 2007-03-19 Andreia Gaita <avidigal@novell.com>
13603 * ListViewItem.cs: Fix back and fore color. The subitems only
13604 use their own colors if they are set, otherwise use the listview's
13605 colors. Don't set default colors on constructor for subitem.
13608 2007-03-19 Mike Kestner <mkestner@novell.com>
13610 * ListView.cs : make box selection for Details views with
13611 FullRowSelect conform to MS behavior when clicking in the "item"
13612 column and clicking outside the defined columns.
13613 [Fixes case 5-6 of #80374]
13615 2007-03-19 Chris Toshok <toshok@ximian.com>
13617 * ScrollableControl.cs: create the controls from within the ctor,
13618 but don't actually add them until our handle is created. this
13619 fixes a NRE possibility jpobst found (if you override OnLayout in
13620 a subclass, it's called before your ctor). Also, add a
13621 IsHandleCreated guard to UpdateSizeGripVisibility as well.
13623 2007-03-19 Jackson Harper <jackson@ximian.com>
13625 * TextBox.cs: Reduce the amount of invalidation we do.
13626 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13627 some of them are true by default on MS.
13628 - Add some functions to reduce the amount of invalidates we do.
13629 * TextControl.cs: Less invalidation.
13631 2007-03-19 Chris Toshok <toshok@ximian.com>
13633 [ Fixes #81773, and *seems* to fix #81553 as well ]
13635 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13636 AccumulateDestroyedHandles. We need to do it *after* we send
13637 WM_DESTROY, as the user's code can access Control.Handle in
13638 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
13639 move the WM_DESTROY/zombie handling to before the call to
13640 XDestroyWindow. For some reason without this ordering
13641 FormTest.RecreateHandle hangs. This ordering is semantically
13642 equivalent, however, as XDestroyWindow is async anyway.
13644 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
13646 * RichTextBox.cs: Reset backcolor_set after setting default.
13648 2007-03-19 Chris Toshok <toshok@ximian.com>
13650 * ScrollableControl.cs: the scroll position should not effect the
13651 canvas size. commit patch from georgegiolfan@yahoo.com, which
13652 fixes some really bizarre behavior on resizing. Fixes bug #80778.
13654 2007-03-19 Chris Toshok <toshok@ximian.com>
13656 * ScrollableControl.cs: clean this up a bit. create the
13657 scrollbars in the ctor and just show/hide them as needed. Also,
13658 make hscroll_visible/vscroll_visible internal to Recalculate, and
13659 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13660 everywhere else. This seems to fix the scrollbars appearing
13661 beneath the content for me (i have *no* idea why that is,
13664 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13666 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
13667 some redundacy for stuff in Anchor and Dock that base will take care of.
13670 2007-03-19 Mike Kestner <mkestner@novell.com>
13672 * ListView.cs : make box selection for Details views without
13673 FullRowSelect dependent on the text bounds, not item bounds.
13674 * ListViewItem.cs : add an internal property to obtain the TextBounds
13675 in Details view. [Fixes case 1-4 of #80374]
13677 2007-03-19 Andreia Gaita <avidigal@novell.com>
13679 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
13680 we're < 2.0. #78448 && #80316
13682 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13684 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
13685 have the same style available as the previously selected one. Also,
13686 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
13688 2007-03-19 Jackson Harper <jackson@ximian.com>
13690 * TextControl.cs: Add an alignment property that all new lines
13692 - Make sure to use the align shift when calculating the line's X
13694 * TextBox.cs: Set the alignment on the document as well as on all
13695 the document lines.
13697 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13699 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
13700 throw if setting the parent of an mdichild that already has an
13701 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
13702 AssemblyProductAttribute in the assembly, use the type's namespace (as
13703 MS seems to do). CreateControl: don't create the handle if the control
13704 is not visible (according to MS behaviour and spec). SetTopLevel: Only
13705 create handle if the control is not a form. Change FocusInternal to
13706 virtual so that it can be overriden by Form.
13707 * TextBox.cs: Update call to FocusInternal.
13708 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
13709 form is not a toplevel form when it's a mdi child, so update is_toplevel
13710 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
13711 hasn't been created. Show (IWin32Window): Don't allow this overload for
13712 toplevel windows. CenterToParent/CenterToScreen/Select: create the
13713 handle as MS does. SetVisibleCore: if called on a MdiChild and the
13714 parent isn't visible yet, save the visibility and restore it when the
13715 parent is made visible.
13716 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
13717 methods, since the visibility of the scrollbars can be changed from
13718 several places, not only from AutoScroll.
13721 2007-03-19 Jackson Harper <jackson@ximian.com>
13723 * RichTextBox.cs: Enable shortcuts by default.
13724 * TextBoxBase.cs: Add conditional shortcuts.
13726 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13728 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
13730 2007-03-19 Chris Toshok <toshok@ximian.com>
13732 [ Fixes bug #80604]
13734 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
13735 swallow the message we're waiting on, instead of delivering it, as
13736 this is only used for the WM_SHOWWINDOW raised from
13737 MapWindow/UnmapWindow, and the message needs to be generated
13738 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
13739 before doing the Map/Unmap. Also make sure that the Hwnd is still
13740 alive after the message has been handled.
13742 *before* the window is shown.
13744 * Control.cs (CreateControl): guard a few more things inside the
13745 if (!is_created) block, as we might end up being called again -
13747 (WmShowWindow): call CreateControl if we're showing the control.
13749 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13751 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
13752 controls without a handle if they have any parent with a handle. In
13753 Dispose add a check whether the handle is created or not before
13754 calling BeginInvoke, this removes the need of the extra disposing
13755 parameter (which was bogus anyway since it didn't prevent the
13756 invoke from happening, it only skipped the check for an existing
13757 handle, meaning that the invoke would call on an inexistent
13760 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13762 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
13763 appears in taskbar.
13765 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13768 - Fixed a problem that dont show help button for messages with 3 buttons.
13769 - Refactory button size and position calculations, now dont use fixed
13770 values, also fixed button sizes (#80043) and form's border space.
13771 - AddButton method created, now all other AddButton methods call this one.
13772 - Some other source code cosmetic changes.
13774 2007-03-18 Jackson Harper <jackson@ximian.com>
13776 * RichTextBox.cs: Don't do this all fonts must match check if
13777 there is only one char selected.
13779 2007-03-18 Jackson Harper <jackson@ximian.com>
13781 * TreeView.cs: ScrollWindow works properly now, so we don't need
13782 to screw around with the scroll area. This fixes some artifacts
13783 when expanding and collapsing.
13785 2007-03-18 Jackson Harper <jackson@ximian.com>
13787 * TextBoxBase.cs: Allow updating the selection position when the
13788 cursor is outside the textarea, but we have a capture.
13789 * TextControl.cs: A special case for when the cursor is outside
13790 the bounds of the TB.
13792 2007-03-18 Jackson Harper <jackson@ximian.com>
13794 * TextBoxBase.cs: Remove image pasting code for now. There is no
13795 way to get an image on the clipboard right now anyways.
13797 * RichTextBox.cs: Use the new RTF Picture class for pictures.
13799 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13802 - Set window properties in constructor intead of on CreateParams.
13803 - Remove topmost from Window ExStyle.
13804 - Set ShowInTaskbar to false.
13805 - Set form border to FixedDialog.
13806 - Some cosmetic changes and remove unneeded comments.
13807 - It fixes itens 2,3 and 4 of bug #80043.
13809 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
13811 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
13812 none was explicitly set. Fixes part of bug #79949.
13814 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
13816 * ToolStripComboBox.cs: Add AutoComplete*.
13818 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
13820 * ToolStripComboBox.cs: Add FlatStyle.
13822 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
13824 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
13825 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
13827 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13829 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
13830 CheckBox.cs, RadioButton.cs, BindingSource.cs,
13831 DataGridColumnStyle.cs: Remove warnings.
13833 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13835 * Menu.cs: MergeMenu: Check menu argument for null before looping over
13837 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
13838 visibility of mdi child forms. FormSizeChangedHandler: update the
13839 maximized size if size has changed while maximized.
13840 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
13841 creating the handle.
13842 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
13843 avoid creating the handle if not created.
13844 * XplatUI.cs: Update debug output.
13845 * XplatUIStructs.cs: Added ToString's for a couple of structs.
13847 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
13849 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
13851 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
13852 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
13853 Implement keyboard shortcuts.
13855 2007-03-15 Everaldo Canuto <everaldo@simios.org>
13857 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
13858 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
13859 ColorDialog and all derived classes.
13861 2007-03-15 Everaldo Canuto <everaldo@simios.org>
13863 [ Fixes bug #79828 ]
13866 - Rename ToolBarButtonInfor to ToolBarItem.
13867 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
13868 - Maintain an array of ToolBarItem, used instead of ToolBarButton
13869 collection to be able add same button more than one time on a toolbar.
13870 - Refactory all properties and methods to use ToolBarItem.
13872 * ToolBarButton.cs:
13873 - Remove all propeties and methods that is now in ToolBarItem.
13874 - Rectangle propery now gets the rectangle from first ToolBarItem to
13875 mimic win32 behavior.
13876 - Size calculation and layout methods also removed.
13878 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
13879 ToolBarItem instead of ToolBarButton to right drawing buttons when
13880 same button/separator was added more than one time to ToolBar.
13882 * ThemeNice.cs: Same as above.
13884 2007-03-15 Andreia Gaita <avidigal@novell.com>
13886 * XplatUIX11.cs: Fire extra MouseMove events right after
13887 MouseDown and MouseUp, emulating win32's <censored> behaviour
13888 for apps that rely on it.
13890 2007-03-15 Jackson Harper <jackson@ximian.com>
13893 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
13894 it is drawn on the controls client window and there is no NC
13896 - Set the background color to gray on 2.0 when we are readonly.
13898 2007-03-15 Chris Toshok <toshok@ximian.com>
13900 [ Fixes bug #81144 ]
13902 * XplatUIX11.cs: implement VirtualScreen independently of
13903 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
13906 2007-03-15 Chris Toshok <toshok@ximian.com>
13908 * Hwnd.cs: add an internal field for the cached_window_state.
13910 * XplatUIX11.cs: cache the window state, invalidating the cache
13911 (and thus re-querying the X server) only when we see an update to
13912 the _NET_WM_STATE property.
13914 2007-03-15 Chris Toshok <toshok@ximian.com>
13916 * BindingSource.cs: get a lot of the unit tests working.
13918 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
13920 * Control.cs: Modify UpdateStyles to store distances when bounds >=
13921 0 instead of just bounds > 0. [Fixes bug #80912]
13923 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
13925 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
13928 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
13930 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
13931 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
13932 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
13933 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
13935 2007-03-15 Chris Toshok <toshok@ximian.com>
13939 * Control.cs: add Ivan's fix for 81101, with a slight modification
13940 - you can set control.Target to null.
13942 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
13944 * ToolStripItem.cs: If our OwnerItem is null, we can't use
13945 HideDropDown, use Hide instead to prevent an NRE.
13948 2007-03-14 Jackson Harper <jackson@ximian.com>
13950 * TextBoxBase.cs: Mess with the creation stuff a little. We need
13951 to calculate the document before the handle is created, in some
13952 cases. (Actually just one case).
13954 2007-03-14 Jackson Harper <jackson@ximian.com>
13956 * TextBoxBase.cs: Need to display the caret after letting the base
13957 wndproc handle the focus methods, because the caret display
13958 methods check the focus state.
13959 - Try to display the caret after updating it's position with SelectWord.
13960 - Don't need to do an immediate update on this recalc, since there
13961 will be an invalidate anyways.
13963 2007-03-14 Jackson Harper <jackson@ximian.com>
13965 * TreeView.cs: Some workarounds so that we can match event order a
13968 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
13970 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
13971 #80803. Avoid NullReferenceException when Control does not have
13972 parent. Fixed different blinkstyle issues. Only subscribe to Tick
13973 event a single time. Only draw error icon when control is created and
13974 visible. Fixes failing unit tests.
13976 2007-03-14 Andreia Gaita <avidigal@novell.com>
13978 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
13979 Selecting events. Fire Leave and Enter events when changing tabs.
13981 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
13983 * TreeView.cs: Add TreeViewNodeSorter.
13984 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
13986 2007-03-14 Chris Toshok <toshok@ximian.com>
13988 * Form.cs: go ahead and remove the RecreateHandles that jpobst
13989 removed earlier and I had him add back it. It turns out metacity
13990 *does* in fact handle the MOTIF_WM_HINTS property changing, it
13991 just doesn't redraw the window titlebar until you resize the
13992 window. This also means we aren't recreating the entire window
13993 hierarchy on X when you change this property. And it looks better
13996 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13999 * ListView.cs: Collecting selection information
14000 is now done in SelectedIndexCollection rather than in
14001 SelectedListViewItemCollection. This is done so we can
14002 have the selection information code in one single place
14003 (virtual mode selection information entirely depends on
14004 SelectedIndexCollection).
14006 2007-03-13 Miguel de Icaza <miguel@novell.com>
14008 * ErrorProvider.cs: Add stubs for ISupportInitialize
14010 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14012 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14013 in the right order with the right values, from the Checked property,
14014 just as MS does (instead of triggering them from ListView).
14016 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14018 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14020 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
14021 the correct handler in OnItemCheck method (ItemCheckEventHandler
14022 instead of EventHandler). This used to throw an InvalidCastException.
14024 2007-03-13 Jackson Harper <jackson@ximian.com>
14026 * TextBoxBase.cs: Calculate the document before the handle is
14027 created, so there isn't an extra invalidate called.
14029 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
14031 * Form.cs: Don't set owner in ShowDialog until we are sure
14032 that we aren't going to throw an exception. [Fixes bug #80773]
14034 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
14036 * TreeView.cs: Make it compile.
14038 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14040 * Control.cs: Another place we don't call SizeFromClientSize.
14041 * Form.cs: Another place we don't call SizeFromClientSize.
14044 2007-03-12 Jackson Harper <jackson@ximian.com>
14046 * TreeView.cs: Basically emulating some strangness here with
14047 exanding nodes and setting node positions when windows aren't
14049 - Also attempting to walk the node tree less than previously, and
14050 just use visible order calculations for determining offsets.
14051 - oops made scrolling backwards.
14052 * TreeNode.cs: We need to start nodes with a zero visible order,
14053 because the order calcs are based on the first nodes order.
14055 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14057 * Form.cs: Don't exit the program if RecreateHandle is called on
14060 2007-03-12 Chris Toshok <toshok@ximian.com>
14062 * XEventQueue.cs: remove the use of PostQuitState.
14064 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
14065 WM_QUIT message in GetMessage, return false (and if we're in the
14066 nested WaitForHwndMessage, repost the WM_QUIT message).
14068 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14070 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14071 or the MaximizeBox properties. [Part of bug #80640]
14073 2007-03-12 Everaldo Canuto <everaldo@simios.org>
14075 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14078 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14080 * ToolStripItem.cs: Fix some tests I broke by checking Visible
14081 instead of visible.
14083 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
14085 * FileDialog.cs: Use text of File name combobox to determine what
14086 files the user selected. Added tokenizer to parse the file names.
14089 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14091 * Control.cs: We can't call SizeFromClientSize in the constructor,
14092 but we still need to do the same work, so make an internal version.
14095 2007-03-12 Jackson Harper <jackson@ximian.com>
14099 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14102 2007-03-12 Jackson Harper <jackson@ximian.com>
14104 * TextBoxBase.cs: Now that the handles are being created a little
14105 later, we need to make sure that the document is recalculated when
14106 the handle is created.
14108 2007-03-11 Everaldo Canuto <everaldo@simios.org>
14110 * Theme.cs: GetLinkFont abstract method added.
14113 - Remove CalcTrimRectangle, no longer needed.
14114 - Factor also remove, position issues must be fixed in libgdiplus.
14115 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14116 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
14117 care about font used to draw links.
14118 - Set TabStop to true when control is "Selectable", control is selectable
14119 when have one or more links. Fixes #80501 (test case is also added).
14120 - Set the LinkArea values after links change, LinkArea values must be
14121 based in first link position and size, a test case was created.
14122 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
14123 the attribute must be true LinkArea.Length > 0. The same was applied to
14126 * ThemeWin32Classic.cs:
14127 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
14129 - Use CPDrawStringDisabled to draw disabled text instead of hard code
14131 - Draw focus rectangle for every parts focused, including parts that
14132 is on another line, its because regions returns various rectangles
14133 and not only one. Needed to mimic W32 look.
14134 - Uses Graphics.Clip to delimite region painted, it mean that now
14135 complete text is passed to DrawString, with this we solve layout
14136 issues without create another text renderer.
14137 - Uses Region.Intersect to fix some flickers problems, now only needed
14138 parts will redrawed.
14139 - This changes fixes #79614 and some other unreported issues, on Linux
14140 some layout problems still remain, the problem is under
14141 MeasureCharacterRanges but it is an libgdiplus bug.
14143 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
14145 * TextBox.cs: Set for foreground color.
14146 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14147 this is already done in Control.
14149 2007-03-10 Jackson Harper <jackson@ximian.com>
14151 * TextBox.cs: Set the background color, but reset the
14152 backcolor_set flag which is just for the user setting the
14155 2007-03-09 Chris Toshok <toshok@ximian.com>
14157 * Control.cs: really remove the call to XplatUI.SetVisible from
14158 CreateHandle(), like I said I did when I merged the branch.
14160 * BindingSource.cs: implement some more of this stuff.
14162 2007-03-09 Jackson Harper <jackson@ximian.com>
14164 * TextBox.cs: Don't explicitly set our background colors.
14166 * TextBoxBase.cs: Draw readonly text.
14167 - Need to invalidate when backcolor or readonly are changed.
14169 2007-03-09 Jackson Harper <jackson@ximian.com>
14171 * TextBoxBase.cs: Don't set the forecolor until the handle is
14173 - Do not raise OnPaint, and removed some old debug code.
14175 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
14177 * ScrollableControl.cs: Fix mouse wheel scrolling.
14179 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14181 * Control.cs: Wire up MouseDoubleClick event.
14183 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14185 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14187 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14188 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14189 item is added. This logic was moved to ToolStrip.OnItemAdded.
14192 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14194 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14196 2007-03-08 Jackson Harper <jackson@ximian.com>
14198 * TreeView.cs: Show the correct image for selected node (this used
14199 to work, not sure how the code got deleted). Also implemented 2.0 feature
14202 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14205 * ListViewItem.cs: Cache index in items when retrieving them
14208 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14210 * ToolStripItem.cs: Don't return the explicit_size if we are using
14211 AutoSize. Fixes invalidation issue when user has explicitly set a
14212 size and has AutoSize = true.
14214 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14216 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14218 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14220 * DataGridView.cs: Remove event handler from DataView when a
14221 DataTable is used as DataSource.
14223 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14225 * Control.cs: Create internal setter for client_size to allow it to be
14226 set without triggering resizing code.
14227 * Form.cs: Calculate client_size in constructor, only change client_size
14228 in FormBorderStyle property if Handle has been created.
14229 [Fixes #80574, #80791]
14231 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
14233 * SystemInformation.cs: Add TerminalServerSession.
14235 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14237 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14240 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14242 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14243 Handle before we were supposed to. Now checks ActivateOnShow property
14245 * Control.cs: Add internal ActivateOnShow property.
14246 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14247 for ActivateOnShow.
14248 * Hwnd.cs Remove no longer needed no_activate field.
14250 2007-03-07 Jackson Harper <jackson@ximian.com>
14252 * TreeView.cs: Implement owner draw tree nodes. And a couple more
14254 * DrawTreeNodeEventHandler.cs: Add
14255 * DrawTreeNodeEventArgs.cs: Correct default value.
14257 2007-03-07 Chris Toshok <toshok@ximian.com>
14259 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14260 to be called before NativeWindow.WndProc. Put the HwndCreating
14261 magic there to hook up our Hwnd's to handles.
14263 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
14265 * DataGridView.cs: Comment out debug code.
14267 2007-03-07 Chris Toshok <toshok@ximian.com>
14269 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14270 to make the rest of the world happy]
14272 * Control.cs (CreateHandle): there's no need to call
14273 XplatUI.SetVisible here, it's effectively done by
14274 XplatUI.CreateWindow on X now, and always was on windows.
14276 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14277 shortcircuit out of the loop if we have a message loop running on
14280 [Changelog from merge]
14282 2007-03-05 Chris Toshok <toshok@ximian.com>
14284 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14285 causes handle creation.
14287 2007-02-28 Chris Toshok <toshok@ximian.com>
14289 * ApplicationContext.cs: Add a flag to make sure we only raise the
14290 ThreadExit event once (ExitThreadCore can be indirectly called
14291 from a few places.) I don't like the additional flag, but it
14292 makes the event ordering/count correct.
14294 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14295 without locking the collection. An enumerator doesn't give us any
14296 protection from modification anyway. Lock the thread hash and
14297 replace the complicated enumerator loop with a foreach.
14298 (Application.CloseForms): make internal so it can be called from
14299 ApplicationContext. This should probably be moved to MWFThread.
14300 (Application.ExitThread): don't call MWFThread.Current.Exit()
14301 here. just call XplatUI.PostQuitMessage. We'll exit the thread
14302 when the runloop exits (in response to WM_QUIT.)
14303 (Application.RunLoop): add a comment (and check) for
14304 context.MainForm being null after setting context.MainForm.Visible
14305 = true. This is because you're perfectly free to dispose of a
14306 form in VisibilityChanged. Chalk this up to another case where we
14307 need to synchronously generate WM_ACTIVATE from Control.Show.
14308 Also, add handling for WM_QUIT here so we'll exit the loop.
14310 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
14311 fact that we don't wait if we're only unmapping the whole_window
14312 makes me a bit nervous, but it doesn't seem to cause any problems
14315 also, add a comment about the stupid, broken and wrong resetting
14316 of PostQuitState to false in GetMessage().
14318 In PostQuitMessage, we need to add a WM_QUIT message to the
14319 thread's queue. We use the FosterParent to get the right
14322 Lastly, in SetVisible, we need to unmap both windows, since the
14323 waiting only happens when we're unmapping the client window. So
14324 now, the *only* time we unmap just the whole_window is in the hack
14325 for resizing a control to 0,0.
14327 2007-02-21 Chris Toshok <toshok@ximian.com>
14329 * Application.cs (CloseForms): rewrite this so that we don't
14330 modify the list while we're traversing it.
14332 2007-02-20 Chris Toshok <toshok@ximian.com>
14334 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14335 of OnHandleCreated.
14336 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14337 handle is created. otherwise we'll create it here.
14338 (VerticalScrollEvent): same here.
14340 * Application.cs (CloseForms): call Form.Dispose, don't post
14343 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14344 here. Application should Dispose() of the Form's.
14346 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14347 WM_DESTROY as well.
14348 (MapWindow,UnmapWindow): only actually do the waiting for
14349 SHOWWINDOW if the control we're dealing with is a Form.
14350 (CreateWindow): if the control isn't a form, SendMessage
14351 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14353 * Control.cs (SetVisibleCore): always use is_visible here, not
14354 value. If we use value, we can end up re-setting something
14355 visible if, for instance, you do Control.Hide() in a delegate
14356 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14358 2007-02-20 Chris Toshok <toshok@ximian.com>
14360 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14361 the message we need. PeekMessage returning false should not be a
14362 condition under which we exit the loop.
14364 2007-02-15 Chris Toshok <toshok@ximian.com>
14366 * Control.cs (Refresh): only refresh if we've got a handle and are
14368 (CreateAccessibilityInstance): CreateControl() here.
14369 (UpdateChildrenZOrder): complicate the code loop even more by
14370 taking into account controls that haven't had their handle
14371 created, and those that aren't visible. But on the flip side,
14372 simplify the code by splitting it into two loops. one which
14373 builds up the list of child controls we're interested in, and the
14374 other that sets the z order of those children.
14376 2007-02-14 Chris Toshok <toshok@ximian.com>
14378 * Control.cs: Control.AccessibilityObject causes the control to be
14379 created, not just the handle.
14381 2007-02-14 Chris Toshok <toshok@ximian.com>
14383 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14384 problem on X where a window might have its handle created (and be
14385 visible) while the window is unmapped. calling XConfigureWindow
14386 on an unmapped window is bad, and generates X errors.
14388 2007-02-13 Chris Toshok <toshok@ximian.com>
14390 * Control.cs (CreateHandle): don't loop over our children setting
14391 their parent here. do it when in WndProc when we're shown.
14392 (UpdateChildrenZOrder): make this internal so we can call it from
14394 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14395 creating its handle. Also, remove the calls to PerformLayout from
14396 here. they're done in ScrollableControl.OnVisibleChanged. Also,
14397 OnVisibleChanged only seems to be called directly here for the
14398 toplevel control. It's propagated down the window hierarchy by
14399 calls to child.OnParentVisibleChanged.
14400 (OnVisibleChanged): don't do layout here - it's done (oddly
14401 enough, according to a glance at stack traces on ms.net..) in
14404 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14405 z order of our children before calling PerformLayout.
14407 2007-02-12 Chris Toshok <toshok@ximian.com>
14409 [big change, fixes #80020]
14411 * AccessibleObject.cs: we need to make owner internal again to fix
14412 some of ControlAccessibleObject.
14414 * Control.cs: lots of changes here. add support for WM_CREATE,
14415 for which we generate OnHandleCreated. Remove the OnHandleCreated
14416 call from CreateHandle. Also add support for WM_SHOWWINDOW where
14417 we create child controls. leave the MonoTODO's for the
14418 accessibility calls, but fix the exceptions so the tests pass.
14420 Add the InvalidOperationExceptions to Invoke methods, and remove a
14421 couple of InvokeInternal methods we aren't using.
14423 Also, add a couple of CreateHandle calls in places where we know
14424 the handles are being created but our code doesn't reference
14427 Make SetVisibleCore call OnVisibleChange if the handle isn't
14428 created. If the handle is created, we rely on XplatUI.SetVisible
14429 generating the event synchronously.
14431 Lastly, make sure we don't use this.Handle inside CreateHandle,
14432 because we can call back into client (and that code can dispose of
14435 * XplatUIStructs.cs: misc/cleanup.
14437 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14438 although we don't populate the wParam properly.
14439 (CreateWindow): generate WM_CREATE.
14440 (MapWindow,UnmapWindow): make these calls synchronous, at great
14441 performance expense (particularly in the unmap case), to match
14444 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14446 (set_MdiParent): don't recreate the handle unless it's been
14449 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14452 * NativeWindow.cs: this is probably the weirdest part of the
14453 patch. We need a way to link up the window being created to the
14454 WM_CREATE message. Since we can only be creating one window at a
14455 time on a given thread, we keep track of a per-thread reference so
14456 we can dispatch it properly. We also need to keep track of the
14457 Hwnd currently being created so that the win32 backend doesn't
14460 * XplatUIWin32.cs: a similar change to the one we made in
14463 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14465 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14466 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14467 to draw the menu shortcut string.
14469 2007-03-07 Jackson Harper <jackson@ximian.com>
14471 * TreeNode.cs: Add the 2.0 collapse method.
14473 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14475 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14477 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14479 * DataGridView.cs: Change DataSource will clear column and row
14480 lists. Call Invalidate() to reflect DataSource change.
14482 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14484 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14485 and a new row is added to it.
14487 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14489 * DataGridView.cs: Add columns when DataSource is en empty list but
14490 is a System.Data.DataView (from a System.Data.DataTable).
14492 2007-03-06 Andreia Gaita <avidigal@novell.com>
14494 * Label.cs: Implement AutoEllipsis (2.0)
14496 2007-03-06 Jackson Harper <jackson@ximian.com>
14498 * TreeView.cs: Implement 2.0 TopNode setter property.
14499 - Use a local var instead of the skipped_nodes field for computing
14500 how many nodes to skip. Otherwise we won't scroll because the
14501 valuechanged handler checks if skipped_nodes is equal to the new
14503 - Implement 2.0 Sort method.
14504 - Add useless 2.0 DoubleBuffer property
14505 - Implement 2.0 LineColors property. Lets you change the color of
14506 the lines in the tree. Terribly useful for creating non cohesive
14508 - Implement 2.0 image key feature.
14510 2007-03-06 Jackson Harper <jackson@ximian.com>
14512 * TreeView.cs: We can't get the bounds of the nodes before raising
14513 the AfterSelect event, because that event could change the node's
14514 bounds (scrolling, font change, etc).
14516 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14518 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14519 * Form.cs: Don't recreate handle when creating FormWindowManager, just
14520 update window styles. In CreateParams us VisibleInternal instead of
14521 VIsible to get the actual visible flag set for this form.
14522 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14523 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14524 handle the case when the form is already maximized, in which case
14525 it should be restored. Fixes #81043.
14527 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14529 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14531 2007-03-05 Jackson Harper <jackson@ximian.com>
14533 * TreeViewHitTestInfo.cs: implement.
14535 2007-03-05 Jackson Harper <jackson@ximian.com>
14537 * InternalWindowManager.cs: class status fix.
14539 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14541 * InternalWindowManager.cs: All windows that have a parent
14542 are confined to their parent when they're being moved.
14545 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
14547 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14548 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14550 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14552 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14553 buttons invisible before deciding which ones should be visible
14554 (fixes minimize/maximize buttons showing up in toolwindows). Remove
14555 an unused variable.
14556 * InternalWindowManager.cs: Remove warning.
14558 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14560 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14561 to throw an InvalidOperationException is virtual mode is being used.
14563 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14565 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14566 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14567 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14568 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14569 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14570 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14572 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14574 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14575 driver.KeyboardDelay from XplatUI.KeyboardDelay
14576 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14577 (patch by Sergey Volk)
14579 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14581 * ToolWindowManager.cs: Added, contains logic for
14583 * CreateParams.cs: Add a few helper methods and an
14584 internal variable to know which control the CreateParams belongs
14586 * Control.cs: Call Form.ChangingParent when the
14587 parent is about to be changed.
14588 * XplatUIX11.cs: DeriveStyles (): Set
14589 caption_height for all windows that have captions and are children.
14590 Update to use ToolWindowManager instead of InternalWindowManager
14592 * XplatUIWin32.cs: Set fake window styles for all
14593 windows that have window managers.
14594 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14595 now duplicated for mdi windows when they are
14596 maximized, first for the buttons the window itself has, then for
14597 the buttons that appear in the menu bar. Makes things a little
14598 easier). Updated UpdateWindowDecorations, SetWindowState and the
14599 mouse eventhandlers accordingly.
14600 * Form.cs: Add ChangingParent (), contains the
14601 logic of what should happen when the parent changes. In MdiParent
14602 don't set things that ChangingParent () is doing. When handling
14603 WM_CLOSE, we can close the form if there are any other modal forms
14604 and the current form is a descendent of the modal form.
14605 * InternalWindowManager.cs: A lot of refactoring,
14606 the title buttons are now extracted to a separate container class
14607 that takes care of all button code (clicks, tooltips, etc). Moved
14608 Iconic|Maximized|Normal Bounds properties to this class from
14609 MdiWindowManager, so that the window state logic can succeed for
14610 other than mdi wm's. Implemented general window state change logic.
14611 Moved CreateButtons to ThemeWin32Classic, since the theme might
14612 override which buttons are available when as well as the exact
14614 * FormWindowManager.cs: Added, contains logic for
14616 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14617 which buttons go where (and if they are at all visible).
14618 Removed special handling of maximized windows, since they aren't special.
14619 In DrawManagedWindowDecorations don't try to draw the text if it is
14621 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
14622 use whatever the wm gives us.
14624 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14626 * ButtonBase.cs: Add 2.0 properties.
14627 * Button.cs: Override Draw for 2.0.
14628 * Control.cs: Add Entered and Selected properties.
14629 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14630 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14631 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14633 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14635 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14637 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
14639 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14641 * XplatUIWin32.cs: Register a new class with Windows each time we get
14642 a new ClassStyle. [Fixes bugs #79432, #80817]
14643 * Controls.cs: Set the correct ClassStyle in CreateParams.
14644 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14646 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
14648 * ListView.cs: Add fireEvent argument to ReorderColumn since the
14649 ColumnReordered event must not be signaled when modifying DisplayIndex
14650 of a ColumnHeader. Added internal ReorderColumns method which takes
14651 care of drawing, and updating the internal DisplayIndex of the
14652 ColumnHeader. Added AddColumn method which is invoked from
14653 ColumnHeaderCollection when adding or inserting columns, and which
14654 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14655 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14656 Recalculated dispay indices after removing a ColumnHeader.
14657 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14658 match MS. Allows last display index to be returned after ListView
14659 is disposed. Update actual location of ColumnHeader when DisplayIndex
14662 2007-03-01 Everaldo Canuto <everaldo@simios.org>
14664 * LinkLabel.cs: Improve CalcTrimRectangle.
14666 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14668 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14670 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
14671 get rectangle as a result value.
14673 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14675 * LinkLabel.cs: Theres some diferences between rectangle return from
14676 MeasureCharacterRanges and the area used for DrawString to fix this
14677 CalcMeasurementFactor method was created, it calcules the diferences
14678 to be use later to adjust rectangle in draw operations. Fixes #80473.
14680 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
14681 to adjust draw rectangle.
14683 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14685 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
14686 text and some other changes to reduce and optimize source code.
14688 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14690 * RadioButton.cs: Implement 2.0 event.
14691 * RelatedImageListAttribute.cs: Implement new class.
14693 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14695 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
14697 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14699 * CheckBox.cs: Implement 2.0 functionality.
14701 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14703 * ListView.cs: Refactor Add and AddRange methods of
14704 ListViewItemCollection, to not update the ListView
14705 everytime an item is added in AddRange. Also move the update
14706 code to a new CollectionChanged method, and call it
14707 from other methods that need it as well (this should also fix some
14708 bugs when Sorting is used).
14710 2007-02-27 Jackson Harper <jackson@ximian.com>
14712 * TextControl.cs: Try to never let the caret stay in a non-text
14714 * TextBoxBase.cs: Update the caret.
14716 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
14718 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
14719 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
14720 delete POINT structure, duplicate of one in XplatUIStructs.
14721 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
14723 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
14725 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
14726 edit box since otherwise the Label would immediately be set (even if
14727 the user did not modify the label). In OnKeyDown set Handled to true
14728 if Return or Escape was pressed. In ColumnHeaderCollection unlink
14729 columns that are to be removed. In ListViewItemCollection unlink items
14730 that are to be removed.
14732 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
14734 * TextRenderer.cs: If we set a GDI clip region, we need to clear
14735 it when we are done. [Fixes bug #80949]
14737 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14739 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
14741 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14743 * ListView.cs: I forgot to commit the changes for ListView
14744 in my previous patch.
14746 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14748 * Clipboard.cs: Partially implement an overload of SetDataObject.
14749 * Form.cs: Implement ShowWithoutActivation.
14750 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
14752 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14754 This is a first set of changes to make the Virtual mode works,
14755 by avoiding the retrieval of ListViewItem instances until
14758 * ListView.cs: Store item position in the ListView instead of the
14759 ListViewItem, this way we don't request the Bounds property of
14760 ListViewItem inside the ListView calculations, as well as cache the item
14761 size in item_size field. Store indexes instead of ListViewItem
14762 instances in the matrix used by icon view. Add a ItemMatrixLocation
14763 struct to hold the row and col info of the matrix info.
14765 * ListViewItem.cs: Don't store the location anymore, and only cache
14766 the rectangles for GetBounds. Use the ListView.GetItemLocation
14767 method to retrieve the actual location.
14769 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14771 * TextRenderer.cs: Add clipping support, thanks to George.
14774 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14776 * ListViewItem.cs: Cancel label edit when item is removed from
14778 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
14779 event before the edit textbox is displayed. Added CancelEdit method
14780 which is used end to editing while ignoring the value set by the
14781 user. In EndEdit, set focus to ListView to avoid losing focus to
14782 other controls. In ListViewItemCollection.Clear, cancel editing of
14783 any of the items. In Remove, cancel editing of item being removed.
14784 Avoid udplicate code by modifing RemoveAt to invoke Remove.
14786 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14788 * FileDialog.cs: Update FSEntry when move is successful. Fixes
14791 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14793 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
14794 compatible with non X11 systems. Fixes #80901.
14796 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14798 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
14799 whether the item should be unselected and reselect. We do no want this
14800 when we're starting to edit the label. Do not fire the
14801 SelectedIndexChanged event from ListView when its already been fired
14802 by modifying ListViewItem.Selected. Fixes bug #80943.
14804 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14806 * TextRenderer.cs: Previos commit logic was backwards.
14808 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14810 * TextRenderer.cs: Don't add padding on MeasureText if we were
14811 sent the NoPadding flag.
14813 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14815 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
14816 after DrawButton. To prevent image overlaps button borders SetClip and
14817 ResetClip added before and after draw image. Fixes #79129.
14819 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14821 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
14822 window size, it fix problem when you run under win32 that theres
14823 Size diferent than ClientSize. Also fix controls size and positions
14824 to mimic Win32. Fixes #80837.
14826 2007-02-22 Everaldo Canuto <everaldo@simios.org>
14828 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
14829 menu area to fix some problems for non X11 systems. Fixes #80613.
14831 2007-02-22 Jackson Harper <jackson@ximian.com>
14833 * TreeNode.cs: When a node is expanded, set its is_expanded flag
14834 even if it doesn't have any children.
14836 2007-02-22 Jackson Harper <jackson@ximian.com>
14838 * TreeView.cs: Calculate the top node 'on the fly', this
14839 eliminates issues where you need to click on the tree before
14840 scrolling it to get the top node computed correctly.
14841 * TreeNodeCollection.cs: We don't need to mess with the top node
14844 2007-02-22 Jackson Harper <jackson@ximian.com>
14846 * DataGridViewRow.cs: Fix typo so height can actually be set.
14847 Patch by Peter Grimm.
14849 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
14851 * FileDialog.cs: Fixed support for renaming files and directories.
14852 * ListView.cs: Do not lose focus when edit is canceled. Process
14853 Escape as regular key (to prevent closing of dialogs).
14855 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
14857 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
14858 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
14860 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
14862 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
14863 did not modify label.
14864 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
14865 modified the text. Reset Label when user presses Escape in edit mode.
14866 Move focus to ListView after having cancelled or finished editing the
14869 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
14871 * ComboBox.cs: Removed unnecessary initializations. Marked items field
14872 private. Clear textbox when Text is set to null and SelectedIndex is
14874 * FileDialog.cs: Removed unnecessary initializations. Removed
14875 workarounds for ComboBox bugs that are now fixed. Modified
14876 DefaultExt, InitialDirectory and Title property to change null to
14877 zero-length string in getters. Avoid directly accessing fields.
14879 2007-02-20 Jackson Harper <jackson@ximian.com>
14881 * TextControl.cs: Remove RecalAlignments call, that was some
14882 debugging leftovers.
14883 - Don't use the line indent when we shouldn't.
14884 * RichTextBox.cs: Add support for paragraph left indents.
14886 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14888 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
14889 Seems like the class status pages doesn't catch params differences.
14891 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
14893 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
14895 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
14897 * ComboBox.cs: Setting Text should have no effect if item text of
14898 selected item exactly matches value. First lookup text using
14899 case-sensitive comparison, and fallback to case-insensitive comparison.
14900 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
14901 allow startIndex to be last index. Changed ArgumentOutOfRangeException
14902 paramname to match MS. Restart from first item if string is not found
14903 after startIndex. Fixed paramname of ArgumentNullException that is
14904 thrown for null value in ObjectCollection.Contains.
14906 2007-02-19 Everaldo Canuto <everaldo@simios.org>
14908 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
14910 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14912 * ListControl.cs: In SelectedValue use value.Equals to compare for
14913 equality instead of ==, otherwise it will fail for strings.
14916 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14918 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
14919 since the caret won't show up unless ShowSelection is true.
14922 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14924 * Application.cs: When disabling all forms but the main form, do not
14925 disable any descendants of the main form (such as mdi children or
14926 other parented forms). Fixes #80822 on Windows.
14927 * Form.cs: If we have a parent, set the WS_CHILD style.
14928 * Control.cs: Update the window styles if the control whose parent has
14929 changed is a form (the WS_CHILD style has to be switched).
14931 2007-02-19 Everaldo Canuto <everaldo@simios.org>
14933 * XplatUIStructs.cs: MsgUIState structure added.
14935 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
14937 * FileDialog.cs: Removed need for separate fileName field. On 2.0
14938 profile, do not check filename(s) for illegal character if filename(s)
14939 were set non-interactively but always check on 1.0 profile. Fixed NRE
14940 in DefaultExt and only strip off first leading dot. Improve exception
14941 message when invalid Filter is set. Do not ignore InitialDirectory if
14942 it does no exist. Store specified Title, and if empty use default
14943 title (depending on type of dialog). Added an internal DialogTitle
14944 property for retrieving dialog title. Fixed logic of displayed dir to
14945 more closely match MS. Avoid setting ComboBox.Text to a zero-length
14946 string as its buggy.
14947 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
14948 FileName is a zero-length string (it can never be null). Override
14949 DialogTitle property to set default title of dialog box.
14950 * SaveFileDialog.cs: Override DialogTitle property to set default
14951 title of dialog box.
14953 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
14955 * FileDialog.cs: Modify default text of filename and filetype labels
14956 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
14957 after we've updated the SelectedIndex. Fixes part of bug #80887.
14958 * SaveFileDialog.cs: Set text of filetype label.
14960 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14962 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
14963 label field. Needed by latest Jackson's fixes for ListView.
14965 2007-02-16 Andreia Gaita <avidigal@novell.com>
14967 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
14968 print preview images.
14970 2007-02-16 Jackson Harper <jackson@ximian.com>
14972 * ListView.cs: Make AfterLabelEdit work correctly.
14973 * FileDialog.cs: After changing the name of the folder, we have to
14974 make sure that it is created, or that we pop up an error because
14977 2007-02-16 Jackson Harper <jackson@ximian.com>
14979 * X11Dnd.cs: Implement aliases on mime handlers, so things like
14980 System.String are mapped to text.
14981 - Handle dataobjects, getting all the possible formats out of them
14982 - We dont need the drag event args before we give feedback. This
14983 allows feedback cursors to be immediate before selections have
14986 2007-02-16 Jackson Harper <jackson@ximian.com>
14988 * TextBoxBase.cs: Modified the method for inserting images to
14989 taking a line and position instead of tag and position.
14990 * RichTextBox.cs: Handle PngBlip data by inserting the png image
14992 * TextControl.cs: Allow images to be inserted as the first tag of
14994 - Fix some off by one issues when we assume the first tag is a
14995 text tag, not an image tag.
14997 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14999 * ListView.cs: Set focus to ListView when ItemControl gets a
15000 WM_RBUTTONDOWN message, to mimic .Net behaviour.
15001 Fixes part of #80467.
15003 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15005 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15006 validate Text input (if null or empty string reset Value to default
15007 value). Fixes #80830.
15009 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15011 * ListView.cs: Set owner as null for columns and items when
15012 Dispose is invoked. Fixes #80607.
15014 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
15016 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15017 showing DropDowns, don't show a Grip when doing Flow layout.
15018 [This fixes the toolbox in PDN 2.72.]
15019 * ToolStripItem.cs: Add Anchor property and some internal properties to
15020 reduces needed changes to FlowLayout.
15021 * ToolStripOverflow.cs: Remove unused variable.
15022 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15023 use it in the layout calculations.
15025 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15027 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15028 reported in #79640.
15030 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15033 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15035 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
15036 MeasureString format, it can make button very large in some cases, it is
15037 strange but is what win32 do.
15039 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15041 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
15044 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15045 rendering, the value is based on MenuAccessKeysUnderlined.
15047 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15049 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15052 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15054 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15055 and use MenuAccessKeysUnderlined instead.
15057 2007-02-13 Andreia Gaita <avidigal@novell.com>
15059 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15060 A selected control would not get a Focus call if:
15061 - the default active control of the container is the same as
15062 the one that was selected
15063 - we are switching from one container to another
15064 Under these conditions, the container being selected already has
15065 an active_control, which is the same as the one being activated,
15066 so set_ActiveControl would always return and not send the Focus
15067 call. Fix to check if the currently active control of the container
15068 is actually focused.
15070 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
15072 * StatusStrip.cs: Implement the spring layout.
15073 * ToolStripControlHost.cs: Make sure the hosted control's visibility
15074 always matches the host.
15075 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15076 and TextAfterImage.
15078 2007-02-13 Andreia Gaita <avidigal@novell.com>
15080 * Control.cs: Code reorganization only.
15081 - Reorganize the WndProc cases so that each case has it's own handling method,
15082 to help with the no-line-numbering stack traces.
15083 - Formatting changes (it's vstudio's fault, really :p)
15085 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15087 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15088 Thread.CurrentUICulture to match DateTimePicker's (and MS)
15091 2007-02-12 Jackson Harper <jackson@ximian.com>
15094 * TextBox.cs: By default we have a non multiline document
15095 - use the multiline property instead of the internal variable
15096 * TextBoxBase.cs: Treat multiline and non multiline the same in
15098 - Use the documents multiline flag instead of tracking it ourself
15099 * TextControl.cs: Attempt at getting multiline to match MS
15100 behavior. Lines now track an offset, which is either their X or Y
15101 offset depending on whether or not we are in multiline mode.
15102 - Update all the methods to understand that lines have an X value.
15103 - Fix crash in Undo::Duplicate when empty lines are deleted.
15105 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15107 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
15108 code moved to properties PreferredHeight and PreferredWidth. It solve the
15109 all problems when preferred sizes must be recalculated. Fixes #80801.
15111 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15113 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15114 font height when compatible_text_rendering is false. Partially fix #80801.
15116 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15118 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15120 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15122 * Form.cs: Improved exception messages in ShowDialog.
15124 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15126 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15127 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15128 if not set. Fixes bug #80764. Avoid accessing current_settings field
15131 2007-02-08 Everaldo Canuto <everaldo@simios.org>
15133 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15136 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15137 public in 2.0 and for easy maintenance and dont break compatibility it is
15140 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15142 * ToolStripItem.cs: Implement using images from ImageList.
15144 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15146 * DateTimePicker.cs: Change default date-formatting culture from
15147 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15148 seems to be the way MS does it.
15150 2007-02-08 Andreia Gaita <avidigal@novell.com>
15152 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
15153 (the 6 was cut off on the right side)
15155 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15157 * Form.cs: Tell MenuStrips to close when the form is clicked.
15158 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
15159 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15160 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15161 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
15162 support for Overflow, where items that do not fit are automatically
15163 reparented to a drop down menu.
15164 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15165 Also: fixes bug #80747.
15167 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15169 * ComboBox.cs: Remove warning (unused code).
15170 * ScrollableControl.cs: Remove warning for 1.1 profile.
15172 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15174 * Form.cs: Remove a warning.
15176 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15178 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15179 'g' specifier, not documented anywhere, but seems to always show up
15180 as a single space (might have something to do with the DateTime 'g'
15181 specifier, which is the era format, but since DateTimePicker can't
15182 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15183 won't crash if the format has an unmatched quote. Now shows
15184 single-character formats correctly. Fixes #80744.
15186 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15188 * StatusStrip.cs: Stretch property needs to call base.Stretch,
15189 not this.Stretch to fix stack overflow. [Fixes bug #80760]
15191 2007-02-07 Chris Toshok <toshok@ximian.com>
15193 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15194 background color. it overwrites the background image we've
15195 already painted. Fixes #80599.
15197 2007-02-07 Chris Toshok <toshok@ximian.com>
15199 * DataGrid.cs: return immediately from Edit() when there are no
15200 columns. Fixes #80662.
15202 2007-02-07 Chris Toshok <toshok@ximian.com>
15204 * MessageBox.cs: fix #80625. don't always show the Help button in
15205 2.0. use the displayHelpButton parameter to determine if we
15206 should show it. Also, make the internal show_help field private.
15208 2007-02-07 Chris Toshok <toshok@ximian.com>
15210 * Control.cs (SetVisibleCore): check in the proposed patch for
15211 80604, and set is_visible before calling CreateControl.
15213 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
15215 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
15216 MonoInternalNote. This is added automagically by VS2005, so let's not crash
15219 2007-02-06 Everaldo Canuto <everaldo@simios.org>
15221 * MenuAPI.cs: hotkey_active internal field added, it is required because
15222 we need to know when hotkeys must be draw, before this change a keystate
15223 Navigating was used but we can have menu in navigating state without
15224 hotkeys. Fixes #80694.
15226 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15228 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15230 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15231 corresponding events and methods to be internal for 1.1 profile and
15232 public for 2.0 profile (required by SizeGrip).
15233 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15234 implicit control list). Don't set the size nor the location of the
15235 SizeGrip anymore as it's not needed.
15236 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15237 draw directly on the captured control (fixes #80656). Removed
15238 ShowGrip (it wasn't used anywhere), redraw (always true), added
15239 GetDefaultSize and GetDefaultRectangle to calculate defaults.
15240 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15241 be called from SizeGrip.
15243 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15245 * Timer.cs: Throw ArgumentException if Interval <= 0.
15247 2007-02-05 Jackson Harper <jackson@ximian.com>
15249 * TreeView.cs: We need to check scrollbar visibility when window
15250 visibility is updated, because non visible trees don't ever add
15252 * Cursor.cs: We want the override cursor to be reset to NULL when
15253 we set current cursor to the default cursor.
15255 2007-02-05 Jackson Harper <jackson@ximian.com>
15257 * TextControl.cs: Don't have crlfs when we are non multiline.
15258 - Consolidate the line position.
15260 2007-02-05 Jackson Harper <jackson@ximian.com>
15262 * X11Keyboard.cs: BACK+CTRL gets a special char code.
15264 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15266 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15267 handling LeaveNotify->NotifyUngrab in order to send
15268 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15269 after calling XUngrabPointer, so we call WindowUngrabbed directly
15270 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15271 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15272 MouseCaptureChanged correctly. Also create handles if changing
15273 Capture (matches MS behaviour).
15275 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15277 * SizeGrip.cs: Make the last change 2.0 only.
15279 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15281 * SizeGrip.cs: If resizing and the capture is lost, revert any size
15282 changes to initial size (fixes #80597).
15284 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15286 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15288 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15290 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15291 background) and only allow dragging if enabled. This way the
15292 sizegrip can be used to fill the open square that otherwise would
15293 have been shown in the bottom right corner of ScrollableControl
15294 when ScrollableControl is not suppose to support sizing.
15295 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15296 sizegrip is shown and enabled, and hook up with necessary events.
15298 2007-02-01 Chris Toshok <toshok@ximian.com>
15300 * DataGridTextBoxColumn.cs: clean up the
15301 GetFormattedString/GetColumnValueAtRow combination of functions.
15302 Also fix UpdateUI, and the initial state of
15303 IsInEditOrNavigateMode.
15305 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15306 aren't supposed to scroll the textbox here, we're supposed to
15307 scroll the datagrid.
15309 2007-02-01 Chris Toshok <toshok@ximian.com>
15311 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15312 setting the position.
15314 2007-02-01 Chris Toshok <toshok@ximian.com>
15316 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15317 here, since the most recent focus fixes keep us from generating
15318 the Leave event when our textbox gets focus.
15319 (Edit): we should be passing null for the column style's
15320 instantText parameter.
15322 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
15324 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
15325 raised. Fixes menu text/icons not showing up in PDN.
15327 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15329 * Control.cs: Remove code in constructor that makes every
15330 control with WS_CHILD set have initial location -1, -1.
15332 2007-01-31 Jackson Harper <jackson@ximian.com>
15334 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15336 * XplatUIX11.cs: Give teh keyboard to teh dnd.
15338 2007-01-31 Jackson Harper <jackson@ximian.com>
15340 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15341 - Remove some debug code.
15343 2007-01-31 Jackson Harper <jackson@ximian.com>
15345 * XplatUIX11.cs: If you set the override cursor during a grab, it
15346 should actually override the grab cursor. This comes into play
15347 when you are setting custom cursors in a DND feedback method.
15349 2007-01-31 Jackson Harper <jackson@ximian.com>
15351 * X11Dnd.cs: Add support for handling the QueryContinue and
15352 GiveFeedback events.
15353 - Cancel drag and drop actions when the escape key is clicked.
15354 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15355 can handle the ESCAPE key.
15356 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
15357 done when dnd events are continued after the button is released.
15358 - Add a new helper method so that dnd can translate key events.
15360 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
15362 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15363 make it more obvious what is happening.
15365 2007-01-30 Jackson Harper <jackson@ximian.com>
15367 * XplatUIX11.cs: Don't break when handling button release in drag
15368 and drop operations. We need that BUTTONUP message to get through
15369 so capture is released.
15370 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15371 this is handled automatically when the mouse is down.
15373 2007-01-30 Jackson Harper <jackson@ximian.com>
15375 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15376 is closed, so we need to make sure that we aren't changing the
15377 dialog result when the OK (Open or Save) button has been clicked
15378 and we are closing the window ourselves. Note we don't need to
15379 worry about the cache being written in this case, because it was
15380 already done in the previous FilOk call.
15382 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15384 * DateTimePicker.cs: Remove a warning.
15385 * ComboBox.cs: Remove a couple of warnings.
15387 2007-01-29 Chris Toshok <toshok@ximian.com>
15389 * XplatUIX11.cs: don't crash, and remove the icon if the user has
15390 set one, if SetIcon is passed a null icon.
15392 2007-01-29 Andreia Gaita <avidigal@novell.com>
15394 * TextBox.cs: Redraw when the password characters changes
15395 * TextControl.cs: Check if textbox has a password char and draw
15396 a line of password chars instead of the text in the line. LineTag gets
15397 an extra Draw() method which allows document.Draw to override the text
15398 that will be drawn. Removes 1024 char limitation on length of passworded
15401 2007-01-29 Jackson Harper <jackson@ximian.com>
15403 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
15404 single chars is not.
15406 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
15408 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15409 one pixel. Fix a StackOverflowException caused by an overload wrongly
15412 2007-01-26 Everaldo Canuto <everaldo@simios.org>
15414 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15415 also remove ProcessArrowKey and put the code inside ProcessKeys.
15417 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
15419 * PaddingConverter.cs: Added.
15421 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15423 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15424 ShowPanels is false (fixes #80600). Only draw up to 127 characters
15425 of text (fixes #80601). For panels clip the text to draw to the
15426 panel (fixes #80603).
15428 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15430 * ComboBox.cs: Fixed implementation of ResetText.
15432 2007-01-25 Jackson Harper <jackson@ximian.com>
15434 * TextControl.cs: For the last char of a line we need to use the
15435 line size, not that chars width, since it won't actually be
15436 computed since the right side of a char is based on the start of
15437 the left side of the next char, and the next char does not exist.
15439 2007-01-25 Chris Toshok <toshok@ximian.com>
15441 * Splitter.cs: fix the new unit tests, and reindent some switch
15444 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15446 * ComboBox.cs: Implemented 2.0 methods and events.
15447 * TextBoxBase.cs: Added OnTextUpdate, so that
15448 ComboBox.ComboTextBox can inform ComboBox of it.
15450 2007-01-25 Jackson Harper <jackson@ximian.com>
15452 * TextControl.cs: Respect ShowSelection when deciding whether or
15453 not to display the caret, this allows comboboxes to have carets
15454 when the combotextbox does not have focus.
15456 2007-01-25 Jackson Harper <jackson@ximian.com>
15458 * TextControl.cs: Add a Suspend/Resume for updating, basically the
15459 same as the Suspend/Resume for recalc, except this will do actual
15461 - New Undo manager, works much like the MS version.
15463 * TextBoxBase.cs: The Cut operation is undoable.
15465 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15467 * TextBoxBase.cs: Don't antialias text. Makes it look way better
15468 on Windows (no difference on Linux).
15470 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15472 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15473 we don't want to activate any windows. Fixes #79433.
15475 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
15477 - ButtonBase.cs: Fix capitalization of parameter: disposing.
15480 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
15483 - Move to using System.ComponentModel.EventHandlerList
15484 - Replace Refresh with Invalidate
15485 - Clear the mime filecache on closing
15486 - Some other memory reducing work. After beeing closed FD now uses
15487 only about 300 KB for the fdo mime stuff plus the memory of the
15489 * Mime.cs: Changed coding style and removed unnecessary commented
15490 code. Some more memory memory reducing work.
15492 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15494 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15495 a few other missing 2.0 properties.
15496 * Theme.cs: Added DrawFlatStyleComboBox.
15497 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15499 2007-01-24 Chris Toshok <toshok@ximian.com>
15501 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15502 wake_waiting flag, not just when there's data to be read. if we
15503 don't, then future wakeup's won't reach us and we'll be doomed to
15504 wait for the entire 1 second timeout forever (unless there are X
15507 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15509 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15510 until you pass Items.Count, not Items.Count - 1 like 1.1.
15512 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
15514 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15516 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15518 * ToolStripContainer.cs: The recent Dock fix exposed that I was
15519 adding the panels in the wrong order.
15521 2007-01-24 Jackson Harper <jackson@ximian.com>
15523 * TextBoxBase.cs: When we move the caret we also need to move the
15524 selection, this fixes some random crashing after doing select
15525 text, unselect, delete a char, paste.
15527 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
15529 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15531 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15533 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15534 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
15535 * ToolBar.cs: Force redraw in BackgroundImageChanged.
15537 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15540 - Implement support for vertical toolbars. Fixes #80539;
15541 - Call LayoutToolBar when resize, it fix some other problems in layout.
15542 - Rename requested_height to requested_size, as we can have width on it
15543 when toolbar is vertical.
15544 - Create a private property "Vertical" that uses Dock to verify when
15545 toolbar is vertical or not.
15546 - Set ControlStyles when change Dock property.
15547 - Refactory in LayoutToolBar to have better variables names and to support
15549 - Fixes default value for ButtonSize when button count is equal zero, size
15550 must be (39, 36) test case writed.
15552 2007-01-23 Chris Toshok <toshok@ximian.com>
15554 * Control.cs: fix the checks so that they work correctly for mdi
15557 2007-01-23 Chris Toshok <toshok@ximian.com>
15559 * Control.cs: ControlCollection seems to have super-secret
15560 abstraction breaking knowledge of Mdi containers. allow MdiClient
15561 to add toplevel controls.
15563 2007-01-23 Chris Toshok <toshok@ximian.com>
15565 * Control.cs: throw an ArgumentException if a toplevel control is
15566 added to our control collection from ControlCollection.Add, as
15567 well as from ControlCollection.IList.Add. This fixes the
15568 ControlSetTopLevelTest.TestTopLevelAdd unit test.
15570 Also, in ControlCollection.IList.Add, don't through an
15571 ArgumentNullException, throw an ArgumentException, when value ==
15572 null. This matches MS.
15574 2007-01-23 Chris Toshok <toshok@ximian.com>
15576 * BindingSource.cs: initial, incomplete, implementation of
15579 2007-01-23 Jackson Harper <jackson@ximian.com>
15582 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15583 that I can fix a broken unit test (TextBoxTest::ClearUndo)
15585 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15587 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15589 2007-01-23 Andreia Gaita <avidigal@novell.com>
15591 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15592 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15593 IndexOfKey() for 2.0
15595 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15597 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15598 to prevent it from changing z-order.
15599 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15600 leave UI updates in MdiWindowManager.
15601 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15602 1 sized (NC handling goes weird on Linux otherwise).
15603 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15604 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15605 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15606 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15607 and SetWindowState(s) to allow for changing the size of an activated child
15608 before activating it (reduces a lot of flicker).
15610 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15612 * Form.cs: Changing FormBorderStyle has different semantics based
15613 on whether the Form is visible or not. If not visible, don't change
15614 the Size. But InvalidateNC needs to be called to force the window
15615 to pick up the changes and redraw itself. [Fixes bug #80574]
15617 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15620 * ContainerControl.cs: ProcessCmdKey.
15621 * ErrorProvider.cs: new constructor.
15622 * Form.cs: fix AutoValidateEvent compiler warning.
15623 * Label.cs: fix OnAutoSizeChanged compiler warning.
15624 * MenuStrip.cs: fix CanOverflow compiler warning.
15625 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15626 * TextBox.cs: Dispose.
15627 * ToolStrip.cs: CanOverflow, re-enable double buffering.
15628 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15629 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15630 * ToolStripItem.cs: Overflow, RightToLeft properties.
15632 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15634 * Form.cs: Move the layout of the main form to MdiWindowManager.
15635 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15636 do a layout of the main window to update MdiClient's client area to
15637 the right area. Fixes #80533. Remove the calculation of nc size,
15638 it was just wrong and the correct one is the same as for
15639 InternalWindowManager.
15641 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
15643 * Control.cs: Setting Anchor or Dock needs to reset the other
15644 to its default. [Fixes bug #80556]
15646 2007-01-20 Chris Toshok <toshok@ximian.com>
15648 * CheckedListBox.cs: class status changes.
15650 * ScrollableControl.cs: same.
15652 * RichTextBox.cs: same.
15654 * ContainerControl.cs: same.
15656 * ListView.cs: same.
15658 * NotifyIcon.cs: same.
15660 * MenuStrip.cs: same.
15662 * RadioButton.cs: same.
15664 * CheckBox.cs: same.
15666 * PrintPreviewDialog.cs: same.
15670 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
15672 * TreeNode.cs: Apply Alan's patch for Name property.
15674 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15676 * Form.cs: Implemented SizeGripStyle.
15677 * SizeGrip.cs: Check for minimum and maximum size for the
15678 control being resized and only resize if size has actually
15681 2007-01-19 Chris Toshok <toshok@ximian.com>
15683 * DataGridColumnStyle.cs: stop setting _readonly in the
15684 PropertyDescriptor setter. fixes a unit test failure.
15686 also, rename ParentReadOnly to TableStyleReadOnly, and have it
15687 just consult our table style (if we have one). We don't need to
15688 consult the datagrid readonly attribute because that's passed in
15689 as the _ro arg to Edit. this simplifies things a little.
15691 * DataGrid.cs: use CurrentColumn instead of
15692 current_cell.ColumnNumber just to simplify some of the code.
15694 switch the order of some things in the CurrentCell setter to keep
15695 the previous cell from getting a textbox again -
15696 EnsureCellVisibility causes scrolling to happen, which calls Edit.
15697 So we need to set the new cell before calling it.
15699 call Edit in OnEnter, as does Microsoft.
15701 also, make sure the current table style isn't the one we create
15702 initially when checking to see if it's different than the one
15703 we're setting it to in BindColumns (this fixes #80421).
15705 * GridTableStylesCollection.cs: table styles can have "" for a
15706 mapping name. part of the fix for #80421.
15708 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
15709 Edit significantly.
15711 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15713 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
15714 and less GDI object leaky-er.
15716 2007-01-18 Andreia Gaita <avidigal@novell.com>
15718 * LinkLabel.cs: Add opaque control style
15720 2007-01-18 Jackson Harper <jackson@ximian.com>
15722 * TextControl.cs: Calculate width properly.
15723 - Don't store the tag's X offset, this can be figured out very
15725 - When getting the caret tag make sure to get the last empty tag.
15727 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15729 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
15732 * Control.cs: Color.Empty shouldn't count for previous transparent
15735 2007-01-18 Jackson Harper <jackson@ximian.com>
15739 * TextControl.cs: Starting to merge in some pieces of my older
15740 undo work. Basically just some slight cleanup of the undo API.
15742 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15744 * TrackBar.cs: Fix signature of RightToLeftLayout.
15745 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
15746 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
15747 * Application.cs: Implemented UseWaitCursor.
15749 2007-01-18 Jackson Harper <jackson@ximian.com>
15751 * TextControl.cs: We can't skip tags if any part of the tag is
15754 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15756 * ContainerControl.cs: Override OnLayout.
15758 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15760 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
15762 * ContextMenuStrip.cs: Make sure context menu is shown on top of
15765 2007-01-18 Chris Toshok <toshok@ximian.com>
15767 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
15768 (leftover from the container_selected days, I'd wager). fixes bug
15771 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15773 * Control.cs: Apply patch from George to fix the new testcase on
15774 bug #80451. We can't just check for Color.Transparent, we need
15775 to check if the back color's alpha channel is < 255.
15777 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15779 * Form.cs: Move setting show_icon = true to before the constructor
15780 so that the base constructor has that information when it calculates
15781 the form's size. Was causing forms to be (6, 6) bigger than they
15782 were supposed to be. Thanks for catching this Rolf!
15784 2007-01-18 Jackson Harper <jackson@ximian.com>
15786 * TextControl.cs: When replacing a selection we need to invalidate
15787 from the initial selection start, because selection start is moved
15788 to the end of the replacement.
15790 2007-01-18 Andreia Gaita <avidigal@novell.com>
15792 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
15794 2007-01-18 Chris Toshok <toshok@ximian.com>
15796 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
15799 2007-01-17 Everaldo Canuto <everaldo@simios.org>
15801 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
15802 layout methods and properties from ToolBarButton must be available
15803 into ToolBarButtonInfo.
15805 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15807 * Control.cs: If the control has a transparent background, we
15808 need to refresh it when it moves and when it's parent's background
15809 image changes. [Fixes bug #80451]
15811 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15813 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
15815 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15817 * XplatUIWin32.cs: Implement proper double buffering for Windows.
15818 [Fixes bug #80447, and probably speeds up things as well]
15820 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15822 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
15823 * XplatUIWin32.cs: We need to recalculate NC size after changing
15824 window style to toolwindow (otherwise the client rectangle will be
15825 3 pixels to small for some reason).
15826 * MdiWindowManager.cs: Revert NC size calculations to match how
15827 they are calculated only based on window styles (to match
15828 Win32AdjustWindowRectEx, since otherwise when setting size or
15829 location, Control will call Win32AdjustWindowRectEx to update client
15830 size, which would provoke a paint, then we'd get a NCCALCSIZE and
15831 calculate a different value of client size causing another paint
15833 * InternalWindowManager.cs: When moving or resizing a window only
15834 update size or location if they actually changed.
15835 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
15836 (seems to match Windows behaviour better). Cleaned up
15837 ManagedWindowDecorations to draw what's needed and nothing else
15838 (was drawing borders and lines where they shouldn't be)
15839 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
15840 (style = 0xFFFF) and takes into account caption height when
15841 calculating window rectangle.
15843 2007-01-16 Everaldo Canuto <everaldo@simios.org>
15845 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
15846 can be added to toolbar multiple times, we need to maintain a list of
15847 button information for each positions.
15849 2007-01-16 Everaldo Canuto <everaldo@simios.org>
15851 * ToolBar.cs: Some small stetic changes.
15853 2007-01-16 Jackson Harper <jackson@ximian.com>
15855 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
15856 that allow us to have nested recalc = false blocks.
15857 - Add paste support for images in the RichTextBox
15858 * RichTextBox.cs: flush the text after the color is changed, so
15859 the change takes effect.
15860 - Use SuspendRecalc
15861 - Some extra debugging info
15862 * TextControl.cs: Tags no longer track their length, it is just
15863 computed from the next tags length, this makes things a little
15864 simpler and reduces places that we have to track length changes.
15865 - Refactored the linetag class a little so we could make it
15866 a base class for different kinds of tags
15867 - Created a image tag, a tag that can have a single image inserted
15869 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
15870 that we can call suspend multiple times.
15871 - Add some debugging methods
15873 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15875 * MdiClient.cs: Add ActivatePreviousChild for
15876 mdi child window navigation.
15877 * Form.cs: Use MdiClient.ActivateNextChild/
15878 ActivatePreviousChild instead of Form.SelectNextControl
15879 to select the next/previous child since
15880 SelectNextControl doesn't do it in the same order
15881 as mdi children should do it.
15883 2007-01-16 Chris Toshok <toshok@ximian.com>
15885 * Control.cs: remove container_selected field.
15887 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15889 * MdiClient.cs: Update main form's ActiveChild when
15890 updating keyboard focus for the mdi child.
15892 2007-01-16 Jonathan Pobst <jpobst@novell.com>
15894 * Control.cs: PreferredSize fix.
15896 * Form.cs: Add several 2.0 events, properties, and methods.
15898 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
15900 * Form.cs: Provide meaningful message when MdiParent is assigned a
15901 Form that is not an MdiContainer.
15903 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15905 * MdiClient.cs: Update main form's ActiveChild when
15906 activating a mdi child.
15908 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15910 * MdiWindowManager.cs: Fix NRE when merging menus and main form
15911 doesn't have a menu.
15913 * Form.cs: Request NCRecalc after creating a mdi child window.
15914 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
15915 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
15917 * MdiClient.cs: Add new method SendFocusToActiveChild that either
15918 sends keyboard focus to the active child, or to the MdiClient
15919 if there are no child forms.
15921 2007-01-15 Chris Toshok <toshok@ximian.com>
15923 * ListView.cs: drop the *Internal overrides, just do our work in
15924 ItemControl's WndProc instead.
15926 * UpDownBase.cs: a few large changes. Fix up the Selectable state
15927 of the various controls, and forward the events properly (in the
15928 same manner as MS) from the textbox to the UpDown. Also the
15929 ActiveControl of the UpDownBase gets set properly now. Finally,
15930 we don't call UpdateEditText from the ctor. Fixes bug #79957.
15932 * NumericUpDown.cs: set Text in the ctor.
15934 * DomainUpDown.cs: call UpdateEditText in the ctor.
15936 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
15937 so even a Selectable = false textbox can be focused if you click
15940 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
15941 just add their handling in their respective WndProc's. Also add
15942 an explicit FocusInternal method that doesn't consult CanFocus
15943 before calling Select(this).
15945 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
15946 do our work in WndProc instead.
15948 * TabControl.cs: same.
15950 * ComboBox.cs: same.
15952 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15954 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
15957 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15960 * ThemeWin32Classic.cs: Don't draw the item text outside
15961 item bounds in Details view, as well as use trimming.
15964 2007-01-15 Jonathan Pobst <jpobst@novell.com>
15966 * Form.cs: Implement Form.ShowIcon.
15968 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
15969 null, which when combined with the DlgModalFrame window style removes
15970 the icon from the title bar.
15972 2007-01-15 Jonathan Pobst <jpobst@novell.com>
15974 * Control.cs: Call OnMouseClick after OnClick. (2.0)
15976 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15978 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
15979 menu when mdi child windows theres a menu, uses insert to get icon
15980 at first position. Partially fix #80006.
15982 2007-01-15 Jonathan Pobst <jpobst@novell.com>
15984 * Clipboard.cs: Implement 2.0 methods.
15986 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15988 * Menu.cs: Implement Insert method of MenuItemCollection class
15991 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15993 * ListView.cs: Implement 2.0 FindItemWithText method.
15995 2007-01-11 Everaldo Canuto <everaldo@simios.org>
15997 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
15998 to calculate menu bar size. Fixes #80290.
16000 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16002 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16004 2007-01-11 Chris Toshok <toshok@ximian.com>
16006 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16009 2007-01-11 Chris Toshok <toshok@ximian.com>
16011 * LinkLabel.cs: make sure to call base.Select in our Select method
16012 if it turns out we're going to be selected (i.e. if we have a link
16013 that is going to receive focus). That way our container's
16014 ActiveControl is updated properly.
16016 2007-01-11 Chris Toshok <toshok@ximian.com>
16018 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16019 they have 1 or more links. this fixes the crash gert reported.
16021 2007-01-11 Andreia Gaita <avidigal@novell.com>
16023 * ContainerControl.cs: Remove ContainerSelected flag, not needed
16026 * Control.cs (Controls.Add): Check if control to be added to the collection
16027 is a top level control, and throw an ArgumentException if it is.
16028 Remove ContainerSelectedFlag, not needed anymore.
16030 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16031 top most control doesn't activate the form. This fixes a problem in the
16032 MessageBox, where the default button wouldn't get focus because the form
16033 was activated before being Loaded - when the Owner is set, SetTopMost is
16034 called, and it would activate it.
16036 2007-01-11 Jonathan Pobst <jpobst@novell.com>
16038 * Button.cs: When clicked and setting the parent form's DialogResult,
16039 use FindForm instead of Parent, since parent could be a container
16040 control and not the Form. Fixes bug #80495.
16042 2007-01-10 Chris Toshok <toshok@ximian.com>
16044 * Form.cs: move the call to SendControlFocus into the same
16047 2007-01-10 Chris Toshok <toshok@ximian.com>
16049 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16050 It breaks in the face of the new ActiveControl stuff, and should
16053 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16054 activecontrol's focus if it's not already set, after we set
16055 ActiveControl, but before we call OnActivated. Re-fixes #79667
16056 after the previous focus/active control fixes regressed it.
16058 * Control.cs: reindent some code.
16060 2007-01-10 Chris Toshok <toshok@ximian.com>
16062 * Splitter.cs: clearing some outstanding changes from my tree.
16063 Replace all accesses (not writes) to the internal dock_style field
16064 with the Dock property.
16066 2007-01-10 Chris Toshok <toshok@ximian.com>
16068 * Control.cs: make FireEnter, FireLeave, FireValidating, and
16069 FireValidated virtual.
16071 * Form.cs: override and don't chain up calls to FireEnter and
16074 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16076 * ListView.cs: Add more text padding space when using
16077 auto resize for columns (the previous value didn't work fine).
16079 * ThemeWin32Classic.cs: Update text position inside columns,
16080 to match the appeareance of .Net.
16082 * ColumnHeader.cs: When using auto resize, only the Width should
16083 depend on the sub items, not the Height. Also, set width after
16084 auto resizing (the value of Width should never remain as -1 or -2).
16086 2007-01-10 Chris Toshok <toshok@ximian.com>
16088 * Application.cs: fix compilation errors when debug is enabled.
16090 2007-01-10 Chris Toshok <toshok@ximian.com>
16092 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16093 add some nice ascii art pictures and explanation of the process).
16094 (GetMostDeeplyNestedActiveControl): new utility function we need
16095 because our ActiveControl can refer to a child container with its
16098 * Form.cs (OnActivated): remove the call to SelectActiveControl
16099 from here, since you can override this method and not chain up,
16100 and winforms still sets the active control.
16101 (OnCreateControl): also remove the unnecessary SelectActiveControl
16103 (WndProc): it's actually called from the WM_ACTIVATE block, just
16104 before calling OnActivated.
16106 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16107 inside the else. the ActiveControl setter will end up setting
16108 focus on @control. This keeps us from setting it again (and
16109 generating an extra LostFocus/GotFocus pair).
16110 (Select (bool, bool)): reindent.
16112 2007-01-10 Jonathan Pobst <jpobst@novell.com>
16114 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16115 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16116 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16117 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16118 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16119 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16120 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16121 ToolStripTextBox.cs: Another wave of corcompare work.
16123 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16125 * ColumnHeader.cs: Implement 2.0 AutoResize method using
16126 the Width property.
16128 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16129 methods by callling Column.AutoResize method on columns.
16131 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16133 * Control.cs: Provide proper implementations of PreferredSize
16134 and GetPreferredSize (2.0).
16136 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16138 * Form.cs: Remove one character (!) to make my previous OnClosing
16139 stuff work for modal windows like MessageBox.
16141 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16144 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16145 ListView.Columns to get the last displayed column. Fixes #80452.
16147 2007-01-09 Everaldo Canuto <everaldo@simios.org>
16149 * Label.cs, LinkLabel.cs: Source code identation fixes.
16151 2007-01-08 Everaldo Canuto <everaldo@simios.org>
16153 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16154 we dont need to invalidate only borders because when we invalidate four
16155 border lines the invalidate's generates a complete redraw of button,
16156 because it now invalidate a complete rect some other redraws operations
16157 are fixed. Fixes #80196.
16159 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16160 Remove ToolBarInvalidateEntireButton as it is not used.
16162 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16164 * Form.cs: Make sure that both OnClosing and OnFormClosing are
16165 called for 2.0 profile.
16166 * CloseReason.cs: Make class internal for 1.1.
16168 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16170 * ToolStripManager.cs: Implement FindToolStrip functionality.
16171 * ToolStrip.cs: Register and unregister with ToolStripManager.
16173 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16175 * Control.cs: This was messy. 2.0 moves much of ControlCollection
16176 to ArrangedElementCollection. Implemented this with as few #if's as
16177 possible (which is still too many).
16179 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16181 * Control.cs: Implement SizeFromClientSize() [2.0].
16183 2007-01-07 Everaldo Canuto <everaldo@simios.org>
16185 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16186 use Theme.BorderSize to calculate area instead of static value 1,
16187 by the way use new BorderStaticSize instead Border3DSize when
16188 border_static is true. Fixes #79537.
16190 * XplatUIOSX.cs: Fix call to GetClientRectangle.
16192 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16195 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16197 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16199 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16201 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16202 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16205 - border_static field added, it will used to define when a control
16206 theres 3D border but it must be static (thin).
16207 - In GetWindowRectangle use Theme.BorderSize to calculate area
16208 instead of static value 1, by the way use new BorderStaticSize instead
16209 Border3DSize when border_static is true.
16211 * XplatUIX11.cs, XplatUIOSX.cs:
16212 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16214 * Theme.cs: BorderStaticSize field added.
16216 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16218 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16220 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16222 * Control.cs: Under InternalBorderStyle call RecreateHangle to
16223 mimic same behavior than win32 that set border only in CreateParams,
16224 it fix problems under CreateParams overrides. Fix #79442 and partial
16227 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16228 of thi control you must call recreate handle.
16230 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16231 need to do anything as RecreateHangle will take care about borders.
16233 2007-01-05 Mike Kestner <mkestner@novell.com>
16235 * ListView.cs: hack to eliminate Lost/Got focus notifications on
16236 cycles between the ItemControl and parent. Fixes #80388.
16238 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
16240 * Control.cs: Lazy init layout engine. Do not directly use
16241 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16243 2007-01-05 Chris Toshok <toshok@ximian.com>
16245 * DataGrid.cs: don't forceably rebind columns in SetDataSource
16246 unless our list manager has changed (i.e. unless we have reason to
16247 believe our columns have changed). Fixes #80422.
16249 also, disable the call do BindColumns in
16250 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
16251 1.1 the event isn't raised in response to a column addition on a
16254 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16256 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16257 that inheritors can not call it if they choose. Fixes bug #80456.
16259 2007-01-05 Andreia Gaita <avidigal@novell.com>
16261 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
16262 doesn't blow up with a null exception on marshalling.
16264 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16266 * Control.cs: Implement several 2.0 protected properties and methods.
16267 Ensure that all necessary events are being called when properties
16270 2007-01-05 Mike Kestner <mkestner@novell.com>
16272 * ListView.cs: implement PgUp/PgDn for Details view. Also
16273 fixes First/LastVisibleIndex to use the item_control.ClientRect
16274 instead of the parent control. Fixes #80378.
16276 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
16278 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16279 determine whether to use yard-pound or not (bug #78399).
16281 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
16283 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16284 problems. So it is time to bring back the old popupbutton colors.
16286 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16289 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16290 property by using the internal information of the
16291 columns order in ListView.
16293 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
16295 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16296 Add 2.0 Tag properties.
16298 * LinkArea.cs: Add 2.0 ToString method.
16300 2007-01-03 Chris Toshok <toshok@ximian.com>
16302 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16303 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
16304 when we're editing, which fixes #80047.
16306 2007-01-03 Chris Toshok <toshok@ximian.com>
16308 * Form.cs: apply patch contributed by Dominik Seichter. fixes
16311 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
16313 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16314 property and implementation.
16316 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16317 for MdiWindowListItem property.
16319 * ToolStripDropDown.cs: Don't consider hidden menu items while
16320 laying out the menu.
16322 2007-01-03 Andreia Gaita <avidigal@novell.com>
16324 * SendKeys.cs: window handle is not needed in win32, so just
16325 get the active window for X after parsing keys and don't use
16326 it when building the message; it is passed by parameter to the
16327 Xplat method and used there to build the message instead. Also,
16328 wait for events to be processed on SendWait, as opposed to Send,
16329 which doesn't wait :) Playing with threads and Send() completely
16330 hangs on ms.net, only SendWait() works.
16333 X11Display.cs: Check for valid window handle.
16335 2007-01-03 Jackson Harper <jackson@ximian.com>
16337 * TextControl.cs: Need to prevent wrap calculations when replacing
16338 text (this was there before i removed it accidently).
16339 - Don't update the cursor during the positioning, just set it to
16340 selection_start at the end of the operaion.
16342 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16345 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16347 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16349 * MonthCalendar.cs: Added Click and DoubleClick events again,
16350 but this time they only hide Control's Click and DoubleClick.
16352 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
16354 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16355 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16357 2007-01-02 Jackson Harper <jackson@ximian.com>
16359 * TextBoxBase.cs: We move the caret with the split now, so we
16360 don't need to explicitly move the caret after splitting. This
16361 fixes the caret bumping down an extra line on Enter.
16363 2007-01-02 Miguel de Icaza <miguel@novell.com>
16365 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16368 * ScrollableControl.cs: Add Scroll event.
16370 2007-01-02 Mike Kestner <mkestner@novell.com>
16372 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
16373 to fix all hdr height padding codepaths. Fixes #80207.
16375 2007-01-02 Chris Toshok <toshok@ximian.com>
16377 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16378 setting it to the Control defaults anyway, and it being after the
16379 Dock set was screwing up layout.
16380 (set_Dock): don't short circuit out of setting base.Dock. Also,
16381 no need to call UpdateStatusBar here, as it'll be re-layed out if
16384 2007-01-02 Mike Kestner <mkestner@novell.com>
16386 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16387 to header height for width == -1. Fixes the rest of #80207.
16389 2007-01-02 Mike Kestner <mkestner@novell.com>
16391 * ListView.cs: rework the mouse event forwarding everaldo added
16392 to translate the coordinates to the parent control not
16393 raise the parent events until after we've done our work. Hover
16394 needs more work, in the case where HoverSelection is on, because
16395 the item control receives more than one MouseHover per Enter
16396 event, so we need to ensure only the "first" hover gets forwarded.
16397 Opening a minor bug for that.
16399 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
16401 * CheckedListBox.cs: Fixed SelectionMode to match MS.
16402 * ListControl.cs: Implemented AllowSelection property. Removed extra
16404 * ListBox.cs: Implemented AllowSelection property.
16406 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16408 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16409 SelectedItem, it prevent for errors when you must disable item
16410 before perform click. Fixes #80409.
16412 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16414 * MenuAPI.cs: Prevent second level and beyond submenus to close
16415 until first level when move out side of popup.
16417 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16420 - Down submenu positin in three pixels.
16421 - Closes sub menu when mouse leaves from menu. Fixes #80402.
16423 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16425 * ThemeWin32Classic.cs:
16426 - Fix popup menu size adding one pixel on the top.
16427 - Down menu item border from two to one to mimic Win32.
16428 - Some source identation fixes.
16430 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16432 * ThemeWin32Classic.cs: Use float numbers to calculate size and
16433 position of menu arrows, it fix wrong arrow size.
16435 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16437 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16438 instead of line, it simplify draw operation and fix it using 3D
16439 borders to mimic Win32.
16441 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
16443 * StatusStrip.cs: Add implementation of the sizing grip.
16445 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16446 StatusStrip rendering.
16448 2006-12-31 Chris Toshok <toshok@ximian.com>
16450 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
16451 override the layout style (anchor/dock) of the control. assign to
16452 Dock instead. Fixes bug #80416.
16454 * ToolStrip.cs: same.
16456 2006-12-31 Andreia Gaita <avidigal@novell.com>
16458 * ContainerControl.cs: Use ContainerSelected flag to check if
16459 a Container is directly selected, or if Select is called on a
16460 non-container. If a container is directly selected, focus events
16461 should not be raised.
16462 Apply #80411 patch to throw exception on set_ActiveControl if
16463 control is the same as the current one.
16465 * Control.cs: Use ContainerSelected flag (see above).
16466 Add invalidation check to raise event but not invalidate if
16468 Apply #80411 patch.
16471 2006-12-31 Everaldo Canuto <everaldo@simios.org>
16473 * MenuAPI.cs: After click, dont close popup menu when menu is
16474 ContextMenu. Fixes #80399.
16476 2006-12-30 Chris Toshok <toshok@ximian.com>
16478 * ContainerControl.cs: make sure we throw the exception if the
16479 container control doesn't contain the control we're setting
16482 2006-12-30 Chris Toshok <toshok@ximian.com>
16484 * Control.cs (SetTopLevel): fix the exception raised by
16485 SetTopLevel for child controls.
16486 (set_Anchor): call UpdateDistances when setting the anchor type.
16487 This fixes bug #80336.
16489 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16491 * Theme.cs: For now, revert back to 8pt font.
16493 2006-12-29 Everaldo Canuto <everaldo@simios.org>
16495 * MenuAPI.cs: Set popup as active when open a ContextMenu.
16498 2006-12-29 Chris Toshok <toshok@ximian.com>
16500 * Control.cs: reorder the code in OnResize to give the same event
16503 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
16505 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16506 TileHorizontally and TileVertically.
16508 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
16510 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16511 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16512 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16513 Corrected copyright and email adress.
16515 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16517 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16518 of Exception in FullPath property if no TreeView is associated with
16521 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16523 * Theme.cs: Marked default_font as private, and initialize it in ctor
16524 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16526 * ThemeGtk.cs: Removed default_font intialization.
16527 * ThemeWin32Classic.cs: Removed default_font initialization.
16529 2006-12-28 Chris Toshok <toshok@ximian.com>
16531 * Control.cs: fix a couple of place where we were creating handles
16532 more aggressively than we should be. Fixes ControlRefresh unit
16535 2006-12-28 Chris Toshok <toshok@ximian.com>
16537 * Control.cs: contrary to what the comment said, Control.Dock does
16538 not supercede Control.Anchor - the last one you assign to decides
16539 the layout behavior. so we need to keep track of which was the
16540 last set. Also, fix some of the affected property arguments in
16541 PerformLayout calls, and remove an redundant parent.PerformLayout
16544 Add a VisibleInternal property, which returns is_visible. We
16545 can/should get rid of all the usage of this field elsewhere.
16547 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16549 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16550 control style, not DoubleBuffer. Added UseDoubleBuffering property
16551 that indicates whether doublebuffering is enabled and supported.
16552 (comment from and code based on Gert Driesen's patch in #80324).
16555 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16557 * Control.cs: Fixed a NRE.
16559 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16561 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16564 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16566 * Control.cs: Rewrote double buffering, now a seperate
16567 class handles all the buffering, no Graphics is disposed of
16568 until the painting is finished (earlier implementation
16569 would crash if the control was resized in the OnPaint,
16570 since it would cause the double buffer to be recreated
16571 and the old one disposed), a separate Graphics is
16572 created for every paint (MS behaviour and anyways the state
16573 of the Graphics would have to be saved and restored otherwise)
16575 * XplatUIDriver.cs:
16577 * XplatUI.cs: Added and implemented GetOffscreenGraphics
16578 so that we can get the graphics for the back buffer without
16579 having to create a new one and remove the offscreen_dc parameter
16580 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16582 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16584 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16585 Also make virtual all the key-related methods.
16587 * ListViewItem.cs: Make virtual the key related methods for
16588 ListViewSubItemCollection.
16590 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16594 * ThemeWin32Classic.cs:
16595 * Theme.cs: Initial support for Tile view in ListView,
16596 as well as the implementation of the required bits for it (Item
16599 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16601 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16602 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16603 Provide useful exception messages.
16605 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16607 * TrackBar.cs: Remove a warning.
16608 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16609 when used by DateTimePicker, fixes #80287. This also requires that
16610 MonthCalendar implements it's own drawing for the yearly updown control,
16611 otherwise the Capture tracking would be too complicated. Removed the Click
16612 and DoubleClick events (according to comments they were hiding the base class
16613 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16614 raise these events, not that they cannot be raised. It is possible to raise
16615 them by calling OnClick and OnDoubleClick). Added two internal fields in
16616 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16617 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16618 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16619 event, no longer needed.
16621 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16623 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16624 true if new value differs from current value.
16626 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16628 * Control.cs: ControlCollection.Count must be public. Fixed build of
16631 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16633 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16635 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16637 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16639 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16641 * Control.cs: Invalidates control including when Width and Height is
16642 equal zero or is not visible, only Paint event must be care about
16643 this. Fixes #79913.
16645 2006-12-26 Chris Toshok <toshok@ximian.com>
16647 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16648 more corcompare work.
16650 * DataGridView.cs: fix compiler warning.
16652 * ColumnHeader.cs: some corcompare work, and also take the
16653 opportunity to make the internal fields private.
16655 * ListView.cs: fix the fallout from the above field change.
16657 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16659 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16660 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16661 ToolStripTextBox.cs: Fixes to events and corcompare.
16663 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16665 * ListView.cs: Call owner.OnMousexx event to propagate events from
16666 item to ListView. Fixes #80367.
16668 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16670 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
16671 if value is less than one. ItemHeight should not be set to a value
16672 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
16673 Removed extra tabs.
16675 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16677 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
16678 * ToolStripStatusLabel.cs: Add Spring for Moma.
16680 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16682 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
16683 Fixed code formatting. Removed debug code.
16684 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
16686 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16688 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
16689 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
16690 ArgumentOutOfRangeException if ColumnCount is negative. In
16691 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
16692 less than 4 or higher than 32768.
16693 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
16694 Fixed FormatProvider to return CurrentCulture unless explicitly set.
16695 Fixed IsFormatProviderDefault to return true if FormatProvider has
16696 not been explicitly set.
16698 2006-12-25 Chris Toshok <toshok@ximian.com>
16700 * Application.cs: add a couple of 2.0 events.
16702 2006-12-25 Chris Toshok <toshok@ximian.com>
16704 * Control.cs: fix compiler warning.
16706 * AxHost.cs: corcompare fixes.
16708 * ApplicationContext.cs: corcompare fixes.
16710 2006-12-25 Chris Toshok <toshok@ximian.com>
16712 * Control.cs: only update dist_right/dist_bottom if the
16713 width/height is > 0. this fixes anchored controls being resized
16714 smaller until they disappear and then resized larger again.
16716 2006-12-25 Chris Toshok <toshok@ximian.com>
16718 * Control.cs: a couple of changes. Remove dist_left and dist_top,
16719 since they're nothing more than X/Left and Y/Top, respectively.
16721 Also, move back to a per-control Bitmap/Graphics for
16722 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
16723 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
16726 2006-12-25 Miguel de Icaza <miguel@novell.com>
16728 * MessageBox.cs: Implemented overload that takes a new "bool
16729 displayHelpButton" by adding a new internal field "show_help".
16730 When clicked this will raise the HelpRequested on the owner or the
16733 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
16734 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
16736 * ListView.cs: Add support ColumnWidthChanged and
16737 ColumnWidthChanging.
16739 Add support for ColumnReordered event.
16740 (ReorderColumn): Add NET_2_0 specific support for cancelling the
16743 Very nice codebase!
16745 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
16747 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
16749 2006-12-24 Chris Toshok <toshok@ximian.com>
16751 * GridTablesFactory.cs: 2.0 corcompare work.
16753 * ToolStripContainer.cs: add "override" to
16754 ContextMenuStripChanged, and remove the local event object.
16756 * ToolStripDropDown.cs: same with a couple properties.
16758 * ToolStripPanel.cs: same with AutoSizeChanged event.
16760 * TextBoxBase.cs: add "override" to AutoSizeChanged.
16762 * Form.cs: add the remaining 2.0 events, and do some corcompare
16765 * DateTimePicker.cs: add "new" to padding.
16767 * ButtonBase.cs: use Control's use_compatible_text_rendering.
16769 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
16771 * DataGridView.cs: PaddingChanged is overridden.
16773 2006-12-24 Chris Toshok <toshok@ximian.com>
16775 * Control.cs: corecompare work here too.
16777 * DataGridViewElement.cs, DataGridView.cs,
16778 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
16779 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
16780 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
16781 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
16784 2006-12-24 Miguel de Icaza <miguel@novell.com>
16786 * Control.cs: Switched the error message on the console for a
16787 todo. A review of the code will have to cope with this anyways
16788 (since its a large feature, it is in our radar) and it was
16789 producing too much output when running PDN.
16791 * ToolStripComboBox.cs: Set the text when the SelectedIndex
16792 changes. Applications depend on this (PDN 2.72)
16794 2006-12-23 Chris Toshok <toshok@ximian.com>
16796 * TableLayoutSettings.cs: finish up the corcompare work for this
16799 2006-12-23 Chris Toshok <toshok@ximian.com>
16801 * Control.cs: make SetImplicitBounds internal, do some futzing
16802 with LayoutEngine so that it's available in 1.1, and remove the
16803 entire duplicated code mess from PerformLayout. Use
16804 System.Windows.Forms.Layout.DefaultLayout instead.
16806 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
16808 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
16810 * Form.cs: Add MainMenuStrip property.
16812 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
16814 * Control.cs: Add ContextMenuStrip property and implementation.
16815 Fix ContextMenu implementation to show menu centered on control when
16816 activated using the keyboard instead of showing at screen (0,0).
16818 * ToolStripDropDown.cs: Fix needed overload of Show ().
16820 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16822 * Menu.cs: Name property added for 2.0 profile.
16824 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16826 * Menu.cs: Update information about FindMenuItem, method to be
16829 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16831 * MenuAPI.cs: When deselect items deselect also selected subitems.
16833 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16835 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
16836 FindSubItemByCoord to found itens that is not active, also an
16837 cheking added to FindSubItemByCoord to search for items only
16838 in visible popup windows. Fixes #80274.
16840 2006-12-22 Everaldo Canuto <everaldo@simios.org>
16842 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
16843 internal property, it be care about change ExStyle.
16845 2006-12-22 Andreia Gaita <avidigal@novell.com>
16847 * ContainerControl.cs: set activeControl for parent forms up the
16848 tree when the new activecontrol is a container.
16849 When validating the active control, if it is a container, also
16850 raise up the validation for it's active control. Fixes #80280
16852 * Control.cs: Add internal property flag and check to prevent
16853 Focus events from getting raised when Select() is called for
16854 a ContainerControl. There are still too many focus events being
16855 raised at the moment though.
16856 Cleaned up the code a bit.
16858 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16860 * Control.cs: Added all missing 2.0 events.and
16861 fixed a couple of corcompare issues.
16862 * TrackBar.cs: Implemented missing 2.0 bits.
16863 * MonthCalendar.cs,
16864 * DateTimePicker.cs,
16865 * MdiClient.cs: Fixed some corcompare issues.
16867 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
16869 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
16870 SplitterPanel.cs: corecompare work.
16872 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
16874 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
16875 Clean up warnings for BackgroundImageChanged and PaddingChanged
16876 events now that they are implemented in Control.cs.
16878 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
16880 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
16882 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
16883 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
16884 of TableLayoutPanel and supporting cast.
16886 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
16889 - GrabWindow now confines the mouse pointer to the confine window.
16890 - Added Win32ClipCursor and Win32GetClipCursor.
16893 - Added CaptureWithConfine to be able to capture and confine
16896 * InternalWindowManager.cs:
16897 - Call CaptureWithConfine instead of Capture if we're an
16898 MdiChild (fixes #79982).
16900 2006-12-21 Chris Toshok <toshok@ximian.com>
16902 * DataGrid.cs: guard against the initial state of selection, where
16903 selection_start == -1. make sure we only select from index >= 0.
16906 2006-12-21 Chris Toshok <toshok@ximian.com>
16908 * Control.cs: we don't need to be so draconian with
16909 UpdateDistances, and we thusly don't need to call it before
16910 calling PerformLayout in ResumeLayout. Fixes bug #80289.
16912 2006-12-21 Daniel Nauck <dna@mono-project.de>
16915 TextBox.cs: Implemented AutoComplete properties.
16917 2006-12-20 Chris Toshok <toshok@ximian.com>
16919 * DataGridView*.cs: some corecompare work.
16921 2006-12-20 Jackson Harper <jackson@ximian.com>
16923 * XplatUIX11.cs: We need to hide the caret when deleting it,
16924 otherwise you get carets left lying around everywhere.
16925 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
16926 prevents getting some weird half drawn caret tracers when
16928 * TextControl.cs: Attempt to reduce the number of times we need to
16929 recreate the caret.
16931 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
16933 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
16935 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16937 * DateTimePicker.cs:
16938 - Implemented missing 2.0 bits.
16939 - Changed some default values to match MS.
16941 2006-12-20 Jackson Harper <jackson@ximian.com>
16943 * TextBoxBase.cs: When changing the font across the document we
16944 can't recalculate after changing each line, since that will cahnge
16946 - PreferredHeight is a little different than i thought.
16947 - When backspacing, move the caret before we do the actual char
16948 delete, because when that delete crosses a wrap boundary the
16949 positional information will change.
16951 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16953 * Control.cs: Added some missing 2.0 bits:
16954 BackgroundImageLayout, BackgroundImageLayoutChanged,
16955 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
16956 add IBindableComponent and IDropTarget implementation.
16958 * MonthCalendar.cs:
16959 - Added all missing 2.0 features:
16960 BackgroundImageLayout, RightToLeftLayout,
16961 OnHandleDestroyed, RightToLeftLayoutChanged,
16962 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
16964 - Rewrote all the BoldDate code, it was completely broken.
16965 - Fixed all the tests (the tests can now be re-enabled, the
16966 problems were not with the tests, but with the control, it was
16969 * DateTimePicker.cs: Changed the location where the
16970 MonthCalendar is shown.
16972 2006-12-19 Chris Toshok <toshok@ximian.com>
16974 * DataGridView.cs: add IDropTarget implementation.
16976 * ToolStripPanel.cs: add IDropTarget implementation.
16978 2006-12-19 Jackson Harper <jackson@ximian.com>
16980 * TextControl.cs: soft now means something different than what it
16981 used to mean, we want to move the caret regardless of whether or
16982 not this break was soft (would we really have wanted the caret
16983 to not move with the break in the old context?)
16984 * TreeView.cs: Make sure we factor in the vert scrollbar when
16985 calculating the horizontal scrollbar's maximum.
16987 2006-12-19 Andreia Gaita <avidigal@novell.org>
16989 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
16990 check for keywords in alternate casing, close bug #80049.
16992 2006-12-19 Chris Toshok <toshok@ximian.com>
16994 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
16995 methods (which all do nothing).
16997 * IDropTarget.cs: add the 4 missing methods.
16999 2006-12-19 Chris Toshok <toshok@ximian.com>
17001 * TableLayoutRowStyleCollection.cs: corcompare work.
17003 * TableLayoutSettings.cs: same.
17005 * TableLayoutStyle.cs: same.
17007 * TableLayoutColumnStyleCollection.cs: same.
17009 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
17011 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17012 TableLayoutPanel I've had in my local tree for way too long.
17014 2006-12-19 Miguel de Icaza <miguel@novell.com>
17016 * TableLayoutSettings.cs: Finish the public API (still needs all
17017 the logic to update on changes).
17019 * TableLayoutPanelCellPosition.cs: new file.
17021 * TableLayoutRowStyleCollection.cs,
17022 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17023 TableLayoutSettings.cs: Track the final 2.0 table api.
17025 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17027 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17028 and Image List 2.0 members for ColummnHeader.
17029 * ListView.cs: Add key-related 2.0 methods for
17030 ColumnHeaderCollection.
17032 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17034 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17035 ArgumentNullException if items argument is null. Ignore null item in
17036 arrays. Removed extra tabs.
17038 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17040 * MonthCalendar.cs: Fixed InvalidCastException.
17042 2006-12-19 Jackson Harper <jackson@ximian.com>
17044 * TextControl.cs: Don't increment the position here.
17045 - When calculating char positions only add in the line break size
17046 for hard line breaks.
17048 2006-12-19 Andreia Gaita <avidigal@novell.org>
17050 * SendKeys.cs: Changed some things to match ms.net behaviour
17051 when parsing shifted capital letters.
17053 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
17054 Add window handle as parameter to SendInput. X11 needs the
17055 window handle, and the handle being passed to it in the keys
17056 queue is the active control handle (which windows needs), not
17059 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
17060 to support SendKeys on X.
17062 * X11Keyboard: Implement helper method to lookup a linux keycode
17063 given the virtual keycode. Added table of keycode-2-virtualkey
17064 values to support this.
17066 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17068 * ListView.cs: Add support for SelectedIndexCollection
17069 and SelectedItemCollection 2.0 methods. Implement support
17071 * ListViewItem.cs: Add support for ListViewSubItemCollection
17072 2.0 methods. Also, fix an incorrect behavior of AddRange method
17073 (it shouldn't call Clear).
17074 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17076 2006-12-19 Jackson Harper <jackson@ximian.com>
17079 * TextBoxBase.cs: New args for FormatText
17080 * TextControl.cs: Rewrote the main drawing method, this version
17081 feels a little easier to understand and debug to me. Hopefully it
17082 does to others also
17083 - Fix FormatText to OR in the new formating values. Added
17084 FormatSpecified param, basically this works in the same way as
17085 BoundsSpecified in Control.
17086 - Set the caret properties when the caret is positioned.
17087 - When wrapping text make sure that we calculate the width of the
17089 - when calculating alignments we might have wrapped down to the
17090 next line, so don't search for an individual tag, search for the
17092 - We need to invalidate the selection area when we replace the
17095 2006-12-19 Daniel Nauck <dna@mono-project.de>
17097 * Application.cs: add Restart () 2.0 support
17099 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17101 * MenuItem.cs: Invalidate menu item rectangle after change Enable
17102 property. Fixes #80268.
17104 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17106 * MenuAPI.cs: Dont trigger select event when closes top menu
17107 item. Fixes #80270.
17109 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17111 * MenuAPI.cs: When you click on menuitem only trigger onselect
17112 event for top menu itens. Fixes #80271.
17114 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17116 * MdiWindowManager.cs: Make IconicBounds depend on
17117 the bottom of MdiClient, not the top (fixes #80267)
17119 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17121 * MdiClient.cs: Added missing 2.0 attribute
17123 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17125 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17126 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17128 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17130 * MenuAPI.cs: Fix click when menuitem is not popup,
17131 this regression was caused by last commit (#80272).
17133 2006-12-17 Everaldo Canuto <everaldo@simios.org>
17135 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17136 fire click event or close menu. Fixes #80272.
17138 2006-12-17 Daniel Nauck <dna@mono-project.de>
17140 * ListViewHitTestInfo.cs: add
17142 2006-12-17 Daniel Nauck <dna@mono-project.de>
17144 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17145 * FlatButtonAppearance.cs: add
17146 * DockingAttribute.cs: add
17148 2006-12-17 Chris Toshok <toshok@ximian.com>
17150 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17151 and rebind our columns when it does - this way, if you make
17152 changes to the DataTable (or set the Table attribute on a DataView
17153 after setting it as the DataGrid's DataSource, the changes are
17154 made visible.) Fixes bug #80107.
17156 2006-12-17 Daniel Nauck <dna@mono-project.de>
17158 * ListViewGroup.cs: add internal Location property for layouting.
17159 * Theme.cs: add abstract ListViewGroupHeight function.
17160 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17162 2006-12-16 Andreia Gaita <avidigal@novell.com>
17164 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17165 Added reset of selected index to 0 when adding first tab page.
17168 * NumericUpDown.cs: Fix NET_2_0 check
17170 2006-12-16 Daniel Nauck <dna@mono-project.de>
17172 * ListViewGroup.cs: fixed DefaultValueAttribute value
17174 2006-12-16 Daniel Nauck <dna@mono-project.de>
17176 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17178 2006-12-15 Miguel de Icaza <miguel@novell.com>
17180 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17181 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17182 ScrollableControl.cs: Add a handful of methods that are
17185 2006-12-15 Chris Toshok <toshok@ximian.com>
17187 * XplatUIWin32.cs: initial implementation of the Reversible
17188 drawing functions. there are some problems. DrawReversibleFrame
17189 doesn't seem to work at all for Dashed FrameStyle, and in the
17190 Thick case there are drawing errors at the corners (we probably
17191 need to bind Rectangle instead of doing moveto/lineto's.)
17193 2006-12-16 Andreia Gaita <avidigal@novell.com>
17195 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
17196 to send blocks of key messages. Send accumulates keys to send with Flush,
17197 while SendWait sends all keys immediately.
17199 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17200 XplatUIX11.cs, XplatUIX11-new.cs:
17201 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17202 to Win32 SendInput.
17203 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17205 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
17206 testing for ms.net on this class is very tricky, as the tests run too fast
17207 to allow the hook to release, essentially freezing the keyboard and the
17208 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
17211 2006-12-16 Daniel Nauck <dna@mono-project.de>
17213 * Padding.cs: fixed serialization compability to MS ("_var" field names),
17214 added missing attributes.
17216 2006-12-15 Daniel Nauck <dna@mono-project.de>
17218 * ListViewGroup.cs: Added missing attributes.
17219 * ListViewGroupCollection.cs: Added missing attributes.
17221 2006-12-15 Daniel Nauck <dna@mono-project.de>
17223 * ListViewItem.cs: fixed ListViewSubItem text property.
17225 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17227 * Control.cs: Added missing 2.0 attributes
17229 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17231 * MdiClient.cs: Added missing 2.0 attribute.
17232 * MonthCalendar.cs: Added some missing 2.0 attributes
17235 2006-12-15 Daniel Nauck <dna@mono-project.de>
17237 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17239 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
17241 * MainMenu.cs: Add the new 2.0 constructor to help out people
17242 using the MainMenu in VS2005.
17244 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17246 * MdiChildContext.cs: Removed it, no longer used.
17247 * MdiClient.cs: Added missing 2.0 attributes.
17249 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17251 * InternalWindowManager.cs: Fix a NullRef with previous
17252 changes for toolwindows.
17254 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17257 - Added AfterTopMostControl to allow for certain controls
17258 to always stay on top when normal controls are brought to
17262 - (DrawInversibleRectangle): Get window rectangle from Win32
17263 in stead of from control, since Win32 doesn't calculate
17264 screen coords correctly from control's Location if it
17265 have docked siblings.
17267 * MdiWindowManager.cs:
17268 - Correct the control menu popup location when clicked on
17269 the maximized form icon. (fixes #80223.1)
17270 - Don't show moving rectangle if mouse hasn't moved from
17271 the original clicked point.
17272 - Removed FormGotFocus handler (not used).
17273 - Calculate the control buttons location from the main
17274 window's size and not client size (fixes #79770).
17275 - Form is now closed when the form icon is double-clicked
17277 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17279 * InternalWindowManager.cs:
17280 - Moved some MDI-only methods to MdiWindowManager.
17281 - Removed unused properties and methods.
17282 - Unified method naming for methods handling wm messages.
17283 - Moved all message handling to seperate methods for
17286 * ThemeWin32Classic.cs:
17287 - DrawManagedWindowDecorations now draws the title bar
17288 with a gradient brush.
17289 - Add a CPDrawButtonInternal that allows us to specify
17290 light, normal and dark colors for the buttons (control
17291 buttons for MDI children were drawn with the same light
17292 color as the background, therefore loosing the 3D effect).
17295 - Add a CapturedControl property that is used to
17296 determine the control to resize (defaults to parent).
17297 Needed for MdiClient, since its SizeGrip's parent is
17298 MdiClient, but the control to resize is the main form.
17301 - Set SizeGrip's CapturedControl to the main form in order
17302 to resize the main form and not the MdiClient.
17303 - Override AfterTopMostControl to leave the scrollbars
17306 2006-12-15 Daniel Nauck <dna@mono-project.de>
17308 * ListView.cs: fixed ListViewItemCollection AddRange and
17309 implemented ListViewItemCollection AddRange 2.0 support.
17311 2006-12-15 Daniel Nauck <dna@mono-project.de>
17313 * ListViewGroup.cs: Add.
17314 * ListViewGroupCollection.cs: Add
17315 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17316 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17317 stub for ImageKey 2.0 support.
17319 2006-12-14 Mike Kestner <mkestner@novell.com>
17321 * ListView.cs: add text padding to the autocalculation for columns
17322 of width -2. Fixes #80207.
17324 2006-12-14 Mike Kestner <mkestner@novell.com>
17326 * ListView.cs: add some index guarding for partial row navigation
17327 logic. Fixes #80250.
17329 2006-12-14 Mike Kestner <mkestner@novell.com>
17331 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17332 are added or inserted to the collection. Fixes #81099.
17334 2006-12-13 Everaldo Canuto <everaldo@simios.org>
17336 * MenuAPI.cs: Closes menu when right click out side of popup
17337 it fix problem in ContextMenu and MainMenu. Fixes #80252.
17339 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17341 * ListViewItem.cs: Fix dumb error.
17343 * ListView.cs: Add Find and ContainsKey methods in
17344 ListViewItemCollection, and also return true for IsReadOnly
17345 and IsFixedSize (changes for 2.0).
17347 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
17349 * Control.cs: Allow Region to be set to null.
17351 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17353 * MdiWindowManager.cs: Remove unused (commented out) code.
17354 * Form.cs: When the MdiChild is maximized, the form needs
17355 WM_NCMOUSELEAVE, so request it.
17356 * InternalWindowManager.cs:
17357 - Added tooltips to control buttons.
17358 - Removed duplicated control button handling code.
17359 - Removed unused (commented out) code.
17361 2006-12-12 Everaldo Canuto <everaldo@simios.org>
17363 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
17364 was used because we must set cursor without trigger ChangeCursor event
17365 and without change Cursor control property. Fixes #79963.
17367 2006-12-12 Andreia Gaita <avidigal@novell.com>
17369 * Control.cs: Check if Region setter value is null, and ignore
17371 2006-12-12 Jackson Harper <jackson@ximian.com>
17373 * TextControl.cs: We were almost always drawing one more line then
17374 needed, since the GetLineByPixel will return the last line found
17375 at that pixel. In most cases though, we were invalidating up to
17376 the junction between two lines.
17377 - Improve debug code.
17379 2006-12-12 Chris Toshok <toshok@ximian.com>
17381 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17382 and FillReversibleRectangle.
17384 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17385 and FillReversibleRectangle.
17387 * XplatUIWin32.cs: add stubs which do nothing for
17388 DrawReversibleFrame, DrawReversibleLine, and
17389 FillReversibleRectangle.
17391 * XplatUIOSX.cs: add stubs which raise NIE for
17392 DrawReversibleFrame, DrawReversibleLine, and
17393 FillReversibleRectangle.
17395 * XplatUIX11.cs: add working implementation for
17396 DrawReversibleFrame, DrawReversibleLine, and
17397 FillReversibleRectangle.
17399 * ControlPaint.cs: implement DrawReversibleFrame,
17400 DrawReversibleLine, and FillReversibleRectangle, by calling into
17401 the appropriate XplatUI method.
17403 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17405 * Form.cs: Make MdiClient have the focus even if it's
17406 not selectable, since it should receive WM_KEY* and WM_MOUSE
17407 messages. Fixes #79907.
17409 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17411 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17412 queried after the window is created.
17414 * XplatUIX11.cs: Added SendParentNotify to implement
17415 WM_PARENTNOTIFY logic. Fixes #79965.
17417 * Control.cs: Added MakeParam.
17419 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17421 * MdiClient.cs: Resume Layout before setting window
17422 states (fixes #80201).
17424 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17426 * MenuAPI.cs: Deselect a menu item after performing
17427 the click (fixes #80197).
17429 2006-12-11 Jackson Harper <jackson@ximian.com>
17431 * TextBoxBase.cs: We need to cap this value, since Maximum -
17432 ViewPortHeight can be less than zero.
17433 - Only do selection with the left mouse button.
17434 * TextBox.cs: Don't tell the world that we have a context menu.
17435 * Control.cs: New method so that we can control whether or not the
17436 context menu is visible outside MWF.
17438 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17440 * ToolBarButton.cs: Fix text positon.
17442 2006-12-11 Miguel de Icaza <miguel@novell.com>
17444 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17446 * Control.cs (DoubleBuffered): Add implementation.
17448 * Application.cs (OpenForms): Add.
17450 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17452 * Form.cs: Use opacity instead of Opactiy to determine if we need
17453 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
17455 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17457 * Control.cs: Fix NRE if Control.Site was set to null.
17459 2006-12-11 Chris Toshok <toshok@ximian.com>
17461 * Control.cs: ControlCollection.Remove should return if the arg is
17462 null, and ControlCollection.SetChildIndex should raise a ANE.
17464 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
17466 * Control.cs: Verify value set for Dock property. Code formatting
17469 2006-12-11 Jackson Harper <jackson@ximian.com>
17471 * TextControl.cs: Draw the caret and the selection when a flag is
17473 * TextBoxBase.cs: We want to draw the caret and the selection for
17474 TextBox but not for TextBoxBase.
17475 - If the window is resized and scrolling is no longer needed (the
17476 whole doc is visible) set the scroll position to zero.
17477 - The default SelectWord (the one TextBox uses) should move the
17478 caret to the end of the word.
17479 - SelectAll moves the caret to the end of the selection.
17480 * TextBox.cs: We don't selectall on focus, we just do it when the
17481 control is created.
17483 2006-12-11 Mike Kestner <mkestner@novell.com>
17485 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17487 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17489 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
17491 * ListViewItem.cs: Add Name 2.0 property.
17493 2006-12-11 Andreia Gaita <avidigal@novell.com>
17495 * TabControl.cs: Set visibility on selected or default tab
17496 when tabcontrol handle is created, so that it's contents
17497 actually show up (duh). Fixes #80193
17498 Don't redraw the control if there is no handle created, as
17499 the selected index might be completely invalid. Added some tests
17502 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17504 * ToolBar.cs: Uses maximun width and height of all buttons as
17505 button rectangle when ButtonSize specified, it looks strange but
17506 is what happens in Win32. Fixes #80189.
17508 2006-12-11 Jackson Harper <jackson@ximian.com>
17510 * TextControl.cs: Need to track undo levels ourself, since
17511 compound actions will mess them up.
17513 2006-12-10 Andreia Gaita <avidigal@novell.com>
17515 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17516 SelectedIndex value is changed (even if it's not valid).
17517 Reset SelectedIndex to 0 when the handle is created and if
17518 the current index is invalid.
17519 Fixes SelectdeIndex unit tests and #80128
17521 2006-12-08 Chris Toshok <toshok@ximian.com>
17523 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17524 calls EndEdit, it needs to be called before we set current_cell to
17525 its new value. Otherwise, we end up committing the value in the
17526 textbox to the new cell as well. Fixes bug #80160.
17528 2006-12-08 Chris Toshok <toshok@ximian.com>
17530 * Form.cs (set_CancelButton): if the button's DialogResult is
17531 None, set it to Cancel. Fixes bug 80180.
17533 2006-12-08 Jackson Harper <jackson@ximian.com>
17535 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17536 to watch ourselves when setting the canvas size and setting the
17539 2006-12-08 Chris Toshok <toshok@ximian.com>
17541 * DataGrid.cs: comment out the two MakeTransparent calls for the
17542 time being so people using trunk (and not 1.2.2) on windows can
17543 actually use the datagrid. This deals with bug #80151.
17545 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17547 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17548 Graphics.DrawImage (image, int, int, int, int) overload instead
17549 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
17550 the dpi difference and was blurring images it drew.
17553 2006-12-08 Chris Toshok <toshok@ximian.com>
17555 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17556 rowcnt is 0 (such as with an empty datasource), and make sure we
17557 initialize not_usedarea.Y to cells.Y, so we don't draw over the
17558 other areas (caption, parent row, etc, etc). Fixes bug #80095.
17560 2006-12-08 Chris Toshok <toshok@ximian.com>
17562 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17565 2006-12-08 Chris Toshok <toshok@ximian.com>
17567 [ Fixes bug #80167 ]
17569 * ThemeWin32Classic.cs: don't draw the image if the button's flat
17570 style is FlatStyle.System.
17572 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17573 ButtonBase.flat_style private, and switch uses of it to the public
17576 2006-12-08 Chris Toshok <toshok@ximian.com>
17578 [ Fixes bug #80121 ]
17580 * ThemeWin32Classic.cs: center the caption text in the datagrid
17583 * DataGrid.cs: lessen the amount we add to the caption height from
17584 6 to 2. 6 was making it huge.
17586 2006-12-08 Andreia Gaita <avidigal@novell.com>
17588 * UpDownBase: Handle MouseWheel call directly instead of capturing
17589 the inner textbox's OnMouseWheel. Fixes #80166
17591 2006-12-08 Jackson Harper <jackson@ximian.com>
17593 * TextControl.cs: We need to invalidate the textbox when we empty
17594 it (how had this not been discovered before?)
17596 2006-12-08 Jackson Harper <jackson@ximian.com>
17598 * TextBoxBase.cs: Reworked the mouse down code so I could get it
17599 to behave like MS, we now ignore the eventargs.Click and just
17600 track state ourself, which we were already doing anyways.
17601 - Constrain the double click handler to the double click size.
17603 2006-12-08 Chris Toshok <toshok@ximian.com>
17605 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17606 direction if that scrollbar isn't shown. fixes bug #80158.
17608 2006-12-08 Andreia Gaita <avidigal@novell.com>
17610 * NumericUpDown.cs: Update value on getter. Fixes #79950
17612 2006-12-08 Chris Toshok <toshok@ximian.com>
17614 * MenuItem.cs: add back in the event cloning code. I didn't know
17615 how to do it in the face of the EventHandlerList work i'd done
17616 last week. Fixes bug #80183.
17618 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17620 * Control.cs: Add an invalidate to the BackgroundImage setter.
17623 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17625 * ToolStrip*: Add some small properties reported by MoMA, fix event
17626 firing and default properties based off of unit tests, and add some
17627 attributes based off of the class status page.
17629 2006-12-07 Jackson Harper <jackson@ximian.com>
17631 * TextBoxBase.cs: Take HideSelection into account when determining
17632 whether or not to show the selection.
17633 * RichTextBox.cs: After inserting the RTF into the document move
17634 the cursor to the beginning of the document.
17636 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17638 * Control.cs: Remove static ArrayList "controls" which maintained
17639 a reference to every control created.
17640 * Application.cs: Create a static FormCollection to maintain a reference
17641 to every form created. Use it in places that formerly enumerated through
17642 the controls one looking for forms.
17643 * Form.cs: Add and remove self from above FormCollection.
17645 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
17647 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17648 not libgdk (though it makes me wonder why I didn't have any
17651 2006-12-07 Chris Toshok <toshok@ximian.com>
17653 [ you had to know this was coming after that last commit...]
17655 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17656 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17657 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17660 2006-12-07 Chris Toshok <toshok@ximian.com>
17662 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17663 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17664 all the behavior we need for double buffering.
17666 * XplatUIDriver.cs: implement the 3 double buffer methods using a
17667 client side Bitmap, just like the old Control-based double buffer
17668 code did. The methods are virtual, so each XplatUI driver
17669 subclass can replace the implementation to use a faster, platform
17672 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
17673 double buffer code, and clean things up a bit in the process.
17675 2006-12-06 Chris Toshok <toshok@ximian.com>
17677 * Control.cs: reindent WndProc.
17679 2006-12-06 Chris Toshok <toshok@ximian.com>
17681 [ I wanna be like BenM when I grow up ]
17683 * Hwnd.cs: create a single static Graphics object on the static
17684 Bitmap we create. use this for our text measurements.
17686 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
17687 This was causing us to allocate a backbuffer for every control,
17688 even when it wasn't flagged as double buffered. Instead use the
17689 single graphics instance. This might have implications for
17690 multithreaded applications. If we run into problems we can switch
17691 to creating 1 Graphics per control, on the static Hwnd bitmap.
17693 this change nets us a 7M savings in private dirty mappings when
17694 running FormsTest.exe.
17696 2006-12-06 Chris Toshok <toshok@ximian.com>
17698 * ListView.cs: the BackgroundImage override is just to set
17699 attributes. chain up to base.BackgroundImage.
17701 * RichTextBox.cs: same.
17703 * ToolBar.cs: same, but we need to also redraw the toolbar when it
17704 changes, so instead a handler for BackgroundImageChanged.
17706 * Control.cs: make background_image private.
17708 2006-12-06 Chris Toshok <toshok@ximian.com>
17710 * ScrollBar.cs: change the assignment of cursor to Cursor. not
17711 sure we even need this assignment, but roll with it for now.
17713 * Control.cs: make the cursor field private.
17715 2006-12-06 Chris Toshok <toshok@ximian.com>
17717 * Form.cs: we don't need to explicitly set ImeMode to
17718 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
17719 behavior in the face of ImeMode.Inherit.
17721 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
17722 change the ctor's assignment to use ImeMode instead of ime_mode.
17724 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
17725 ImeModeInherit. Only check for the parent's imemode (and return
17726 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
17727 This fixes the button unit test, which sets both ImeMode and
17728 DefaultImeMode to ImeMode.Disable.
17730 also make the ime_mode field private.
17732 2006-12-06 Chris Toshok <toshok@ximian.com>
17734 * Control.cs: make control_style private.
17736 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
17737 setting the styles to true, then setting them to false instead of
17738 reverting to their previous values.
17740 also, call SetStyle on the scrollbars instead of using
17741 control_style directly.
17743 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
17745 * FormCollection.cs: Implement. [2.0]
17747 2006-12-06 Chris Toshok <toshok@ximian.com>
17749 * Control.cs: make tab_stop private.
17751 * Label.cs: set TabStop, not tab_stop. reformat some event
17752 add/remove methods to make them more compact.
17754 2006-12-06 Chris Toshok <toshok@ximian.com>
17756 * RadioButton.cs: fix TabStop handling.
17758 2006-12-06 Chris Toshok <toshok@ximian.com>
17760 * TextBox.cs: remove the explicit assignments to has_focus.
17763 * ButtonBase.cs: remove the assignment to has_focus. Control will
17766 2006-12-06 Chris Toshok <toshok@ximian.com>
17768 * ButtonBase.cs: remove all uses of is_enabled from this code.
17769 it's always true when any of the code containing the checks is
17772 2006-12-06 Chris Toshok <toshok@ximian.com>
17774 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
17775 with different semantics (some are present in both 1.1 and 2.0
17776 profiles) so that we match MS's behavior in our unit tests.
17778 2006-12-06 Jackson Harper <jackson@ximian.com>
17780 * TextControl.cs: Make this operation undoable.
17781 * TextBoxBase.cs: Factor the border width into the preferred
17783 - implement Modified as per the spec.
17785 2006-12-06 Chris Toshok <toshok@ximian.com>
17787 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
17789 2006-12-06 Chris Toshok <toshok@ximian.com>
17791 * Control.cs: make right_to_left and context_menu fields private.
17793 2006-12-06 Chris Toshok <toshok@ximian.com>
17795 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
17796 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
17797 Control.child_controls private. switch all uses over to
17800 2006-12-06 Chris Toshok <toshok@ximian.com>
17802 * System.Windows.Forms/GroupBox.cs,
17803 System.Windows.Forms/AccessibleObject.cs,
17804 System.Windows.Forms/ErrorProvider.cs,
17805 System.Windows.Forms/Control.cs,
17806 System.Windows.Forms/UpDownBase.cs,
17807 System.Windows.Forms/ScrollBar.cs,
17808 System.Windows.Forms/DateTimePicker.cs,
17809 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
17810 System.Windows.Forms/ToolTip.cs,
17811 System.Windows.Forms/RadioButton.cs,
17812 System.Windows.Forms/LinkLabel.cs,
17813 System.Windows.Forms/Splitter.cs,
17814 System.Windows.Forms/TextBoxBase.cs,
17815 System.Windows.Forms/ToolStripTextBox.cs,
17816 System.Windows.Forms/ContainerControl.cs,
17817 System.Windows.Forms/ThemeWin32Classic.cs,
17818 System.Windows.Forms/SizeGrip.cs,
17819 System.Windows.Forms/ToolStripDropDown.cs,
17820 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
17821 private. switch all uses over to Control.Parent.
17823 2006-12-06 Chris Toshok <toshok@ximian.com>
17825 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
17826 Control does this before calling emitting these events.
17828 * TabControl.cs: same.
17830 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
17831 Control.client_rect.
17833 * ButtonBase.cs: use the ClientSize property instead of the
17836 * ScrollableControl.cs: same.
17838 * Control.cs: another pass at making properties private. also,
17839 move the initialization of tab_stop to the ctor.
17841 2006-12-05 Andreia Gaita <avidigal@novell.com>
17843 * TabControl.cs: Let the selected index be set freely if the
17844 control handle is not yet created.
17846 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
17848 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
17849 internal until I can rewrite DefaultLayout.
17850 * ToolStrip.cs: Fix build error and some general cleaning.
17851 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
17852 Fix build errors caused by making some of Control's fields private.
17854 2006-12-05 Jackson Harper <jackson@ximian.com>
17856 * TextControl.cs: Redo Insert a little so that it use IndexOf
17857 instead of Split, this prevents it from messing up on things like
17858 \n\n\n. Also more effecient since the split array doesn't need to
17860 * TextBoxBase.cs: AppendText doesnt handle multiline and non
17861 multiline text differently, this is the first of many fixes that
17862 will make multiline/non-multiline the same thing as far as the
17863 TextBoxBase is concerned.
17864 - Don't split the text and insert lines, this can lose some line
17865 endings (like is the last line a soft or hard break). Instead use
17867 - Fix an off by one when combining all the lines in the Text
17869 - Remove separate multiline handling from the Text getter/setter.
17871 2006-12-05 Chris Toshok <toshok@ximian.com>
17873 * ButtonBase.cs: a few changes:
17875 - don't reinitialize internal Control fields in the ctor when they
17876 have the same values as Control sets them.
17878 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
17879 this before calling those methods.
17881 - we don't need to call Refresh for anything. use Invalidate
17884 - OnEnabledChanged doesn't need to redraw at all - Control.cs
17885 calls Refresh in its OnEnabledChanged.
17887 - several of the events we were registered for in the ctor to
17888 redraw ourselves already include calls to Invalidate in the
17889 property setters that raise the events. remove the extra
17892 - reformat a switch statement that was 83274658 columns wide.
17894 2006-12-05 Mike Kestner <mkestner@novell.com>
17896 * ComboBox.cs: fix a unit test regression from a TextBox
17897 SelectionLength return of -1 when there's no selection.
17899 2006-12-05 Chris Toshok <toshok@ximian.com>
17901 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
17902 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
17903 cleaning up some of the internal Control fields being used by
17906 2006-12-05 Mike Kestner <mkestner@novell.com>
17908 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
17909 listbox after AddImplicit calls since it defaults to hidden. Add a
17910 hack to preserve requested heights across DropDownStyle changes.
17912 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
17914 * PropertyGrid.cs: Hide FindFirstItem method from public API.
17916 2006-12-05 Chris Toshok <toshok@ximian.com>
17918 * DataGridView.cs: fix compiler warnings.
17920 * PrintControllerWithStatusDialog.cs: same.
17922 * ToolBar.cs: same.
17924 * FolderBrowserDialog.cs: same.
17926 * Splitter.cs: same.
17928 * DataGridViewComboBoxCell.cs: same.
17930 * XplatUIWin32.cs: same.
17932 * PictureBox.cs: same.
17934 * Win32DnD.cs: same.
17936 * PageSetupDialog.cs: same.
17938 * FileDialog.cs: same.
17940 * PrintDialog.cs: same.
17942 * DataGridTextBoxColumn.cs: same.
17944 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
17946 2006-12-05 Chris Toshok <toshok@ximian.com>
17948 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
17949 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
17950 System.ComponentModel.EventHandlerList work.
17952 2006-12-05 Jonathan Chambers <joncham@gmail.com>
17954 * DrawTreeNodeEventArgs.cs: Added.
17956 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17958 * InternalWindowManager.cs: Remove an unused field.
17960 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17962 * InternalWindowManager.cs:
17963 - Save the point where the title bar is clicked.
17965 * MdiWindowManager.cs:
17966 - Only allow moving of the window as long as the
17967 clicked point on the title bar does not get out of
17968 MdiClient's rectangle. Fixes #79982.
17971 - Added Horizontal/VerticalScrollbarVisible.
17972 - Simplified the scrollbar sizing algorithm.
17973 - Cache the difference in scrolled value in
17974 H/VBarValueChanged and move the calculation out
17977 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17979 * Control.cs: Make the Console.WriteLine in WndProc
17982 2006-12-05 Chris Toshok <toshok@ximian.com>
17984 * ToolStripManager.cs, ToolStripButton.cs,
17985 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
17986 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
17987 ToolStripSplitButton.cs, ToolStripSeparator.cs,
17988 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
17989 ToolStripProgressBar.cs, ToolStripContainer.cs,
17990 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
17991 to using System.ComponentModel.EventHandlerList.
17993 2006-12-04 Chris Toshok <toshok@ximian.com>
17995 * LinkLabel.cs: fix up compiler warnings.
17997 * TableLayoutSettings.cs: same.
17999 * TreeView.cs: same.
18001 * ToolBar.cs: same.
18003 * TabControl.cs: same.
18005 * RichTextBox.cs: same.
18007 * ListViewItem.cs: same.
18009 * PropertyGrid.cs: same.
18011 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18015 * TextRenderer.cs: fix up compiler warnings.
18019 * Form.cs: corcompare fixes.
18021 * PictureBox.cs: fix up compiler warnings.
18023 * ImageListStreamer.cs: same.
18025 * TrackBar.cs: corcompare fix.
18027 * Control.cs: fix up compiler warnings.
18029 * SplitterPanel.cs: same.
18031 * NumericTextBox.cs: same.
18033 * ImageList.cs: same.
18035 * StatusStrip.cs: same.
18037 * ProgressBar.cs: corcompare fix.
18039 * ToolStripButton.cs: fix up compiler warnings.
18041 * ToolStripStatusLabel.cs: same.
18043 * ToolStripSplitButton.cs: same.
18045 * ToolStripSeparator.cs: same.
18047 * ToolStripProgressBar.cs: same.
18049 * ToolStripDropDownMenu.cs: same
18051 * ToolStripDropDown.cs: same.
18053 * ToolStripDropDownButton.cs: same.
18055 * ToolStrip.cs: same.
18057 * ToolStripControlHost.cs: same.
18059 * ToolStripContentPanel.cs: same.
18061 * ToolStripDropDown.cs: same.
18063 * ToolStripContainer.cs: same.
18065 * ToolStripPanel.cs: same, and add "new" where we need it to work
18066 with the new ArrangedElementCollection.
18068 * ToolStripItemCollection.cs: add "new" where we need it to work
18069 with the new ArrangedElementCollection.
18071 2006-12-04 Andreia Gaita <avidigal@novell.com>
18073 * TabControl.cs: Fix default tab selection to after TabControl
18074 gets focus and not before. Fixes #80128
18076 2006-12-04 Chris Toshok <toshok@ximian.com>
18078 * DataGridTableStyle.cs: remove the gross calling of
18079 datagrid.Refresh from here. It's a broken idea and it doesn't
18082 * DataGrid.cs: instead, just register/unregister from the
18083 DataGridTableStyle events in CurrentTableStyle. we play it
18084 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18085 even though some would most likely not require it. Fixes bug
18086 #80115 (and one portion of #80117 as a side effect).
18088 2006-12-04 Chris Toshok <toshok@ximian.com>
18090 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18091 so the textbox (if any) goes away. Fixes bug #80117.
18093 2006-12-04 Chris Toshok <toshok@ximian.com>
18095 * DataGridColumnStyle.cs: set the column's readonly property
18096 initially based on the property descriptor's IsReadOnly. Fixes
18099 2006-12-04 Chris Toshok <toshok@ximian.com>
18101 * ComboBox.cs: wrap the dropdown style changing work in
18102 SuspendLayout/ResumeLayout. Fixes bug #79968.
18104 2006-12-04 Jackson Harper <jackson@ximian.com>
18106 * TextBoxBase.cs: Fix off by one, since these are one-based.
18107 * TextBox.cs: Select all the text when we get focus. The TextBox
18108 does this but the RTB does not.
18110 2006-12-04 Chris Toshok <toshok@ximian.com>
18112 * DataGridTextBoxColumn.cs: remove some spew.
18114 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18115 but some part of me is saying "it shouldn't be here.." At any
18116 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
18119 2006-12-04 Chris Toshok <toshok@ximian.com>
18121 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18122 to reassign the propertydescriptor.
18124 2006-12-04 Jackson Harper <jackson@ximian.com>
18127 * TextControl.cs: Remove some unused variables. Maybe this will
18128 patch things up between mike and I.
18129 - don't split lines less then one char wide, if the viewport is
18130 that small text won't be visible anyways.
18132 2006-12-04 Jackson Harper <jackson@ximian.com>
18134 * TextBoxBase.cs: Default selection length is -1, need to do some
18135 more testing on windows to see when this is used for the property.
18136 - Redid the Lines [] property to that we properly remove soft line
18138 - added support for preserving carriage returns
18139 - CanUndo is not a variable like 'is undo enabled' it just returns
18140 true if there is undo operations available.
18141 - AppendText doesn't need to grab the last tag itself anymore,
18142 this happens automatically when we move the cursor.
18143 * TextControl.cs: Add CompoundActions to the undo class. This
18144 allows combining the other operations into one big option. ie a
18145 paste will combine { delete old, insert new, move cursor }
18146 - Add InsertString undo operation
18147 - New method for deleting multiline text
18148 - Add carriage returns to lines. So we can preserve carriage
18149 returns when text is 'roundtripped'
18151 2006-12-04 Chris Toshok <toshok@ximian.com>
18153 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18154 minimum 0. Fixes the scrollbar exception in bug #80136.
18156 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18159 * MdiWindowManager: Removed unused fields and methods.
18161 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18163 * StatusBar.cs: Update all panels when a AutoSize=Contents
18164 panel needs updating.
18166 * StatusBarPanel.cs: Remove twidth and only use initialize.
18169 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18171 * Form.cs: When a form's MdiParent is set add it directly
18172 on top of the z-order in stead of relying on MdiClient's
18173 ActivateChild to do it. Fixes #80135.
18176 - Remove original_order, mdi_child_list is already doing
18178 - Create mdi_child_list on construction in
18179 stead of first use (avoids a few null checks).
18181 * MenuItem.cs: Use an already existing list of mdi children
18182 to get the correct order of children and remove the other
18185 2006-12-04 Chris Toshok <toshok@ximian.com>
18187 * PropertyGridView.cs: cached_splitter_location is only used in
18188 !DOUBLEBUFFER code.
18190 * PropertyGrid.cs: implement the ComComponentNameChanged event
18191 using Events, hoping that would fix the warning. Looks like a
18192 compiler bug instead (#80144).
18194 * PropertyManager.cs: remove unused method.
18196 2006-11-04 Everaldo Canuto <everaldo@simios.org>
18198 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
18199 include parentesis to fix expression evaluation. Fixes #79634.
18201 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18204 - Changes to fix behavior in Menu control, some reported in #80097
18205 and other detected during behavior refactory like a select event
18207 - Remove unneded "if's" conditions.
18208 - Created an internal to flag when popup is active in control, we need
18209 it because in .NET you can have menu active but without popup active
18210 when you active menu using popup without visible items.
18211 - Mimic win32 behavior for Select and Popup events.
18212 - Dont open popup menu when you dont have visible subitems.
18213 - Do nothing when click on disabled menu item.
18214 - Some small changes to follow the coding style guidelines.
18215 - Unselect menu only when another control gives focus. Fixes #80097.
18216 - Remove unused code.
18218 * MenuItem.cs: internal VisibleItems method to check if menu
18219 theres visible subitems, it will be usefull to fix some
18220 behavior in Menu control.
18222 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18224 * Timer.cs: Tag property for 2.0 profile.
18226 2006-12-01 Chris Toshok <toshok@ximian.com>
18228 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18230 * Win32DnD.cs: comment out some unused fields.
18232 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18233 some unused properties/methods.
18235 * XplatUIX11.cs: fix MousePosition so we override the base class's
18236 property instead of conflicting with it.
18238 * PictureBox.cs: comment out some unused fields
18240 * OSXStructs.cs: make some struct fields public.
18242 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18243 MousePosition so we override the base class's property instead of
18244 conflicting with it.
18246 * X11Dnd.cs: comment out some unused fields
18248 * X11DesktopColors.cs: fix some struct field visibility to quiet
18251 * X11Dnd.cs: remove some debug code.
18253 * ThemeClearlooks.cs: comment out unused field.
18255 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18257 * ThemeGtk.cs: comment out some unused pinvokes.
18259 * Timer.cs: remove some unused fields.
18261 * ThemeClearlooks.cs: comment out unused field.
18263 * UpDownBase.cs: comment out unused field.
18265 * DataObject.cs: comment out unused field.
18267 * DataGridBoolColumn.cs: reomve unused field.
18269 * DataGrid.cs: remove unused field.
18271 * Cursor.cs: remove old ToBitmap code.
18273 * ControlPaint.cs: remove unused method.
18275 * ScrollBar.cs: remove unused fields.
18277 * ComboBox.cs: remove unused field, and chain up to
18278 AccessibleObject ctor.
18280 * ListBox.cs: remove unused field.
18282 * ButtonBase.cs: wrap a couple fields in NET_2_0.
18284 * GridEntry.cs: remove unused fields.
18286 * Binding.cs: remove unused fields.
18288 * AxHost.cs: remove unused method.
18290 * ContainerControl.cs: remove unused field.
18292 * ScrollableControl.cs: remove unused fields.
18294 2006-12-01 Chris Toshok <toshok@ximian.com>
18296 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18297 the Where/WhereString stuff. it's easy enough to CWL
18298 Environment.StackTrace.
18300 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18301 unused private fields.
18303 2006-12-01 Jackson Harper <jackson@ximian.com>
18305 * TextControl.cs: Do not update the view while inserting multiline
18306 text. If we update the view we might wrap lines, before entering
18307 the new lines, which causes the new line insertion calculations to
18308 be totally fubared.
18309 - Remove an old TODO
18310 - Make debug output a little nicer
18312 2006-12-01 Chris Toshok <toshok@ximian.com>
18314 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18316 2006-12-01 Chris Toshok <toshok@ximian.com>
18318 [ fix the majority of the CS0108 warnings we've been suppressing ]
18320 * TreeView.cs: mark BackgroundImageChanged as 'new'.
18322 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
18323 to "LayoutToolBar" to quiet mcs.
18325 * TabControl.cs: mark our ControlCollection class as 'new'.
18327 * TextBoxBase.cs: mark some events as 'new'.
18329 * Splitter.cs: TabStop is 'new'.
18331 * ControlBindingsCollection.cs: mark a few methods as new since
18332 they change the visibility from protected to public.
18334 * RadioButton.cs: DoubleClick -> base class, and remove unused
18337 * MonthCalendar.cs: ImeMode property -> base class, and mark many
18340 * NumericUpDown.cs: TextChanged -> base class.
18342 * CheckedListBox.cs: mark our ObjectCollection class as new to
18345 * FolderBrowserDialog.cs: make HelpRequest event new and have it
18346 muck with the base class.
18348 * StatusBar.cs: fix some mcs warnings about Update being the same
18349 name as a base class method.
18351 * RichTextBox.cs: mark some events as new, and make them do things
18352 to the base class impl.
18354 * UserControl.cs: mark TextChanged as new, and have it manipulate
18357 * UpDownBase.cs: mark some things new.
18359 * CheckBox.cs: mark DoubleClick "new", and add some text about
18360 what we need to look at.
18362 * Panel.cs: make the events "new", and manipulate the base
18363 version. these are just here for attributes.
18365 * AccessibleObject.cs: make owner private.
18367 * Control.cs: deal with AccessibleObject.owner being private.
18368 cache our own copy if we need it.
18370 * Button.cs: add "new" to the DoubleClickEvent.
18372 * ListBox.cs: no need to track our own has_focus here. let
18373 Control.has_focus do it for us. Also some other work to clear up
18374 warnings about not overriding base class methods of the same name.
18376 * ComboBox.cs: clear up some warnings about not override base
18377 class methods of the same name.
18379 2006-12-01 Chris Toshok <toshok@ximian.com>
18381 * Form.cs: flag a few things as "new" to quiet some of the mcs
18386 * PrintPreviewDialog.cs: same.
18388 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
18389 now DGV isn't so horrible on the class status page. also, move
18390 all events to using System.ComponentModel.EventHandlerList. my
18393 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
18395 * MdiWindowManager.cs:
18396 - Set form to active mdi child if shown,
18397 and update the active mdi child to the next
18398 remaining child in the z-order if the form is hidden.
18401 - Track if the form has been visible and if its
18402 visibility is beeing changed, so that the MdiClient
18403 can properly decide the ActiveMdiChild. The MdiClient
18404 cannot track this since the form can change visibility
18405 before MdiClient is created.
18408 - Don't activate anything of the parent form is changing
18410 - Rework ActiveMdiChild to only return visible mdi
18411 children and take into account several other corner
18414 2006-12-01 Chris Toshok <toshok@ximian.com>
18416 * IBindableComponent.cs: new 2.0 interface.
18418 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
18420 * DataGrid.cs: Font for caption area is bold by default.
18422 2006-12-01 Everaldo Canuto <everaldo@simios.org>
18424 * Menu.cs: Tag property for 2.0.
18426 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18428 * ThemeWin32Classic.cs: Adjust menu separator drawing.
18430 2006-12-01 Chris Toshok <toshok@ximian.com>
18432 * TreeView.cs: doh, the Begin* events should be
18433 TreeViewCancelEventHandler.
18435 2006-12-01 Chris Toshok <toshok@ximian.com>
18437 * Form.cs: Form.ControlCollection already stores off the
18438 form_owner field. don't access the base class's internal "owner"
18441 * Control.cs: make all the fields in Control.ControlCollection
18442 private. there's no need for any internal fields here.
18444 2006-12-01 Chris Toshok <toshok@ximian.com>
18446 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18447 OnHandleCreated. Fixes bug #80109.
18449 2006-12-01 Chris Toshok <toshok@ximian.com>
18451 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18452 SplitContainer.cs, Control.cs, StatusStrip.cs,
18453 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18454 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18455 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18456 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18457 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18458 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18459 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18460 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18461 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18462 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18464 do most of the work to convert our code over to use
18465 System.ComponentModel.Component.Events for
18466 adding/removing/dispatching events.
18469 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18471 * DataGridView.cs: Fix an ArgumentNullException reported
18472 twice today in IRC.
18474 2006-11-30 Mike Kestner <mkestner@novell.com>
18476 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
18477 grabbed listbox. Fixes #80036 and #80101.
18479 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18481 * Message.cs: Changed ToString() to match MS.
18483 2006-11-30 Jackson Harper <jackson@ximian.com>
18485 * TextBoxBase.cs: You can still change the selected text on a read
18487 * TextControl.cs: Lower magic number for wrap calculations. This
18488 lets text get closer to the right (far) edge.
18490 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18492 * Control.cs: Tweak 2.0 layout properties.
18493 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18494 * TextRenderer.cs: Add a new overload.
18495 * ToolStrip*: Huge amount of changes and new features.
18497 2006-11-30 Mike Kestner <mkestner@novell.com>
18499 * ComboBox.cs: fixes for LargeChange and Maximum to get the
18500 scroll range correct. Fixes #79994.
18502 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18504 * MdiWindowManager.cs: Update main form's text when
18505 a form is closed. (fixes #80038)
18507 2006-11-30 Everaldo Canuto <everaldo@simios.org>
18510 - Fix an regression in ButtonSize.
18511 - Get ImeMode default value change to "Disable".
18512 - Get ShowTooltips default value change to true, default value is
18513 "false" but after make a test in .NET we get "true" result as default.
18515 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
18517 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18519 2006-11-29 Chris Toshok <toshok@ximian.com>
18521 * XplatUIWin32.cs (GetWindowTransparency): check return value of
18522 GetLayeredWindowAttributes. if it's 0, return 1.0, as
18523 SetWindowTransparency hasn't been called.
18525 2006-11-29 Chris Toshok <toshok@ximian.com>
18527 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18529 (set_AllowTransparency): reorder things a little so that the
18530 WS_EX_LAYERED style is removed properly.
18532 2006-11-29 Chris Toshok <toshok@ximian.com>
18534 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18536 * Form.cs: only call the XplatUI transparency method (get/set) if
18537 SupportsTransparency says it's supported. Otherwise fallback to
18538 doing nothing (in the set case) or returning the instance field we
18539 cache (in the get case).
18541 * XplatUIStructs.cs: add TransparencySupport flag enum.
18543 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18544 change to SupportsTransparency.
18546 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18547 TransparencySupport.None from SupportsTransparency.
18549 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18550 TransparencySupport.Set from SupportsTransparency.
18552 * XplatUIWin32.cs: implement GetWindowTransparency calling
18553 GetLayeredWindowAttributes, and implement SupportsTransparency by
18554 checking whether or not both
18555 GetWindowTransparency/SetWindowTransparency are available
18556 entrypoints. We need to do this since SetWindowTransparency is
18557 available as of win2k, but GetWindowTransparency requires winxp.
18560 * XplatUI.cs: Add GetWindowTransparency, and change
18561 SupportsTransparency to allow for either/both Get/Set.
18563 2006-11-29 Chris Toshok <toshok@ximian.com>
18565 * DataGrid.cs: keep from going into an infinite loop redrawing a
18566 datagrid that has no datasource. Fixes bug #80033.
18568 2006-11-29 Chris Toshok <toshok@ximian.com>
18570 * MenuItem.cs: fix the NRE when we assign text (and therefore call
18571 Invalidate) before the mainmenu has been assigned to a control.
18573 2006-11-29 Chris Toshok <toshok@ximian.com>
18575 * DataGrid.cs: detect when we should be double the double click
18576 row/column autosize stuff, although that codepath has yet to be
18577 written. part of the work for bug #79891.
18579 2006-11-29 Chris Toshok <toshok@ximian.com>
18581 * Binding.cs (SetControl): fix unit test.
18583 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18585 * PageSetupDialog.cs: Validate the margins and set them in
18587 * NumericTextBox.cs: New class to mimic the behavior of the
18588 textboxes used in the printing dialogs.
18590 2006-11-29 Andreia Gaita <avidigal@novell.com>
18592 * Form.cs: Revert previous change (remove call UpdateBounds
18593 from form constructor), because it messes with the handle creation
18594 order, and that one needs lots and lots of love.
18595 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18596 for valid printer and throw InvalidPrinterException if document
18597 is set but printer not valid), adding a MonoTODO. Once
18598 handle creation is done properly, we can put this back in.
18600 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18602 * MenuItem.cs: Create a invalidate method for menu item, to be
18603 calling from set text, it make text changes to imadiate update
18604 on screen. Fixes #80013.
18606 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18608 * ToolBar.cs: Fixes and simplify toolbar button layout, it
18609 fixes bug #80070 and some other problem on toolbar buttons
18612 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18614 * ThemeWin32Classic.cs: Paint toolbar toggle button background
18615 with dotted brush. Fixes #79564
18617 2006-11-28 Andreia Gaita <avidigal@novell.com>
18619 * Form.cs: Removed call to UpdateBounds on Form
18620 constructor, it was causing a call to CreateHandle
18621 before it was supposed to.
18622 * PrintControllerWithStatusDialog: Applied patch
18623 by Chris Toshok to hide controller when there are
18624 no printers available.
18625 PrintDialog.cs: initialize printer settings to
18626 null - correct DefaultValues test #5
18627 * PrintPreviewControl.cs: Move PrintController
18628 initialization to GeneratePreview
18629 * PrintPreviewDialog.cs:
18630 - Remove Preview generation from Document_set(). It is
18632 - Throw InvalidPrinterException on CreateHandle if
18633 a Document is set but there are no printers or
18634 printer is not valid.
18635 * ThemeWin32Classic: don't paint PrintPreviewControl
18636 if there is nothing to paint
18638 2006-11-28 Miguel de Icaza <miguel@novell.com>
18640 * Form.cs: Add another popular method.
18642 * TabPage.cs: ditto.
18644 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18646 * MenuItem.cs: Fixed a warning.
18647 * InternalWindowManager: Fixed a warning.
18649 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18652 - When cloning a menu also clone MdiList and clone the
18653 window menu items properly (as the forms and menuitems
18654 are kept in an internal hashtable, these need updating
18656 - Rewrote the window menu code, menu items are added in the
18657 order the forms were added to their parent, and they are
18658 updated every time the window menu is shown (before the
18659 list was only generated once, in the current order of the
18660 forms, and would never be updated). A checkmark is shown
18661 next to the item corresponding to the active mdi child.
18663 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18665 * XplatUIStructs.cs:
18666 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18669 - Added TME_NONCLIENT to TMEFlags.
18670 - Handles WM_NCMOUSEMOVE in GetMessage to
18671 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
18673 * MdiWindowManager:
18674 - Now merges mdi child menu to parent menu when maximized.
18675 - Recalculate NC areas of both mdi child and mdi parent.
18677 on window state and size changes.Fixes #79844 (3).
18678 - Handle WM_NCCALCSIZE to properly calculate borders.
18681 - Add/remove to the mdi containers list of mdi children
18682 in the order they are added.
18683 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
18684 to the maximized mdi child.
18686 * InternalWindowManager.cs:
18687 - Only execute a click on the control buttons on the mouse up,
18688 not on the mouse down. Show the state of the button
18689 (was only showing Normal state, never Pressed state). The
18690 pressed button now follows the mouse (if you click the Close
18691 button and move the mouse over the Maximize button, the
18692 Maximize button will be shown as pressed). Since Win32 does
18693 not generate WM_NCLBUTTONUP if you release the button outside
18694 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
18697 * ThemeWin32Classic.cs:
18698 - Draw a missing border around mdi child forms. Fixes #79844 (2).
18701 - Added a list of forms which contains the order the forms are
18702 added to the mdi parent.
18703 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
18704 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
18705 - If the active form changes set the scrollbars to the top
18706 of the Z order, otherwise the form could hide them.
18707 - Scrollbars are now sized according to ClientSize, not
18708 to Size, and they take into account the other scrollbar
18709 to determine maximum.
18711 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18714 * XplatUIDriver.cs:
18718 - Added RequestAdditionalWM_NCMessages for windows to
18719 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
18720 Currently only implemented in XplatUIWin32.
18722 2006-11-27 Chris Toshok <toshok@ximian.com>
18724 * Hwnd.cs: only add the hwnd to the windows hash in
18725 set_WholeWindow and set_ClientWindow if whole_window/client_window
18726 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
18728 2006-11-27 Mike Kestner <mkestner@novell.com>
18730 * ComboBox.cs: remove redundant OnDropDown call. It is called
18731 from the ComboListBox.ShowWindow code. Fixes #79969.
18733 2006-11-27 Chris Toshok <toshok@ximian.com>
18735 * Hwnd.cs: remove the setters for ExposePending and
18736 NCExposePending - noone uses them.
18738 2006-11-27 Jackson Harper <jackson@ximian.com>
18740 * TextControl.cs: new param for ReplaceSelection which determines
18741 whether we select the new selection, or set the cursor to the end
18742 of the new selection.
18743 * TextBoxBase.cs: Use new param for ReplaceSelection. When
18744 pasting, select the new text.
18745 * RichTextBox.cs: Use new param for ReplaceSelection.
18747 2006-11-27 Jackson Harper <jackson@ximian.com>
18749 * TextBoxBase.cs: Set the selection to the caret after the caret
18750 is moved, otherwise they get out of sync.
18752 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18754 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
18757 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18759 * ThemeWin32Classic.cs:
18760 - Fix toolbar drop down arrow position.
18761 - Fix drop down appearance when ToolBar.Appearance is normal,
18764 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
18766 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
18767 * Control.cs: Same.
18768 * UpDownBase.cs: Same.
18769 * ButtonBase.cs: Same.
18770 * ScrollBar.cs: Same.
18771 * TrackBar.cs: Same.
18772 * PictureBox.cs: Same.
18773 * UserControl.cs: Same.
18775 * ListControl.cs: Same.
18776 * TextBoxBase.cs: Same.
18777 * ListView.cs: Same.
18778 * RichTextBox.cs: Same.
18779 * TreeView.cs: Same.
18781 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
18784 - Text label for where
18785 - Text label comment was not shown
18787 2006-11-23 Everaldo Canuto <everaldo@simios.org>
18789 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
18791 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18793 * InternalWindowManager.cs:
18794 - Handle WM_PARENTNOTIFY to activate the form
18795 if any child control is clicked.
18796 - The form is only sizable if not minimized.
18798 * MdiWindowManager.cs:
18799 - Save the IconicBounds if the form is moved.
18800 - Rework SetWindowState, now the window bounds
18801 are stored only if the old window state is Normal.
18804 - In SetWindowStates store the old window state if
18805 the window is maximized and restore window state if
18806 the window looses focus.
18807 - Don't handle any scrollbar value changes if
18808 initializing the scroll bars. Fixes #79771.
18809 - Reworked ArrangeIconicWindows. Current algorithm
18810 tests bounds agains all other minimized windows, if
18811 any intersections create new bounds (going left to
18812 right, bottom to top) and then test again. When
18813 successful the bounds are saved and never computed
18814 again. Fixes #79774.
18816 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18818 * InternalWindowManager.cs: Added HandleTitleBarUp.
18820 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18822 * NumericUpDown.cs: In .NET 1.1, user entered text is still
18823 hexadecimal in ParseUserEdit.
18826 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18828 * MdiWindowManager.cs:
18829 - Handle a click on the form's icon to show the
18830 system menu (when maximized). Fixes #79775.
18831 - Change the existing click handler for the form's
18832 icon when not maximized to show on MouseUp.
18835 * Form.cs: In OnResize only layout the mdi child's
18836 parent if it actually has a parent. Might not if
18837 the window is closing.
18840 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18842 * MdiClient.cs: Ignore active MDI client for text of parent, if
18843 child has no text set.
18845 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18847 * ToolBar.cs: Fixed ToString to match MS.
18849 2006-11-22 Andreia Gaita <avidigal@novell.com>
18852 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
18853 update inner values on set. Fixes #79966.
18854 - Override OnLostFocus to update value on NET 2. Fixes #79950.
18855 - Fix hexadecimal parsing.
18857 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
18858 parent. Fixes #79957
18860 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18862 * Control.cs: After calling SetWindowsPos in SetBoundsCore
18863 the actual size has to be queried, since if height /
18864 width is negative Win32 changes it to 0.
18865 Fixes #79999 on Windows.
18867 * XplatUIX11.cs: Set height / width to 0 if negative
18868 in SetWindowPos. Fixes #79999 on Linux.
18870 2006-11-22 Everaldo Canuto <everaldo@simios.org>
18872 * ThemeWin32Classic.cs: Fix text redenring when button is
18875 2006-11-22 Everaldo Canuto <everaldo@simios.org>
18877 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
18878 and later navigate by mouse. Fixes #79528.
18880 2006-11-21 Everaldo Canuto <everaldo@simios.org>
18882 * ToolBar.cs: Set default value for TabStop to false in
18883 constructor, it fixes remaining behavior of bug #79863.
18885 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
18887 * MdiWindowManager.cs:
18888 * InternalWindowManager.cs:
18889 - Moved a few methods specific to Mdi from
18890 InternalWindowManager to MdiWindowManager.
18893 2006-11-21 Chris Toshok <toshok@ximian.com>
18895 * XplatUIOSX.cs: stub out InvalidateNC.
18897 * XplatUIWin32.cs: implement InvalidateNC using the call I found
18898 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
18900 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
18902 * XplatUIDriver.cs: add InvalidateNC abstract method.
18904 * XplatUI.cs: add InvalidateNC.
18906 2006-11-21 Everaldo Canuto <everaldo@simios.org>
18908 * ToolBar.cs: Invalidate complete button area when pressed status
18910 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
18911 * ThemeWin32Classic.cs: Increase vertical and horizontal position
18912 by 1 when button is pressed.
18914 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18916 * ToolButton.cs: Invalidate middle of DropDown button when
18917 ToolBar theres DropDownArrows.
18918 * ThemeWin32Classic.cs: Change position of DropDown arrow and
18919 fix DropDown drawing operations.
18921 2006-11-20 Chris Toshok <toshok@ximian.com>
18923 * NativeWindow.cs: fix the formatting of functions ('{' on the
18924 following line), and enable the thread exception dialog.
18926 * Application.cs: remove the duplicate exception catching from
18929 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18931 * Toolbar.cs: Triggers button click event when click on icon
18932 of dropdown ToolBarButton. Fixes #79912.
18934 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18937 * ThemeWin32Classic.cs:
18938 - Added a property WindowBorderFont to enable themeing
18939 of mdi child windows' Text.
18941 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18943 * InternalWindowManager.cs:
18946 * MdiWindowManager.cs:
18947 - If mdi child is maximized, set mdi parent's
18948 text to "Parent - [Child]". Fixes #79770.
18949 - If there is any maximized mdi child windows, only the active
18950 window (and any new windows) is maximized, the rest are normal.
18951 - On a WindowState change only save mdi child's window bounds
18952 if the old window state was normal. Fixes #79774.
18953 - The scroll bars are now calculated on hopefully all
18954 necessary events. Fixed #79771 / #79844->6 / #79906.
18955 - MdiClient.SizeScrollBars() now takes into account docked
18956 controls in the parent when calculating available space.
18957 - InternalWindowManager now always repaints the entire title
18958 area. Fixes #79844->1/4/5.
18959 - Added RequestNCRecalc on mdi child windowstate changes.
18962 2006-11-20 Mike Kestner <mkestner@novell.com>
18964 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
18965 in the MouseUp handler of the listbox and move the return handling
18966 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
18968 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18970 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
18972 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
18974 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
18975 working in 1.2.x anymore. So, updated.
18977 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
18979 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
18980 NumberGroupSeparator of current culture instead of assuming en-US.
18983 2006-11-17 Mike Kestner <mkestner@novell.com>
18985 * Control.cs: Add the concept of implicit bounds setting so that
18986 dock/undock round trips preserve explicitly set size/locations.
18989 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
18991 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
18992 can't handle those filters. (Fixes bug #79961)
18994 2006-11-17 Chris Toshok <toshok@ximian.com>
18996 [ fixes the exit/crashes associated with #79835. it's clearly
18997 suboptimal though, we need to figure out a better way to solve
19000 * PrintPreviewControl.cs: deal with the new invalid printer
19003 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19004 and return false (so CommonDialog.ShowDialog doesn't actually show
19007 * PrintDialog.cs: enable/disable the Ok button depending on
19008 whether or not the printer is valid.
19010 * CommonDialog.cs (ShowDialog): only actually show the form if
19011 RunDialog returns true.
19013 2006-11-17 Jackson Harper <jackson@ximian.com>
19015 * TextControl.cs: When soft splitting a line, mark it as a soft
19016 split line. Also carry over the current line break to the next
19019 2006-11-17 Chris Toshok <toshok@ximian.com>
19021 * XplatUIX11.cs: when scrolling a window with an invalid area, we
19022 only want to shift the part of the invalid area that overlaps the
19023 area we're scrolling. we also don't want to clear the invalid
19024 area unless the invalid area was entirely contained within the
19027 2006-11-16 Chris Toshok <toshok@ximian.com>
19029 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19030 also make sure to free the memory returned by XGetWindowProperty
19033 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19035 2006-11-16 Chris Toshok <toshok@ximian.com>
19037 * XplatUI.cs: add a new super secret way to get at the totally
19038 unsupported X11 backend.
19040 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
19042 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19044 2006-11-16 Jackson Harper <jackson@ximian.com>
19046 * TreeView.cs: Allow more explicit setting of top node position
19047 for scrollbars. Slower algo, but more accurate.
19048 - CollapseAll should maintain the current top node.
19049 * TextBoxBase.cs: When positioning the caret, use the line, pos
19050 method, since the x, y method does not grab the correct tag, and
19051 the caret height never gets set correctly. (Maybe I should just do
19052 away with the caret having its own height, and always use the
19053 carets current tag for height).
19055 2006-11-16 Jonathan Pobst <monkey@jpobst.com
19057 [Fixes 79778, 79923]
19059 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19060 Parent to the FosterParent instead.
19062 2006-11-16 Jackson Harper <jackson@ximian.com>
19064 * TreeView.cs: Need to recalc the topnode when we expand or
19065 collapse. The scrolling methods can't handle this on their own,
19066 since they use differences between the last scroll position, and
19067 those difference get completely messed up since we are expanding
19068 nodes. This problem should probably be fixed in the scrolling
19069 methods, so they can figure out exactly where they are, but this
19070 will slow things down a little.
19071 * ThemeWin32Classic.cs: Special case for groupboxes with empty
19072 strings, makes nunit-gui look a lot nicer.
19074 2006-11-16 Chris Toshok <toshok@ximian.com>
19076 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19077 the broken multithreaded event handling we have in here. File
19078 this entry under "Why we should move to the new X11 backend".
19080 Any thread can make it into UpdateMessageQueue, which gets events
19081 from the X socket - some of which could belong to hwnds being
19082 managed by a different thread. We can also have multiple threads
19083 in UpdateMessageQueue at the same time, with each one reading from
19084 the X socket. This leads to many problems, with the following
19087 We can't use hwnd.Queue.Enqueue anywhere in here and must use
19090 The MotionNotify compression we do can't work across threads
19091 (without locking the entire queue, perhaps) since we call
19092 hwnd.Queue.Peek, so we just punt and don't compress motion events
19093 unless the owning thread is the one which got the X event.
19095 ConfigureNotify is another fun one, since it modifies the hwnd's
19096 bounds and then enqueues the event. We add a lock to Hwnd which
19097 is held when setting configure_pending to true (and enqueuing the
19100 There is a race wrt the wake socket. we need to make sure that
19101 only 1 thread is waiting on that socket, or else a thread could
19102 sleep waiting for data that never comes. It's difficult (but not
19103 impossible) to make happen, because it seems to require something
19104 like the following:
19106 1. Thread 1 polls on wake_receive
19108 2. poll returns saying there's data to be read on
19111 3. Thread 2 polls on wake_receive and immediately returns
19112 saying there's data to be read.
19114 4. Thread 2 reads the wakeup byte from wake_receive
19116 5. Thread 1 attempts to read the wakeup byte from
19119 6. Thread 2 exits (due to a form closing, perhaps).
19121 7. Thread 1 blocks forever.
19125 Fixing the Expose handling isn't done yet, and the races inherent
19126 in that piece of code are responsible for the drawing mistakes you
19127 see when generating expose events in a MT app (like NPlot). This
19128 one is the likely to be the hardest to bandaid, and it doesn't
19129 appear to cause anything but drawing problems. The other issues
19130 caused apps to exit or hang.
19132 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19133 called from a different thread than the one that should be calling
19136 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19138 2006-11-15 Chris Toshok <toshok@ximian.com>
19140 * Application.cs: null out the context's MainForm when we exit
19141 RunLoop. Fixes a newly checked in unit test as well as the last
19142 ODE from bug #79933.
19144 2006-11-15 Chris Toshok <toshok@ximian.com>
19146 * Form.cs (set_Owner): allow a null value so we can clear the
19148 (Dispose): set all our owned_form's Owner properties to null, and
19149 clear the owned_forms collection.
19150 (WM_CLOSE): clean up this a little bit.. still not right though.
19152 * ApplicationContext.cs: OnMainFormClosed should only call
19153 ExitThreadCore if the main form isn't recreating. Fixes unit
19156 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19160 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19162 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19166 * Hwnd.cs: Add a flag to show a window, but not activate it, to
19167 keep popup window types from stealing focus from the main form
19170 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19172 * MenuAPI.cs: Set above flag to true.
19174 2006-11-15 Chris Toshok <toshok@ximian.com>
19176 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19177 the button being released is not in wParam.
19179 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19181 * Form.cs: Add the released button to MouseEventArgs.Button
19182 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
19185 2006-11-15 Chris Toshok <toshok@ximian.com>
19187 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19188 GetText(). untested because it's unused in our implementation.
19189 Control.Text always caches the text, even if
19190 ControlStyles.CacheText is not set.
19194 2006-11-15 Chris Toshok <toshok@ximian.com>
19198 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19199 message. no hiding, no disposing.
19201 in the WM_CLOSE handler, hide the form if it's modal.
19203 2006-11-15 Chris Toshok <toshok@ximian.com>
19205 * XplatUIX11.cs: use AddExpose instead of sending a message.
19206 fixes textbox border drawing.
19208 2006-11-15 Chris Toshok <toshok@ximian.com>
19210 * PropertyGridView.cs: keep from crashing on mouse move/down when
19211 the property grid is empty.
19213 2006-11-14 Jackson Harper <jackson@ximian.com>
19215 * TextControl.cs: Make PageUp and PageDown more like the MS
19217 * TextBoxBase.cs: When we set the text property position the
19218 cursor at the beginning of the document.
19220 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19222 * Form.cs: if a mdi child's WindowState has changed
19223 before it's creation, it would display wrong control
19226 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
19228 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19231 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19233 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
19234 the window gets to paint its borders even if the window is
19237 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
19238 otherwise the old control buttons would still be painted
19239 if the window gets bigger.
19241 * PaintEventArgs.cs: add an internal method so that the clip
19242 rectangle can be changed.
19244 2006-11-13 Chris Toshok <toshok@ximian.com>
19246 [ fixes bug #79745 ]
19248 * NotifyIcon.cs: lots of cleanup.
19250 * X11Structs.cs: add an enum for XEMBED messages.
19252 * XplatUIX11.cs: reindent one of the giant switch statements, it
19253 was taking up an additional tab stop, and this file is already way
19254 too wide for my laptop's screen.
19256 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
19257 we get it, resize the hwnd to the WMNormalHints max_width/height.
19259 2006-11-13 Jackson Harper <jackson@ximian.com>
19261 * TextBoxBase.cs: Compute the value changes for the mouse wheel
19264 2006-11-13 Chris Toshok <toshok@ximian.com>
19266 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19267 #79898. force a reference to the Region to stick around so the
19268 unmanaged object isn't collected (rendering our handle in the MSG
19271 2006-11-13 Chris Toshok <toshok@ximian.com>
19273 * XplatUIX11.cs: fix #79917 for window managers which support
19275 using XStoreName on the raw utf8, and we need to convert to
19276 COMPOUND_TEXT if it's non-latin1.
19278 2006-11-13 Chris Toshok <toshok@ximian.com>
19280 * Form.cs (set_DialogResult): we need to set closing to false if
19281 we're setting our result to None. fixes bug #79908.
19283 2006-11-13 Jackson Harper <jackson@ximian.com>
19285 * TextControl.cs: When formatting text, compute the adjusted tag
19286 lengths correctly, using FindTag for the end tag instead of trying
19287 to figure it out outselves.
19288 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19289 the item, ItemHeight doesn't work, because trees with large
19290 imagelists use those for their height
19291 * TreeView.cs: ActualItemHeight factors in the image height
19292 - compute left edge of checkboxes correctly
19293 - when expanding/collapsing move the bottom down one pixel, so we
19294 aren't moving part of the node
19296 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19298 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19299 stack in PaintEventStart so that it won't get disposed by the gc
19300 before reaching PaintEventEnd.
19302 2006-11-13 Jackson Harper <jackson@ximian.com>
19304 * TextBoxBase.cs: Don't select the word if we are on a line with
19306 - We don't need to position the caret on mouse up, since the mouse
19307 move handler should be doing this
19308 - When double clicking a blank line, the caret is advanced to the
19311 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
19313 * TreeNodeCollection.cs: Avoid duplicating indexer code.
19315 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
19317 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19318 Fixes part of bug #79910.
19320 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
19322 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19323 (bug #79903). Some minor string updates to match ms.
19325 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19327 * FileDialog.cs: Don't add an extension if the filename
19328 already ends with that extension.
19330 2006-11-10 Jackson Harper <jackson@ximian.com>
19332 * TreeView.cs: Use the currently highlighted node for the
19333 BeforeSelect event.
19334 * TextBoxBase.cs: There is no need to expand selection on
19336 - CanUndo means 'is there any undo operations', not 'is undo
19337 allowed on this textcontrol. Fixed ClearUndo unit test.
19339 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
19341 * Button.cs: only perform click when button is Selectable (so as
19342 not to activate default buttons when they're disabled)
19344 * Control.cs: Rewrite of the SelectNextControl and related
19345 methods. HandleClick now selects next control if the current one
19348 * Form.cs: OnActivated selects next active control only if Load
19349 has already occurred. If Load hasn't run, there's no point in
19350 selecting here, Load might change the state of controls.
19352 * FocusTest.cs: Tests marked as working again for these fixes
19354 2006-11-10 Chris Toshok <toshok@ximian.com>
19356 * XplatUIX11.cs: a couple of fixes.
19358 - use XInternAtoms with almost all the atoms we need to register,
19359 instead of many, many calls to XInternAtom. should help a bit on
19360 startup time, at the expense of making the code look a little
19363 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19364 isn't reparented (which seems to be a clue that we're running fon
19365 compiz) and they have an Owner form. This fixes the tool windows
19366 in paint.net when running under compiz.
19368 - when setting the opacity of a window, support both the case
19369 where the window has been reparented and also when it hasn't been.
19370 Since compiz/beryl doesn't seem to reparent windows, and these are
19371 the only window managers which support translucency, I'm not sure
19372 why we need the hwnd.reparented case at all.. but leave it in.
19373 now we get translucent windows in paint.net under compiz/beryl.
19375 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19377 * FileDialog.cs: Always return the value for FilterIndex that
19378 was set. Internally convert it to values that make sense.
19380 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19382 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19384 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19386 * Toolbar.cs: Change default value of DropDownArrows to true, the
19387 signature still using false to make it compatible with MS but the
19388 initial value is true. Fixes #79855.
19390 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19392 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19393 only available on Linux.
19395 2006-11-09 Everaldo Canuto <everaldo@simios.org>
19397 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19398 reduce number of calls to redraw method during toolbar creation.
19400 2006-11-09 Mike Kestner <mkestner@novell.com>
19402 * ListView.cs : raise SelectedIndexChanged when an item is selected
19403 programmatically via the Item.Selected property. Gert's nice
19404 ListViewSelectedIndexChanged test fixture now runs clean.
19406 2006-11-09 Mike Kestner <mkestner@novell.com>
19408 * ListView.cs : raise SelectedIndexChanged when a selected item is
19409 removed from the item collection using Remove or RemoveAt.
19411 2006-11-09 Mike Kestner <mkestner@novell.com>
19413 * ListView.cs : raise SelectedIndexChanged once per selected item
19414 for compat with MS. Fixes #79849+.
19416 2006-11-09 Chris Toshok <toshok@ximian.com>
19418 * TabControl.cs: initialize row_count to 0, and set it to 1 when
19419 we need to (if we have any tab pages). Fixes unit test.
19421 2006-11-09 Chris Toshok <toshok@ximian.com>
19423 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19424 width is 0, not 3. Fixes a unit test.
19426 2006-11-09 Mike Kestner <mkestner@novell.com>
19428 * ListView.cs : use Implicit scrollbars so that focus isn't
19429 stolen from the listview when they are clicked. Fixes #79850.
19431 2006-11-09 Chris Toshok <toshok@ximian.com>
19433 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19434 have a root item. Fixes #79879.
19436 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
19440 - An ArgumentException is now thrown if a wrong filter
19441 is applied (matches ms). The previous filter doesn't change
19442 anymore if an exception is thrown.
19443 - Changing the FileName property also affects FileNames
19444 * ColorDialog.cs: The length of the CustomColors array is always
19445 16. It doesn't matter if we use a smaller array or null to update
19446 or change the custom colors property.
19447 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19448 for RootFolder if we get a undefined value.
19450 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19452 * StatusBarPanel.cs:
19453 - Width is set to MinWidth if Width is smaller than
19454 MinWidth. Fixes #79842.
19455 - MinWidth now always overrides Width (MSDN says MinWidth
19456 is set to Width when AutoSize = None, but they do not
19458 - Style has now the the correct default value.
19460 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19463 - The control is completely invalidated on
19464 Got/LostFocus to draw the focus rectangle correctly.
19465 - When AutoSize then height is always 45 (width for
19466 vertical controls).
19468 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19469 on the mouse when moved and it doesn't move when grabbed
19470 until the mouse moves as well. Also fixed some wrong
19471 calculations when clicking on the thumb (control thought
19472 click was outside of thumb and didn't grab it).
19473 Fixes some of the issues in #79718.
19475 2006-11-08 Everaldo Canuto <everaldo@simios.org>
19477 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19479 2006-11-08 Chris Toshok <toshok@ximian.com>
19481 * PropertyGridView.cs: only call ToggleValue if the item is not
19484 2006-11-08 Jackson Harper <jackson@ximian.com>
19486 * TextBoxBase.cs: The RichTextBox and textbox have very different
19487 word selection methods. Implement the textbox's simple word
19488 selection here, and let the RichTextBox override and provide it's
19490 - Don't do extra selection on mouseup
19491 * RichTextBox.cs: Use the documents word selection algorithm, I
19492 think ideally, this function will be pulled into the
19493 RichTextBox.cs code someday.
19495 2006-11-08 Chris Toshok <toshok@ximian.com>
19497 * RootGridEntry.cs: new class to represent GridItemType.Root.
19499 * CategoryGridEntry.cs: reformat, and add boilerplate.
19501 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19502 returns the UI parent anyway, and we need special handling to
19503 implement the GetTarget method in the face of it. Also, implement
19506 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
19507 a root grid item, and use that instead of PropertyGrid.grid_items.
19508 Also, make use of TypeConverters (and add limitted support for
19509 ICustomTypeDescriptors) when initially populating the grid.
19510 Arrays now show up more or less properly.
19512 2006-11-08 Chris Toshok <toshok@ximian.com>
19514 * Application.cs: set the modal dialog to non modal after we close
19515 it. Fixes bug #79866.
19517 2006-11-08 Jackson Harper <jackson@ximian.com>
19519 * TextControl.cs: When combining lines carry over the line end
19520 style from the end line.
19521 - Invalidate the selected area when setting it, if it is visible.
19522 * TextBoxBase.cs: Only rich text box can do full line selects.
19523 - Make sure to set the cursor position when there is a click,
19524 otherwise two clicks in separate areas could cause a large chunk
19527 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19529 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
19532 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19534 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19535 time. Remove tooltips when ToolButton click events. Fixes #79856.
19537 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19539 * MenuAPI.cs: Ignore right click for menu actions and fixes
19540 menu border when clicked. Fixes #79846.
19542 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19544 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19545 MouseState after create wParam for message, this fixes mouse button
19546 equal none in mouse up events.
19548 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
19550 * Control.cs : Focus() now calls Select to set the Container's
19551 Active Control and to give it focus. To avoid infinite recursion
19552 (because ActiveControl also calls Focus at one point), a check
19553 is made in Focus with the help of a new internal variable
19556 2006-11-07 Mike Kestner <mkestner@novell.com>
19558 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19559 if there's a selection. Fixes #79849.
19561 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
19563 * PropertyGrid.cs: Avoid fixed height of help description label.
19564 Fixes part of bug #79829.
19566 2006-11-07 Chris Toshok <toshok@ximian.com>
19568 * XplatUIX11.cs: fix #79790 again, by using the
19569 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19571 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19573 * ToolBar.cs: Fix left click checking.
19575 2006-11-07 Chris Toshok <toshok@ximian.com>
19577 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
19579 2006-11-07 Chris Toshok <toshok@ximian.com>
19581 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
19582 PropertyManager unit tests.
19584 * PropertyManager.cs: make property_name internal.
19586 2006-11-07 Chris Toshok <toshok@ximian.com>
19588 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19589 pass a unit test. Also, don't set image_index to anything in
19590 response to setting the ImageList property.
19592 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19594 * ToolBar.cs: Ignore click events when mouse button is not a
19595 left button, only accepts other button for dropdown menus.
19598 2006-11-07 Chris Toshok <toshok@ximian.com>
19600 * DataGrid.cs: make the back and parent row buttons a little less
19603 2006-11-07 Jackson Harper <jackson@ximian.com>
19605 * TextBoxBase.cs: When converting to Text don't put line breaks in
19606 for soft line breaks.
19607 * TextControl.cs: There is an initial "fake" line in the document,
19608 this is now a soft break line, so that an extra line feed doesn't
19609 get added to the end of documents.
19611 2006-11-07 Chris Toshok <toshok@ximian.com>
19615 * CurrencyManager.cs: if the list is readonly, don't bother
19616 checking if IBindingList.AllowNew is true.
19618 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19619 for non-DataRowView datasources.. or rather, make it not crash.
19620 (DataGridPaintRelationRow): make sure we limit the row painting to
19621 the area not covered by the row header, and make our cell width at
19622 least large enough to cover the relation area. This allows grids
19623 that have relations but no rows to render correctly.
19624 (DataGridPaintRowContents): same type of changes here.
19625 (SetDataSource): move back to always calling
19626 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
19627 navigating back through relations.
19628 (HitTest): handle the case where we have no cells but have
19629 relations. Right now we generate a hit in cell 0 of whatever the
19630 row is, not sure if this is strictly correct, but it works for our
19633 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19634 bother doing anything.
19636 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
19638 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19639 early version of StatusStrip. Not responsible for eaten
19640 application or firstborn children.
19642 2006-11-06 Chris Toshok <toshok@ximian.com>
19644 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19645 call GetTabRect with a -1 index. Fixes #79847.
19647 2006-11-06 Jackson Harper <jackson@ximian.com>
19649 * TreeNodeCollection.cs: Update scrollbars after clearing.
19651 2006-11-06 Chris Toshok <toshok@ximian.com>
19653 * NumericUpDown.cs: fix the ToString method for some unit test
19656 2006-11-06 Chris Toshok <toshok@ximian.com>
19659 - set the initial SelectedGridItem if we can.
19661 - Exclude non-mergable properties only if we're merging > 1
19662 object. Merging 1 object isn't really merging, obviously.
19664 - Handle PropertySort.NoSort just like Alphabetical, which is
19665 wrong of course, but at least gets things on the screen.
19667 * PropertyGridView.cs:
19668 - Add method "FindFirstItem" which finds the first property grid
19669 item, so we can select it by default.
19671 - make use of GridEntry.CanResetValue.
19673 - Don't call RedrawBelowItemOnExpansion here anymore, the
19674 individual GridEntry's will do that.
19676 - Remove the ITypeDescriptorContextImpl internal class.
19679 - this class needs to implement ITypeDescriptorContext, as it's
19680 what MS's PropertyDescriptorGridEntry does, which means we can
19681 remove the ITypeDescriptorContextImpl internal class from
19682 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
19684 - keep a reference to our PropertyGridView, and move the call to
19685 RedrawBelowItemOnExpansion here from PGV. This means
19686 programmaticly setting Expanded actually does something visible.
19688 - add a CanResetValue() function which takes into account our
19689 possibly multiple "selected_objects" in the merged case. Shifting
19690 PropertyGridView to use this method fixes another unreported
19691 crasher found running the test for #79829.
19693 - when Top or Bounds is updated, make sure the PropertyGridTextBox
19694 is updated to reflect this.
19696 * CategoryGridEntry.cs: the ctor takes the PGV now.
19698 2006-11-06 Jackson Harper <jackson@ximian.com>
19700 * TextControl.cs: These are 1 based.
19701 * TextBoxBase.cs: When setting the selected text, don't change the
19702 selected text tags, this is done by ReplaceText, just position the
19703 cursor at the end of the new text.
19705 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19707 * ListView.cs: Allow label edit only when, when LabelEdit is
19710 2006-11-06 Jackson Harper <jackson@ximian.com>
19712 * TextControl.cs: If a suitable wrapping position isn't found,
19713 just wrap right in the middle of a word.
19715 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19717 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
19720 2006-11-06 Jackson Harper <jackson@ximian.com>
19722 * TreeView.cs: Can't use the VisibleCount property when setting
19723 scrollbar heights, because this doesn't take into account whether
19724 or not the horz scrollbar just came visible.
19726 2006-11-05 Everaldo Canuto <everaldo@simios.org>
19728 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
19729 activated. Fixes #79369, #79832.
19731 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
19733 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
19734 had to remove support for links that point to a directory. FileInfo
19735 returns no usefull information (means, the directory they point to)
19736 for such links. Replaced some empty string ("") with String.Empty.
19738 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19740 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
19741 NullReferenceException when attempting to remove node that is not in
19742 collection. Throw NullReferenceException when null is passed to
19743 Remove. Allow first element of the collection to be removed. Fixes
19744 bug #79831. In GetEnumerator ().Current return null if positioned
19745 before the first element of the collection. In GetEnumerator ().Reset,
19746 position before first element of the collection.
19748 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19750 * PropertyGrid.cs: To match MS, remove default title and description
19751 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
19754 2006-11-04 Chris Toshok <toshok@ximian.com>
19756 * Theme.cs: add a Clamp method, just for kicks.
19758 * ThemeWin32Classic.cs: clamp all color components to [0..255].
19760 2006-11-04 Chris Toshok <toshok@ximian.com>
19762 * Form.cs: if the form isn't visible, Close() does nothing.
19764 2006-11-03 Chris Toshok <toshok@ximian.com>
19766 * Form.cs (Close): if the form is modal, don't Dispose of it, only
19768 (WndProc): don't Dispose after handling the WM_CLOSE message.
19770 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
19771 them as such, instead of using casts from Control to Form. Also,
19772 don't Dispose of the modal dialog when we fall out of the loop -
19773 Close() it instead.
19777 2006-11-03 Chris Toshok <toshok@ximian.com>
19779 * Control.cs (Dispose): only go through the dispose thing if we're
19780 @disposing, and we haven't already been disposed. Fixes bug
19783 * Form.cs: no reason to call "base.Dispose()" here instead of
19786 2006-11-03 Mike Kestner <mkestner@novell.com>
19788 * ComboBox.cs : use ToString instead of casts in AddItem for
19789 sorting functionality. Fixes #79812.
19791 2006-11-03 Chris Toshok <toshok@ximian.com>
19793 * Application.cs: pave the way for actually using the thread
19794 exception dialog. it's ifdefed out at the moment.
19796 2006-11-03 Chris Toshok <toshok@ximian.com>
19798 * ThreadExceptionDialog.cs: until we get a better layout, actually
19799 hide the details textbox and label when we shouldn't see them.
19801 2006-11-03 Jackson Harper <jackson@ximian.com>
19803 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
19804 multiline textboxes anymore. This method also determines the
19805 width/height of a textboxes canvas area.
19806 - Sorta a revert of the last patch. For multiline just position
19807 the controls, then bail. This way the scrollbar width won't be
19810 2006-11-03 Everaldo Canuto <everaldo@simios.org>
19812 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
19813 it dont need. Fixes #79537.
19815 2006-11-02 Jackson Harper <jackson@ximian.com>
19817 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
19818 send the status after firing the DndOver event.
19820 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
19822 * TrackBar.cs: Now orientation only switches height / width if
19823 the control's handle is created (Win32 does it like this). Also
19824 fixed a typo in ToString() for a test to pass, changed the
19825 exception thrown in set_LargeChange and set_SmallChange to
19826 match Win32 behaviour, and added TrackBar tests to the unit
19829 2006-11-02 Chris Toshok <toshok@ximian.com>
19831 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
19832 not _NET_WM_STATE_NO_TASKBAR.
19834 2006-11-02 Jackson Harper <jackson@ximian.com>
19836 * TextControl.cs: Increment count by one, since in the update view
19839 2006-11-02 Jackson Harper <jackson@ximian.com>
19841 * TextBoxBase.cs: Use client rectangle not bounds for checking if
19842 the mouse is in the client rectangle (duh).
19844 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
19846 * TrackBar.cs: Fixed trackbar jumping around when clicking
19847 on it - the trackbar was not detecting correctly at which
19848 side of the thumb the click was done. (fixes #79718)
19850 2006-11-02 Everaldo Canuto <everaldo@simios.org>
19852 * ListBox.cs: scroll visible area when change SelectedIndex to
19853 a non visible area. Fixes #79481.
19855 2006-11-01 Jackson Harper <jackson@ximian.com>
19857 * TextControl.cs: When replacing the selection move the selection
19858 start/end/anchor to the end of the new text.
19860 2006-11-01 Jackson Harper <jackson@ximian.com>
19862 * XplatUIWin32.cs: When setting the parent change the controls
19863 visibility to it's visibility flag, not to it's old parents
19864 visibility (.Visible walks the parent chain).
19866 2006-11-01 Chris Toshok <toshok@ximian.com>
19868 * XplatUIX11.cs: revert the #79790 fix, as the simple.
19869 XSetTransientForHint fix breaks paint .net's tool windows. more
19870 work needed for that one.
19872 2006-11-01 Chris Toshok <toshok@ximian.com>
19874 * ScrollBar.cs: throw ArgumentException instead of Exception in
19875 LargeChange/SmallChange setters. fixes unit tests.
19877 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
19879 * ContainerControl.cs: reverted rev.67183 (which was itself
19880 a reversion of rev.66853... eh).
19882 * Control.cs: Fixes Reflector hang by changing Focus() call
19883 to what it was before rev.66643 (calling Select() here sets
19884 ActiveControl, which in some situations calls back Focus and
19885 eventually does a stack overflow). Temp fix.
19886 Changes to GetNextControl() to not look for children to select when
19887 parent cannot be selectable (so it looks for siblings instead)
19889 2006-10-31 Mike Kestner <mkestner@novell.com>
19891 * CheckedListBox.cs : off by one error in returned index from
19892 ObjectCollection.Add. Fixes #79758.
19894 2006-10-31 Chris Toshok <toshok@ximian.com>
19896 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
19897 calls for the textbox/spinner, to keep from recursing to the point
19898 where we crash. Fixes #79760.
19900 2006-10-31 Chris Toshok <toshok@ximian.com>
19902 * ListControl.cs (set_SelectedValue): don't throw exceptions on
19903 null/"" value, just return. matches ms's behavior and fixes some
19906 2006-10-31 Chris Toshok <toshok@ximian.com>
19908 * Control.cs (set_Capture): make a logic a little easier to
19911 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
19912 if it's being destroyed. A necessary fix surely, but a bandaid
19913 also, to fix the stuck capture problem in bug #78413.
19915 2006-10-31 Chris Toshok <toshok@ximian.com>
19917 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
19918 convention of clearing hwnd.ClientRect when we set the
19919 width/height (so it'll be recalculated by Hwnd).
19921 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
19923 * ContainerControl.cs: reversed Contains check from
19924 ActiveControl due to hanging problems. This fix
19925 partly regresses #79667 (button does not have
19926 initial focus), so this might be a symptom for
19927 a larger parenting problem (set_ActiveControl
19928 is being called but the child control does
19929 not have the parent set yet?)
19931 2006-10-31 Mike Kestner <mkestner@novell.com>
19933 * MenuAPI.cs : fix keynav when menu is click activated.
19935 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
19937 * ToolStrip*: Version 0.2.
19939 * MenuStrip.cs: Version 0.1.
19941 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
19943 2006-10-30 Chris Toshok <toshok@ximian.com>
19945 [ fixes the oversized notify icon issue in bug #79745 ]
19947 * NotifyIcon.cs: scale the icon down to the size we're given by
19948 the XplatUI layer (this would be faster if we did it once instead
19949 of whenever we paint..) Also, remove the WM_NCPAINT handling,
19950 since it's never invoked.
19952 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
19953 pixels high by default, so let's hardcode our systray icon to that
19954 size. The SYSTEM_TRAY protocol should really have a way for
19955 client apps to query for the correct icon size.. but oh well. A
19956 couple of patches to deal with the screwy client_window ==
19957 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
19958 instance, and also make sure we don't XSelectInput twice).
19960 2006-10-30 Chris Toshok <toshok@ximian.com>
19962 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
19963 recreating forms. Control recreation is the bane of my existence.
19964 Fix it in a way that keeps everyone happy.
19966 2006-10-30 Chris Toshok <toshok@ximian.com>
19968 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
19969 just non-CHILD ones. otherwise sometimes scrollbars end up with
19970 client_windows not being resized to the proper size (ReportBuilder
19971 shows this extremely well).
19973 2006-10-30 Chris Toshok <toshok@ximian.com>
19975 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
19976 for non-WS_EX_APPWINDOW windows. This is what keeps them from
19977 showing up in the gnome taskbar. Fixes bug #79790.
19979 2006-10-30 Chris Toshok <toshok@ximian.com>
19981 * ApplicationContext.cs: guard against a NRE.
19983 * Application.cs: null out the old MainForm for the context, so we
19984 don't try to use it again once it's disposed. Fixes bug #79783.
19986 2006-10-30 Chris Toshok <toshok@ximian.com>
19988 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
19989 BindingContext, set the data source directly, otherwise do the
19990 lazy approach - the actual ListManager will be created when we get
19991 a BindingContext. Fixes bug #79700.
19993 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
19995 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
19996 XplatUIX11.cs: Remove old 2 parameter SetVisible.
19998 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20000 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20002 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20003 of SetVisible that allows a window to be shown, but not activated.
20004 This is needed on Windows for MenuStrip, and can probably be used
20005 with MainMenu and ComboBox to fix the focus stealing issues on
20008 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20010 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
20012 * PictureBox.cs: Fix the output of the ToString method.
20014 2006-10-29 Chris Toshok <toshok@ximian.com>
20016 * Control.cs (get_TopLevelControl): fix bug #79781.
20018 2006-10-29 Chris Toshok <toshok@ximian.com>
20020 * ListControl.cs (set_DataSource): throw Exception here, not
20021 ArgumentException, to match MS behavior.
20023 2006-10-29 Chris Toshok <toshok@ximian.com>
20025 * Form.cs: remove the try-catch's around calls to GetWindowState.
20026 We can just check the return value.
20028 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20031 * XplatUI.cs: Add note about additional return value for
20034 2006-10-29 Chris Toshok <toshok@ximian.com>
20036 * Control.cs (CreateHandle): when we create our handle, we also
20037 create the handles of our child controls. Fixes one of the
20038 Control unit tests (CH11).
20040 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20042 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20044 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20046 * ThemeClearlooks.cs: A little speedup.
20048 2006-10-27 Chris Toshok <toshok@ximian.com>
20050 * Control.cs: implement Control.FromChildHandle in a way that
20051 matches the docs (and fixes the failed test.)
20053 2006-10-27 Chris Toshok <toshok@ximian.com>
20055 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20058 * DataGrid.cs: implement ResetForeColor such that the tests
20061 2006-10-27 Chris Toshok <toshok@ximian.com>
20063 * ToolBarButton.cs: setting text/tooltiptext to null results in it
20064 being set to "". Fixes bug #79759.
20066 2006-10-27 Jackson Harper <jackson@ximian.com>
20068 * TextControl.cs: We need to clear the entire selection area when
20069 setting the start, otherwise multiline selections are still
20072 2006-10-26 Chris Toshok <toshok@ximian.com>
20074 * PropertyGridView.cs:
20076 - ifdef all the code specific to the double
20077 buffer case, and provide some alternatives in the non-doublebuffer
20078 code, which makes heavy use of XplatUI.ScrollWindow to move things
20079 around without having to invalidate (and cause flicker). There
20080 are still some drawing problems in the non-doublebuffered case, so
20081 DOUBLEBUFFER is defined by default.
20083 - Fix the way dropdowns are handled. now we explicitly watch for
20084 the events which might cause the dropdown to close, and break out
20085 of the nested event loop there. This gets rid of all Capture
20086 code, at the expense of the Msg special casing. Seems to work,
20087 though, and fixes bug #79743.
20089 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
20090 * Control.cs: SetIsRecreating now recreates implicitly added
20091 child controls as well. Finally fixes #79629. The flag passed to
20092 SetIsRecreating has also been removed since it wasn't used.
20094 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20096 * PageSetupDialog.cs: Clean some code, fix some bits,
20097 add some checks, and add a printer sub-dialog.
20099 2006-10-26 Chris Toshok <toshok@ximian.com>
20101 * PropertyGrid.cs: make set_SelectedObject call
20102 set_SelectedObjects, and move the duplicate logic to the
20103 SelectedObjects setter. Also, raise SelectedObjectsChanged.
20105 * PropertyGridView.cs: hide the textbox when we get a
20106 SelectedObjectsChanged event.
20110 2006-10-26 Chris Toshok <toshok@ximian.com>
20112 * PropertyGridView.cs: deal with the type converter not supporting
20113 GetStandardValues() or GetStandardValues() returning null, which
20114 is does in the default case. Fixes #79742.
20116 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20118 * CheckedListBox.cs: nunit no longer crashes when selecting
20119 Project/Edit menu option
20121 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20123 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20124 is no menu selected. fixes #79739
20126 2006-10-25 Chris Toshok <toshok@ximian.com>
20128 * PropertyGridView.cs: factor out the splitter invalidation code
20129 into the SplitterPercent setter, and for kicks implement the
20130 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20131 amount in either direction.
20133 2006-10-25 Chris Toshok <toshok@ximian.com>
20135 * PropertyGridView.cs: do some cleanup of the brush used to draw
20136 text - read only fields should be grayed out. not sure how to do
20137 this with the textbox, though. but the textbox's should also be
20138 readonly now at least. Also, hide/show the textbox when resizing
20141 * CursorConverter.cs: use System.Reflection when getting the
20142 properties of Cursors, as TypeDescriptor.GetProperties isn't
20143 returning static properties.
20145 2006-10-25 Chris Toshok <toshok@ximian.com>
20147 * PropertyGridView.cs: factor out the up/down handling, and reuse
20148 it for page up/down. also add End/Home support.
20150 2006-10-25 Chris Toshok <toshok@ximian.com>
20152 * PropertyGridView.cs:
20154 - ensure the selected grid item is visible in the scrolled area,
20157 - fix Keys.Down handling when you're on the last item in the
20160 2006-10-25 Mike Kestner <mkestner@novell.com>
20162 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
20163 clicks too. Fixes #79725.
20165 2006-10-24 Chris Toshok <toshok@ximian.com>
20167 * PropertyGrid.cs: use property.Converter instead of
20168 TypeDescriptor.GetConverter(property.PropertyType), so we catch
20169 TypeConverters declared on the property as well as on the
20170 PropertyType. Fixes bug #79678.
20172 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
20174 * MimeIcon.cs, Mime.cs:
20175 Fallback to the default platform handler if no shared mime info
20176 stuff exists (fixes #79693).
20178 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20179 * ContainerControl.cs: Incorrect contains check in ActiveControl
20180 from previous fix (duh).
20182 2006-10-20 Chris Toshok <toshok@ximian.com>
20184 * PropertyGridView.cs: the dropdown should be MIN(number of items
20185 in list, 15). Fixes #79551.
20187 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20188 Fixes #79384, #79394, #79652, #79667
20191 - Modal windows are now destroyed in the proper order for windows
20193 * ContainerControl.cs:
20195 - ActiveControl setter has more conditions on when to return:
20196 - if we're reselecting the active control, but it actually
20197 didn't have focus (window hidden or some such), it runs
20198 - if the active control being selected doesn't actually
20199 exist in the container, it returns
20203 - The ShowDialog now gets the current form as the owner when
20204 invoking without parameters, and correctly activates the owner
20209 - MessageBox now catches the Escape key to exit
20211 2006-10-20 Chris Toshok <toshok@ximian.com>
20213 * PropertyGridView.cs: fix a number of issues (bug #78565, and
20214 most of bug #79676):
20216 - you can navigate around the property grid with the arrow keys.
20218 - the dropdown is sized properly when the pg has a vertical
20221 - fix the indentation for subentries, and properly select the
20224 - fix the gray bar's drawing (only draw it to the last element,
20225 not for the height of the control. Also make sure we draw that
20226 last horizontal grid line.
20228 - use the same mechanism the datagrid uses wrt the editing textbox
20229 when scrolling/resizing/etc. Namely, we hide it first, do the
20230 operation, then show it again (if it's still visible).
20232 - aggressively remove a lot of unnecessary refreshes (and also
20233 calls to Invalidate(). call more limited variants, and only redraw
20238 - when we're populating the merged collection, fill in the UI
20239 parent with either the passed in item, or the category item we
20242 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20244 * GridItem.cs: drop some fully qualified names.
20246 * GridEntry.cs: add a "UIParent", which is basically the parent
20249 * GridItemCollection.cs: add an IndexOf method.
20251 2006-10-20 Mike Kestner <mkestner@novell.com>
20253 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
20254 a working win32 NC invalidation mechanism, we can't invalidate
20255 menus. [Fixes #79705]
20257 2006-10-20 Mike Kestner <mkestner@novell.com>
20259 * ListBox.cs : don't update the VScrollbar if the list is empty,
20260 just hide it. [Fixes #79692]
20262 2006-10-20 Jackson Harper <jackson@ximian.com>
20264 * RichTextBox.cs: Handle some special chars better, and don't skip
20265 the entire group when we encounter a special char that we don't
20268 2006-10-18 Chris Toshok <toshok@ximian.com>
20270 * PropertyGridView.cs: address a number of issues from bug #79676,
20271 mostly of the cosmetic variety.
20273 - The highlight rectangle for indented items not extends all the
20276 - Indented items aren't indented so much.
20278 - the dropdown is properly sized width-wise if the pg has a
20279 vertical scrollbar.
20281 2006-10-18 Chris Toshok <toshok@ximian.com>
20283 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20284 systray stuff is rather convoluted to begin with.
20286 systray icons are a single window for some reason (that I haven't
20287 figured out yet), and for them, client_window == whole_window.
20288 Given the way the tests are structured elsewhere to determine
20289 which paints are pending (client vs. nc), that situation will
20290 always yield PAINT, not NCPAINT. So, if we have a pending
20291 nc_expose and no pending expose, remove the hwnd from the paint
20292 queue, and also set nc_expose_pending to false, to keep us from
20293 blocking further expose's adding the hwnd to the paint queue.
20295 phew. like i said, a rather convoluted change. Fixes the
20296 notifyicon repaint issues in bug #79645.
20298 2006-10-18 Chris Toshok <toshok@ximian.com>
20300 * Form.cs: when getting the backcolor of the form, don't get
20301 base.BackColor, as this allows parents to influence the background
20302 color. This breaks mdi forms. Instead, if the background_color
20303 is empty, return the default.
20305 2006-10-18 Chris Toshok <toshok@ximian.com>
20307 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20308 to being private instead of internal static.
20310 * Control.cs: remove all the stupid ParentWaitingOnRecreation
20311 crap, it wasn't working for more deeply nested controls anyway,
20312 and we already have the is_recreating flag - use that instead.
20313 Before calling DestroyHandle in RecreateHandle, recurse through
20314 the control tree setting it to true. this returns the recreate
20315 code to much of its original simplicity, while now guaranteeing we
20316 actually recreate everything we're supposed to. This change gets
20317 fyireporting actually showing mdi children.
20319 2006-10-17 Chris Toshok <toshok@ximian.com>
20321 * Form.cs: remove some debug spew, and collapse some duplicate
20322 code at the end of SetClientSizeCore.
20325 - add some more debug spew here too wrt Destroy handling.
20326 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20327 in Control's handling of WM_DESTROY.
20328 - Remove the handling of zombie window DestroyNotifies from the
20329 event loop - we don't need it. Now the only DestroyNotifies we
20330 actually handle are ones generated by X.
20331 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20332 match gtk's (functioning) handling of this. This keep metacity
20333 from leaving droppings in the form of wm borders with no window
20334 contents all over the place.
20337 - add a bunch of debug spew wrt control recreation.
20338 - fix a bug where we weren't tracking Visible properly on
20340 - fixed the WM_PAINT double buffer handling to support re-entrant
20341 calls (yes, i know it's gross, but it's happening to us).
20343 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20344 * ThemeWin32Classic.cs: changed drawing of selected days
20345 to make them look better.
20347 2006-10-16 Chris Toshok <toshok@ximian.com>
20349 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20350 drawing_stack. Nuke the ClientDC/NonClientDC properties.
20352 * XplatUIX11.cs: move away from using hwnd.client_dc and
20353 hwnd.non_client_dc and on to a stack of dc's (and in window's
20354 case, PAINTSTRUCT's), so we can deal with nested Paint calls
20355 without puking or not disposing of Graphics objects.
20357 * XplatUIOSX.cs: same.
20359 * XplatUIWin32.cs: same.
20361 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20363 * FileDialog.cs: Don't call on_directory_changed inside
20364 OnSelectedIndexChanged (it changes the SelectedIndex too).
20365 Instead move it to OnSelectionChangeCommitted.
20367 2006-10-13 Chris Toshok <toshok@ximian.com>
20369 * XplatUIX11.cs: more Destroy work. the current code does the
20370 following things, in order:
20372 1. Enumerates all handles of all controls at or below the one
20373 being destroyed, in pre-order. As it is doing this, it marks the
20374 handles as zombie and clears all references to them.
20376 2. calls XDestroyWindow on the window passed in.
20378 3. SendMessage's WM_DESTROY to all he handles in the accumulated
20381 2006-10-13 Chris Toshok <toshok@ximian.com>
20383 * XplatUIX11.cs: set hwnd.zombie to true before calling
20384 SendMessage (WM_DESTROY). this keeps us from marking the new
20385 window a zombie, and also keeps us from calling sendmessage at
20388 2006-10-13 Jackson Harper <jackson@ximian.com>
20390 * TextControl.cs: Do not show the caret and selection at the same
20391 time. Reduces ugliness by 35%.
20393 2006-10-13 Chris Toshok <toshok@ximian.com>
20395 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20396 zombie after we do the recursive call, so we actually do call
20397 SendMessage on the children controls.
20398 (GetMessage): if we find a pending paint event for a zombie hwnd,
20399 remove the hwnd from the paint queue, or else it will always be
20400 there (and we'll effectively loop infinitely)
20402 2006-10-13 Mike Kestner <mkestner@novell.com>
20404 * MenuItem.cs : add Selected format under keynav too.
20407 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
20409 * PropertyGrid.cs: Fixed some NRE's and small difference between our
20410 implementation and that of MS.
20412 2006-10-13 Chris Toshok <toshok@ximian.com>
20414 * Control.cs (OnInvalidated) only futz with the invalid_region if
20415 the control is double buffered. this fixes the apparent hang in
20416 the ListView unit tests. Someone needs to make the
20417 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20419 2006-10-13 Chris Toshok <toshok@ximian.com>
20421 * PropertyGridView.cs:
20423 - do a little refactoring so that only one place calls
20424 dropdown_form.Hide, and that is CloseDropDown. make everywhere
20425 else call that. Also make it Refresh, since there are redraw bugs
20426 otherwise (we should take a look at that...)
20428 - do a little more refactoring work to share the body of code
20429 involved with the drop down. it was duplicated in the code
20430 dealing with the listbox handling and in the code dealing with the
20433 - add a Capture to the dropdown form's control once it's
20434 displayed, and add a MouseDown handler that checks to make sure
20435 the position is inside the control. If it's not, close the
20436 dropdown. This fixes #78190.
20438 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20439 if the value is different than the initial value.
20441 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
20443 * Control.cs: see #78650
20444 - Fixed GetNextControl for several cases:
20445 - Changed FindFlatForward to return
20446 correct sibling control when more than one
20447 control has same TabIndex as the currently
20449 - Changed FindFlatBackward to loop children
20450 from last to first and apply same logic as in
20452 - Changed FindControlForward to search for
20453 children when control is not a container
20454 but has children, or search for siblings if
20455 control is a container...
20456 - Changed FindControlBackward to continue
20457 searching for child controls when hitting
20460 - Fixed Focus method to update ActiveControl
20461 (FocusTest.FocusSetsActive failure)
20464 - Focus rectangle now refreshes when gaining
20466 - Removed grab for Tab key on IsInputKey that
20467 was keeping tab navigation from working (#78650)
20469 2006-10-13 Chris Toshok <toshok@ximian.com>
20471 * PropertyGridView.cs:
20472 - Rewrite SetPropertyValue to loop over SelectedGridItem's
20475 - Deal with GridItem.Value == null a few places.
20478 - replace the PopulateGridItemCollection with a pair of methods
20479 which compute the intersection of all the properties in the
20480 SelectedObjects array. Fixes #79615.
20482 - Throw ArgumentException from set_SelectedObjects if there's a
20485 - Add GetTarget method which can be used to traverse up the
20486 GridItem.Parent chain. It depends on the assumption that
20487 selected_objects for different GridEntries are always in the same
20488 order (a safe assumption). Use this method and loop over all the
20489 selected objects in the entry when calling RemoveValueChanged and
20492 * GridEntry.cs: Make this handle multiple selected objects.
20493 .Value returns null if not all the selected objects share the same
20496 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
20497 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20498 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20499 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20500 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20501 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20502 add additional functionality.
20504 2006-10-12 Mike Kestner <mkestner@novell.com>
20506 * ErrorProvider.cs : new ToolTipWindow ctor sig.
20507 * HelpProvider.cs : new ToolTipWindow ctor sig.
20508 * ToolTip.cs : remove ToolTip param from Window sig since it is
20510 * ToolBar.cs : add tooltip support. Fixes #79565.
20512 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20514 * ComboBox.cs: move the events in set_SelectedIndex to
20515 after the call to HighlightIndex in order to avoid
20516 possible recursion and subsequent problems with the call
20517 to HighlightIndex and include a range check in
20518 set_HighlightIndex. Fixes #79588
20520 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20522 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
20523 to ui thread's settings instead of sunday.
20524 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20526 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20528 * DateTimePicker.cs
20530 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20531 and implement missing functionality (selecting different parts
20532 of the date and edit them individually with the keyboard).
20534 2006-10-11 Chris Toshok <toshok@ximian.com>
20536 * Control.cs (OnInvalidated): fix NRE relating to last change.
20538 2006-10-11 Chris Toshok <toshok@ximian.com>
20540 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20541 atoms in _NET_WM_STATE here if the window is maximized. We need
20542 to do this because we're *replacing* the existing _NET_WM_STATE
20543 property, so those atoms will be lost otherwise, and any further
20544 call to GetWindowState will return Normal for a window which is
20545 actually maximized. Fixes #79338.
20547 2006-10-11 Jackson Harper <jackson@ximian.com>
20549 * TextControl.cs: Special case for setting selection end to
20550 selection start, we basically kill the anchor.
20551 - some todo comments.
20553 2006-10-11 Chris Toshok <toshok@ximian.com>
20555 * Control.cs: switch to using an "invalid_region" to track which
20556 parts of the image buffer need updating. This is more code than
20557 the simple fix from r66532. That version just attempted to always
20558 fill the entire buffer on redraw, which turns out to be
20559 inefficient when invalidating small rectangles. This version
20560 simply adds the invalid rectangle to the invalid region. When we
20561 get any WM_PAINT message we see if it can be filled using the
20562 image buffer, and if it can't (if the paint event's clip rectangle
20563 is visible in the invalid region) we first fill the image buffer.
20564 So, the image buffer is still a cache, we just fill it lazily.
20566 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20567 need it any longer.
20569 2006-10-11 Chris Toshok <toshok@ximian.com>
20571 * XplatUIX11.cs (SetWindowPos): we need to update both position as
20572 well as size after calling XMoveResizeWindow. This keeps us from
20573 ignoring future SetWindowPos calls. Fixes the disappearing
20574 DateTimePicker in the ToolBarDockExample from bug #72499.
20576 2006-10-11 Chris Toshok <toshok@ximian.com>
20578 * TextBoxBase.cs: reorder things a bit when it comes to
20579 resizing-causing-recalculation. we were recalculating the
20580 document when our position was changed, which shouldn't happen.
20581 We only care about size changes. Clear up some more redundant
20582 recalculation calls while I'm at it. This makes the toolbar dock
20583 example snappy when you're just dragging toolbars around (since it
20584 causes a relayout whenever you move one.)
20586 2006-10-11 Chris Toshok <toshok@ximian.com>
20588 * ToolBarButton.cs (get_Rectangle): this only returns
20589 Rectangle.Empty if Visible == false, or Parent == null.
20590 Parent.Visible doesn't matter.
20592 2006-10-10 Chris Toshok <toshok@ximian.com>
20594 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20595 by .net 1.1, so switch to an internal method instead.
20597 2006-10-10 Chris Toshok <toshok@ximian.com>
20599 * Control.cs (WM_PAINT): when a control is double buffered we draw
20600 initially to the ImageBuffer and then copy from there. But when a
20601 parent control which has child controls is double buffered, the
20602 initial drawing doesn't encompass the entire ClientRectangle of
20603 the parent control, so we end up with uninitialized bits (this is
20604 easily seen by dragging the top toolbar in
20605 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
20606 manually set the ClipRectangle of the paint_event (only the one we
20607 use to populate the ImageBuffer) to ClientRectangle. Fixes more
20608 of the nastiness in bug #72499.
20610 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20611 which we use in Control.cs's WM_PAINT handling.
20613 2006-10-10 Jackson Harper <jackson@ximian.com>
20615 * TextBoxBase.cs: Finish off the autoscrolling stuff.
20617 2006-10-10 Chris Toshok <toshok@ximian.com>
20619 * Cursor.cs: Apply a slightly different patch to the one suggested
20622 2006-10-10 Jackson Harper <jackson@ximian.com>
20624 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20625 not the parent form.
20626 * TextControl.cs: use difference in old line count vs new count to
20627 calculate how many lines were added, this takes into account soft
20628 line breaks properly.
20630 2006-10-10 Chris Toshok <toshok@ximian.com>
20632 * LinkLabel.cs: don't call MeasureCharacterRanges against a
20633 rectangle located at 0,0 and the size of the text. Use
20634 ClientRectangle instead. This fixes rendering of non-left aligned
20637 2006-10-10 Jackson Harper <jackson@ximian.com>
20639 * TextBoxBase.cs: When we set the selection start position the
20641 * TextControl.cs: Need to update the caret when we decrement it to
20643 - Make sure that the selection_visible flag gets reset to false if
20644 the selection isn't visible. Before this you could get it set to
20645 visible by changing the selection start, then changing the end to
20648 2006-10-09 Jackson Harper <jackson@ximian.com>
20650 * TreeView.cs: Don't update scrollbars when we aren't visible.
20651 * TreeNodeCollection.cs: Only need to update scrollbars if being
20652 added to an expanded visible node or the root node.
20654 2006-10-09 Chris Toshok <toshok@ximian.com>
20656 * XplatUIX11.cs (SendMessage): fix NRE.
20658 2006-10-09 Jackson Harper <jackson@ximian.com>
20660 * TextBoxBase.cs: Implement horizontal autoscrolling.
20661 * TextControl.cs: Add a movement types that allows moving forward
20662 and backwards without wrapping.
20664 2006-10-09 Mike Kestner <mkestner@novell.com>
20666 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20667 with focus "expansion" of labels. Fixes #79532 and then some.
20668 * ThemeWin32Classic.cs : add LineLimit to ListView label format
20671 2006-10-09 Jackson Harper <jackson@ximian.com>
20673 * TextBoxBase.cs: Set the default max values to MaxValue since
20674 we use the scrollbar for autoscrolling and the default value is
20675 100. If we don't do this the caret won't keep up with typing
20676 after about 18 characters.
20677 * TextControl.cs: Make sure the selection is offset by the
20678 viewport x. This fixes selection when using auto scrolling.
20680 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
20682 * Form.cs: The active control should be selected after the
20683 OnLoad so that any child control initialization that affects
20684 the selection is done. Fixes #79406
20686 2006-10-06 Chris Toshok <toshok@ximian.com>
20688 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
20689 to have no evil effects.
20691 - Stop selecting StructureNotifyMask on non-toplevel windows.
20693 The only way children should be resized is by using the SWF api,
20694 and we already send WM_WINDOWPOSCHANGED messages in those cases.
20695 Toplevel windows can be interacted with via the window manager,
20696 and so we keep the input mask there.
20698 The other event StructureNotifyMask gives us (that we care
20699 about) is DestroyNotify. The code is already structured such
20700 that it assumes we won't be getting a DestroyNotify event for
20701 the window we pass to XDestroyWindow (which is what
20702 StructureNotifyMask is supposed to guarantee.) So, that code
20703 shouldn't be affected by this either.
20705 - Stop selecting VisibilityChangeMask altogether.
20707 We weren't doing anything with the resulting events anyway.
20709 This vastly reduces the number of X requests and events we see
20710 when resizing/laying out a large ui.
20712 2006-10-06 Chris Toshok <toshok@ximian.com>
20714 * ScrollableControl.cs (DisplayRectangle): we need to take into
20715 account the DockPadding regardless of whether or not auto_scroll
20716 == true. rework this slightly to this effect, and fix bug #79606,
20717 and part of #72499 (you can now see the drag handles and drag
20720 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
20722 * ListViewItem.cs: Collections of selected and checked items are now
20723 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
20724 we mark the collection "dirty".
20725 * ListView.cs: Marked collections readonly. Modified UpdateSelection
20726 to only clear SelectedItems when a new item is selected and MultiSelect
20727 is enabled. CheckedItems and SelectedItems now subscribe to Changed
20728 event of ListViewItemCollection, and mark its list dirty whenever
20729 that event is fire. This allows us to return selected/checked items
20730 in the same order as they are in the Items collection. This matches
20733 2006-10-06 Chris Toshok <toshok@ximian.com>
20735 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
20736 right mouse clicks. Fixes bug #79593.
20738 2006-10-06 Chris Toshok <toshok@ximian.com>
20740 * Splitter.cs: doh, fix splitters that don't want to cancel the
20741 movement when you drag them. Also, impose the limits on the
20742 values we send to the SplitterMovingEvent. Fixes #79598.
20744 2006-10-06 Jackson Harper <jackson@ximian.com>
20746 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
20747 since we use this for auto scrolling also.
20749 2006-10-05 Chris Toshok <toshok@ximian.com>
20751 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
20752 beginning to think that most datagrid column types don't need this
20753 method. Fixes bug #79392.
20755 2006-10-05 Chris Toshok <toshok@ximian.com>
20757 * DataGrid.cs: move back to a more lazy scheme for creating the
20758 CurrencyManager, so we aren't updating it every time you set
20759 either DataSource or DataMember. Also, don't call
20760 RecreateDataGridRows if the currency manager hasn't changed.
20762 2006-10-05 Chris Toshok <toshok@ximian.com>
20764 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
20765 emitted, SelectedIndex should already be updated. Fixes bug
20768 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
20770 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
20771 ToolStripTextBox.cs: Initial commit.
20772 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
20774 2006-10-05 Jackson Harper <jackson@ximian.com>
20776 * TabControl.cs: We need to invalidate the tab control area when
20777 new ones are added (duh).
20779 2006-10-03 Chris Toshok <toshok@ximian.com>
20781 * Form.cs (ProcessDialogKey): if the focused control is in this
20782 form and is a button, call its PerformClick method here. Fixes
20785 2006-10-04 Jackson Harper <jackson@ximian.com>
20787 * TabPage.cs: Ignore setting of Visible, and add an internal
20788 method for setting the controls visibility. TabPage's Visible
20789 property is a little strange on MS, this seems to make us
20790 compatible, and fixes cases where people set all the tab pages to
20792 * TabControl.cs: Use the new internal setting on tab pages
20795 2006-10-03 Mike Kestner <mkestner@novell.com>
20797 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
20799 2006-10-03 Mike Kestner <mkestner@novell.com>
20801 * ListView.cs : use is_visible instead of Visible to check if
20802 scrollbars should be placed/sized. Also some max_wrap_width
20803 love for LargeIcon view. [Fixes #79533]
20805 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
20808 Make set_TextAlign() do actually update the align. Fixed #78403.
20810 2006-10-03 Chris Toshok <toshok@ximian.com>
20812 * DataGrid.cs: fix a crash when switching datasources if the
20813 vertical scrollbar is at someplace other than Value = 0. Also,
20814 reduce the number of recalculation passes we do in SetDataSource
20817 2006-10-03 Jackson Harper <jackson@ximian.com>
20819 * TextBoxBase.cs: Move the if value the same bail check up, we
20820 don't want to empty the document if it is already empty, this
20821 seems to severly mess up the caret. TODO: I should probably fix
20822 the empty statement to update teh caret somehow.
20824 2006-10-03 Chris Toshok <toshok@ximian.com>
20826 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
20827 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
20828 reflection, an internal row type, properties on said type, etc.)
20829 will work with our datagrid. Fixes #79531.
20831 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20833 * FileDialog.cs: Don't crash if a path is not accessible
20834 (System.UnauthorizedAccessException). Fixes #79569.
20835 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
20836 a ':' too. Return unknown icon for those paths/files.
20838 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
20840 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
20841 GetContainerControl returns null.
20843 2006-10-02 Chris Toshok <toshok@ximian.com>
20845 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
20846 call to XGetWindowAttributes instead of "handle". fixes an X
20847 error using notifyicon after the NotifyIconWindow to Form base
20850 2006-10-02 Chris Toshok <toshok@ximian.com>
20852 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
20853 server grab and looping we need to do to get down to the most
20854 deeply nested child window.
20855 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
20856 QueryPointer again after the WarpPointer so we can generate a
20857 proper (fake) MotionNotify event to be enqueued in the destination
20859 (GetCursorPos): call QueryPointer.
20863 2006-10-02 Jackson Harper <jackson@ximian.com>
20865 * NotifyIcon.cs: Derive the notify icon from a form, so things
20866 like FindForm work on it.
20867 - Swallow the WM_CONTEXTMENU message, since that is generated on
20868 mouse down, and context menu is a mouse up kinda guy. I believe
20869 the correct fix here is probably to make the notify icon entirely
20870 NC area, but this seems to work fine for anyone not manipulating
20873 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
20875 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
20876 ToolStripItemCollection.cs, ToolStripLabel.cs,
20877 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
20878 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
20879 Initial implementation.
20880 * TextRenderer.cs: Provide padding to MeasureText.
20882 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
20884 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
20885 of ButtonBaseAccessibleObject. Fix bug #79552.
20887 2006-10-02 Jackson Harper <jackson@ximian.com>
20889 * MdiWindowManager.cs: When maximizing use the containers client
20890 rect, not it's bounds, so nc area is accounted correctly.
20891 - Use the parent form's size for the menu position, since the
20892 client isn't always the full form size.
20894 2006-10-01 Chris Toshok <toshok@ximian.com>
20896 * ScrollableControl.cs: make sure neither right_edge or
20897 bottom_edge are < 0, since they're used as LargeChange for the
20898 horiz/vert scrollbars respectively. Fixes #79539.
20900 2006-10-01 Chris Toshok <toshok@ximian.com>
20902 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
20903 the xplatuix11 code can cause us to destroy/recreate our handle.
20907 - this code can be invoked many times for the same Hwnd. Make
20908 sure we only destroy the client window once (the first time this
20909 method is called). This fixes bug #79544.
20910 - Remove the call to the improperly bound XSync. why we had two
20911 bindings to this, I will never know, but this call resulted in
20912 events being discarded from the queue(!).
20913 - correct a misunderstanding of _XEMBED_INFO - the second atom is
20914 not our current state but the state we wish to be in. So, 0 if
20915 we don't want to be mapped. Change it to 1.
20916 (SystrayRemove): The XEMBED spec makes mention of the fact that
20917 gtk doesn't support the reparent of client windows away from the
20918 embedder. Looking at gtksocket-x11.c seems to agree with this.
20919 The only avenue we have for removing systray icons is to destroy
20920 them. We don't want the handle to go away for good, though, so
20921 call InternalRecreateHandle on the NotifyIconWindow. Fixes
20924 2006-10-01 Chris Toshok <toshok@ximian.com>
20926 * Form.cs (WndProc): inline the native_enabled variable usage into
20927 the cases in which it's used. Fixes #79536.
20929 2006-09-29 Mike Kestner <mkestner@novell.com>
20931 * ListView.cs : toggle the selection state for ctrl clicks in
20932 multiselect mode. [Fixes #79417]
20934 2006-09-29 Mike Kestner <mkestner@novell.com>
20936 * ListView.cs : kill CanMultiSelect and refactor the selection
20937 code to support multiselection in the absence of mod keys. Steal
20938 arrow/home/end keys by overriding InternalPreProcessMessage to
20939 restore regressed keynav behavior.
20942 2006-09-29 Jackson Harper <jackson@ximian.com>
20944 * MdiClient.cs: Repaint the titlebars when the active window is
20947 2006-09-29 Chris Toshok <toshok@ximian.com>
20949 * Application.cs: when entering a runloop with a modal, make sure
20950 the hwnd is enabled. Fixes #79480.
20952 2006-09-29 Chris Toshok <toshok@ximian.com>
20954 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
20955 when ListManager.CanAddRows == false, bump us back one.
20957 * DataGridColumnStyle.cs (ParentReadOnly): remove the
20958 listmanager.CanAddRows check. This makes ArrayLists uneditable
20959 using a datagrid, which is not right.
20960 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
20961 is an IEditable, but call property_descriptor.SetValue regardless.
20964 2006-09-29 Chris Toshok <toshok@ximian.com>
20966 * DataGridBoolColumn.cs: we need to test equality in the face of
20967 possible null values (as is the case with the default NullValue).
20968 This patch keeps us from crashing in that case.
20970 2006-09-29 Jackson Harper <jackson@ximian.com>
20972 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
20973 here, since it will get called for every node collection in the
20974 tree. This is now done in the treeview once the sorting is
20976 * TreeView.cs: Recalculate the visible order, and update the
20977 scrollbars after sorting, set the top nope to the root so that the
20978 recalc actually works.
20980 2006-09-29 Chris Toshok <toshok@ximian.com>
20982 * LinkLabel.cs: more handling of the default link collection in
20983 the face of LinkArea manipulation. The default link collection
20984 contains 1 element (start=0,length=-1). If the user sets LinkArea
20985 to anything and the links collection is the default, clear it.
20986 Then only add the link if its nonempty. Fixes #79518.
20988 2006-09-29 Chris Toshok <toshok@ximian.com>
20990 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
20991 piece correctly when we hit a '\n'. Fixes #79517.
20993 2006-09-29 Chris Toshok <toshok@ximian.com>
20995 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
20996 change the binding of gdk_init_check to take two IntPtr's, and
20997 pass IntPtr.Zero for both of them. Fixes #79520.
20999 2006-09-29 Mike Kestner <mkestner@novell.com>
21001 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21004 2006-09-28 Jackson Harper <jackson@ximian.com>
21006 * XplatUIX11.cs: When translating NC messages make sure we go from
21007 whole window to screen, not client window to screen.
21008 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21009 method doesn't exist
21010 - Skip over controls that aren't forms when arranging.
21012 2006-09-28 Jackson Harper <jackson@ximian.com>
21014 * XplatUIWin32.cs: Clip the rect to the parent window.
21015 * XplatUIStructs.cs: Add clipping modes struct.
21016 * InternalWindowManager.cs: New private method that factors title
21017 bar heights in when calculating the pos of an NC mouse message.
21018 - Use SendMessage to force a paint when the form's size is changed
21019 instead of painting the decorations immediately.
21020 - Don't let the NC button click messages get to DefWndProc,
21021 because they will attempt to handle windowing themself, and this
21022 messes up z-order (it will put them in front of the scrollbars).
21023 * XplatUIX11.cs: Make sure that we don't reset window managers if
21024 we already have one (ie the window is an MDI window).
21026 2006-09-28 Chris Toshok <toshok@ximian.com>
21028 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
21029 menu code really needs going over.
21031 2006-09-27 Chris Toshok <toshok@ximian.com>
21033 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
21034 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21035 window is maximizable. So, we need to make sure that even if we
21036 clear the border/wm frame of those functions, they're still
21037 available (basically, we remove the decoration without removing
21038 the function). Half the fix for #79338.
21040 2006-09-27 Chris Toshok <toshok@ximian.com>
21042 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21045 2006-09-27 Chris Toshok <toshok@ximian.com>
21047 * Splitter.cs: reorder things a bit so that we don't actually
21048 draw/move the splitter until after calling OnSplitterMoving. This
21049 lets users cancel/disallow the movement by explicitly setting
21050 event.SplitX/SplitY. Fixes #79372.
21052 2006-09-27 Jackson Harper <jackson@ximian.com>
21054 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21055 because it is most likely on a window being destroyed, and that
21056 will give us an X11 error.
21058 2006-09-27 Chris Toshok <toshok@ximian.com>
21060 * PropertyGridView.cs: half of the fix for #78190. Clicking on
21061 the dropdown button now toggles between showing and hiding the
21062 dropdown. Also, get rid of dropdown_form_showing and just use
21063 dropdown_form.Visible. We still don't do a grab, but I'll leave
21064 that part to someone who has handled Capture-fu before.
21066 2006-09-27 Chris Toshok <toshok@ximian.com>
21068 * DataGrid.cs: return false if alt isn't pressed when '0' is
21069 pressed. this keeps the '0' key from being swallowed, and fixes
21072 2006-09-27 Chris Toshok <toshok@ximian.com>
21074 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21075 Calling Refresh (in response to a scrollbar event) screws up the
21076 scrollbar painting. Fixes bug #78923.
21078 2006-09-27 Chris Toshok <toshok@ximian.com>
21080 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21081 then insert into hashtable" blocks threadsafe.
21083 2006-09-27 Chris Toshok <toshok@ximian.com>
21085 * MessageBox.cs (CreateParams): the styles should be |'ed with our
21086 baseclass's, since otherwise the
21087 ControlBox/MinimizeBox/MaximizeBox assignments above have no
21088 effect. This gets the close button back in messageboxes.
21090 2006-09-27 Chris Toshok <toshok@ximian.com>
21092 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21093 flag, not just != 0. this makes flags that are actually multiple
21094 bits (like WS_CAPTION) work. fixes bug #79508.
21096 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
21098 * PageSetupDialog.cs: add support for getting and settings the
21099 paper size, source and orientation.
21101 2006-09-26 Chris Toshok <toshok@ximian.com>
21103 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21104 and caption == "", we need to remove the resize handles as well as
21107 * Control.cs (set_Text): turns out that setting Text on a form
21108 should change the WM styles on the window, since if ControlBox ==
21109 false, the only way to get a window border is to have a non-""
21110 Text property. check winforms/forms/text.cs for an example. so,
21111 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21112 update both window styles and title. This fixes a lot of dialogs
21113 (including the preferences dialog in MonoCalendar.)
21115 2006-09-26 Chris Toshok <toshok@ximian.com>
21117 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21118 control isn't a Form), call Win32ShowWindow to hide the window,
21119 but don't update the control Visible property. When we reparent
21120 back to a parent control, call SetVisible in order for the
21121 window's visibility to be reinstated.
21123 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21126 * Control.cs (ControlCollection.Remove): remove that value.Hide()
21127 call for good, since it breaks MonoCalendar (and other things I'm
21128 sure.) Also, set all_controls to null *after* the owner calls,
21129 which end up regenerating it.
21130 (ChangeParent): allow new_parent to be == null, passing
21131 IntPtr.Zero down to XplatUI.
21133 this fixes #79294 the right way.
21135 2006-09-26 Mike Kestner <mkestner@novell.com>
21137 * GridEntry.cs : internal SetParent method.
21138 * PropertyGrid.cs : attach to property changed on the proper
21139 target if we have a hierarchical grid with subobjects. Setup
21140 GridItem.Parent for hierarchical items.
21141 * PropertyGridView.cs : Set value on the correct target for
21142 hierarchical grids. [Fixes #78903]
21144 2006-09-26 Chris Toshok <toshok@ximian.com>
21146 * Control.cs (ChildNeedsRecreating): this should return true if
21147 either we're being recreated and the child is in our list, or our
21148 parent is waiting for our recreation.
21150 2006-09-26 Chris Toshok <toshok@ximian.com>
21152 * Control.cs (ControlCollection.Remove): reinstate the
21153 value.Hide() call as suggested in bug #79294.
21155 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
21157 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21158 coordinates (versus a relative move).
21160 2006-09-26 Chris Toshok <toshok@ximian.com>
21162 * Control.cs: rework child recreation a little bit. It turns out
21163 that we race between the DestroyNotify the WM_DESTROY message. If
21164 the parent gets its DestroyNotify before the child gets the
21165 WM_DESTROY message, the child ends up not recreating (since the
21166 parent finishes its recreation on DestroyNotify, and the child
21167 checks ParentIsRecreating.)
21169 So, instead we store off a list of all the child controls which
21170 need to be recreated when the parent control starts to recreate
21171 itself. Then, when child controls get their WM_DESTROY message we
21172 check to see if they're in the parent's pending recreation list,
21173 and if so, we recreate. This removes all dependency on ordering
21174 from the code and fixes the initial MonoCalendar upgrade dialog.
21176 2006-09-26 Jackson Harper <jackson@ximian.com>
21178 * TextControl.cs: Use the Line to get the length of the line,
21179 since soft line breaks can change the end line.
21181 2006-09-26 Chris Toshok <toshok@ximian.com>
21183 * Control.cs (ControlCollection.AddImplicit): don't add the
21184 control again if it's already in one of our lists. This keeps us
21185 from adding controls over and over again for comboboxes when their
21186 handle gets recreated (as the combobox adds implicit controls in
21187 OnHandleCreated). Fixes the X11 errors in bug #79480.
21189 2006-09-26 Jackson Harper <jackson@ximian.com>
21191 * TextControl.cs: When deleting characters make sure that any
21192 orphaned zero lengthed tags get deleted.
21193 - Fix ToString for zero lengthed tags.
21195 2006-09-25 Jackson Harper <jackson@ximian.com>
21197 * TextControl.cs: When getting a tag at the location there can be
21198 multiple tags at the same spot, these are 0-lengthed tags that
21199 appear when extra formatting has been stuck in a location. We
21200 need to pull out the last of these 0 lengthed tags.
21202 2006-09-25 Jackson Harper <jackson@ximian.com>
21204 * TextControl.cs: Fix print out in debug method.
21205 * TextBoxBase.cs: When text is set bail if we are setting to the
21208 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
21210 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21211 It is now possible to change the selected index in a FontXXXListBox
21212 with the up and down arrow keys from the FontXXXTextBoxes.
21213 Also, send the FontXXXTextBox mouse wheel event to the corresponding
21214 FontXXXListBoxes to match ms.
21216 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
21218 * SystemInformation.cs: Return a clone of the theme's MenuFont because
21219 anyone can dispose it, anytime. All other properties returns enums,
21220 structs or basic types so they don't need such tricks.
21222 2006-09-22 Jackson Harper <jackson@ximian.com>
21229 * XplatUIDriver.cs: Update interface to add a primary selection
21230 flag, so the driver can use the primary selection buffer if
21232 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21234 * RichTextBox.cs: We need to supply the data object to paste now
21235 (so we can choose to supply CLIPBOARD or PRIMARY).
21236 * TextBoxBase.cs: Supply data object to paste (see above).
21237 - Middle click uses the primary selection data object.
21239 2006-09-21 Chris Toshok <toshok@ximian.com>
21241 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21242 of SetWMStyles. It's still a rat's nest and is largely
21243 order-dependent which I dislike immensely. This also fixes the X
21244 button disappearing from toplevel forms.
21246 2006-09-21 Mike Kestner <mkestner@novell.com>
21248 * ListBox.cs: move Jordi's click/dblclick raising code to the
21251 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
21253 * ListBox.cs: Fixes 79450
21255 2006-09-21 Mike Kestner <mkestner@novell.com>
21257 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21258 to deal with people updating the TreeNodeCollection after the tree
21259 is disposed. "Fixes" 79330.
21261 2006-09-20 Jackson Harper <jackson@ximian.com>
21263 * TextControl.cs: Push the cursor record onto the undo stack
21264 before the delete action. This fixes 78651.
21266 2006-09-20 Jonathan Chambers <joncham@gmail.com>
21268 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21269 CreateParams. Fixes 79329.
21271 2006-09-19 Chris Toshok <toshok@ximian.com>
21273 * XplatUIX11.cs: a couple of blanket code massage passes to clean
21274 things up a bit. First, get rid of the NetAtoms array (and the NA
21275 enum), and just embed the atoms as static fields. Also, add a
21276 couple of functions (StyleSet and ExStyleSet) to clean up all the
21277 bitmask testing of styles.
21279 * X11Structs.cs: remove the NA enum, not needed anymore.
21281 2006-09-19 Chris Toshok <toshok@ximian.com>
21283 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21284 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
21285 added cleanup to get MessageBox titles appearing again, which were
21286 broken by my earlier fix for caption-less/ControlBox-less windows.
21288 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
21290 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21291 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21292 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21293 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21294 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21295 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21296 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21297 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21298 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21299 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21300 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21302 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21303 ToolStripButton.cs: Stubs needed for above.
21304 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21306 2006-09-15 Chris Toshok <toshok@ximian.com>
21309 - make the MessageQueues hashtable Synchronized.
21311 - SendMessage: if the Hwnd is owned by a different thread, use the
21312 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21313 thread. Fixes bug #79201.
21315 2006-09-15 Chris Toshok <toshok@ximian.com>
21317 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
21318 ControlBox == false, we disallow maximize/minimize/close. If the
21319 form Caption is "" we also disallow move (and get rid of the Title
21320 decoration). Unfortunately, regardless of how things are set,
21321 we're stuck with the Title and WM menu.
21323 2006-09-15 Chris Toshok <toshok@ximian.com>
21325 * Application.cs: add locking around the static message_filters
21326 ArrayList, part of #79196.
21328 2006-09-15 Chris Toshok <toshok@ximian.com>
21330 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21331 Form.ControlBox == false, the window has no titlebar nor resize
21332 handles. fixes bug #79368.
21334 2006-09-15 Chris Toshok <toshok@ximian.com>
21336 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21337 >= 0. Fixes bug #79370.
21339 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
21340 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21342 Add properties: LayoutEngine, Margin, DefaultMargin.
21343 Add method: GetPreferredSize.
21344 Move layout logic from PerformLayout to layout engines.
21346 2006-09-13 Chris Toshok <toshok@ximian.com>
21348 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
21349 fix for #79326 broke #78718, so this change addresses that.
21351 - in SendWMDestroyMessages remove the call to
21352 CleanupCachedWindows, since we might be recreating the control and
21353 need to maintain the references to right Hwnd handles. Also, set
21354 the zombie flag to true for each of the children in the hierarchy
21355 instead of calling hwnd.Dispose. This will cause GetMessage to
21356 ignore all events for the window except for DestroyNotify.
21358 - In GetMessage, ignore messages except for DestroyNotify for
21361 * Control.cs: revert the is_recreating fix from the last
21362 ChangeLog. It's definitely "right", but it breaks switching from
21363 an MDI form to a non-MDI form. Will need to revisit that.
21365 * Hwnd.cs: add a zombie flag, which means "the
21366 client_window/whole_window handles are invalid, but we're waiting
21367 for the DestroyNotify event to come in for them". Set the flag to
21368 false explicitly if setting WholeWindow/ClientWindow, and also
21371 2006-09-13 Chris Toshok <toshok@ximian.com>
21373 * XplatUIX11.cs: rework window destruction slightly.
21375 - when destroying the windows associated with a control, we don't
21376 need 2 separate XDestroyWindow calls. Just the one for the
21377 whole_window (or for client_window if whole_window is somehow
21378 IntPtr.Zero -- can this happen?) is enough.
21380 - reworked SendWMDestroyMessages slightly, so we always dispose
21381 the child control hwnd's after sending the messages.
21383 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21384 the two places it was used (one was even using hwnd.Handle and the
21385 other hwnd.client_window. ugh), adding another call in
21386 SendWMDestroyMessages. We need this new call because now the
21387 DestroyNotify events in the queue will be ignored for the child
21388 controls (as their hwnd's were disposed, and the window id's
21389 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21391 - this fixes bug #79326.
21393 2006-09-13 Chris Toshok <toshok@ximian.com>
21395 * Control.cs: don't always set is_recreating to false at the end
21396 of RecreateHandle, since sometimes we're not done (and won't be
21397 until WndProc handles the WM_DESTROY message). Also, set
21398 is_recreating to false in the WM_DESTROY handling code. Part of
21399 the fix for bug #79326.
21401 2006-09-13 Miguel de Icaza <miguel@novell.com>
21403 * X11DesktopColors.cs: Start the droppage of debugging messages.
21405 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21407 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
21409 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21411 2006-09-12 Chris Toshok <toshok@ximian.com>
21413 * DataGrid.cs (get_ListManager): if the list_manager is null, try
21414 to create it using SetDataSource. Fixes bug #79151.
21416 2006-09-11 Chris Toshok <toshok@ximian.com>
21418 * XEventQueue.cs: add a DispatchIdle property.
21420 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21421 either the queue is null, or the queue has DispatchIdle set to
21423 (DoEvents): set queue.DispatchIdle to false around the
21424 peek/translate/dispatch message loop in this method. This keeps
21425 Application.Doevents from emitting idle events. Part of the fix
21428 2006-09-11 Chris Toshok <toshok@ximian.com>
21430 * DataGrid.cs (set_DataSource): make this work for both the
21431 winforms/datagrid test and ReportBuilder. It seems as though when
21432 we've created a ListManager (or maybe it's if we have a
21433 BindingContext?), when we set the DataSource it clears the
21434 DataMember to "". otherwise we reuse the datamember. Fixes bug
21437 2006-09-11 Chris Toshok <toshok@ximian.com>
21439 * XplatUIX11.cs: deal with queue being null, which happens in all
21440 the Clipboard functions. Fixes one of the two problems mentioned
21443 2006-09-11 Chris Toshok <toshok@ximian.com>
21445 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21446 button on various spots (including outside the menu) works closer
21447 to MS, and doesn't crash. Fixes #79343.
21449 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
21451 * ListView.cs: Do not initialize item_sorter in init. To match MS,
21452 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21453 and the internal comparer is set. When a new ListViewItemSorter is set,
21454 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21455 was specified. No further processing is necessary if SortOrder is set
21456 to it's current value. If Sorting is modified to None, and View is
21457 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21458 (either custom or our internal ItemComparer) to null, on 1.0 profile
21459 only set item_sorter to null if its our internal IComparer. If Sorting
21460 is modified to Ascending or Descending, then use our internal IComparer
21461 if none is set, and if the current IComparer is our internal one then:
21462 on 2.0 profile always replace it with one for new Sorting, and on 1.0
21463 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21464 Enum.IsDefined to verify whether a valid View value is specified in
21465 its setter. Automatically sort listview items when listview is
21466 created. In Sort, do nothing if ListView is not yet created, or if
21467 no item_sorter is set (no Sorting was set, Sorting was explicitly set
21468 to None or ListViewItemSorter was set to null). Added Sort overload
21469 taking a bool to indicate whether the ListView should be redrawn when
21470 items are sorted (we use this in ListViewItemCollection to avoid double
21471 redraws). Modified our internal IComparer to take the sort order into
21472 account. In Add and AddRange methods of ListViewItemCollection, also
21473 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21474 view), but use overload with noredraw option to avoid double redraw.
21475 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21476 true when View is Tile, and do the same when attempting to set View to
21477 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21478 for selected/checked indices, as it involves overhead when sorting is
21479 done while these collections are not used all that often. Instead
21480 we'll build the indices on demand. Modified IList implementation of
21481 CheckedIndexCollection to use public methods if object is int.
21482 Modified CheckedListViewItemCollection to hide checked items if
21483 ListView.CheckBoxes is false. Removed LAMESPEC remark in
21484 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21485 IList implementation in SelectedIndexCollection to use public methods
21486 if object is int. Modified SelectedListViewItemCollection to hide
21487 selected items if listview is not yet created.
21488 * ListViewItem.cs: CheckedIndices list no longer needs to be
21489 maintained separately (see ListView changes). Also clone font, fixes
21492 2006-09-11 Mike Kestner <mkestner@novell.com>
21494 * ComboBox.cs: if we are updating the contents of the currently
21495 selected index, refresh the control or the textbox selection.
21498 2006-09-11 Mike Kestner <mkestner@novell.com>
21500 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
21501 the 'specified' logic has been moved there. This seems like a bug
21502 in Control.cs, since our current SetBoundsCore completely ignores
21503 the specified parameter. Peter's commit seems to indicate that is
21504 the way the MS control implementation works. [Fixes #79325]
21506 2006-09-10 Jonathan Chambers <joncham@gmail.com>
21508 * XplatUI.cs: Set default_class_name to be composed
21509 of current domain id. This allows MWF to be loaded in multiple
21512 2006-09-09 Miguel de Icaza <miguel@novell.com>
21514 * X11Keyboard.cs: If we are unable to obtain the input method, do
21515 not call CreateXic to create the input context. Should fix
21518 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
21520 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21521 Simplified gnome support by adding more pinvokes to get the
21522 icon for a file or mime type.
21524 2006-09-08 Jackson Harper <jackson@ximian.com>
21526 * MenuAPI.cs: Deslect popup context menu items before closing the
21527 window, so that you don't see the previously selected item
21528 selected when you reopen the menu.
21529 * TextControl.cs: Update the cursor position even if we don't have
21530 focus. This fixes typing in things like the ComboBox. I'm not
21531 totally sure we should always set the visibility if we don't have
21532 focus, but couldn't find any corner cases where the cursor showed
21533 up when it shouldn't.
21535 2006-09-08 Chris Toshok <toshok@ximian.com>
21537 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21538 our arrays are length 256. & 0xff before indexing. Fixes the
21539 crash in bug #78077.
21541 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21543 * ThemeWin32Classic.cs:
21544 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21545 is true. Handle that check box too.
21547 2006-09-07 Chris Toshok <toshok@ximian.com>
21549 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
21552 2006-09-07 Chris Toshok <toshok@ximian.com>
21554 * Control.cs: in set_BackColor only do the work if
21555 background_color != value.
21557 * XplatUIX11.cs: move the clearing of invalid areas (both client
21558 and nc) to the same block of code where we set (nc_)expose_pending
21559 to false. That is, move it from PaintEventEnd to PaintEventStart,
21560 so things that cause invalidates from within OnPaint will trigger
21561 another call to OnPaint. Fixes bug #79262.
21563 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
21565 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21566 * FileDialog.cs: Fix typo
21568 2006-09-07 Jackson Harper <jackson@ximian.com>
21570 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
21571 for tab pages if they have any.
21573 2006-09-06 Mike Kestner <mkestner@novell.com>
21575 * Splitter.cs: use the "current" rect when finishing drag handle
21576 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
21578 2006-09-06 Mike Kestner <mkestner@novell.com>
21580 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21581 support offset splitters. [Fixes #79298]
21583 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
21585 * Mime.cs: Fixed a bug that could override the global mime type
21588 2006-09-05 Jackson Harper <jackson@ximian.com>
21590 * TabControl.cs: Better calculation method for setting the slider
21591 pos. Prevents crashes on really wide tabs.
21592 - Draw Image on tab pages if an image list is used.
21594 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21596 * MonthCalendar.cs: When Font changes, the Size should be
21597 updated to fit the new font's space requirements.
21599 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
21601 * ListBox.cs: If the items are cleared with Items.Clear set
21604 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21606 * MonthCalendar.cs: Handle arrow keys as input keys. Also
21607 fire DateChanged event instead of DateSelected event when
21608 the date was changed by keyboard interaction.
21610 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21612 * DateTimePicker.cs: Handle DateChanged for the associated
21613 month_calendar control, and set month_calendar.Font from
21614 OnFontChanged method, as well as resize the height of the
21615 control when needed. Make PreferredHeight proportional.
21617 2006-09-01 Chris Toshok <toshok@ximian.com>
21619 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21622 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21624 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
21626 * FileDialog.cs: Set ClientSize instead of window size, to allow space
21627 for decorations (Fixes #79219)
21629 2006-09-01 Mike Kestner <mkestner@novell.com>
21631 * ComboBox.cs: first stab at sorting plus some selection handling
21632 fixes to bring us more in line with MS behavior. Also switches back
21633 to index based selection. Alternative patches for index-based
21634 selection were provided by Jackson Harper, Carlos Alberto Cortez,
21635 and latency@gmx.de on bug 78848. I assume they were similar to this
21636 code I've had simmering in my tree forever.
21639 2006-09-01 Chris Toshok <toshok@ximian.com>
21641 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21642 when setting list position guard against ending up with a -1 index
21643 (the other part of the fix for #78812). Should probably make sure
21644 we don't need the analogous fix in the ItemDeleted case.
21647 - in SetDataSource, work around the fact that the way
21648 OnBindingContextChanged is invoked will cause us to re-enter this
21649 method. I'll remove the hack once I investigate
21650 OnBindingContextChanged.
21652 - fix the logic in set_DataSource and set_DataMember (basically
21653 what to do if the other of the two is null.)
21655 - in OnListManagerItemChanged, we need to take into account the
21656 edit row when deciding whether or not to call RecreateDataGridRows
21657 (part of the fix for #78812).
21659 2006-09-01 Jackson Harper <jackson@ximian.com>
21661 * Splitter.cs: Don't do anything if there is no control to affect
21662 (prevents us from crashing in weird tet cases).
21663 * TreeView.cs: Bounding box for the mouse movement reverting
21664 focus/selection back to previously selected node. This matches
21665 MS, and makes the tree a lot more useable.
21666 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21667 use clipping so they are not drawn. This fixes when the control
21668 is set to have a transparent background, or if it was over an
21671 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
21673 * MimeIcon.cs: Improved handling for reading default icons when
21674 using gnome (2.16 made it necessary). Check and read svg icons
21675 first, then 48x48 and then 32x32 icons.
21677 2006-08-31 Chris Toshok <toshok@ximian.com>
21679 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
21682 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
21683 ProcessKeyPreview. Fixes part of #77806.
21685 * DataGrid.cs: big patch.
21687 - revert the queueing up of DataSource/DataMember if inside
21688 BeginInit/EndInit calls. That's not the way the datagrid achieves
21689 its delayed databinding. Instead, call SetDataSource in
21690 OnBindingContextChanged. This mimic's MS's behavior, and fixes
21693 - Also, it wasn't mentioned in #78811, but the test case exhibits
21694 behavior that was lacking in our datagrid implementation - Columns
21695 that have mapping names that don't exist in the datasource's
21696 properties aren't shown. Yuck. To fix this I added the bound
21697 field to the column style, and basically any calculation to figure
21698 out anything about columns uses a loop to find the bound columns.
21699 still need to investigate if I can cache an array of the bound
21700 columns or if the indices must be the same.
21702 - When setting CurrentCell, we no longer abort if the cell being
21703 edited was in the add row. This fixes the other part of #77806.
21705 - The new code also fixes #78807.
21707 * ThemeWin32Classic.cs: perpetrate the same disgusting
21708 column.bound field hack, and only render bound fields.
21710 2006-08-31 Chris Toshok <toshok@ximian.com>
21712 * DataGridColumnStyle.cs: add bound field. this field is true if
21713 the datasource has a property corresponding to the mapping name.
21715 * DataGridTableStyle.cs: set the bound field on the column styles
21716 depending on whether or not we have a column for that property.
21718 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
21720 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
21721 splitter control (fixes #79228)
21723 2006-08-31 Chris Toshok <toshok@ximian.com>
21725 * DataGridColumnStyle.cs: we need to delay the assignment of
21726 property descriptor until the last possible moment due to the lazy
21727 databinding stuff in the datagrid. Also, fix the exceptions
21728 thrown by CheckValidDataSource to match MS.
21730 2006-08-31 Jackson Harper <jackson@ximian.com>
21732 * Form.cs: When activated select the active control, if there is
21733 no active control, we select the first control.
21734 * XplatUIX11.cs: If there is no focus control when we get a
21735 FocusIn event, find the toplevel form and activate it. This
21736 occurs when you popup a window, it becomes the focus window, then
21737 you close that window, giving focus back to the main window.
21739 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21741 * MonthCalendar.cs:
21742 * ThemeWin32Classic.cs: Cache Font in bold style, as well
21743 as StringFormat with Center alignments in MonthCalendar,
21744 instead of creating new ones when drawing the control.
21745 Also, draw the month name in bold style.
21747 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
21750 - PerformLayout(): It would seem MS performs the fill even if the
21751 control is not visible (part of #79218 fix)
21752 - ResetBackColor(): Use the setter to reset the color, to allow
21753 overriders to catch the change.
21755 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
21756 - CreateHandle(): dito (part of $79218 fix)
21757 - Don't set an icon if we have a dialog
21758 * ScrollableControl.cs:
21759 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
21760 - ScrollIntoView(): No need to scroll if control is already visible
21761 (resolves fixme and fixes #79218)
21763 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21765 * MonthCalendar.cs: Change proportions in SingleMonthSize
21766 to match the aspect of the original control.
21768 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
21770 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
21771 get updated when they get maximized.
21773 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
21775 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
21777 2006-08-29 Chris Toshok <toshok@ximian.com>
21779 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
21781 2006-08-29 Jackson Harper <jackson@ximian.com>
21783 * TreeView.cs: Need to track selected node and highlighted node,
21784 they aren't always the same thing, when the mouse is down on a
21785 node it is hilighted, but not selected yet.
21786 - Do the HideSelection stuff right
21787 - Need to focus on rbutton mouse down. And redraw selection when
21788 right click is mouse upped.
21790 2006-08-29 Mike Kestner <mkestner@novell.com>
21792 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
21793 when SubItems.Count < Columns.Count. [Fixes #79167]
21795 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21797 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
21799 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21801 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
21802 from X. Only send based on ConfigureNotify if we don't have the
21803 correct location in hwnd (if the window manager moved us)
21805 2006-08-28 Mike Kestner <mkestner@novell.com>
21807 * ListView.cs: remove a TODO.
21808 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
21809 [Fixes ListView part of #79166]
21811 2006-08-28 Mike Kestner <mkestner@novell.com>
21813 * ListView.cs: move wheel handler to parent since it is focused
21814 instead of the item_control now. [Fixes #79177]
21816 2006-08-28 Mike Kestner <mkestner@novell.com>
21818 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
21819 when the control is focused. [Fixes #79171]
21821 2006-08-28 Mike Kestner <mkestner@novell.com>
21823 * ListView.cs: size the item and header controls for empty and
21824 unscrollable views.
21825 * ThemeWin32Classic.cs: draw disabled backgrounds.
21828 2006-08-28 Chris Toshok <toshok@ximian.com>
21830 * Form.cs: remove unused "active_form" static field.
21832 * Hwnd.cs: lock around accesses to static windows collection.
21834 * Application.cs: lock threads in Exit ().
21836 2006-08-28 Chris Toshok <toshok@ximian.com>
21838 * NativeWindow.cs: lock around accesses to window_collection.
21840 2006-08-28 Chris Toshok <toshok@ximian.com>
21842 * Control.cs: err, fix this the right way, by locking on controls
21843 when using it. not by making it synchronized.
21845 2006-08-28 Chris Toshok <toshok@ximian.com>
21847 * Control.cs: make the static "controls" field synchronized, as it
21848 gets updated from multiple threads.
21850 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
21852 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
21853 Prevent other threads from exiting when calling thread sets quit state.
21854 * XEventQueue.cs: Added PostQuitState property
21856 2006-08-27 Chris Toshok <toshok@ximian.com>
21858 * AsyncMethodData.cs: add a slot for the window handle.
21860 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
21861 window (the destination control's window, not the foster window).
21863 * Control.cs (BeginInvokeInternal): store the window's handle in
21864 the AsyncMethodData.
21867 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
21870 - PostQuitMessage: Removed resetting S.D display handle, we might have
21871 another loop started after calling PostQuitMessage (Fixes #79119)
21872 - Created destructor to reset S.D handle
21874 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
21876 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
21878 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21880 * TextControl.cs (Insert): Update the caret position even if we don't
21881 have a handle yet, just don't call the driver in that case.
21882 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
21883 to the end of the new selection text (Fixes #79184)
21885 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21887 * Form.cs (Activate): Only activate if the handle is created)
21889 - Mark window as invisible when it's disposed
21890 - Check if window handle is created when setting window visible,
21891 instead of relying just on the is_created variable
21892 - Check if object is disposed when creating the control (Fixes #79155)
21894 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21896 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
21897 when allowing layout again. Otherwise we re-generate the anchoring
21898 distance to the border again and actually alter what the user wanted
21899 This is ugly, it'd be better if we used DisplayRectangle instead of
21900 ClientRectangle for Control.UpdateDistances, but that causes us to
21901 have other problems (initial anchoring positons would be wrong)
21904 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21907 - The size and location setters shouldn't go directly to
21908 SetBoundsCore, but to SetBounds, which triggers layout on the
21909 parent, then calls SetBoundsCore. (Related to fix for #78835)
21910 - SetBounds: Moved actual location update code into this function
21911 from SetBoundsCore, to match MS. Added call to PerformLayout if
21912 we have a parent (to trigger resizing of anchored parents if the
21913 child size has changed (see testcase for #78835)
21914 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
21916 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
21918 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21920 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
21921 System.Drawing when a toplevel window gets closed; there might
21922 be other toplevel windows belonging to the same app (Fixes #78052)
21924 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
21926 * FileDialog.cs: After reading FileDialog settings from mwf_config
21927 use Desktop prefix only if a real folder doesn't exist anymore.
21928 * FontDialog.cs: Added char sets.
21929 It is now possible to select the font, size or style with the
21932 2006-08-25 Kornél Pál <kornelpal@gmail.com>
21934 * PrintPreviewDialog.cs: Use assembly name constants.
21936 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21938 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
21939 scrollbar from whacking it's buttons)
21941 2006-08-24 Chris Toshok <toshok@ximian.com>
21943 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
21944 in this patch (aggregating setting Left/Top/Width/Height to
21945 setting Bounds on the scrollbars), but the crux of the fix is in
21946 Recalculate, where we scroll by the remaining scroll_position if
21947 we're hiding a scrollbar. The 2*$5 reward in the comment is
21950 2006-08-24 Jackson Harper <jackson@ximian.com>
21953 * MdiWindowManager.cs: If the form is made a non-mdi window we
21954 need to remove the form closed event so that closing forms works
21957 2006-08-24 Jackson Harper <jackson@ximian.com>
21959 * Control.cs: Make IsRecreating internal so that the driver can
21961 - Temporarily remove the Hide when controls are removed, its
21962 making a whole bunch of things not work because visibility isn't
21963 getting reset elsewhere correctly
21964 * Form.cs: Need to do a full handle recreation when the mdi parent
21966 * XplatUIX11.cs: If we are recreating handles don't dispose the
21967 HWNDs. What was happening is the handles were being recreated in
21968 SendWMDestroyMessages, but then flow continued on in that method
21969 and destroyed the new handles.
21971 2006-08-23 Jackson Harper <jackson@ximian.com>
21973 * Form.cs: MdiClient is always at the back of the bus
21974 * Control.cs: When the order of items in the collection is changed
21975 we need to reset the all_controls array
21976 - do the same sorta setup thats done when adding a control when a
21977 control is set on the collection.
21979 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21981 * TextBoxBase.cs (get_Text): Return an empty array if our document
21982 is empty (fixes #79052)
21984 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21986 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
21987 on WM_SYSCHAR messages (fixes #79053)
21989 2006-08-23 Chris Toshok <toshok@ximian.com>
21991 * DataGrid.cs: fix flickering when scrolling vertically.
21993 2006-08-23 Chris Toshok <toshok@ximian.com>
21995 * DataGrid.cs (EndEdit): only invalidate the row header when we
21998 2006-08-23 Chris Toshok <toshok@ximian.com>
22000 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22001 methods. fixes the flicker when scrolling around.
22003 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22005 * FileDialog.cs: Making sure the control is created before we get a
22006 chance to use it with BeginInvoke (Fixes #79096)
22008 2006-08-23 Chris Toshok <toshok@ximian.com>
22010 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22011 width to use when painting the rows.
22013 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22016 - Throw ArgumentException if a negative value is passed to SelectionLength
22017 - Update the selection end if start is moved. end needs to be always
22018 after start. (Fixes #79095)
22019 - Track selection length; MS keeps the selection length even if start
22020 is changed; reset on all other operations affection selection
22022 2006-08-22 Jackson Harper <jackson@ximian.com>
22024 * TreeView.cs: Make sure both scrollbars get displayed and sized
22025 correctly when the other bar is visible.
22026 - Use the original clip rectangle for checking if the area between
22027 the two scrollbars is visible, not the viewport adjusted clipping
22030 2006-08-22 Jackson Harper <jackson@ximian.com>
22032 * Binding.cs: We don't use IsBinding because it requires the
22033 control to be created, which really shouldn't be necessary just to
22034 set a property on the control.
22036 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22038 * ComboBox.cs: Some CB.ObjectCollection methods must throw
22039 ArgumentNullReferenceException when the argument is null.
22041 2006-08-21 Jackson Harper <jackson@ximian.com>
22043 * Timer.cs: Track the thread that the timer is started in (NOT
22044 CREATED), this way messages for it will only be triggered on its
22046 * XEventQueue.cs: Track the timers here, this makes timers per
22048 * XplatUIX11.cs: The timers are moved to the XEventQueue.
22050 2006-08-19 Chris Toshok <toshok@ximian.com>
22052 * XplatUIX11.cs: after further communication with pdb, we get the
22053 best of both worlds. SetZOrder working for un-Mapped windows, and
22054 no X errors for un-mapped windows.
22056 2006-08-19 Chris Toshok <toshok@ximian.com>
22058 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22059 as it was causing pdn toolbars to not have the correct stacking.
22061 2006-08-18 Mike Kestner <mkestner@novell.com>
22063 * ListView.cs : guard against negative ClientArea.Width in scrollbar
22064 calculation. Not sure why control should ever be setting a negative
22065 width though. Fixes #78931.
22067 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22069 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22070 null items in ObjectCollection class.
22071 * ListBox.cs.: Likewise.
22073 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
22075 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22076 as the base method in ThemeWin32Classic should work fine.
22079 2006-08-18 Jackson Harper <jackson@ximian.com>
22081 * Binding.cs: When validating if the value entered doesn't convert
22082 properly reset to the old value.
22083 * RadioButton.cs: Don't fire click when we get focus.
22085 2006-08-18 Jackson Harper <jackson@ximian.com>
22087 * FileDialog.cs: Paint the selection on the directory combobox the
22090 2006-08-17 Jackson Harper <jackson@ximian.com>
22092 * ErrorProvider.cs: Don't allow the error control to be selected.
22093 * Control.cs: Don't send the SetFocus messages, the control
22094 activation will do this, and if we do it blindly here validation
22097 2006-08-17 Jackson Harper <jackson@ximian.com>
22100 * ContainerControl.cs: Make validation events fire in the correct
22101 order. TODO: For some reason the first validation event is not
22104 2006-08-17 Mike Kestner <mkestner@novell.com>
22106 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22108 2006-08-17 Mike Kestner <mkestner@novell.com>
22110 * ComboBox.cs : implement scroll wheel support for popped-down
22111 state. Fixes #78945.
22113 2006-08-17 Jackson Harper <jackson@ximian.com>
22115 * TreeView.cs: Specify treeview actions (old patch that didn't get
22116 committed for some reason).
22117 - Don't let the mouse wheel scroll us too far. Just want to make
22118 the bottom node visible, not scroll it all the ways to the top.
22120 2006-08-17 Jackson Harper <jackson@ximian.com>
22122 * XplatUIX11.cs: Mouse wheel events go to the focused window.
22124 2006-08-17 Mike Kestner <mkestner@novell.com>
22126 * ComboBox.cs : don't do mouseover selection in simple mode.
22128 2006-08-16 Jackson Harper <jackson@ximian.com>
22130 * Form.cs: Fire the closing events for all the mdi child windows
22131 when a window is closed. If the cancel args are set to true, the
22132 main window still gets the event fired, but it doesn't not close.
22133 * MdiWindowManager.cs: Do this closing cleanup in a Closed
22134 handler, instead of when the button is clicked, so cancelling the
22135 close works correctly.
22136 * ComboBox.cs: Send the mouse down to the scrollbar.
22138 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22140 * ListBox.cs: When passing 'null' to SelectedItem,
22141 set SelectedIndex to -1, to unselect items. This is the
22142 observed behaviour in .Net.
22144 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
22146 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22147 MS flags saying there won't be any. (fixes #78800)
22148 * Control.cs (HandleClick): Made virtual
22150 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
22152 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22153 cultures. Fixed bug #78399.
22155 2006-08-16 Jackson Harper <jackson@ximian.com>
22157 * Form.cs: Use the MdiClients MdiChildren property to access
22158 MdiChildren instead of creating the array from the child controls.
22159 * MdiClient.cs: Maintain a separate array of the mdi children, so
22160 that insertion order is maintained when the Z-order is changed.
22162 2006-08-16 Mike Kestner <mkestner@novell.com>
22164 * ListView.cs : add an ItemComparer and default to it for sorting.
22165 Fixes #79076, but sorting needs a complete overhaul to be compat with
22168 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22170 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22172 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22174 * Hwnd.cs (Mapped): Properly traverse the tree
22176 2006-08-15 Chris Toshok <toshok@ximian.com>
22178 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
22179 pass manager.Current.GetType() to ParseData. It has to be the
22180 property type. So, hold off doing the ParseData until we're in
22181 SetPropertyValue where we know the type. This fixes the crash in
22182 #78821 but the textbox is still empty.
22184 2006-08-15 Chris Toshok <toshok@ximian.com>
22187 - when we're scrolling, only call Edit() again if the
22188 current cell is still unobscured. Fixes bug #78927.
22189 - when handling mousedown on a cell, ensure the cell is visible
22190 before calling Edit.
22191 - remove the properties from DataGridRow, and remove the
22192 DataGridParentRow class altogether.
22195 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22197 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22198 fire OnTextChanged by ourselves. There's no point calling base,
22199 we don't set the base value anywhere else. Fixes #78773.
22201 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22203 * ListBox.cs: Call CollectionChanged when modifying
22204 an item from Items indexer, to update the actual items
22207 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22209 * PrintDialog.cs: Small fixes for focus and a pair of checks,
22210 to match .Net behaviour.
22212 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22214 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22216 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22218 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22220 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22222 * MessageBox.cs: Prevent potential NRE exception.
22223 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22225 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22227 * MessageBox.cs: Calculate the owner of a messagebox, also make
22228 it topmost. Fixes #78753
22230 2006-08-14 Chris Toshok <toshok@ximian.com>
22232 * XplatUIX11.cs: A couple of fixes so that metacity will let us
22233 programmatically move windows. first, set the PPosition hint as
22234 well as the USPosition hint. Second include some code from pdb
22235 that sets the window type to NORMAL when we set the transient for
22236 hint. This is because, in the absence of a window type, metacity
22237 thinks any window with TransientFor set is a dialog, and refuses
22238 to let us move it programmatically. fascists.
22240 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22242 * XplatUIX11.cs: When setting normal hints, take into consideration
22243 an different hints previously set so we don't delete them (fixes #78866)
22245 2006-08-12 Chris Toshok <toshok@ximian.com>
22247 * ToolBarButton.cs: make Layout return a boolean, if something to
22248 do with the button's layout changed.
22251 - add another parameter to Redraw, @force, which all existing
22253 - make the Layout function return a boolean which is true if the
22254 layout has actually changed. Redraw now uses this (and @force)
22255 to determine when to invalidate. At present the only place
22256 where @force can be false is the call from OnResize, when
22257 background_image == null. So, resizing a toolbar when the
22258 layout doesn't change results in no drawing.
22260 2006-08-12 Chris Toshok <toshok@ximian.com>
22262 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
22263 the VScrollBar and HScrollbar reversed. oops.
22265 * DataGrid.cs: fix the logic that assigns sizes to the implicit
22266 scrollbars. we were assigning them twice (once in
22267 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22268 therefore causing two scrollbar resizes (and redraws?) to happen
22271 2006-08-12 Chris Toshok <toshok@ximian.com>
22273 * ToolBarButton.cs: redraw the entire button if the theme tells us
22276 * Theme.cs: add ToolBarInvalidateEntireButton.
22278 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22279 buttons, just the border.
22281 * ThemeNice.cs: redraw the entire toolbar button since we need to
22282 draw the highlight image.
22284 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22285 we need to redraw the entire button (not just the border).
22287 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22289 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22290 for vertical bars. Fixes the mismatches shown by #78513
22292 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
22294 * FileDialog.cs: If a saved/remembered path doesn't exist
22295 anymore, fall back to "Desktop".
22297 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22299 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22300 parent. It's apparently legal to not have one
22302 - SetZOrder: Don't try to set Z-Order on an unmapped window
22303 - CreateWindow: 0,0 are legal coordinates for a window. don't move
22304 it unless the coordinates are negative
22306 2006-08-10 Mike Kestner <mkestner@novell.com>
22308 * ListControl.cs: allow null for DataSource. Clear DisplayMember
22309 when setting to null per msdn docs. Fixes #78854.
22311 2006-08-10 Chris Toshok <toshok@ximian.com>
22313 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22314 flickering by setting a clip rectangle on the Graphics when we
22315 need to redraw just a particular menuitem. Also, rename "OnClick"
22316 to "OnMouseDown" to reflect what it actually is.
22318 * Form.cs: track the OnMouseDown change.
22320 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
22322 * CommonDialog.cs: Properly inherit the CreateParams from the form
22323 and only change what we need. Fixes #78865
22325 2006-08-10 Chris Toshok <toshok@ximian.com>
22327 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22328 flickering in flat mode (and most of the flickering in general) by
22329 only invalidating the button border (and not the entire rectangle)
22330 when the state changes. A couple of cases still flicker:
22331 ToggleButtons, and the dropdown arrow case when the user mouse
22334 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
22336 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22337 for german keyboards. Numlock state shouldn't affect the behaviour
22338 of the Del key. Fixes bug #78291.
22340 2006-08-10 Chris Toshok <toshok@ximian.com>
22342 * ListControl.cs: remove the items.Clear line from BindDataItems,
22343 as this is the first thing done by both subclasses in their
22344 SetItemsCore overrides. Also, add a ItemChanged handler, and when
22345 passed -1, refresh the list. This gets databinding working when
22346 the datasource is set on the list before the datasource is
22347 populated (as in wf-apps/ReportBuilder.)
22349 * ComboBox.cs: remove the argument to BindDataItems. This call
22350 should really go away, and be initiated by the ListControl code.
22352 * ListBox.cs: same.
22354 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22356 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22357 if no data is in the document when the control is displayed
22359 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22361 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22364 - PositionCaret: Allow positioning of caret but don't call methods
22365 requiring a handle if the window isn't created yet
22366 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22367 - owner_HandleCreated: Don't position the caret, just update it's
22368 location. User might have already set a different position
22370 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22372 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22373 windows. Screws up the returned coordinates for child windows.
22374 Fixes #78825. I'm hoping this doesn't break something, since the
22375 code was explicitly put in 8 months ago, but no bug was attached.
22376 Menus still seem to work properly.
22378 2006-08-08 Chris Toshok <toshok@ximian.com>
22380 * DataGrid.cs: make BeginInit/EndInit actually do what they're
22381 supposed to do - delay data binding until the EndInit call. Also,
22382 make the table style collection's CollectionChangeAction.Refresh
22385 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22386 (with action = Refresh) when a consituent table's MappingName is
22389 2006-08-08 Chris Toshok <toshok@ximian.com>
22391 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22392 Invalidate, since changing the text can change the size of the all
22395 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22397 * Form.cs (AddOwnedForm): Still need to add the form to our listif
22398 we don't have it yet
22400 2006-08-08 Chris Toshok <toshok@ximian.com>
22402 * PrintControllerWithStatusDialog.cs: don't .Close() the status
22403 dialog, as this causes X errors later on, since we actually
22404 destroy the window. Instead, .Hide() it.
22406 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22408 * ComboBox.cs: Added focus reflection for popup window
22410 - Removed transient setting for non-app windows for now, not sure it
22412 - Fixed logic checking if we have captions when deciding
22413 override_redirect, WS_CAPTION is two bits and a 0 check was not
22415 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22418 - AddOwnedForm: Don't just add the form to the list, call the property
22419 to ensure the driver is informed about the ownership as well
22420 - CreateHandle: Set the TopMost status in the driver if we have an owner
22421 * XplatUI.cs: Fixed debug statement
22423 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
22424 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22425 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22426 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
22427 TrackBarRenderer.cs: Make constructor private.
22428 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22429 * ProfessionalColorTable.cs: Make properties virtual.
22431 2006-08-06 Duncan Mak <duncan@novell.com>
22433 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22436 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22437 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22438 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22439 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22440 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22441 Initial import of new 2.0 classes.
22443 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22444 * Application.cs: Add 2.0 VisualStyles properties.
22446 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22447 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22448 XplatUIX11.cs: Create property to allow access to existing private
22449 variable "themes_enabled"
22451 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22453 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22454 file size, as otherwise our class libraries fail using windows. Fixes
22457 2006-08-04 Jackson Harper <jackson@ximian.com>
22460 * XplatUIX11.cs: Move the toolwindow window manager creation into
22461 the X11 driver, this way on win32 we can let windows create/handle
22464 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22466 * PrintDialog.cs: Remove some redundant checks, add some others,
22467 clean some code, and move the focus to the text boxes when the
22468 values are incorrect.
22470 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
22472 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22474 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22476 * NumericUpDown.cs: Setting the Minimum and Maximum is now
22477 handled correctly. Fixes bug #79001.
22479 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22481 * PrintDialog.cs: The "Copies" numeric up down must have
22482 set the Minimum property to 1; only if the value is bigger
22483 than 1, activate "Collate" check box. This is the behaviour of .Net.
22484 Also modify the Document elements only if it is not null.
22486 2006-08-03 Jackson Harper <jackson@ximian.com>
22488 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22489 length. (We have a larger array then actual node count).
22491 2006-08-03 Jackson Harper <jackson@ximian.com>
22493 * ComboBox.cs: Don't show selection by default.
22494 - The SelectAll isn't needed here, since the focus code should do
22496 - DDL style lists to manual selection drawing, so when they
22497 get/lose focus they have to invalidate.
22499 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
22501 * TextBoxBase.cs: Don't always show all selections by default.
22503 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
22504 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22505 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22506 Fixed various typos.
22508 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22510 * Control.cs: Removing the controls in a ControlCollection with
22511 Clear now hides the controls as expected. Fixes bug #78804.
22513 2006-08-03 Jackson Harper <jackson@ximian.com>
22515 * Control.cs: Revert previous focus patch, it breaks reflector.
22517 2006-08-03 Jackson Harper <jackson@ximian.com>
22519 * ComboBox.cs: Cleanup selection and focus with the combobox.
22520 This also eliminates some duplicated keyboard code, since now
22521 everything is handled by the main class.
22522 - Make list selection work on mouse up instead of down, to match
22525 2006-08-02 Jackson Harper <jackson@ximian.com>
22527 * Control.cs: Setting focus needs to go through the whole
22528 selection mechanism.
22530 2006-08-02 Chris Toshok <toshok@ximian.com>
22532 * PrintPreviewDialog.cs: change MinimumSize to use
22533 base.MinimumSize so it works.
22535 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
22538 - UpdateCaret: Added sanity check in case caret isn't defined yet
22539 - Line.Delete: Now updating selection and caret markers if we're
22540 transfering a node (Properly fixes #78323)
22541 - SetSelectionEnd: Added sanity check
22542 * TextBoxBase.cs: Removed broken attempt to fix #78323
22544 2006-08-01 Chris Toshok <toshok@ximian.com>
22546 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22547 Close() call is handled in Form, not here.
22549 2006-08-01 Chris Toshok <toshok@ximian.com>
22551 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22554 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22555 for sizes < 100% zoom. The code now aggressively attempts to keep
22556 from calling document.Print (), and tries not to use the scaling
22557 g.DrawImage whenever possible (it still does if you scale to >
22558 100%, since usually that involves huge images).
22560 * PrintPreviewControl.cs: hook up the close button.
22562 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
22563 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22564 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22565 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22566 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22567 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22568 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22569 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22570 Removed [Serializable] for 2.0 Event Handlers.
22572 2006-07-31 Jackson Harper <jackson@ximian.com>
22574 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22575 * TextControl.cs: Uncomment out the body of this method.
22577 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
22579 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22582 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22584 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22585 that embed TextBox and need selections visible even if textbox is not
22586 focused to enforce that behaviour.
22587 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22590 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22593 - Added new SetSelectionStart/SetSelectionEnd overloads
22594 - Fixed viewport width assignment to be accurate
22595 - Adjusted alignment line shift calculations to allow cursor on right
22596 aligned lines to be always visible at the right border (like MS)
22598 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22599 - TextBoxBase_SizeChanged: recalculating canvas on size changes
22600 - CalculateScrollBars: Use ViewPort size instead of window size, to
22601 properly consider space occupied by the border and scrollbars
22603 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
22604 calculations; no longer leaves artifacts
22605 - CaretMoved: Adjusted window scrolling to match MS and fixed several
22606 calculation bugs (Still missing right/center align calculations)
22608 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22610 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22611 use of both scroll rect and clip rect, as they do the same.
22613 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22615 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
22616 in the event handler (fixes #78912)
22618 2006-07-31 Chris Toshok <toshok@ximian.com>
22620 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22621 grid.ListManager.Count, since grid.ListManager might be null.
22622 This of course begs the question "why are we drawing rows for a
22623 grid with no list manager (and therefor no rows)?" Fixes the
22624 crash in bug #78929.
22626 2006-07-31 Chris Toshok <toshok@ximian.com>
22628 * RelatedPropertyManager.cs: Don't always chain up to the parent
22629 ctor. instead, call SetDataSource if the parent's position is !=
22630 -1. Fixes the crash in #78822.
22632 2006-07-31 Chris Toshok <toshok@ximian.com>
22634 * DataGrid.cs (get_ListManager): use field instead of property
22635 accessors for datasource and datamember.
22636 (RowsCount): make internal again.
22637 (OnMouseDown): end edits before resizing columns/rows.
22638 (OnMouseUp): restart edits after resizing columns/rows.
22640 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
22642 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22643 This fixes the situation where the last set cursor is displayed
22644 whenever the mouse is over scrollbars.
22646 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22648 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22649 Document properties, as well as initial values.
22651 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
22653 * XplatUIWin32.cs (SetBorderStyle): Setting both border
22654 and ClientEdge results in a 3-pixel border, which is
22657 2006-07-28 Jackson Harper <jackson@ximian.com>
22659 * TreeNodeCollection.cs: Fix the clear method.
22660 - Fix the Shrink also
22662 2006-07-27 Jackson Harper <jackson@ximian.com>
22664 * TreeView.cs: Make sure the visible order is computed when we
22665 attempt to size the scrollbars (for trees that mess with the
22666 scrolling when they shouldn't.
22667 - Make sure to give the scrollbars valid values.
22669 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22671 * XplatUIX11.cs: Move motion compression code to where it
22672 has less performance impact
22674 2006-07-26 Jackson Harper <jackson@ximian.com>
22676 * UpDownBase.cs: When the control is selected make the child
22677 controls non selectable, so that a click on them won't do a
22678 focus/unfocus cycle.
22679 - Don't give focus to the text box when the spinner is selected.
22680 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
22682 2006-07-26 Chris Toshok <toshok@ximian.com>
22684 * ThemeWin32Classic.cs: add print preview rendering. I'm not
22685 satisfied with this solution. If the bitmaps are small, we should
22686 just cache them in the PrintPreviewDialog and draw them here.
22687 Also, the layout is broken for the 2-up and 3-up cases.
22689 * Theme.cs: add PrintPReviewControlPaint.
22691 * PrintPreviewDialog.cs: first pass implementation.
22693 * PrintPreviewControl.cs: first pass implementation. No
22696 * PrintDialog.cs: only validate fields if that particular portion
22697 of the UI is enabled. Also, set the document's controller to a
22698 PrintControllerWithStatusDialog wrapping the document's print
22701 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
22702 bring up a SaveFileDialog (i hope we don't want to match the
22703 behavior of the crappy windows file entry) and set the
22704 PrinterSettings.PrintFileName accordingly.
22706 2006-07-26 Jackson Harper <jackson@ximian.com>
22708 * ContainerControl.cs: Add a field that disables auto selecting
22709 the next control in a container when the container is activated.
22710 * UpDownBase.cs: Don't select the text box when the up down is
22713 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22715 * XEventQueue.cs: Added methods for peeking (used for compression
22716 of successive events)
22717 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
22718 mouse move events (fixes #78732)
22720 2006-07-25 Jackson Harper <jackson@ximian.com>
22722 * UpDownBase.cs: Use an internal class for the textbox so that we
22723 can control focus. the updown control should always have focus,
22724 if either the text area or the buttons are clicked.
22725 - Send the key messages to the textbox, since it never actually
22727 - Activate and decativate the textbox caret.
22729 2006-07-24 Jackson Harper <jackson@ximian.com>
22731 * Control.cs: Use the directed select when selecting a control,
22732 this way the container controls override will get called and the
22733 whole ActiveControl chain will get triggered. TODO: probably need
22734 to make sure this gets done everywhere instead of the old
22736 * ContainerControl.cs: Implement the directed Select method to
22737 find and activate the correct child control.
22739 2006-07-22 Mike Kestner <mkestner@novell.com>
22741 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
22742 menu handling code so that clicks without a grab work too.
22745 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
22747 * FileDialog.cs: Enable the BackButton when dirstack has one element.
22748 Added some small optimizations.
22750 2006-07-21 Matt Hargett <matt@use.net>
22752 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
22754 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
22756 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
22757 tests pass and match MS in some strange border cases.
22759 2006-07-21 Chris Toshok <toshok@ximian.com>
22761 * ThemeWin32Classic.cs: handle drawing of the relation links and
22762 parent row buttons.
22764 * Theme.cs: change args to DataGridPaintParentRow.
22766 * DataGrid.cs: Don't use controls for the relation links and
22767 parent buttons, so we have to handle all their interactions in
22768 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
22769 when we're navigating through child tables, so we can reinstate
22770 selection, expanded state, current cell, etc.
22772 2006-07-20 Chris Toshok <toshok@ximian.com>
22774 * ToolBar.cs: When we redraw a button, for whatever reason,
22775 there's no reason to redraw the entire toolbar. Also, don't call
22776 Control.Refresh from within Redraw, as it's much heavier than
22777 Invalidate (which is really what we want).
22779 2006-07-20 Chris Toshok <toshok@ximian.com>
22781 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
22782 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
22783 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
22784 traces from within a debug IBindingList datasource
22785 (in mono/winforms/datagrid) for *days*, I've finally gotten things
22786 to work in a similar fashion.
22788 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22790 * ListBox.cs: Don't call Sort () when setting
22791 the Sorted property to false (avoid an unnecessary sort).
22793 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22795 * ListControl.cs: DataSource should throw an ArgumentException
22796 instead of a normal exception when the argument is not of the
22799 2006-07-20 Mike Kestner <mkestner@novell.com>
22801 * Control.cs: add InternalPreProcessMessage to allow us to steal
22802 key events before MWF gets its paws on them. Adapted from a
22804 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
22805 up/down/left/right navigation. Override the new internal control
22806 method to steal the events since they never make it to WndProc.
22807 * ToolBarButton.cs: don't worry about pushed when setting hilight
22808 since the drawing code prefers pushed to hilight. Invalidate on
22809 Hilight changes. Fixes #78547 and #78525.
22811 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22813 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
22814 the canvas size. Fixes #78868
22816 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22818 * Splitter.cs: Track requested split position until first layout
22819 is performed. Fixes #78871
22821 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22823 * Application.cs: Removed code that forces 1.x for the version
22824 number if the version started with 0. Not sure why that code was
22825 there and I couldn't find any bugs that indicated we needed it.
22828 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
22830 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
22831 ResetDefaults(), just write some output to the console until it's
22832 implemented. Fixes bug #78907 for now. Eliminated two warnings.
22834 2006-07-19 Jonathan Chambers <joncham@gmail.com>
22836 * PropertyGridView.cs: set StartPosition of drop down forms
22837 so they appear in correct initial spot. Fixes #78190.
22839 2006-07-19 Mike Kestner <mkestner@novell.com>
22841 * ThemeWin32Classic.cs: use parent background color when drawing
22842 flat toolbars. Restructure the conditionals to make sure non-flat
22843 non-Divider toolbars are filled too. Fixes #78837.
22845 2006-07-19 Mike Kestner <mkestner@novell.com>
22847 * ListBox.cs: Sort on collection changes even if the handle
22848 isn't created yet. Fixes #78813.
22850 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22852 * ListControl.cs: DisplayMember should never be null,
22853 and now we assign String.Empty when null is passed to it (this
22856 2006-07-17 Mike Kestner <mkestner@novell.com>
22858 * ListViewItem.cs: restructure Font and subitem Font handling
22859 to hold a specific font and refer back to owner on null.
22862 2006-07-17 Mike Kestner <mkestner@novell.com>
22864 * ToolBar.cs: bandaid for side-effect of previous patch which was
22865 discarding explicit heights for non-AutoSize toolbars. Need to
22866 extend my format tester to deal with AutoSize=false. Fixes #78864.
22868 2006-07-15 Jackson Harper <jackson@ximian.com>
22870 * LabelEditTextBox.cs:
22871 * TreeView.cs: Use a new LabelEdit class for node editing, this
22872 class automatically 'closes' itself when it gets the enter key or
22874 - Use the client rectangle when setting the trees scrollbars, so
22875 border style is taken into account.
22877 2006-07-14 Jackson Harper <jackson@ximian.com>
22880 * TreeView.cs: Make the editing work similar to MSs, firing the
22881 events correctly and ending edits correctly.
22883 2006-07-14 Mike Kestner <mkestner@novell.com>
22885 * ToolBarButton.cs:
22886 * ToolBar.cs: layout restructuring and redraw enhancements to support
22887 formatting changes gracefully, like setting TextAlign, ImageList,
22888 ButtonSize, and Appearance. Handles explicit button sizing quirks
22889 of the MS controls. Things like flat toolbars ignoring button size
22890 but becoming constant sized at the largest button's size. Normal
22891 toolbars with an image set cannot be shrunk smaller than the image,
22892 but text can be clipped/ignored.
22893 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
22894 is zero. Seems like DrawString should be smart enough to not put
22895 anything on screen though. Also trim labels and ellipsize at the char
22896 boundary, not word.
22897 Fixes #78711 and #78483.
22899 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22901 * FolderBrowserDialog.cs: Disable "New Folder" button and
22902 "New Folder" contextmenu menuitem if a folder like "My Computer"
22905 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22907 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
22908 * FolderBrowserDialog.cs:
22909 - Use MWFConfig to store and read size and position settings
22910 - Added code to create a new folder (button or context menu).
22911 Use TreeView labeledit to change the name of the new folder.
22913 2006-07-14 Jackson Harper <jackson@ximian.com>
22915 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
22916 when the tree is scrolled we end editing.
22918 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22920 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
22923 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
22925 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
22926 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
22927 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
22928 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
22929 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
22930 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
22931 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
22932 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
22933 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
22934 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
22935 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
22936 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
22937 ListViewItemSelectionChangedEventHandler.cs,
22938 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
22939 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
22940 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
22941 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
22942 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
22943 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
22944 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
22945 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
22946 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
22947 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
22948 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
22949 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
22950 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
22951 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
22952 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
22953 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
22954 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
22955 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
22956 WebBrowserNavigatingEventHandler.cs,
22957 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
22959 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
22961 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
22962 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
22963 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
22964 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
22965 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
22966 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
22967 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
22968 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
22969 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
22970 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
22971 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
22972 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
22973 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
22974 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
22975 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
22976 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
22977 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
22978 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
22979 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
22980 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
22981 ListViewItemStates.cs, MaskFormat.cs: Added
22983 2006-07-13 Jonathan Chambers <joncham@gmail.com>
22985 * PropertyGridView.cs: Fix keyboard navigation of drop down.
22986 Patch from eno for bug 78558.
22988 2006-07-13 Jackson Harper <jackson@ximian.com>
22990 * TreeView.cs: When an edit is finished make sure that the
22991 selected node is visible.
22992 - When setting the top/bottom use the scrollbars is_visible, so
22993 everything will be set correctly even if the tree isn't visible
22996 2006-07-13 Jackson Harper <jackson@ximian.com>
22998 * ComboBox.cs: Revert the item->index part of my previous patch.
22999 * TreeView.cs: Use LostFocus instead of Leave for detecting when
23000 the edit box has lost focus (duh).
23001 - Just make the edit box not visible when we get return, that will
23002 take the focus, which will call EndEdit
23003 * TreeNode.cs When we start editing, notify the treeview.
23005 2006-07-12 Jackson Harper <jackson@ximian.com>
23007 * ComboBox.cs: Clear out old items before setting the item list.
23008 This prevents databound controls from having their items added
23010 - Switch the combobox to use indices whereever possible instead of
23011 using Item's. This allows usto navigate through lists that have
23012 more then one item with the same string value (ie a, b, b, a).
23013 - Scroll the listboxes scrollbar when a non visible item is
23015 - Allow keypress to cycle through all the possible values. For
23016 example if you have b1, b2, b3 and hold down the B key all the
23017 values will be cycled through.
23019 2006-07-12 Jackson Harper <jackson@ximian.com>
23022 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23023 this using the internal methods.
23024 * Control.cs: Add OnGotFocusInternal. A new method that allows
23025 controls to "override" OnGotFocus and change focus behavior if
23027 - Same thing for LostFocus
23028 * ComboBox.cs: Pass off focus to the text control properly.
23030 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
23032 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23033 * FolderBrowserDialog.cs: Almost a complete rewrite.
23034 - Better support for Environment.Specialfolders
23035 - Added support for MWFVFS
23036 - Made setting SelectedPath work
23038 2006-07-12 Jackson Harper <jackson@ximian.com>
23040 * Control.cs: Optimze getting all the controls.
23042 2006-07-11 Jackson Harper <jackson@ximian.com>
23044 * ContainerControl.cs: Override SETFOCUS in the container control,
23045 so that it is not selected on mouse click.
23047 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23049 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
23050 Hopefully we will have a better way once all of focus is complete.
23052 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23054 * ThemeWin32Classic.cs: Commented out some debug code and fixed
23055 a compile error with csc.
23057 2006-07-11 Jackson Harper <jackson@ximian.com>
23059 * Control.cs: When hiding a control only select the next control
23060 if the current control was focused.
23061 - Don't handle enter/leave when setting/killing focus, this is
23062 done by the container control.
23063 - Remove is_selected, it's not needed anymore.
23064 - Add utility methods for selecting a child control, and for
23065 firing the Enter/Leave events.
23066 * ContainerControl.cs: When a control is activated fire the
23067 enter/leave events.
23068 - Don't wrap when processing the tab key, so that focus can be
23069 moved outside of the container.
23070 - Use the correct active control
23072 2006-07-11 Jackson Harper <jackson@ximian.com>
23074 * ComboBox.cs: Remove some debug code that was blinding me.
23075 * UpDownBase.cs: These controls actually aren't implicit, they are
23076 visible to the user.
23078 2006-07-10 Chris Toshok <toshok@ximian.com>
23080 * DataGrid.cs: move back to the is_adding boolean field. god i
23081 hate this is_editing/is_adding/is_changing stuff.
23083 2006-07-10 Chris Toshok <toshok@ximian.com>
23085 * DataGridTableStyle.cs: just check if the property type is bool.
23086 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23087 Don't use CanRenderType.
23089 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23090 if our text == NullText. Remove CanRenderType.
23092 * DataGridBoolColumn.cs: nuke CanRenderType.
23094 * DataGrid.cs: reenable some code to end the current edit inside
23095 of set_CurrentCell. This fixes the other 1.1.16 regression.
23096 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23097 Also, remove the visible_row_count arg from CalcRowHeaders, since
23098 we don't need to worry about the actual height of the area.
23100 2006-07-10 Chris Toshok <toshok@ximian.com>
23102 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23105 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23106 the real sense of the IsInEditOrNavigateMode property (true =
23107 navigate, false = edit). Also, update OnKeyPress to reflect this.
23109 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23110 column style exists, we still need to set its property descriptor
23111 to match up with our list manager.
23113 2006-07-10 Chris Toshok <toshok@ximian.com>
23115 * ThemeWin32Classic.cs: implement the new row/header painting
23116 approach. The parent row painting will likely go away and
23117 replaced with label controls, but the rest seems to work ok (and
23120 * Theme.cs: change the way we draw datagrid rows. we don't draw
23121 the row headers as a block now. Instead we draw them in the
23122 normal draw-row loop. Add some calls for drawing parent rows and
23125 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23126 a default table style. Set the defaults from ThemeEngine.Current,
23127 not SystemColors. Fix lots of misc issues with property setters.
23129 * DataGrid.cs: move loads of style information out of this class
23130 as it's being duplicated with DataGridTableStyle. keep track of a
23131 special DataGridTableStyle for the properties we used to mirror
23132 here. Switch all the style properties to access this table style
23133 instead of instance fields of this class. Also add a internal
23134 class to represent parent rows (more needs to be stored here, like
23135 the selection state from the parent table, as well as the
23136 expansion state.) Also, for datasources with relations, do the
23137 right thing for collapse/expand, and add support for the
23138 navigation/parent row buttons.
23140 Lastly, fix the crash in the 1.1.16 build.
23142 * GridTableStylesCollection.cs: make the explicit interface
23143 implementations call the class's methods as opposed to duplicating
23146 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23147 0 so the text doesn't jump around when we move the cursor.
23149 2006-07-10 Jackson Harper <jackson@ximian.com>
23152 * ListBox.cs: Match MS's ToString (this makes debugging focus
23153 stuff infinitely easier).
23155 2006-07-10 Jackson Harper <jackson@ximian.com>
23157 * Control.cs (SelectNextControl): When checking the control's
23158 parent use this instead of ctrl.parent so that null can be passed
23159 to SelectNextControl. (I have unit tests for this).
23160 - Remove unused var.
23162 2006-07-10 Chris Toshok <toshok@ximian.com>
23164 * CurrencyManager.cs: correct one regression, the removal of the
23165 finalType field. Also, add a MonoTODO on CanAddRows, implement
23166 Refresh() correctly, and fix some event emission in
23167 ListChangedHandler.
23169 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23171 * FileDialog.cs: Don't use brackets for new folders if they exist
23172 under *nix. Instead use -(number of existing folders +1).
23174 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23177 - Fixed really nasty bug #78771
23178 - Don't block the whole GUI when reading directories with a lot of
23179 entries. Use an other thread instead and call BeginInvoke to
23180 update the ListView in MWFFileView
23182 2006-07-07 Chris Toshok <toshok@ximian.com>
23184 * Control.cs (Dispose): release any Capture when disposing.
23186 2006-07-07 Chris Toshok <toshok@ximian.com>
23188 * LinkLabel.cs (Select): if we chain up to the parent, set
23189 focused_index to -1 so we'll search for the first available link
23190 the next time the user tabs into us. Also, if the direction is
23191 backward and focused_index == -1, start the search from the last
23194 2006-07-07 Chris Toshok <toshok@ximian.com>
23196 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23197 is beyond the end of the text, don't do anything.
23198 (CreateLinkPieces): set our ControlStyles.Selectable based on
23199 whether or not we have any links.
23200 (Link.Invalidate): use a loop instead of foreach.
23201 (Link.set_Start): null out owner.sorted_links so it'll be
23202 recreated by CreateLinkPieces.
23204 2006-07-06 Chris Toshok <toshok@ximian.com>
23206 * LinkLabel.cs: revert the SetStyle change.
23208 2006-07-06 Chris Toshok <toshok@ximian.com>
23210 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23211 (OnEnableChanged): s/Refresh/Invalidate
23212 (OnGotFocus): if we have a focused index already, refocus it (so
23213 if we mouse out/in to the window it'll focus the right link).
23214 (OnKeyDown): move the tab handling out of here.
23215 (OnLostFocus): don't set focused_index to -1, so we can refocus it
23216 when we lose focus.
23217 (OnMouseDown): don't Capture here - Control handles it. Also,
23218 focus the active link.
23219 (OnMouseUp): don't deal with Capture.
23220 (OnPaintBackgroundInternal): remove.
23221 (OnTextAlignChanged): CreateLinkPieces before calling the
23222 superclass's method.
23223 (OnTextChanged): call CreateLinkPieces before calling superclass's
23225 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23227 (Select): implement this, moving the selection between different
23228 links, and call parent.SelectNextControl if we don't have another
23229 link to focus in the given direction.
23230 (CreateLinkPieces): call Invalidate instead of Refresh.
23232 2006-07-06 Chris Toshok <toshok@ximian.com>
23234 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23235 new LinkLabel internals.
23237 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
23238 over pieces looking for active/focused/etc links. also, deal with
23239 runs of text (and links) with embedded \n's in them, and use
23240 MeasureCharacterRanges instead of MeasureString to figure out the
23241 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
23244 2006-07-04 Jackson Harper <jackson@ximian.com>
23246 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23247 XKB or key auto repeat, do it manually. Without key auto repeat,
23248 when a key is held down we get key press, key release, key press,
23249 key release, ... with auto repeat we get key press, key press, key
23250 press ..., and then a release when the key is actually released.
23252 2006-07-03 Jackson Harper <jackson@ximian.com>
23255 * ThemeWin32Classic.cs: Tabs do not obey normal background color
23256 rules, they are always control color regardless of the background
23259 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
23261 * FileDialog.cs: Added internal class MWFConfig.
23262 Removed Registry support and replaced it with support for the new
23263 MWFConfig class. See MWFConfig comments for more information.
23265 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
23267 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23268 rectangle. Added some patches from eno from bug #78490 and fixed
23269 the arrow position for small up and down CPDrawScrollButtons.
23271 2006-06-30 Jackson Harper <jackson@ximian.com>
23273 * InternalWindowManager.cs: Remove some debug code.
23274 * Form.cs: When an MdiParent is set to null, the window is
23275 "detatched" and becomes a normal window.
23276 * MdiClient.cs: Don't bring the new child form to the front until
23277 it is activated (setting it as active does this), this makes the
23278 previously active forms titlebar get redrawn as inactive.
23280 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
23282 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23283 with later controls
23285 2006-06-29 Mike Kestner <mkestner@novell.com>
23287 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23288 arrow in keynav state. Fixes #78682.
23290 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23292 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
23293 order (fixes #78393)
23295 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
23297 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
23298 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23299 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23300 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23301 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23302 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
23303 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23304 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23305 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23306 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23307 enumerations (FlagsAttribute, SerializableAttribute, added/removed
23310 2006-06-28 Mike Kestner <mkestner@novell.com>
23312 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23314 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23317 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23318 item lines from other area (It also makes BackColor consistent and
23319 compatible with .NET). Fixed bug #78564.
23321 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
23323 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23324 Patch from Eno for #78555.
23326 2006-06-27 Chris Toshok <toshok@ximian.com>
23328 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23330 * DataGridColumnStyle.cs: same.
23332 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23334 * DataGridDrawingLogic.cs: nuke.
23336 2006-06-27 Chris Toshok <toshok@ximian.com>
23338 * DataGridTableStyle.cs: clean up the constructors, and build the
23339 list of child relations for this table. I have no idea if this is
23340 where we should be doing it (it probably isn't), but since we're
23341 already iterating over the properties..
23343 * DataGrid.cs: add row resizing. for now we add a DataGridRow
23344 struct and array for keeping track of row information, similar to
23345 what's shown in a hack on
23346 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23348 * Theme.cs: be consistent about the naming of DataGrid methods,
23349 prefering ColumnWidths and RowHeights over columnsWidths and
23352 * ThemeWin32Classic.cs: same, and also add support for variable
23353 sized rows (and the +/- expansion icons for related rows).
23355 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23357 * TextBoxBase.cs: Applied Eno's patch from #78660
23359 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23361 * Form.cs (ScaleCore): We don't want to scale our form if it's
23362 state is minimized or maximized, but we still need to scale our
23363 child windows. Also, added try/finally block to ensure layout
23364 gets reset (Fixes #78697)
23366 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23368 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23370 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23372 * Form.cs: Fixed c+p error and added check to resize form if minimum
23373 size is bigger than current size (Fixes #78709)
23375 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
23377 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23379 2006-06-26 Mike Kestner <mkestner@novell.com>
23381 * ComboBox.cs: only do Keypress handling in the combo when there
23382 are items in the collection. Fixes #78710.
23384 2006-06-26 Chris Toshok <toshok@ximian.com>
23386 * Binding.cs: make this work bi-directionally. also, clear up
23387 other mixups between Push/Pull Data (e.g. we're supposed to pull
23388 data when validating).
23390 * BindingManagerBase.cs: trim some fully qualified collection
23393 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23395 2006-06-23 Chris Toshok <toshok@ximian.com>
23397 * PropertyManager.cs: It appears (according to the unit tests)
23398 that PropertyManager doesn't use
23399 PropertyDescriptor.AddValueChanged to track propery value changes
23400 in its datasource, but uses the same scheme as Binding, where it
23401 looks for a <Property>Changed event and binds to it.
23403 Also, according to the docs, IsSuspended always returns false for
23404 a property manager with a non-null datasource.
23406 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23408 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23409 need to update the actual DialogResult. (Fixes #78613)
23411 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23413 * Form.cs (ShowDialog): Release any captures before running the
23414 new message pump (fixes #78680)
23416 2006-06-22 Mike Kestner <mkestner@novell.com>
23418 * ListView.cs: Layout column widths properly in details mode even
23419 if HeaderStyle.None is set. Fixes #78691.
23421 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23423 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23425 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23427 * Control.cs (ContainsFocus): Using new driver method to get focused
23428 window, instead of trying to use internal tracking var, which can
23429 recursion issues (Fixes #78685)
23430 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23431 XplatUIWin32.cs: Added GetFocus method to return focused window
23433 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23435 * ColorDialog.cs: when the mouse button is pressed inside the color
23436 matrix, don't let the cursor move out of it until the button is
23437 released, which is the behavior on windows. Changed 'colours' by
23438 'colors' to use the same word consistently.
23440 2006-06-21 Chris Toshok <toshok@ximian.com>
23442 * DataGrid.cs: add in some basic navigation stuff (navigating to a
23443 child relation and back, using a stack). Also, remove
23444 GetDataSource and the code that calls it - it's not needed. Also,
23445 track CurrencyManager.ListName's removal.
23447 2006-06-21 Chris Toshok <toshok@ximian.com>
23449 * CurrencyManager.cs: push some of the original type checking from
23450 BindingContext.CreateBindingManager to here, and remove some of
23451 the finalType stuff. Need more tests to make sure I've got the
23452 ListName part right, and we might need more in SetDataSource.
23454 * PropertyManager.cs: add a ctor that takes just the datasource,
23455 and no property name. Make SetDataSource work with a null
23456 property_name, and make Current return the data_source if the
23457 property descriptor is null. this makes 'string foo = "hi";
23458 BindingContext[foo].Current' return "hi" as it should.
23460 * RelatedCurrencyManager.cs: make this code more generic - there's
23461 no reason the parent manager has to be CurrencyManager, and
23462 there's no reason to pass the DataRelation. It suffices to use a
23463 BindingManagerBase and PropetyDescriptor.
23465 * RelatedPropertyManager.cs: make a similar change here.
23467 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23468 flower I knew it could be.
23470 2006-06-20 Chris Toshok <toshok@ximian.com>
23472 * PropertyManager.cs: the PropertyChangedHandler is invoked when
23473 data in the source has changed and we need to update the control,
23474 so s/PullData/PushData.
23476 * CurrencyManager.cs: Refresh is meant to update the control from
23477 data in the datasource. So, s/PullData/PushData.
23479 * BindingContext.cs: add more ugliness (we weren't handling the
23480 case where data_source = DataTable and data_member = column_name).
23482 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
23483 from the perspective of the datasource. PullData pulls from the
23484 control, PushData pushes to the control.
23486 2006-06-20 Chris Toshok <toshok@ximian.com>
23488 * BindingContext.cs: rewrite the CreateBindingManager code to
23489 handle navigation paths more or less properly. This could
23490 definitely stand some more work, in particular to push the
23491 recursion up to the toplevel. But that relies on fixes in other
23492 places (System.Data comes to mind).
23494 Also, move to a flat hashtable (and encode the twolevel nature of
23495 the dictionary into the hash key). This lets us implement the
23496 IEnumerable.GetEnumerator method.
23498 * RelatedCurrencyManager.cs: new class. Update our view based on
23499 our relation and our parent CurrencyManager's position.
23501 * CurrencyManager.cs: split out some logic from the ctor into
23502 SetView, so it can be called from the new RelatedCurrencyManager
23505 * RelatedPropertyManager.cs: new class. Update our datasource
23506 based on the position of our parent CurrencyManager.
23508 * PropertyManager.cs: split out some logic from the ctor into
23509 SetDataSource, so it can be called from the new RelatedDataSource
23510 subclass. Also, make the Current getter return the value
23511 of the PropertyDescriptor, not the data_source.
23513 * Binding.cs: no need to duplicate the string splitting code here.
23515 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23518 - set_Enabled: OnEnabledChanged is not called if the inherited state
23519 of the control is not altered, even though we might be changing the
23520 internal state of the control (#78458)
23521 - set_Enabled: (Re)Moved the enabling/disabling of the window to
23522 OnEnabledChanged, to allow easy altering of any child window state
23523 - OnEnabledChanged: Added code to enable/disable driver window state
23524 - OnParentEnabledChanged: Instead of firing the event, call
23525 OnEnabledChanged, which will fire the event and also a) set driver
23526 window state and pass the enabled state to any grandchildren (#78458)
23528 2006-06-19 Jackson Harper <jackson@ximian.com>
23530 * InternalWindowManager.cs: We don't set the cursor explicitly
23531 thats done via the response to NCHITTESTs.
23532 - Don't need to adjust for titlebar heights anymore, the
23533 coordinates are coming in the correct coordinates now (see peters
23537 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23539 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23540 being translated relative to whole window, instead of client window.
23541 That caused broken offsets on mouseclick (and caused gas for our
23542 InternalWindowManager)
23544 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23547 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23548 - Undo(): Added replay of cursor move on DeleteChars action; added
23549 calling Undo() again if a recorded cursor move is invalid (to
23550 ensure that some action is performed on Undo)
23551 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23553 2006-06-16 Jackson Harper <jackson@ximian.com>
23555 * MdiClient.cs: Instead of just sizing maximized windows when
23556 there is a resize we also have to adjust the Y of minimized
23557 windows, so they stay pinned to the bottom of the mdi container.
23558 - Eliminate separate tracking of the active control, we can just
23559 get this from the controls collection.
23560 - Paint the decorations for the newly activated titlebar so we get
23562 * InternalWindowManager.cs:
23563 * ThemeWin32Classic.cs: Minimized windows get all three buttons
23564 even if they are a tool window.
23566 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23568 * TextControl.cs (Undo): Handle non-existent cursor locations in the
23569 undo buffer, these can happen when text was deleted and the cursor
23570 was recorded first. Since we will also have a recorded cursor
23571 after the delete this is not an issue. (Fixes #78651)
23573 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
23575 * AccessibleObject.cs: Remove dependence on Control.is_selected;
23576 instead properly track control states internally (allows us to
23577 remove is_selected from Control)
23579 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23581 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23582 whose width is not a multiple of 8.
23584 2006-06-13 Jackson Harper <jackson@ximian.com>
23586 * MdiClient.cs: Only maximize the next child if the current one
23589 2006-06-13 Chris Toshok <toshok@ximian.com>
23591 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23592 modified. Also, guard against grid or grid_drawing being null in
23595 * DataGrid.cs: Reformat tons of getters/setters. In the
23596 DataMember setter, just call SetNewDataSource instead of
23597 duplicating some of its functionality. In SetNewDataSource, don't
23598 check ListManager for null, since the property getter creates the
23601 * DataGridTableStyle.cs: don't set TableStyle or call
23602 SetDataGridInternal on the column here, it's done in
23603 GridColumnStylesCollection.Add.
23605 * GridColumnStylesCollection.cs: fix all the explicit interface
23606 implementations to just call our methods. Nuke AddInternal() and
23607 move the body of it to Add(). Also, add a call to
23608 column.SetDataGridInternal to Add().
23610 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23611 base()+duplicate code. Also, use the Format property instead of
23612 format to generate an Invalidate ala MS. Lastly, create the
23613 textbox here, unconditionally.
23614 (set_Format): call Invalidate.
23615 (get_TextBox): no need to call EnsureTextBox.
23616 (Commit): remove the message box.
23617 (Edit) remove the call to EnsureTextBox.
23618 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23619 (EnterNullValue): no need to check textbox for null.
23620 (HideEditBox): no need to check textbox for null.
23621 (SetDataGridInColumn): add the textbox to the grid's controls.
23622 (EnsureTextBox): nuke.
23624 2006-06-13 Jackson Harper <jackson@ximian.com>
23626 * MdiWindowManager.cs: Hook up to the maximized menus paint event
23627 and redraw the buttons when needed. Unhook when the window is
23629 * MainMenu.cs: Add an internal Paint event, the mdi window manager
23630 needs this so that it can redraw its buttons when the menu is
23632 * InternalWindowManager.cs:
23633 * Form.cs: The method order has changed for DrawMaximizedButtons,
23634 so that it can be a PaintEventHandler.
23636 2006-06-13 Jackson Harper <jackson@ximian.com>
23638 * MdiClient.cs: When we close a maximized mdi window, the next mdi
23639 window is activated and maximized, even if it wasn't before.
23640 - When a new window is activated repaint the decorations of the
23641 old one, so that it no longer has the Active "look" (the blue
23643 * InternalWindowManager.cs: Open up CreateButtons to base classes
23644 so they can recreate the buttons on state changes.
23645 - If a window is maximized give it all three buttons
23646 * MdiWindowManager.cs: Create the titlebar buttons when the state
23647 is changed, this is needed because a toolwindow will not have all
23648 three buttons until it is maximized.
23650 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
23652 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23655 2006-06-12 Jackson Harper <jackson@ximian.com>
23657 * KeysConverter.cs: Make sure we handle the Ctrl special case
23658 if its the only key.
23660 2006-06-12 Jackson Harper <jackson@ximian.com>
23662 * Theme.cs: Add a method to get the size of a managed window
23664 * InternalWindowManager.cs: Remove the ButtonSize property, this
23665 should be retrieved from the theme.
23666 * MdiWindowManager.cs: Get the button size from the theme
23667 * ThemeWin32Classic.cs: Make the method to get the managed window
23668 titlebar button size public.
23669 - Handle the different button sizes of maximized toolwindows
23670 (should match any maximized window).
23671 - Get the titlebar height from the theme, not the WM (which gets
23672 it from the theme).
23674 2006-06-12 Jackson Harper <jackson@ximian.com>
23676 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
23677 event down to the mdi window manager.
23678 - Expose some extra stuff to base classes
23679 - Make sure to end the Capture on an NC Mouse up, so that we can
23680 get double clicks properly, and the sizing doens't stick.
23681 - When doing PointToClient contain it in the workable desktop
23682 area, this prevents windows from changing size when the cursor is
23683 pulled outside of the working area while sizing.
23684 * MdiWindowManager.cs: When we get a double click maximize the
23686 - Reset the cursor after handling mode changes.
23688 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
23690 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
23691 current desktop, instead of just assuming a 0, 0 origin. This
23692 is needed for our internal window manager, to know the top
23693 margin of the desktop
23695 2006-06-12 Chris Toshok <toshok@ximian.com>
23697 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
23698 we need this to get rid of the selected background in the bool
23700 (CancelEditing): move the ConcedeFocus call to above the Abort
23701 call. Also, set is_changing to false and invalidate the row
23702 header if we were changing before.
23703 (ProcessKeyPreviewInternal): remove, since noone outside this
23704 class calls it anymore. Roll the code into ProcessKeyPreview.
23705 (EndEdit): remove the internal version.
23706 (InvalidateCurrentRowHeader): make private.
23708 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
23709 Keys.Escape handling (and with it the last call to
23710 DataGrid.EndEdit from outside the class.)
23713 2006-06-12 Chris Toshok <toshok@ximian.com>
23715 * DataGridTextBox.cs (.ctor): isedit defaults to false.
23716 (OnKeyPress): set isedit to true.
23717 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
23718 already handled by the grid.
23720 * DataGrid.cs (set_CurrentCell): more work here. it's still not
23722 (set_DataSource): SetDataSource always returns true, so stop
23723 putting it in an if statement.
23724 (EndEdit): get rid of some {}'s
23725 (ProcessGridKey): return true in case Keys.Escape.
23726 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
23727 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
23728 PositionChanged, stopped connecting to CurrentChanged.
23729 (GetDataSource): simplify this a bunch.
23730 (SetDataSource): change return type from bool to void.
23731 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
23732 to this, and make sure we don't set ListManager.Position inside
23734 (OnListManagerItemChanged): if we're passed an actual index,
23737 * CurrencyManager.cs (set_Position): don't call PullData here.
23739 2006-06-09 Jackson Harper <jackson@ximian.com>
23741 * TreeNode.cs: Recalculate the visible order before doing the
23742 Expand/Collapse Below calls, because those calls generate an
23744 - Reduce calls to the TreeView property, which is mildly expensive
23745 by using a local var.
23746 * Form.cs: Layout the MDI child windows when creating the parent
23748 - Don't use the internal constructor anymore
23749 * MdiClient.cs: use the parent form width/height (if available)
23750 when laying out the child windows, we do this because the
23751 mdiclient isn't docked yet when the initial layout is done.
23752 - Don't need an internal constructor anymore.
23754 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23756 * FileDialog.cs: handle access errors when trying to create a folder
23757 or changing to a directory. No need to initialize out parameters.
23759 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23761 * FileDialog.cs: Append a number when creating a new folder if the
23762 folder already exists (use parenthesis instead of square brackets)
23764 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23767 - Disabled registry support for windows and added better registry
23768 error checking for other systems (need to investigate why it
23769 works perfectly on my system)
23770 - If a folder already exist show an error MessageBox instead of
23771 trying to create an indexed name.
23772 - Fixed a non intentional typo.
23774 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23776 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
23778 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23780 * FileDialog.cs: When creating a new folder don't crash if the
23781 folder already exists.
23783 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23785 * FileDialog.cs: Allmost a complete rewrite.
23786 - added a "virtual" file system that handles the differences
23787 between unix and windows file systems (especially the directory
23788 structure). Moved most of the directory and file handling code
23790 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
23791 UnixFileSystem and FSEntry.
23792 - Recently used folder/directory, size, location and used file names
23793 (file name ComboBox) are now stored in the registry and get read
23794 before the dialog shows up (fixes part 6 of bug #78446).
23795 - Creation of new folders/directories is now possible (context menu
23796 or ToolBar). Added TextEntryDialog for this that fills in the gap
23797 until ListView.LabelEdit works.
23798 - Fixed cursor handling (bug #78527) and focus handling for
23800 - Various "Search in" ComboBox enhancements. The content of the
23801 dropdown listbox now almost matches ms.
23802 - Changed the behaviour when the user switches to SpecialFolder
23803 Recent to show the ListView in View.Details.
23804 - Beside using the ToolBar to change the View property of the
23805 file ListView it is now possible to use the context menu too.
23807 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23809 * ComboBox.cs: Don't create a new ObjectCollection when an item
23810 gets inserted. Just insert the item in the existing object_items
23813 2006-06-08 Jackson Harper <jackson@ximian.com>
23815 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
23816 that the treeview and root node checks are done also, this fixes a
23817 regression i caused in the unit tests.
23819 2006-06-07 Wade Berrier <wberrier@novell.com>
23821 * RichTextBox.cs: More ISO8859-1 -> unicode
23823 2006-06-07 Mike Kestner <mkestner@novell.com>
23825 * ComboBox.cs : use items to hold highlight/selection so that
23826 collection insertions don't require synchronization.
23828 2006-06-07 Jackson Harper <jackson@ximian.com>
23830 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
23831 routine. We now always keep the sized edge at the cursor instead
23832 of computing movement and adjusting rects. There is one buglet
23833 with this method though when the cursor is moved over area that
23834 the window can not expand too (such as the toolbars on the desktop).
23836 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23838 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
23839 here. Fixes crash on startup in AlbumSurfer.
23841 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
23843 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
23846 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23848 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
23849 statement to avoid calling XNextEvent which will block if another thread
23850 took the event that we were expecting. Fixes bug #78605.
23852 2006-06-07 Mike Kestner <mkestner@novell.com>
23854 * ListView.cs : isolated checkbox clicking from the selection logic.
23855 Toggle check state on item doubleclicks. Really fixes #78454 part2.
23857 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23859 * Form.cs: Check that the value passed to Form.DialogResult
23860 is a valid enum value.
23862 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23864 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
23865 Computer'. Clicking it in the network view goes to 'My Computer'.
23866 Added CIFS filesystem type. Display the mount point of filesystems.
23867 Avoid duplicate mount points (happens for me with CIFS);
23869 2006-06-06 Jackson Harper <jackson@ximian.com>
23871 * InternalWindowManager.cs: Draw the maximized windows buttons
23874 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23876 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
23877 all other dialogs. Fixes bug #78585.
23879 2006-06-06 Mike Kestner <mkestner@novell.com>
23881 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
23882 Only invalidate checkbox on checkstate changes to avoid flicker.
23883 * ListBox.cs : avoid unselect/select when clicking selected item.
23884 avoid reselection flicker for already multiselected items.
23887 2006-06-06 Jackson Harper <jackson@ximian.com>
23889 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
23890 the parent form so that the menu is removed if needed.
23892 2006-06-06 Mike Kestner <mkestner@novell.com>
23894 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
23895 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
23897 2006-06-06 Mike Kestner <mkestner@novell.com>
23899 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
23902 2006-06-06 Jackson Harper <jackson@ximian.com>
23904 * Control.cs: Use the property (instead of the field) to get the
23905 default cursor so it is instantiated correctly.
23906 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
23907 resizes so we need to manually repaint the window decorations here.
23908 - Set the titlebar button locations as soon as they are created,
23909 otherwise they are not set correctly on win32.
23911 2006-06-06 Chris Toshok <toshok@ximian.com>
23913 * CurrencyManager.cs (set_Position): call PullData before
23915 (AddNew): after calling IBindingList.AddNew, update our
23916 listposition, and call OnCurrentChanged/OnPositionChanged (without
23918 (OnCurrentChanged): remove the call to PullData from here.
23919 (OnItemChanged): remove the call to PushData from here.
23920 (OnPositionChanged): change the test from == null to != null to
23921 match the other methods.
23922 (ListChangedHandler): the grossest part of the patch. Implement
23923 this such that it passes the unit tests in CurrencyManagerTest and
23924 the output more or less matches that of MS's implementation.
23926 2006-06-06 Mike Kestner <mkestner@novell.com>
23928 * ListView.cs : only update check state on single click.
23929 * ThemeWin32Classic.cs : fix focus drawing for details view without
23930 fullrowselect. Fixes #78454.
23931 * XplatUIX11.cs : fix for double click emission.
23933 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
23935 * PropertyGridView.cs : Applied Atsushi's patch to fix
23936 font dialog bug (#78197).
23938 2006-06-05 Jackson Harper <jackson@ximian.com>
23940 * TreeNode.cs: Compute the next node for expanding/collapsing
23941 correctly. We now factor in nodes without a NextNode
23942 correctly. (Fixes somes cases in nunit-gui).
23943 * InternalWindowManager.cs: Set the bounds when updating the
23944 virtual position of a tool window.
23946 2006-06-05 Chris Toshok <toshok@ximian.com>
23948 * DataGrid.cs: rename cached_currencymgr to list_manager.
23949 (set_CurrentCell): move SetCurrentCell code here, and clean it up
23951 (CurrentRow, CurrentColumn): single accessors so we can make the
23952 cursor movement code a lot easier to understand.
23953 (CurrentRowIndex): implement this in terms of CurrentRow.
23954 (BeginEdit): clean this up a bit.
23955 (CancelEditing): sort out the is_editing/is_changing/is_adding
23957 (EndEdit): minor changes.
23958 (OnKeyDown): add a comment about a (most likely) unnecessary
23960 (OnMouseDown): cancel editing when we click on a row header. And
23961 use the CurrentRow setter, not CurrentCell.
23962 (ProcessDialogKey): directly call ProcessGridKey.
23963 (UpdateSelectionAfterCursorMove): factor out this common block of
23964 code (it's used everywhere that we move the cursor by updating row
23966 (ProcessGridKey): pretty substantial overhaul. Use the
23967 CurrentRow/CurrentColumn properties to make the code a lot more
23968 readable. Only use the CurrentCell property when we have to
23969 modify both row and column at once. Tab behavior is still broken,
23970 and Delete is untested.
23971 (Select): if we have no selected rows, set selection_start to
23973 (EditCurrentCell): rename EditCell this. It was only ever invoked
23974 with CurrentCell as the arg, so drop the arg and rename it.
23976 * DataGridColumnStyle.cs: clean up the constructors a little, and
23977 drop CommonConstructor().
23979 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
23980 actually get notified when the user hits it.
23981 (ProcessKeyMessage): *substantially* simplify this method.
23982 There's no reason (that I can see) for the textbox to be making
23983 calls into the datagrid at all. Remove all of them but the ones
23984 for Enter handling. those will take some more work.
23986 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
23987 calling HideEditBox.
23988 (HideEditBox): if we have an active textbox, render it invisible
23989 without causing a re-layout of the datagrid.
23991 2006-06-05 Mike Kestner <mkestner@novell.com>
23993 * ListView.cs : fix NRE crasher when focuseditem is cleared by
23994 collection changes by resetting it to Items[0]. Fixes #78587.
23996 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23998 * MessageBox.cs: if the height of the text is larger than the icon_size,
23999 use that. Fixes bug #78575.
24001 2006-06-05 Jackson Harper <jackson@ximian.com>
24003 * TreeView.cs: Fix line drawing when scrolling. To do this each
24004 node is basically responsible for drawing its entire horizontal
24005 area. When drawing a node it draws its parent node lines if
24007 - Adjust the clip area to the viewport rectangle
24008 - Fix Left/Right key handling to match MS. (It expand/collapses
24009 and moves to parents/first child but does not move selection to
24011 - Fix SetTop to work with new bound calculation code
24012 - When scrollbars are no longer needed we need to reset scrolling
24013 vars and recalculate the visible order so the redraw is correct
24014 * TreeNode.cs: We can't expand/collapse nodes with no children.
24016 2006-06-03 John Luke <john.luke@gmail.com>
24018 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24019 so the colors work without dev packages
24021 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
24024 - Select: Implemented to just use activate. Seems to match MS
24025 behaviour closest. Documented to only do actual control walking
24026 based on it's parameters if in a container control so I moved
24028 - Removed selection check logic from our internal Select() method
24029 * ContainerControl.cs:
24030 - Select: Moved selection logic from Control here, since MS documents
24031 that containers obey the bool arguments. No longer calling base
24033 2006-06-02 Jackson Harper <jackson@ximian.com>
24035 * TreeView.cs: If the selected node isn't changed when we get
24036 focus update the previously selected node so that we see the
24039 2006-06-02 Mike Kestner <mkestner@novell.com>
24041 * ComboBox.cs: restructure grab and general mouse event handling.
24042 Make the composite control raise mouse events like it was a single
24043 control for leaves/enters/motion/up/down events. fix dropdown list
24044 coordinate mangling and refactor it into the scrollbar subclass to
24045 reduce code duplication. Fixes #78282 #78361 and #78457.
24047 2006-06-02 Mike Kestner <mkestner@novell.com>
24049 * ScrollBar.cs: remove Capture setting/clearing, as it happens
24050 automatically in the Control.WndProc.
24052 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24054 * FileDialog.cs: fix crash when running SharpChess, which sets the
24055 FilterIndex to 2 with only one Filter.
24057 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24059 * ToolBar.cs: add SizeSpecified property.
24060 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24061 try to figure out our real size, otherwise fallback to what the
24064 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24066 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24067 * Control.cs (WndProc): MS always calls the DefWndProc to pass
24070 2006-06-01 Mike Kestner <mkestner@novell.com>
24072 * ListView.cs: revamp the focus management in ListView. It still
24073 causes churn of LostFocus/GotFocus emissions on clicks, but it's
24074 better than not handling focus at all. Will revisit when pdb feels
24075 the general focus handling is solid. Fixes #78526.
24077 2006-06-01 Jackson Harper <jackson@ximian.com>
24079 * TreeView.cs: Set the default border style in the constructor.
24080 - Move painting to use OnPaintInternal instead of capturing
24081 WM_PAINT, this is the correct way of doing things
24082 - UpdateBelow shouldn't invalidate the scrollbar area
24083 - Cap the top on update below in case the node was above the top
24084 of the viewport rectangle.
24085 - ExpandBelow and Collapse below need to obey Begin/End Update.
24086 * TreeNode.cs: Make is_expanded internal so the treenode
24087 collection can change it without firing the whole event chain.
24088 * TreeNodeCollection.cs: When clearing all the child nodes make
24089 sure to recalc the visible order.
24090 - Improve algo for remove the top node
24092 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24094 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24095 SendMessage directly calling window procedures, which in turn might
24098 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24100 * Control.cs: Don't handle WM_SETFOCUS if the same window already
24101 has focus (works around X11 sending a FocusIn after our SetFocus)
24102 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24104 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
24106 * Mime.cs: Fix for the NET_2_0 build.
24107 NameValueCollection needs StringComparer now.
24109 2006-05-31 Chris Toshok <toshok@ximian.com>
24111 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24112 return (via an out parameter) the starting X of the column.
24113 (UpdateVisibleColumn): track change to FromPixelToColumn.
24114 (HitTest): add a ColumnResize case here.
24115 (DrawResizeLine): new function, probably poorly named.
24117 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
24118 only need to keep one reference.
24119 (set_ListManager): same.
24120 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24121 Also, add support for HitTestType.ColumnResize.
24122 (OnMouseMove): add column resize behavior here, and change the
24123 cursor to the correct one as we move around the datagrid.
24124 (OnMouseUp): terminate the column resize if we're resizing.
24125 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24126 for the current cell.
24127 (ConnectListManagerEvents): use cached_currencymgr.
24128 (DisconnectListManagerEvents): fill this in, using
24129 cached_currencymgr.
24130 (SetCurrentCell): remove cached_currencymgr_events handling.
24131 (SetDataMember): only call DisconnectListManagerEvents if
24132 cached_currencymgr is != null.
24133 (SetDataSource): same.
24134 (OnListManagerCurrentChanged): cached_currencymgr_events ->
24135 cached_currencymgr.
24137 2006-05-31 Jackson Harper <jackson@ximian.com>
24139 * BindingManagerBase.cs: Remove somedebug code that creeped into
24141 * TreeNode.cs: We get the indent level dynamically right now, so
24142 don't track it as a member.
24143 * TreeNodeCollection.cs: Make sure all nodes added to the list
24144 have parents, treeviews/topnodes setup properly.
24145 - Don't attempt to track indent level.
24147 2006-05-30 Jackson Harper <jackson@ximian.com>
24149 * BindingContext.cs: Create the currency manager tables here.
24150 This allows us to more easily create null tables (when bad data
24151 members are used), and more easily create related currency
24153 * CurrencyManager.cs: All the table creation stuff is done by the
24154 binding context now.
24155 - Current should throw an exception if listposition is -1.
24156 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24159 2006-05-30 Mike Kestner <mkestner@novell.com>
24161 * ListView.cs: allow reexpansion of zero-width column headers.
24164 2006-05-28 Chris Toshok <toshok@ximian.com>
24166 * CurrencyManager.cs (get_Current): after the late binding
24167 listposition = -1 fix, we need to guard against it here and return
24168 null, otherwise we raise an exception (which is swallowed
24169 elsewhere, and breaks datagrid databinding.)
24171 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24173 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24174 than WM_SYSKEY, don't throw if get something unexpected (#78507)
24176 2006-05-26 Jackson Harper <jackson@ximian.com>
24179 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24180 values, it's faster and it's all we care about (we don't care if
24181 the names aren't equal).
24182 * KeyboardLayouts.cs: Eliminate some dead code.
24184 * X11Keyboard.cs: Lazy init keyboard detection.
24185 - Cleanup access modifiers a little.
24187 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24189 * XplatUIX11.cs: Once again, attempting to get layout just right.
24191 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24193 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24194 the sizes of each link section, that will result in sizes that
24195 match DrawString's layout (Fixes #78391)
24197 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
24199 * FileDialog.cs: If AddExtension property is true autocomplete the
24200 extensions in SaveFileDialog correctly. Fixes bug #78453.
24201 Set MyNetwork and MyComputer to "C:\" for windows. This should
24202 fix part 8 of bug #78446 for now.
24204 2006-05-26 Chris Toshok <toshok@ximian.com>
24206 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
24207 invalidate the current row header if we need to, but presumably
24208 we'll invalidate the row corrsponding to the bounds or
24210 (GridHScrolled): switch back to this method, as it's part of the
24211 public api. *sigh*.
24212 (GridVScrolled): same.
24213 (OnMouseWheel): hack up something that more or less works. Call
24214 GridHScrolled/GridVScrolled directly, instead of duplicating much
24215 of their code here.
24216 (EnsureCellVisibility): reinstate a bunch of this code, since we
24217 can't just set the scrollbar Value and expect to do all the work
24218 in the ValueChanged handler. Also, Call Update() after scrolling
24219 in one direction so the other XplatX11.ScrollWindow call has the
24220 proper stuff in the proper places.
24221 (EditCell): set is_editing to true before calling .Edit.
24223 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24224 don't bother comparing first.
24225 (OnKeyPress): call grid.ColumnStartedEditing before calling
24226 base.OnKeyPress. this will set is_changing and invalidate the row
24227 header if necessary.
24228 (ProcessKeyMessage): for WM_CHAR messages, call
24229 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
24232 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24233 it's done in the DataGrid.
24234 (NextState): call grid.ColumnStartedEditing, which takes care of
24235 invalidating the row header (and setting is_changing).
24237 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24238 here. it's done in the DataGrid.
24240 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24242 * Control.cs: allow changing the cursor when the mouse position is
24243 out of bounds but Capture is set.
24244 * LinkLabel.cs: handle the case when the mouse button is pressed on the
24245 linklabel but released somewhere else.
24247 2006-05-25 Jackson Harper <jackson@ximian.com>
24249 * TreeView.cs: When we get focus if there is no selected node make
24251 - Remove some uneeded setup code from Draw.
24252 * TreeNodeCollection.cs: If the tree doesn't have a top node when
24253 a new node is inserted make the new node the top.
24255 * Timer.cs: Use Utc time so that no local time zone stuff needs to
24256 be used (should be faster).
24258 2006-05-25 Chris Toshok <toshok@ximian.com>
24260 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24261 problem with the last commit.
24263 2006-05-25 Chris Toshok <toshok@ximian.com>
24265 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24266 need the invalidate call here, while scrolling right-to-left via
24267 the left arrow key (i.e. moving the editing cell while scrolling).
24269 * DataGrid.cs (.ctor): remove the initialization of
24270 ctrl_pressed/shift_pressed. We no longer track them using key
24271 up/down handlers, but by using Control.ModifierKeys. Also, switch
24272 to using ValueChanged handlers on the scrollbars instead of
24273 Scrolled event handlers. This simplifies a bunch of the scrolling
24275 (GridHValueChanged): rename from GridHScrolled, and change it to
24276 work with the new event args.
24277 (GridVValueChanged): same.
24278 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24279 (OnMouseWheel): actually scroll the datagrid. Don't change the
24281 (ProcessGridKey): correct all the keyboard navigation stuff I
24282 could find. Ctrl up/down/left/right/home/end work now.
24283 (EnsureCellVisibility): correct method name spelling. Also,
24284 simplify this a touch by not explicitly calling the
24285 ScrollToRow/ScrollToColumnInPixels methods. We just set the
24287 (OnKeyUpDG): no need for this method now.
24289 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24291 * LinkLabel.cs: display the OverrideCursor when hovering the label.
24294 2006-05-25 Chris Toshok <toshok@ximian.com>
24296 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24299 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24301 * Application.cs: Moved setting of is_modal and closing to before
24302 we create the control, to allow the event handlers called as a
24303 result of creation affect closing. Also removed Gonzalo's previous
24304 change to setting DialogResult, the behaviour has been moved to
24307 - ShowDialog(): Removed explicit creation of the form, let RunLoop
24309 - ShowDialog(): If no dialog result is set, we need to return Cancel
24310 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24311 the close is cancelled
24313 2006-05-25 Jackson Harper <jackson@ximian.com>
24315 * StatusBar.cs: We only need to update the sizes of the other
24316 panels when we have auto size contents. Also we are only updating
24317 the contents of the panel, not the borders, so compensate for the
24318 border width (TODO: get this width from the theme somehow).
24319 * TreeView.cs: Scrollable is true by default
24320 - Use invalidate instead of refresh where needed
24321 - Factor the scrollable value into scrollbar updating
24322 - Update the scrollbars if the Scrollable property is altered
24323 - Update the selected node if its ImageIndex is changed
24324 - Handle null nodes in UpdateNode (mainly so we don't have to
24325 check if selected is null when updating it
24326 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24327 are factored into the visible count
24328 - Use VisibleCount for clarity in the code
24329 - When the font is changed we need to recurse through all the
24330 nodes and invalidate their sizes
24332 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24334 * Application.cs: set the DialogResult to fixed when the main form is
24335 hidden or destroyed while being modal.
24337 2006-05-25 Miguel de Icaza <miguel@novell.com>
24339 * Theme.cs: Use Tangoified messagebox icons.
24341 (GetSizedResourceImage): Also cope with width = 0 and do not
24342 trigger a warning in that case (0 means "give me your icon from
24343 the resouce, no special size needed).
24345 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24347 * Application.cs: Leave runloop if the the main modal form is
24348 hidden (fixes #78484)
24350 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
24352 * BindingContext.cs : reject null datasource in Contains() and
24354 * CurrencyManager.cs : check data_member validity when data_source
24355 is dataset. When it is late binding, the initial position is -1.
24357 2006-05-24 Jackson Harper <jackson@ximian.com>
24359 * TreeNodeCollection.cs: Dont't recalculate the visible order on
24360 inserted nodes that aren't visible. This changes the
24361 max_visible_order which confuses scrollbar settings.
24362 - Use the enumerator to get the prev node instead of duplicating
24364 * TreeView.cs: Use new method for setting scrollbar values
24365 - Don't set the bounds every time the scrollbar is updated
24366 - When updating below the root node use an invalidate instead of a
24367 refresh to prevent the child controls (scrollbars) from being
24368 refreshed. (UpdateBelow still needs to be reworked anyways).
24369 - Reenable SetBottom now that visible orders are set correctly,
24370 added some debug code incase we ever get bad values there again.
24371 - Set the scrollbar max to 2 less then the max value, this
24372 compensates for the max value being one above the node count, and
24373 for scrollbars adding one extra "notch".
24374 - When drawing image nodes if there is an imagelist we draw the
24375 first image in the list if the supplied image index is out of the
24376 image list's bounds.
24378 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24380 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
24381 we receive a size change from the WM (Fixes #78503)
24383 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24385 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
24386 rectangle (Fixes #78501)
24388 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24391 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
24393 - Fixed MouseMove to no longer switch pressed state unless the left
24394 mouse button is pressed. Atsushi provided the original patch (#78485)
24396 2006-05-24 Jackson Harper <jackson@ximian.com>
24398 * ScrollBar.cs: New internal methods that allow us to change a
24399 couple values on the scrollbar (the most common case is maximum
24400 and large change) without getting multiple invalidates.
24402 2006-05-24 Chris Toshok <toshok@ximian.com>
24404 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24405 (Edit): save off the original state in oldState, and set
24406 grid.is_editing to true.
24407 (OnKeyDown): abort editing if escape is pressed. also, call
24408 NextState if space is pressed.
24409 (OnMouseDown): call NextState.
24410 (NextState): factor out shared code from OnKeyDown and OnMouseDown
24411 here. Also, only invalidate the row header once (on the initial
24412 is_changing switch) to save on redraws.
24414 2006-05-24 Chris Toshok <toshok@ximian.com>
24416 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24417 if the value in the cell is different than it was before. This
24418 keeps us from triggering a layout when we move around a datarid
24419 with a highlighted cell.
24420 (Edit): suspend layout when creating/positining the text box, and
24421 resume passing false so we don't ever actually re-layout.
24422 (ReleaseHostedControl): same.
24423 (EnsureTextBox): reformat slightly, and set WordWrap to false.
24425 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24426 control-key sequences should go to the datagrid - remove that
24427 lock. Also, modify the conditions under which we move between
24428 cells when moving the cursor within a cell, and remove the "this"
24429 and "base" from field accesses. We weren't even consistent, given
24430 they all were in the base class.
24432 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
24434 * Binding.cs : (.ctor)
24435 An obvious NRE fix for BindingTest.CtorNullTest().
24437 2006-05-23 Chris Toshok <toshok@ximian.com>
24439 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24440 them between lines. This fixes some quirks editing cells in the
24443 2006-05-23 Jackson Harper <jackson@ximian.com>
24445 * TreeView.cs: Use begin/end update when doing expand/collapse all
24446 so that we don't get flicker on the scrollbar.
24448 2006-05-23 Jackson Harper <jackson@ximian.com>
24450 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
24451 treenode calculations to be independant of the painting code. To
24452 do this nodes track a visible order which is calculated by the
24454 - Call new methods for expanding/collapsing nodes. These methods
24455 use scrollwindow so we don't have to update everything below the
24457 * TreeView.cs: Refactored drawing and scrolling code. We don't
24458 need to update nodes when drawing anymore or calculate scrollbar
24460 - Added new methods for expanding/collapsing nodes. These methods
24461 use ScrollWindow so as to not have to redraw all the nodes below.
24462 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24463 we add/remove nodes or sort.
24464 - Handle removing the selected and the top node properly.
24466 2006-05-23 Chris Toshok <toshok@ximian.com>
24468 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24469 maybe this should actually happen in the datagrid code?
24470 (EndEdit): no need to invalidate anything, given that
24471 ReleaseHostedControl causes the datagrid to relayout, which
24472 invalidates everything anyway.
24474 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24475 in SetCurrentCell).
24476 (set_SelectionBackColor): call InvalidateSelection instead of
24478 (set_SelectionForeColor): same.
24479 (BeginEdit): Flesh this out a bit.
24480 (CancelEditing): only do any of this if we're editing/adding.
24482 (OnMouseDown): there's no need to cancel editing here, it's done
24484 (SetCurrentCell): only invalidate the current row header if it's a
24485 different row than the new one.
24486 (ShiftSelection): fix this to work like MS does.
24487 (ResetSelection): factor out the invalidation of selected_rows to
24488 InvalidateSelection.
24489 (SetDataSource): cancel any editing that's going on.
24491 * DataGridColumnStyle.cs
24492 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24493 call the non-interface version.
24495 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24496 header rectangle with the clip rectangle so we don't redraw the
24497 entire header for just a small area. Gets rid of the last flicker
24498 when horizontally scrolling.
24499 (DataGridPaintRow): same.
24501 2006-05-23 Mike Kestner <mkestner@novell.com>
24503 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24504 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
24505 poorly placed checkbox on the MS control. Fixes Alex's unfiled
24506 Critical bug report.
24508 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24510 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24511 and this fixes #78493
24513 2006-05-23 Miguel de Icaza <miguel@novell.com>
24515 * Theme.cs (GetSizedResourceImage): Scale images if the proper
24518 * FileDialog.cs: Do not change the background for the side bar as
24519 it wont work nicely with the theme, and also reduces the artifacts
24520 in rendering the icons (which I want to fix too).
24522 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24523 resources, not resgen resources.
24525 (PlatformDefaultHandler): Pull images using the new API.
24527 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24529 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24530 a reference to the hwnd and will not remove it unless there are
24531 no pending exposures (fixes #78341)
24532 * XplatUI.cs: Improved debug
24534 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
24536 * MenuAPI.cs : don't handle OnClick event when it was not the left
24537 button. Fixed bug #78487.
24539 2006-05-23 Mike Kestner <mkestner@novell.com>
24541 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24542 prefer submenus to the top menu for item lookup, to avoid popping down
24545 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
24547 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24548 Graphics.FillRectangle as the visual results are really bad (even
24549 on win). We now draw perfect arrows (and perfect shadows when the
24550 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24551 Pen.DashPattern to draw the dots of each line.
24553 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
24555 * FileDialog.cs: Update the filename combobox when navigating through
24556 the ListView with the cursor keys. Fixes part 7 of bug #78446.
24558 2006-05-22 Mike Kestner <mkestner@novell.com>
24560 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24563 2006-05-22 Mike Kestner <mkestner@novell.com>
24565 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24566 requests. Fix a misspelled parameter and a copy paste exception error
24569 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
24571 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24572 to get the same width/height (5/13) on X11 as the default font has on
24573 win32. This means that our DefaultFont emSize is smaller than the
24574 the MS SWF equivalent (even thought the width/height stays the same)
24576 2006-05-20 Jackson Harper <jackson@ximian.com>
24579 * MdiWindowManager.cs:
24580 * InternalWindowManager.cs: Make sure to use the border width from
24583 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
24585 * PrintDialog.cs: Implements printer details
24587 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
24589 * FileDialog.cs: Added focus handling for PopupButtonPanel.
24590 Fixes part 1 and 2 of bug #78446
24592 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
24594 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24595 instead of sticking to the first ever calculated value
24597 2006-05-19 Mike Kestner <mkestner@novell.com>
24599 * ComboBox.cs: fix mouse motion selection to use MousePosition and
24600 PointToClient, since Capture is set. Fixes #78344.
24602 2006-05-19 Mike Kestner <mkestner@novell.com>
24604 * ListView.cs: match MS behavior in Details view where items are not
24605 drawn if Columns.Count == 0.
24606 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24607 Use a separate pen to draw the check, since changing the width affects
24608 the box as well. Fixes #78454.
24610 2006-05-18 Miguel de Icaza <miguel@novell.com>
24612 * ListView.cs: ArgumentOutOfRangeException, single versions of the
24613 exception should throw the name of the invalid argument.
24615 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24616 there are no files listed.
24618 2006-05-18 Jackson Harper <jackson@ximian.com>
24620 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24623 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24625 * Control.cs: Brought back our old UpdateZOrder method as a private
24626 function and switched our calls from UpdateZOrder to the new one.
24627 This fixes the Paint.Net canvas disappearing bug.
24629 2006-05-18 Jackson Harper <jackson@ximian.com>
24632 * ThemeWin32Classic.cs:
24633 * InternalWindowManager.cs: Move the drawing into the theme,
24634 expose everything the theme should need from the window manager.
24636 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24638 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
24639 from the call to NativeWindow to avoid walking up the parent chain
24640 further than needed (speeds up setting cursors and avoids setting
24641 the wrong cursor if a parent has another cursor defined)
24642 * Cursor.cs: When loading an icon as cursor, MS uses the center of
24643 the icon as hotspot, not what's contained as hotspot in the icon
24644 file. This fixes the perceived drawing offset seen with Paint.Net
24646 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24649 - Store the calculated rectangle in Hwnd object and use it when
24650 setting the client size
24651 - Force Toolwindows to always be type Dock, to ensure they're on top
24653 2006-05-18 Mike Kestner <mkestner@novell.com>
24655 * ComboBox.cs: first pass at ComboBox rework. Layout is more
24656 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
24657 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
24658 Substantial refactoring to remove confusing nested classes. Coding
24659 standard and Get+Set->property refactorings. Shift to index based
24660 highlighting in ComboListBox instead of constantly using IndexOf and
24661 Items[]. Add invalidations on resize for DropDownList to fix ugliness
24662 in FileDialog growth. Draw borders manually since Simple mode needs
24663 to look like two independent controls. Make listbox border
24664 conditional to DropDownStyle. Improved OwnerDraw support.
24666 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
24668 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
24669 Don't set the disposed graphics to null, so we can throw the "right"
24670 exception if the graphics is reused later (added a flag to avoid
24671 double disposing). Some behaviours are different under 2.0 and are
24672 filled under bug #78448.
24674 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24676 * Control.cs: When double-buffering is enabled, we need to reset
24677 our graphics context between paint calls. Otherwise, any
24678 transformations and other alterations on the context will
24679 become cumulative (#77734)
24681 2006-05-18 Mike Kestner <mkestner@novell.com>
24683 * ListView.cs: do focused item selection like MS on clicks.
24684 Rework focus handling for ItemControl so LostFocus invalidates as
24686 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
24687 the ListView ItemControl has focus.
24689 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
24691 * XplatUIX11.cs: If client_window ends up being width or height zero
24692 due to border settings, move it off window inside whole_window (#78433)
24694 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24696 * Mime.cs: Shrink the mime file cache correctly.
24698 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24700 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
24702 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24704 * XplatUIX11.cs (AddExpose): More sanity checks
24706 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24709 - AddExpose: Don't add expose ranges outside the size of our
24711 - Cast opacity values to Int32 to avoid crashes with certain
24713 - Added disabled code paths that protect against illegal cross-
24714 thread painting (Developers.exe)
24716 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24718 * ProgressBar.cs: Invalidate the control when it's resized
24719 since block size is based on control size. (#78388)
24721 2006-05-16 Miguel de Icaza <miguel@novell.com>
24723 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
24724 of setting the incoming argument to the "reset" value, we set the
24725 this.datamember to string.empty (before we were invalidating the
24730 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24732 * Form.cs: Only apply transparency settings after the form
24733 is created. (Fixes #77800)
24735 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24737 * ApplicationContext.cs: Grab the HandleDestroyed event so
24738 we know when to fire OnMainFormClosed
24740 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24742 * Application.cs: Introduced sub-class to allow tracking of
24743 threads and centralized triggering of the event mess for
24744 ThreadExit, AppExit, etc.. (#76156)
24746 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
24749 - Do not return a null icon index value for a mime subclass.
24750 Instead try the main mime type class too.
24751 - Seems that some newer distributions don't have a link to some
24752 gnome default icons anymore. So check the default gnome dir too.
24755 2006-05-16 Jackson Harper <jackson@ximian.com>
24757 * MdiClient.cs: Don't paint the parent background image if we have
24758 our own background image.
24760 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24763 - PerformLayout: Do not shrink space filled by DockStyle.Fill
24764 controls, all filled controls are supposed to overlap (#78080)
24765 - UpdateZOrder is supposed to update the control's z-order in the
24766 parent's z-order chain. Fixed to behave like that
24767 - BringToFront: Removed obsolete code
24768 - SendToBack: Simplyfied
24769 - SetChildIndex: Trigger layout calculations when Z-order changes
24770 since layout is done by z-order
24772 2006-05-16 Chris Toshok <toshok@ximian.com>
24774 [ fixes bug #78410 ]
24775 * DataGrid.cs (set_AlternatingBackColor): use
24776 grid_drawing.InvalidateCells instead of Refresh().
24777 (set_BackColor): call grid_drawing.InvalidateCells.
24778 (set_BackgroundColor): use Invalidate instead of Refresh.
24780 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
24781 invalidate the cell area.
24783 2006-05-15 Chris Toshok <toshok@ximian.com>
24785 [ fixes bug #78011 ]
24786 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
24787 on to DataGridPaintRow.
24788 (DataGridPaintRow): take a clip argument, and only draw the cells
24789 which intersect it. same with the not_usedarea.
24791 * Theme.cs (DataGridPaintRow) add @clip parameter.
24793 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
24794 XplatUI.ScrollWindow.
24795 (ScrollToRow): same.
24797 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
24798 with last column which was causing a gray swath to appear with the
24799 XplatUI.ScrollWindow code.
24801 2006-05-15 Chris Toshok <toshok@ximian.com>
24803 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
24804 use XplatUI.ScrollWindow.
24805 (VerticalScrollEvent): use XplatUI.ScrollWindow.
24807 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24809 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
24811 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24813 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
24814 file since there are no equivalent X11 cursors
24816 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
24818 * MonthCalendar.cs : DateTimePicker should reflect selected date
24819 on mouse*up*, not mouse*down*. Fixed originally reported part of
24822 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
24824 * TabControl.cs : When argument index is equal or more than tab
24825 count, just ignore. Fixed bug #78395.
24827 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24829 * Control.cs: Dispose all child controls when control is diposed (#78394)
24831 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24833 * ColorDialog.cs: Finally it is possible to select the color with
24836 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24838 * PrintDialog.cs: Fix typo
24840 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24842 * PrintDialog.cs: PrintDialog is not resizable
24843 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
24844 color. Made some ToolBar drawing methods protected virtual.
24846 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
24848 * PrintDialog.cs: Implementation of the PrintDialog
24850 2006-05-12 Chris Toshok <toshok@ximian.com>
24852 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
24853 thumb, instead use MoveThumb. This has the side effect of making
24854 most of the other thumb moving machinery use MoveThumb as well.
24855 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
24856 need to actually invalidate the rectangle where the new thumb will
24858 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
24859 We force an Update() after, so it's not as fast as it could be,
24860 but at least there's zero flicker and no droppings.
24861 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
24862 (UpdateThumbPos): add another argument (dirty), which says whether
24863 or not to calculate/add dirty regions which we later invalidate.
24864 For cases where we know we're going to use MoveThumb, we pass
24865 false for this. Otherwise, pass true.
24867 2006-05-12 Jackson Harper <jackson@ximian.com>
24869 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
24872 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
24874 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
24875 and GetClipRegion methods and UserClipWontExposeParent property.
24876 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
24877 overriding UserClipWontExposeParent property, setting to false, since
24878 Win32 handles the required expose messages to draw our clipped parent
24880 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
24881 PaintEventStart to set the user clip region if set.
24883 - Now internally tracking the Region for the control since we need to
24884 store it if the handle is not yet created and only set it when it
24885 becomes created. Before setting the region forced handle creation
24886 - Added code to draw the parents underneath a user-clipped region
24887 * Hwnd.cs: Added UserClip property
24889 2006-05-12 Chris Toshok <toshok@ximian.com>
24891 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
24892 (set_Maximum): same.
24893 (set_Minimum): same.
24894 (set_SmallChange): same.
24895 (OnMouseUpSB): remove the call to refresh when releasing the
24896 thumb. We shouldn't need it.
24898 2006-05-12 Miguel de Icaza <miguel@novell.com>
24900 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
24901 AutoSize set to None, we do not need to relayout everything, we
24902 just need to invalidate the current region.
24904 (Draw): Do not draw the entire ClientArea, just redraw the
24905 clip area being passed.
24907 * MdiClient.cs: Make MdiClient constructor with the Form argument
24910 2006-05-12 Jackson Harper <jackson@ximian.com>
24912 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
24913 parents background image, but strangely not their own.
24914 - (DrawStatusBarPanel): Take into account horizontal alignment
24915 when drawing the strings and icons.
24917 2006-05-12 Mike Kestner <mkestner@novell.com>
24919 * ListBox.cs: avoid invalidations for focus when the collection is
24922 2006-05-12 Chris Toshok <toshok@ximian.com>
24924 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
24925 invalidate the entire thumb area. Call InvalidateDirty which
24926 limits the redraw to the thumb itself and surrounding pixels.
24928 * XplatUIX11.cs (ScrollWindow): optimize copying.
24930 2006-05-12 Chris Toshok <toshok@ximian.com>
24932 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
24933 Figure out the positioning/layout in a single pass instead of
24934 multiple recursive invocations. Speeds up the initial display of
24935 the data grid. Also, make many things private that were
24936 originally public but unused outside this class.
24938 2006-05-11 Jackson Harper <jackson@ximian.com>
24940 * MdiClient.cs: Improved layout code.
24942 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
24944 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
24945 not SelectedObject.
24947 2006-05-11 Chris Toshok <toshok@ximian.com>
24949 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
24950 union of that will always be {0,0,width,height}.
24952 2006-05-11 Jackson Harper <jackson@ximian.com>
24954 * Form.cs: Match MS's DefaultSize for forms (they must have
24955 changed the size in sp2).
24957 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
24959 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
24961 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
24963 * TextControl.cs : Fixed bug #78109. This incorrect position
24964 comparison caused crash on automatic line split.
24965 * TextBoxBase.cs : reduce duplicate code.
24967 2006-05-10 Jackson Harper <jackson@ximian.com>
24969 * MdiClient.cs: Active form is only sent to the back when using
24970 the Next form functionality, when a form is clicked the current
24971 active shouldn't be sent to the back.
24972 - Layout the mdi windows when the container is first made visible.
24973 * Form.cs: Give the MdiClient a ref to the containing form when we
24976 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
24978 * LinkLabel.cs : link_font could be uninitialized, so populate one
24979 before actual use. Fixed bug #78340.
24981 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
24983 * XplatUIX11.cs : clipboard format native value is IntPtr.
24986 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
24989 - Instead of showing context menus directly we send WM_CONTEXTMENU,
24990 which is passed up the parent chain by DefWndProc
24991 - We now handle WM_CONTEXTMENU to display any menu, or pass it
24992 to DefWndProc (#77956)
24993 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
24995 2006-05-10 Jackson Harper <jackson@ximian.com>
24997 * MdiClient.cs: We need to remove the controls from the mdi
24998 collection, when we close the window.
24999 * MdiWindowManager.cs: Special handling of closing mdi windows.
25000 * InternalWindowManager.cs: Make the close method virtual so the
25001 mdi window manager can handle it specially.
25003 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
25006 - Recalculate grid when the data source has changed
25007 - Matches styles provided by user from all data sources types
25008 * DataGridTableStyle.cs: For columns that provided by the user set the
25009 with the preferred value is there was unassigned.
25010 * CurrencyManager.cs: throw OnItemChanged event
25012 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25014 * PictureBox.cs: Don't animate until handle is created. Start animation
25015 when handle is created.
25017 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25019 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25021 * XEventQueue.cs: We don't need to provide the extra info
25023 2006-05-10 Jackson Harper <jackson@ximian.com>
25025 * MdiClient.cs: If the mdi clients parent form has a background
25026 image set, we draw that background image for the mdi area's
25029 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25031 * TextBoxBase.cs: Set IBeam cursor (#78347)
25033 2006-05-10 Mike Kestner <mkestner@novell.com>
25035 * ToolBar.cs: fix some text padding issues with ButtonSize
25036 calculation. Update the default size to match MS documentation.
25037 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25038 button size. Fixes #78296.
25040 2006-05-10 Mike Kestner <mkestner@novell.com>
25042 * ListBox.cs: use is_visible for scrollbar positioning in case the
25043 control isn't on screen yet. Fix off by one with Right vs Width
25044 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25046 2006-05-10 Jackson Harper <jackson@ximian.com>
25048 * X11Dnd.cs: Drop to a control with another control on top of it.
25049 * ToolBar.cs: Work on a copy of the buttons list, so that it can
25050 be modified in click handlers. TODO: Look for similar problems in
25053 2006-05-09 Jackson Harper <jackson@ximian.com>
25055 * Form.cs: Window managers need the old window state when setting
25057 * InternalWindowManager.cs: Allow the base mdi window manager to
25058 handle more of the MDI only stuff (like maximize buttons).
25059 * MdiWindowManager.cs: Fix some snafus in changing the window
25060 state. Add all the menu functionality, for both popup and
25062 * MdiClient.cs: When a new form is selected the currently
25063 activated form is sent to the back, this matches MS.
25064 - Implement a new method to activate the next mdi child window.
25066 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25069 - Added new InternalCapture method to allow controls to prevent
25070 the capture behaviour on the click handlers
25071 - Switched to use InternalCapture
25073 - Using InternalCapture to prevent mouse captures from being released
25074 on mouse button release (Fixes #78100)
25075 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25076 returns Form borders if a caption is present. (Fixes #78310)
25078 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25080 * TreeNode.cs: Changed serialization .ctor to not require every field
25081 to be present. (#78265)
25082 * OwnerDrawPropertyBag.cs: Added serialization .ctor
25084 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
25086 * MimeIcon.cs: for is faster than foreach for strings.
25088 2006-05-05 Mike Kestner <mkestner@novell.com>
25090 * CheckedListBox.cs: update check handling code to not use selected.
25091 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25092 behavior for visual feedback, motion response, shift/ctrl handling,
25093 and properly deal with all 4 selection modes. Updates to bounds
25094 handling logic. Add scroll wheel support. [Fixes #77842]
25096 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25099 - Moved adding of Implicit controls into .ctor. That way, subsequent
25100 creation of the controls will not cause them to think they are
25101 toplevel windows (fixes #78200 header problem)
25102 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25103 - Switched visibility setting of header control to use internal field
25104 to avoid triggering handle creation
25105 - Now checking if handle is created before causing a refresh when items
25106 are added (This makes us now match handle creation time with MS)
25107 * Splitter.cs: Removed loading of private splitter cursor, switched to
25108 Cursors version now that that is loading the right ones
25109 * Cursors.cs: Load proper splitter cursors from resources
25110 * Cursor.cs: Added second method of loading resource cursors for the
25111 VS.Net users amongst us
25113 2006-05-05 Mike Kestner <mkestner@novell.com>
25115 * ListView.cs: give header_control a minimum size based on the
25118 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25120 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25121 window seems to do that with metacity, so set that type. (#78120)
25123 2006-05-05 Mike Kestner <mkestner@novell.com>
25125 * ListViewItem.cs: fix Details mode checkbox layout bug.
25126 * ThemeWin32Classic.cs: draw a ListView column header for unused space
25127 at the end of the header, if it exists. [Fixes for #78200]
25129 2006-05-04 Jackson Harper <jackson@ximian.com>
25131 * MdiClient.cs: Add a helper property to get the container form.
25132 * MdiWindowManager.cs: We have to make sure to use the menu origin
25133 when drawing the icons and buttons, this fixes maximized window
25134 icons/buttons on win32.
25135 * InternalWindowManager.cs: Reset the restore captions when a
25136 window goes from Maximized to Minimized and vice versa. Move the
25137 DrawMaximizedButtons into the MdiWindowManager source, tool
25138 windows can't be maximized. NOTE: This could use a little
25139 refactoring if time ever permits.
25141 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25143 * TextBox.cs: Add MWFCategoryAttributes
25144 * TextBoxBase.cs: Add MWFCategoryAttributes
25145 * Form.cs: Add MWFCategoryAttributes
25147 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25149 * Control.cs: Add MWFCategoryAttributes
25150 * ScrollableControl.cs: Add MWFCategoryAttributes
25152 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
25154 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25155 Divider is true. Fix a little glitch in PropertyToolBar
25158 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
25161 - Dispose: Call base.Dispose, this causes the disposed event
25162 to be fired (and probably other, more important stuff)
25163 - SetVisibleCore: Set is_visible to true after creating the
25164 window so that the window still gets created invisible (if
25165 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25166 to generate a WM_ACTIVE message
25167 * Form.cs: Call Dispose when we want to destroy the window, instead of
25168 just destroying the handle (Dispose will do that for us)
25170 - RootWindow also needs a queue, so we can properly process the
25171 property change events from RootWindow (like Activate)
25172 - Generatic synthetic WM_ACTIVE message when the active window is
25175 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25177 * LinkLabel.cs: Trigger a recalc of our label dimensions when
25180 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25182 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25183 for determining width and height (image might not be assigned if
25184 we're drawing an imagelist)
25186 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25188 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25189 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25191 * Theme.cs: No longer returns hardcoded menu height, instead calls
25193 * Form.cs (OnLoad): Scaling happens before triggering Load events
25196 2006-05-01 Mike Kestner <mkestner@novell.com>
25198 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
25200 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25202 * TextBoxBase.cs: Removed Fixme
25203 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25205 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25208 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25209 the rectangle relative to the parent, considering borders. We
25210 don't really want that.
25211 - ScrollWindow: Fixed warning to be more understandable
25212 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25213 scrollbars and scroll only the visible area
25214 * RichTextBox.cs: Removed debug output
25216 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25218 * NumericUpDown.cs (Text): Just use base
25219 * UpDownBase.cs: Ensure txtView is created before using it
25221 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25223 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25224 casting to IntPtr to avoid 64bit overflow errors
25226 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25229 - AllowDrop: Don't force handle creation.
25230 - CreateHandle: Added call to tell driver if we're allowed to drop
25232 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25234 * FileDialog.cs: Remember the last directory not only for the
25235 current instance but also for new FileDialog instances.
25237 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25239 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25240 broke sending async messages
25242 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25245 - ScrollWindow: Fixed method. We finally generate expose events again
25246 for scrolled areas. This was causing 'garbage' when scrolling
25247 textbox and other controls that used ScrollWindow
25248 - Switched from using the regular queue for paint events to the MS
25249 model of 'generating' paint events when the queue is empty.
25250 We use the new XQueueEvent.Paint subclass to store which windows
25252 - AddExpose now takes the x/y/width/height of the exposed area
25253 and inserts the window into the paint queue if not already there
25254 - InvalidateWholeWindow: Switched to use new AddExpose method
25255 - UpdateMessageQueue: Added which queue to monitor for paint events
25256 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25257 the unlikely case nothing above handles it. We reset the expose
25258 pending states to get them off the queue.
25259 - GetMessage: Now pulls a paint event if no other events are in the
25261 - Invalidate: Switched to new AddExpose method
25262 - PeekMessage: Updated to understand pending paint events
25263 - UpdateWindow: Fixed logic bug. We were only updating if the window
25264 didn't need updating. Also switched to sending WM_PAINT directly,
25266 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25267 and random access Remove(). The random access is needed to handle
25268 UpdateWindow() where a WM_PAINT is sent directly without accessing
25270 * ScrollBar.cs: Added Update() calls to cause immediate updates to
25271 allow for better feedback when scrolling. Scrollbars are small and
25272 the immediate update should make it 'feel' more responsive without
25273 slowing things down. ScrollBar still needs it's invaliate logic
25274 updated to not always invalidate the whole bar on certain changes.
25276 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25279 (BackColor): if the control does not support a transparent background,
25280 return the default backcolor when the parent backcolor is transparent.
25282 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
25284 * Application.cs: Updated to new StartLoop/GetMessage API
25285 * RichTextBox.cs: Provide some output on RTF parsing errors
25286 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25287 new queue_id argument to GetMessage and PeekMessage to allow faster
25288 handling of per-thread queues in drivers.
25289 * Hwnd.cs: Added Queue tracking and property
25290 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25291 * XEventQueue.cs: Added thread trackingA
25292 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25294 - Implemented new per-thread queue
25295 - GetMessage: Fixed return/break behaviour on several cases. We were
25296 returning stale messages in some cases, instead of just processing
25299 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25301 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25303 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
25305 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25306 fixed off-by-one comparisons between Width/Height and Right/Bottom.
25308 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25310 * PropertyGridView.cs: Fix drop down width.
25312 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25314 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25315 a mess in DrawToolBar, so I removed one of them.
25317 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25319 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25320 needed (clip). Otherwise we get artifacts.
25322 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25324 * FixedSizeTextBox.cs: Added constructor to allow specifying which
25326 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25327 and switched FixedSizeTextBox to only be fixed vertical (#78116)
25328 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25329 if it matches the scale base font (avoids unneeded scaling)
25331 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25333 * X11DesktopColors.cs: One gtk_init_check should be enough
25335 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25337 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25340 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25343 - Generate OnTextChanged for Backspace even if we're only deleting
25344 the current selection
25345 - When setting the Text property, only select all text if the
25346 control does not have focus when it is being set. Otherwise
25347 just place the cursor at the beginning of the control
25349 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25351 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25352 Added a little helper to draw PropertyGrid ToolBar with a different
25353 border and a different BackColor.
25354 * PropertyGrid.cs: Some background parts didn't get painted with the
25355 correct background color. Added a class that helps us to draw the
25356 correct border for PropertyGridView and a class that helps us to
25357 draw ToolBars with a different backcolor
25358 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25360 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
25362 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25363 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25365 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25367 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25368 into the palette entries. Also, since we're working on a copy
25369 we needed to copy the palette back onto the bitmap.
25370 * Cursor.cs: Same fix as XplatUIWin32.cs.
25372 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25374 * ImageListStreamer.cs: Need to read the var (or we're off)
25376 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25378 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
25379 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25380 TextBoxBase.cs: Unused var fixes
25381 * AxHost.cs: Small 2.0 fix
25382 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
25383 as it seems that is what at least Metacity expects. This will make
25384 icons show up on 64bit platforms. We still have some 64bit size
25385 issues, though, since the startup app window size still won't match.
25387 2006-04-25 Mike Kestner <mkestner@novell.com>
25389 * *.cs: cleanup newly reported exception var unused warnings.
25391 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25393 * ThemeWin32Classic.cs: Button image alignment now matches exactly
25396 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25398 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25399 image. The image position is always the same, no matter if the
25400 button is pressed or not.
25402 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25404 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25405 selection and set the correct filename for SaveFileDialog.
25406 Patch by Emery Conrad.
25408 2006-04-24 Mike Kestner <mkestner@novell.com>
25410 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25411 check for item.X outside the ClientRect instead of item.Y. Fixes
25414 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25416 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25417 trust that value blindly and do some sanity check. Fixes bug #77814.
25419 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25421 * ImageListStreamer.cs: save the mask as a 1bpp image.
25423 2006-04-21 Mike Kestner <mkestner@novell.com>
25425 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25426 pass Checked and Indeterminate to the Theme Engine. Improve
25427 encapsulation with ListBox.
25428 * ListBox.cs: Keep a StringFormat instead of calculating it every item
25429 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25430 nested types. Move all CheckState functionality to CheckedListBox.
25431 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
25432 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
25433 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25434 single base list. Fix scrollbar sizing and placement to mirror MS.
25435 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25437 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25438 for CheckedListBox by using new DrawItemState info. Center the
25439 checkboxes on the items. Use new StringFormat property.
25441 2006-04-18 Jackson Harper <jackson@ximian.com>
25443 * Form.cs: MdiChildren don't do default locations the same way as
25444 regular forms. This prevents a crash when trying to position the
25447 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
25449 * PropertyGridTextBox.cs: Formatting, copyright
25450 * PropertiesTab.cs: Formatting
25451 * PropertyGrid.cs: Formatting
25452 * PropertyGridView.cs: Formatting, fix drop down, enabled double
25453 click toggling of values
25455 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
25457 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25458 * Control.cs (.ctor): verify_thread_handle is static, don't reset
25459 every time a control is created
25460 * Application.cs: Removed obsolete EnableRTLMirroring method
25462 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
25464 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25465 SelectedIndex to -1. Fixes bug #78121.
25467 2006-04-17 Jackson Harper <jackson@ximian.com>
25469 * Binding.cs: Handle null values for Current and BindingContext.
25470 This occurs when binding is a little delayed.
25471 * CurrencyManager.cs: return null for Current when there are no
25473 - Hookup to the listchanged event on the DataView and update
25474 bindings when the list is changed. This fixes late binding of
25477 2006-04-17 Jackson Harper <jackson@ximian.com>
25480 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25483 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
25485 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25487 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25488 with the correct ButtonState
25490 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
25492 * XplatUIX11.cs: Improved distinguishing between window types to
25493 tell the WM a type closer to what the app wants (Fixes #78107)
25495 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25497 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25500 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25502 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25503 drawing code to reflect the size grip changes
25505 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25507 * ImageListStreamer.cs: fix handling of the mask that follows the main
25508 bitmap when deserializing and serialize it properly. The generated mask
25509 should better be a 1bpp image, but I'll do that later.
25511 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25513 * FileDialog.cs: Show something in the DirComboBox on *nix if the
25514 path doesn't fit into some of our Current.Places
25516 2006-04-13 Jackson Harper <jackson@ximian.com>
25518 * ComboBox.cs: Use borders instead of drawing our own decorations,
25519 try to obey correct rules for heights.
25522 * ThemeClearLooks.cs:
25523 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25524 this is now handled by borders.
25525 - Remove unused DrawListBoxDecorationSize method.
25527 2006-04-13 Mike Kestner <mkestner@novell.com>
25529 * MenuAPI.cs: null guarding for the disbled click check fixes crash
25532 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25534 * ThemeWin32Classic.cs:
25535 - Fixed CPDrawStringDisabled
25536 - Corrected drawing of disabled menu items
25537 - Fixed drawing of disabled radio buttons (bug #78095)
25538 - Draw check in a disabled CheckBox with color ControlDark
25540 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25542 * Form.cs: Use the provided width when calculating the menu size;
25543 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25544 and ClientSize.Width won't be updated yet
25545 * Application.cs: Use Visible instead of Show() to make form visible,
25546 this way we create the handle later and menusize is considered
25548 2006-04-12 Mike Kestner <mkestner@novell.com>
25550 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25553 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25555 * TextBox.cs: Implemented context menu
25557 2006-04-12 Mike Kestner <mkestner@novell.com>
25559 * ListView.cs: implement box selection. fixes #77838.
25560 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25562 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25564 * XplatUIX11.cs: Added setting of window type when transient window
25565 is created (metacity would move it otherwise)
25566 * X11Structs.cs: Added WINDOW_TYPE atoms
25567 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25568 background (the control is Opaque but still wants transparent
25571 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25573 * Control.cs: Added OnPaintBackgroundInternal to allow controls
25574 that set Opaque but don't mean it (like all ButtonBase-derived
25575 controls) to still draw their background
25576 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25579 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25581 * Control.cs (PaintControlBackground): Set the graphics object
25582 on our PaintEvent to null to prevent it from being disposed
25583 when the PaintEvent gets disposed
25585 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
25587 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25588 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25590 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25593 - Added transparency check to BackColor property. Transparent
25594 backgrounds are only allowed if the control styles permit it
25595 - Added recursive painting of parent control background and
25596 foreground if a control with a transparent backcolor is drawn
25597 (Thanks to Tim Ringenback for providing his 'hack' as a base
25598 for this patch) Fixes #77985 and #78026.
25599 - Added Opaque style check before calling OnPaintBackground, no
25600 need to draw the background if the control is opaque
25601 - Removed ControlAccessibleObject owner variable (inherited from
25602 base, no need to define again)
25603 - Added some documentation links explaining the drawing events
25606 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25608 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25609 that the affected control is the located at the left border of our
25610 parent (Fixes #77936)
25612 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25614 * TextBoxBase.cs: When rendering disabled or readonly controls,
25615 draw the background with 'Control' instead of 'Window' color as
25616 long as the user hasn't specifically set a color
25618 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25620 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25621 since that won't be updated if the user types text (only if it's
25622 programatically set)
25624 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25626 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25627 layout changes do to app-triggered resizes will have the proper
25628 display rectangle for layout
25630 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
25632 * ThemeWin32Classic.cs:
25633 - Make use of the SystemBrushes and SystemPens wherever possible
25634 - Corrected some highlight colors
25635 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25637 * Theme.cs: Added Empty field to CPColor struct
25639 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25641 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25642 is displayed when calculating the display rectangle. Thanks to Mike
25643 for teaching me the err of my ways.
25645 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
25647 * ScrollableControl.cs:
25648 - Rewrote DisplayRectangle code, now returning the proper x/y coords
25649 (instead of 0,0) and we now return the real width/height instead of
25650 just the clientrectangle, adjusted for padding. The rectangle is
25651 now cached and created by the new CalculateDisplayRectangle method.
25652 - Created new CalculateDisplayRectange method, which basically does
25653 what get_DisplayRectangle() did originally, but now using the
25654 right edge instead of DisplayRectangle to determine the size of
25656 - get_Canvas(): Fixed it to properly calculate canvas for
25657 right/bottom controls which seem to be placed to the right/bottom
25658 of any controls that have a fixed location
25659 - Removed TODO that's taken care of
25660 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25661 and SetDisplayRectLocation according to new MSDN2 docs
25662 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25663 event when that is called, this is added for compatibility
25664 - ScrollControlIntoView(): Implemented.
25665 - Switched scrollbars to be implicit, they shouldn't be selectable
25666 * ContainerControl: Now that ScrollControlIntoView is implemented, we
25667 call it when the active control is set/changed
25668 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25669 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
25670 implicit_control variable (used for native Win32 message generation)
25671 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
25672 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
25673 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
25674 * XplatUIStructs.cs: Added ScrollBarCommands enum
25676 2006-04-10 Jackson Harper <jackson@ximian.com>
25679 * CheckedListBox.cs:
25686 * PrintPreviewControl.cs:
25692 * UpDownBase.cs: Fixup base event overrides.
25694 2006-04-06 Mike Kestner <mkestner@novell.com>
25696 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
25697 all user-initiated value changes to min <= value <= max-thumbsz+1.
25698 (set_Value): check for vert/horiz when calculating new thumb position.
25699 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
25701 (OnMouseMoveSB): refactor the thumb dragging code and refine
25702 invalidation logic to reduce flicker.
25703 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
25704 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
25705 (UpdateThumbPosition): small code readability cleanup
25707 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
25709 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
25712 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25714 * ThemeNice.cs: Use a better graphics effect when a button is pressed
25716 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25718 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
25719 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
25720 This dramatically reduces the number of Pen.Dispose calls.
25721 Where possible call ResPool methods only once instead of calling it
25722 over and over again (for example for the same color).
25724 2006-04-06 Mike Kestner <mkestner@novell.com>
25726 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
25727 Also remove an unused private field on the collection. Fixes #77972.
25729 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25731 * ThemeNice.cs: Added ToolBar drawing code
25733 2006-04-06 Mike Kestner <mkestner@novell.com>
25735 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
25736 I'm assuming that means we need to look up the toplevel for the
25737 provided control. Fixes the crash trace in #77911 but exposes another
25738 crash in some strange reflection usage in NDocGui.
25740 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25742 * ThemeNice.cs: Gave it a little silver touch and added Images
25744 * FontDialog.cs: FontDialog is not resizable
25745 * FileDialg.cs: Added SizeGripStyle.Show
25747 2006-04-05 Jackson Harper <jackson@ximian.com>
25749 * KeyboardLayouts.cs: Remove warning.
25751 2006-04-05 Jackson Harper <jackson@ximian.com>
25753 * Control.cs: Enable OnPaintInternal so we can use it for drawing
25754 all of our controls instead of Paint +=.
25769 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
25770 use OnPaintInternal. Remove Width/Height and Visible checks in
25771 paint handler, this is done at a higher level now.
25772 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
25773 * PaintEventArgs.cs: Add a handled flag so controls that don't
25774 want anymore painting after OnPaintInternal can make sure OnPaint
25777 2006-04-05 Mike Kestner <mkestner@novell.com>
25779 * Form.cs: fix the menu WndProc hacks to respect the native enabled
25780 state of the form, so that we don't process events when Modal dialogs
25781 are up. Fixes #77922.
25783 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
25785 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
25788 2006-04-05 Mike Kestner <mkestner@novell.com>
25790 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
25792 2006-04-05 Mike Kestner <mkestner@novell.com>
25794 * ListView.cs (HeaderMouseMove): null guarding for the over column
25795 when setting up the drag_to_index. Fixes #78015.
25797 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25799 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
25800 in the taskbar. Transient windows seem to accomplish that.
25802 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25805 - Re-enabled CreateParams.X/Y code for FormStartPosition
25806 - Added code for manual placement when creating the Control
25807 - Incomplete patch to treat MDI forms differently when
25808 setting the ClientSizeCore. (Still need to figure out handling
25811 - When we're explicitly setting the X/Y position of a non-Child
25812 window, let the WM know. Metacity really wants this.
25814 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25816 * ThemeNice.cs: Added CPDrawButton
25818 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25820 * ThemeNice.cs: Changed the color for focused buttons and activated
25821 the arrows for small scroll buttons.
25823 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25825 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
25826 anymore. Changed some method modifiers to protected (virtual)
25827 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
25829 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
25830 Updated drawing of menus, buttons and progressbars; added
25833 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25835 * ImageListStreamer.cs: implemented serialization/deserialization
25838 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
25840 * ThemeWin32Classic.cs:
25841 - Removed all the DrawFrameControl stuff; CPDrawButton,
25842 CPDrawCheckBox and CPDrawRadioButton are now handled directly
25844 - Updated and corrected the drawing code of CPDrawButton,
25845 CPDrawCheckBox and CPDrawRadioButton to better match ms
25846 - Updated theme checkbox and radiobutton code to use the CP*
25849 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25851 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
25854 2006-03-31 Jackson Harper <jackson@ximian.com>
25856 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
25858 * UpDownBase.cs: Don't CreateGraphics manually, use a
25859 Refresh. Ideally we would invalidate the correct areas here.
25861 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25864 - We now track the mapping state of windows. If a window (or
25865 one of it's parents) is not mapped we no longer permit
25866 WM_PAINT messages to be generated since we'd otherwise get
25867 lots of BadMatch X errors. Jackson did all the work figuring
25869 - Destroying the caret if the window it's contained in is
25870 destroyed. Can't use regular DestroyCaret method since it
25871 might fall into a drawing function (trying to remove the
25872 caret) and with that generate new BadMatch errors. Again,
25873 Jackson tracked this down.
25874 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
25875 make sure we send the messages to all windows. (The old code
25876 would send the WM_DESTROY to the window, and then all child
25877 windows would be 'gone' because the WM_DESTROY handle lookup
25878 would no longer find the destroyed window)
25879 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
25880 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
25882 2006-03-31 Jackson Harper <jackson@ximian.com>
25884 * ScrollableControl.cs: Dont recalc if we are not visible.
25886 2006-03-31 Mike Kestner <mkestner@novell.com>
25888 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
25889 the visibility branch.
25891 2006-03-31 Jackson Harper <jackson@ximian.com>
25893 * ScrollBar.cs: Cap values when incrementing/decrementing.
25895 2006-03-31 Mike Kestner <mkestner@novell.com>
25897 * MenuAPI.cs: setup menu.tracker for popup/context menus.
25898 * ToolTip.cs: guard against timer expirations with no active control.
25899 Not sure why it happened.
25901 2006-03-31 Mike Kestner <mkestner@novell.com>
25903 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
25905 * ToolTip.cs: Position the tooltip based on where the cursor is at
25906 popup time, not at MouseEnter time. Add a Down state so that we don't
25907 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
25908 positioning offset. Lookup DisplaySize at positioning time, since it
25909 can theoretically change during invocation.
25910 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
25911 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
25913 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25915 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
25916 Fixes behaviour when the Text property of the box is String.Empty
25918 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25920 * XplatUIX11.cs: Only send mouseleave for our client windows, not
25921 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
25924 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25926 * FileDialog.cs: Visual enhancement for the popup buttons in
25929 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25931 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
25934 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
25936 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
25937 highlighted menu items to match ms
25939 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
25941 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
25943 2006-03-30 Mike Kestner <mkestner@novell.com>
25945 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
25946 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
25947 go active to account for HotLight to Selected transition.
25948 * MenuItem.cs: add internal Selected prop. Fill out the Status
25949 property by calculating it from item info. Add HotLight,
25950 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
25952 2006-03-30 Mike Kestner <mkestner@novell.com>
25954 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
25956 2006-03-29 Jackson Harper <jackson@ximian.com>
25958 * Form.cs: Implement TODO.
25960 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
25962 * PrintPreviewDialog.cs: Implemented missing methods and events; still
25963 missing proper dialog setup in the constructor
25965 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
25967 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
25969 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
25970 - Fixed ResetBindings and removed TODO
25971 - Added check for cross-thread calls to get_Handle()
25972 - Added Marshaller attribute for set_Font to satisfy class status
25973 * FontDialog.cs: Removed TODOs that seemed implemented
25974 * UpDownBase.cs: Removed unneeded TODO and Fixme
25975 * MessageBox.cs: Implemented support for Default button and removed TODO
25976 * FileDialog.cs: Removed obsolete TODO
25977 * DomainUpDown.cs: Removed obsolete TODO
25978 * ButtonBase.cs: Removed obsolete TODO
25979 * XplatUIWin32.cs: Removed obsolete TODO
25981 - Removed obsolete TODO
25982 - Calling CheckAcceptButton when the acceptbutton is changed to allow
25983 internal status updates
25984 - Making sure the active control is selected when the control is created
25985 * CurrencyManager.cs: Removed obsolete TODO
25987 2006-03-29 Mike Kestner <mkestner@novell.com>
25989 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
25990 of PrintPreviewDialog and RichTextBox.
25992 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
25994 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
25995 DarkDark, Light and LightLight colors for a specific color
25996 * ThemeWin32Classic.cs:
25997 - Use Button drawing code to draw RadioButtons and CheckBoxes with
25998 Appearance = Button
25999 - Make use of the new ResPool helper CPColor
26000 - Draw ProgressBar and StatusBar with correct 3D borders
26002 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26004 * ColorDialog.cs: Return selected color. Fixes bug #77940.
26006 2006-03-28 Mike Kestner <mkestner@novell.com>
26008 * ListView.cs: fix Icon layout to plan for scrollbar widths when
26009 calculating col/row counts.
26011 2006-03-28 Mike Kestner <mkestner@novell.com>
26017 switch to explicit interface method implementation for some methods
26018 corcompare identifies as inconsistent with MS.
26020 2006-03-28 Mike Kestner <mkestner@novell.com>
26024 add a few missing methods from the class status output.
26026 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
26028 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26031 2006-03-28 Mike Kestner <mkestner@novell.com>
26033 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26035 2006-03-27 Mike Kestner <mkestner@novell.com>
26037 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26038 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26040 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
26042 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26044 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26046 * ThemeWin32Classic.cs:
26047 - GroupBox: Inserted a little gap between the text and the lines
26049 - Made the code in CPDrawBorder3D more readable
26050 - Corrected the drawing location of the up and down arrows in
26053 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26055 * ControlPaint.cs: Corrected line widths in DrawBorder for
26056 ButtonBorderStyle Inset and Outset
26058 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26060 * ThemeWin32Classic.cs:
26061 - Rewrote the totally broken CPDrawBorder3D method. That was
26062 one of the main problems for the terrific ThemeWin32Classic
26064 - Updated and corrected Button drawing
26065 - Correct the dimensions of the SizeGrip to match ms ones
26066 - Removed a small drawing glitch in DrawComboBoxEditDecorations
26067 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26068 Border3DStyle.Sunken to match ms.
26070 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26072 * ThemeWin32Classic.cs: First small part of the "de-uglify
26073 ThemeWin32Classic" effort, SizeGrip
26075 2006-03-24 Jackson Harper <jackson@ximian.com>
26077 * XplatUIX11.cs: Give a max idle time of one second, this matches
26078 MS and forces an Idle event every second when there are no other
26079 events in the queue.
26081 2006-03-24 Mike Kestner <mkestner@novell.com>
26083 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26084 * ListView.Item.cs: fix layout issues with null image lists and images
26085 smaller than checkbox size.
26086 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26087 mode like MS does. It's weird, but consistent. ;-)
26090 2006-03-24 Mike Kestner <mkestner@novell.com>
26092 * ListView.cs: Scroll wheel support for the item control. Fixes
26095 2006-03-23 Jackson Harper <jackson@ximian.com>
26097 * ScrollableControl.cs: Special case negative sized areas, not
26099 * MonthCalendar.cs: Save the rect of the clicked date so we can
26100 use it for invalidation.
26101 - Try to cut down on the number of invalidates
26102 - Invalidate the rect the mouse is over and was over when moving
26103 the mouse, so we get the focus box following the cursor.
26105 2006-03-23 Mike Kestner <mkestner@novell.com>
26107 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26108 focus rectangle drawing. Fixes #77835.
26110 2006-03-23 Mike Kestner <mkestner@novell.com>
26112 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26113 the if and else if and reverting back to the original == check on the
26116 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26118 * FontDialog.cs: Update the example panel if the selected index of
26119 the fontListBox changes.
26121 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26123 * FileDialog.cs: Make FileDialog remember which directory it was in
26124 last in the same execution.
26126 2006-03-22 Mike Kestner <mkestner@novell.com>
26128 * FileDialog.cs: make the DropDownMenu on the toolbar display
26129 RadioChecks since they are mutually exclusive and that's what MS does.
26131 2006-03-22 Mike Kestner <mkestner@novell.com>
26133 * Theme.cs: add Color param to CPDrawMenuGlyph.
26134 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26135 checks and radio marks and arrows are visible on highlighted items.
26136 * ControlPaint.cs: update to use new Theme signature.
26138 2006-03-22 Mike Kestner <mkestner@novell.com>
26140 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26141 is active. Fixes #77870.
26143 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26145 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26146 to be focused/selected after startup
26148 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26151 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26152 CustomColors and ShowHelp properties
26153 - Some internal rewrites to get better results when using the
26156 2006-03-22 Mike Kestner <mkestner@novell.com>
26158 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26159 HoverSelection. Fixes #77836.
26161 2006-03-22 Mike Kestner <mkestner@novell.com>
26163 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
26164 ToggleButtons. (De)Sensitize the Back button around a stack count of
26165 1, not 0. Update ButtonSize based on a pixel count of the win32
26166 control. Adjust the toolbar size/location for new button size.
26168 2006-03-22 Jackson Harper <jackson@ximian.com>
26170 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26172 * ScrollBar.cs: When doing increments and decrements we need to
26173 set the Value property so that ValueChanged gets raised. A
26174 possible optimization here would be to make an internal SetValue
26175 that doesn't invalidate immediately.
26176 * ToolTip.cs: Tooltips get added to their container (when
26177 supplied) so they get disposed when the container is disposed.
26178 - Don't create tooltips for String.Empty. This prevents all these
26179 little 2-3 pixel windows from showing up when running nunit-gui
26180 and driving me mad.
26181 * Form.cs: Don't set topmost when setting the owner if the handles
26182 haven't been created yet. The topmost set will happen when the
26183 handles are created.
26185 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
26188 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26189 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
26190 visible (to allow them to recalculate their sizes)
26192 2006-03-21 Mike Kestner <mkestner@novell.com>
26194 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26195 methods. Removed a ton of redundant code. Still not really happy with
26196 the border rendering, but I think that's mainly because of the
26197 ControlDarkDark being black instead of a dark grey. Depending on how
26198 close we want to be, we might want to revisit those color choices.
26199 Among the new features added during the refactor were DropDownArrow
26200 pressed rendering, Disabled image rendering. Proper flat appearance
26201 boundary rendering. Removed the Divider and Wrapping dividers since I
26202 can't figure out any combination of themes and conditions to make the
26203 MS control draw a horizontal line on a toolbar despite what the
26204 Divider property docs indicate.
26205 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26206 conditions and incorrect layout. Updated to coding standard.
26207 * ToolBarButton.cs: refactored layout and positioning code from
26208 ToolBar to here. Invalidate wherever possible instead of forcing
26209 redraws of the whole toolbar.
26210 (Known remaining issues: explicit ButtonSize smaller than provided
26213 2006-03-21 Mike Kestner <mkestner@novell.com>
26215 * ContextMenu.cs (Show): use the position parameter instead of just
26216 showing at the MousePosition.
26218 2006-03-21 Jackson Harper <jackson@ximian.com>
26220 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26221 control handle this.
26222 * TreeNodeCollection.cs: If we are clearing the root node we need
26223 to reset top_node so calcs can still happen.
26224 * ThemeWin32Classic.cs: This is a Flags so we need to check
26227 2006-03-21 Jackson Harper <jackson@ximian.com>
26229 * DataGrid.cs: Create columns when the binding context has been
26231 * X11Structs.cs: Keysyms are uints.
26232 - Add size to fix build.
26234 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
26236 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26238 - Added ResetMouseHover method to allow controls to retrigger
26239 hovering if they need it more than once
26240 - Implemented MouseHoverTime and MouseHoverSize properties
26241 * Timer.cs: Start() must reset the interval
26242 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26245 2006-03-21 Jackson Harper <jackson@ximian.com>
26247 * X11Keyboard.cs: improved layout detection. Move the nonchar
26248 tables into this file.
26249 * KeyboardLayouts.cs: Move the tables into resource files.
26251 2006-03-21 Mike Kestner <mkestner@novell.com>
26253 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26255 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
26257 * Mime.cs: Various speed optimizations. Looking up mime types
26258 is now 2 times faster than before
26260 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26262 * CreateParams.cs: Added internal menu field
26264 - Switched call order for UpdateBounds; now we always call
26265 the one that also takes ClientSize, and we're calculating the
26266 client size via driver method in the others. The previous
26267 method of tracking client size by difference wasn't working
26268 for forms where even the starting client size wouldn't match
26269 the overall form size (due to borders) (Part of fix for #77729)
26270 - CreateParams(): Do not use parent.Handle unless the handle is
26271 already created. Causes havoc with Nexxia and throws off our
26272 creation of controls
26274 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26275 - Switched handling of ConfigureNotify over to new PerformNCCalc
26276 method (consolidates code)
26277 - Changed RequestNCRecalc to use new PerformNCCalc method
26278 - Added calls to RequestNCRecalc when menus and borders are changed
26279 to allow app to set NC size. (Part of fix for #77729) This matches
26280 when MS send a WM_NCRECALC on Win32 windows.
26281 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26282 (Part of fix for #77729). This matches what MS does, they also
26283 send that message when the form is made visible.
26284 - XException.GetMessage: Improved usability of X errors by including
26285 a translation of the window into Hwnd and Control class
26286 - Improved debug info for window creation, reparenting and destruction
26287 - Created helper method WindowIsMapped() [Currently not used]
26288 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26290 - CreateParams: Now setting our menu on the new internal menu field
26291 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26292 avoid calculating the same property twice
26294 - Improved usability of ToString() for debugging purposes
26295 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26296 determine the height of the menu, instead of just the font. This
26297 required to also create a graphics context and to keep a bmp
26298 around (for performance reasons)
26300 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26302 * MenuAPI.cs: Added OnMouseUp method
26304 - Now remembering the requested client size, avoids size errors
26305 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26306 instead of base if the menu is active. This is required due to
26307 control now capturing and releasing on down/up and it would
26308 prematurely release our menu capture
26310 2006-03-17 Jackson Harper <jackson@ximian.com>
26312 * KeyboardLayouts.cs: Add the czech layouts.
26314 2006-03-16 Jackson Harper <jackson@ximian.com>
26316 * Control.cs: Use the viewport space when sizing not the controls
26317 client size, so things like ScrollableControl that effect the
26318 viewport size (when scrollbars are added) are computed correctly.
26319 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26321 - Handle creating BindingManagers for null data sources.
26322 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26323 source, otherwise when rows are added they are added to the 'fake'
26324 datasource and we will crash when trying to set the position in
26326 - Use Implicit scrollbars on the datagrid so they arent
26329 2006-03-16 Jackson Harper <jackson@ximian.com>
26332 * InternalWindowManager.cs:
26333 * MdiWindowManager.cs:
26334 * X11Keyboard.cs: I really want Mike to love me again (fix
26335 compiler warnings).
26337 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26340 - OnMouseDown: Switch to editing mode when clicking on the cell
26341 even if we're clicking on the cell that's currently
26343 - ProcessGridKey: Left/Right now wrap like MS.Net does
26344 - ProcessGridKey: Tab now knows to add a new row when tab is
26345 pressed in the cell of the last column of the
26347 - ProcessGridKey: Enter now adds another row if pressed in the last
26348 row and selectes the new row, same column cell
26349 - ProcessGridKey: Home/End navigate columns, not rows, like
26350 originally implemented
26351 - Broke ProcessKeyPreview code out into an extra Internal method
26352 so it can be called from the edit code
26353 * DataGridTextBox.cs (ProcessKeyMessage):
26354 - Switched to accept Tab keypresses
26355 - Added F2 handling to allow jumping to the end of the edited cell
26356 - Added logic to allow moving caret left/right inside edited cell
26357 and making the edited cell jump when the caret hits cell borders
26358 - Tab and Enter are now passed to the datagrid after being handled
26360 - Removed capture code now that Control handles it
26361 - set_SelectionStart now ensures caret is visible
26363 2006-03-16 Jackson Harper <jackson@ximian.com>
26365 * TrackBar.cs: Debackwards the increment/decrement for handling
26366 mouse clicks on the bar with vertical trackbars.
26367 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26368 bottom to match MS.
26370 2006-03-16 Mike Kestner <mkestner@novell.com>
26372 * ListView.cs: make shift/ctrl keyboard and mouse selection
26373 consistent with the MS control. Fix a bug in
26374 SelectedListViewItemCollection.Clear that was pissing me off for the
26375 better part of a day because the collection was being altered
26376 underneath us as we walked the list.
26378 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26380 * Control.cs: Not sure how we could miss this so long, but it seems
26381 that MS.Net has Capture set all the way from before calling
26382 OnMouseDown through sending the mouse events until after
26383 OnMouseUp. This will fix DataGrid's selection being set to end
26384 at the location of the MouseUp.
26386 2006-03-15 Jackson Harper <jackson@ximian.com>
26388 * BindingContext.cs: Check the binding after its added so that it
26389 can initialize the binding managers and hookup to events.
26390 * Binding.cs: Data members seem to sometimes include rows/cols in
26391 the format Row.Column we now take this into account.
26392 - Hookup to the position changed event so we can update the
26393 control when the position has changed in the data set.
26394 * CurrencyManager.cs: Take into account the row/col naming
26395 convention when creating dataset tables.
26396 * BindingContext.cs: Using a newer better way of storing
26397 datasource/datamember pairs. Hopefully this better matches MS for
26398 looking up binding managers.
26401 2006-03-15 Jackson Harper <jackson@ximian.com>
26403 * BindingContext.cs: The currency manager needs the data member
26404 name, if the member is a data set we use the name to find the
26406 * CurrencyManager.cs: When creating the list prefer an IList over
26408 - Attempt to create a DataTable from a DataSet (TODO: might need
26409 some better error checking here, although MS doesn't seem to have much)
26410 - If we have a DataTable create a view and use it as our list.
26412 2006-03-15 Mike Kestner <mkestner@novell.com>
26414 * ListView.cs: keep a matrix of the icon mode layout to facilitate
26415 keyboard navigation. Support Up/Down/Left/Right selection correctly
26416 for all 4 View modes.
26417 * ListViewItem.cs: add internal row/col fields for icon layouts.
26419 2006-03-15 Jackson Harper <jackson@ximian.com>
26421 * TabControl.cs: Redraw the tabs when we resize so their newly
26422 calculated sizes are drawn on screen.
26423 * X11Keyboard.cs: Begginnings of XIM support. We also now support
26424 composite characters.
26425 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26426 - filter events so that composite characters can be created
26428 * X11Structs.cs: Add XIMProperties enum.
26430 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26432 * Control.cs (BringToFront, SendToBack): Don't use window or handle
26433 unless it's created
26435 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26437 * Control.cs (PerformLayout): We don't need to consider visiblity
26438 for anchoring, only for docking. This fixes 'whacky' alignment
26439 in listbox and other controls that use implicit scrollbars after
26440 the previous PerformLayout patch
26441 * ListBox.cs: Switched to use implicit scrollbars
26443 2006-03-14 Mike Kestner <mkestner@novell.com>
26447 - chain up the "new event" overrides to base and use
26448 OnEvent to raise them. Part of fix for bug #76509.
26450 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
26452 * FileDialog.cs: Do not select an item in the parent directory
26455 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26457 * Control.cs (PerformLayout): It would seem that we considered
26458 invisible windows for our layout. Not quite the right thing
26459 to do. Now we don't any longer, thereby fixing bug #76889.
26461 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26463 * Control.cs (CanFocus): I goofed. A control can have focus
26464 even though it's not selectable. Made it match MS docs.
26466 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26468 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26469 center by default (fixes #76895)
26470 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
26471 all uses of Border3DSides.All with the explicit ORd together
26472 Left|Right|Top|Bottom because I assume that nobody was aware
26473 that All also implies a center fill. Most places I checked had
26474 a fill right above.
26475 * ProgressBarStyle.cs: Added
26477 2006-03-13 Mike Kestner <mkestner@novell.com>
26479 * ListView.cs: fix breakage in drag shadow header positioning
26480 from Peter's csc compilation fix.
26482 2006-03-13 Mike Kestner <mkestner@novell.com>
26484 * ListView.cs: fix NRE produced by backspacing twice in a focused
26487 2006-03-13 Mike Kestner <mkestner@novell.com>
26489 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26491 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26493 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26495 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26496 the allowed size before making programmatic size changes
26498 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26500 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
26501 set, metacity is broken and will still use the emty sizes in
26502 the struct. (Fix for #77089)
26504 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26506 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
26507 WindowExStyles and marked both enums as Flags
26508 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26509 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26510 to match WindowStyles split
26512 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26513 - Updated to match WindowStyles split
26515 - Fixed FosterParent creation, was using ExStyle on the Style field
26516 (This should help with Popup focus issues)
26517 - Updated to match WindowStyles split
26519 2006-03-13 Jackson Harper <jackson@ximian.com>
26521 * MdiWindowManager.cs: Use the system menu height. Fixes some
26522 strange sizing issues.
26524 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26526 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26528 - Scroll to caret after inserting text (#77672)
26529 - Make scroll range one pixel higher, fixes off-by-one error (and
26530 makes underlines visible on the last line)
26532 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26534 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26535 the keyboard state from being stuck with keys in 'pressed' state when
26536 focus is switched away via keyboard
26537 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26538 reset the keyboard if no X11 KeyUp events are expected to come
26539 * X11Structs.cs: Switched type of Visible to bool to match driver
26541 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26544 - Switched caret to be just 1 pixel wide, matches MS and looks less
26546 - Moved caret display 1 pixel down from the top of the control
26548 - InsertCharAtCharet: Update the selection start if moving the caret
26549 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26550 - No longer always creating the caret when the caret methods are
26551 called. Only the actual ShowCaret/HideCaret will do that now
26552 - Only setting caret visible if the owner control has focus
26553 - UpdateView: Added invalidation-shortcut logic for center and right
26554 aligned text. Previously we'd update all according to the left
26555 logic which caused drawing errors. Also fixed height of invalidated
26556 areas, now properly invalidating the whole area (was off-by-one)
26557 - owner_HandleCreated: Always generate the document when the
26558 handle is created; this ensures that
26560 - Fixed situation where caret would disappear under the right
26561 window border, also improved scrolling behaviour on left-
26563 - Fixed right-aligned textboxes to have a border to the
26564 right instead of the caret being under the right border
26566 - Switched from 'nested' to simple visible/not visible tracking
26567 for caret (part of fix for #77671)
26568 - No longer passing through translated FocusIn/FocusOut messages
26569 since we were notifying too often and the wrong windows. Instead
26570 we just notify our focussed window of receiving or loosing focus
26571 * XplatUIWin32.cs: Switched from 'nested' show/hide
26572 counting for caret to simple visible yes/no behaviour (part of
26575 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26577 * Mime.cs: Remove debug code...
26579 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26581 * MimeGenerated.cs: Removed
26582 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26583 and subclasses) from /usr/(local/)share/mime and
26584 $HOME/.local/share/mime.
26586 2006-03-10 Jackson Harper <jackson@ximian.com>
26588 * MdiWindowManager.cs: Recalc the NC area when a window is
26589 maximized/restored so that the menu area is drawn on forms that
26592 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26594 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26595 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26596 us to force a WM_NCCALCRESIZE message being sent. This is needed
26597 for MDI maximizing.
26599 2006-03-10 Jackson Harper <jackson@ximian.com>
26601 * Form.cs: We need to use the ActiveMenu when calculating menu
26603 - Fix nullref when the window manager hasn't been created yet.
26604 * Control.cs: Fix nullref when we try to bring a control to the
26605 front that has no parent.
26606 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26608 - Add a dummy item to the maximized menu so it always has the
26609 correct height. Otherwise when there are no menus we don't get our
26613 2006-03-10 Jackson Harper <jackson@ximian.com>
26615 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26617 * Form.cs: Make the window_state internal so the window managers
26619 - When an MDI child is maximized let its window manager create the
26620 main menu (so it can add its icon).
26621 - Notify the window managers of state changes
26622 - Let the window manager paint its buttons and handle button
26623 clicks on the menu when it is maximized.
26624 * InternalWindowManager.cs: Move the prev_bounds into the mdi
26625 window manager, since tool windows don't use it, only mdi windows.
26626 - Tell the main form that we don't want it to handle NCPAINT
26627 itself to avoid extra painting.
26628 - Handle clicks on a maximized windows menu.
26629 - Handle window state changes
26630 - Handle minimize/maximize clicks correctly by setting the window state.
26631 * MdiWindowManager.cs: Add an icon menu that (the menu you get
26632 when clicking on the forms icon).
26633 - New method to create a forms maximized menu. This is its normal
26635 - Handle window state changes.
26636 - Handle sizing of maximized windows. Maximized windows are just
26637 drawn bigger then the parent visible area. All controls are still
26638 there, they are just outside the visible area (this matches windows).
26639 * MdiClient.cs: No scrollbars when a child window is maximized.
26640 - Let the children windows figure out how big they should be when
26641 sizing maximized windows.
26642 - Implement a version of ArrangeIconicWindows somewhat similar to
26643 Windows version. There are some little differences, but I don't
26644 think any app will rely on the layout of minimized mdi windows.
26646 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26648 * Padding.cs: Several fixes to allow compiling with csc 2.0
26650 2006-03-09 Jackson Harper <jackson@ximian.com>
26653 * MenuItem.cs: Cheap hack so we can add items to the list without
26654 the events being raised. This allows adding mdi items during
26655 drawing. TODO: Should probably find a better time to add the items.
26657 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26659 * ThemeWin32Classic.cs:
26660 - CheckBox_DrawText: Added logic to not wrap if not enough space
26661 is available (Fix for bug #77727)
26662 - RadioButton_DrawText: Added logic not to wrap if not enough
26663 space is available (Fix for bug #77727). Also removed some
26664 duplicate code, DrawString always drawing the regular text
26665 before hitting the if statement.
26667 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26669 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
26671 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26673 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
26674 * ContainerControl.cs: Partial implementation of some 2.0 scaling
26675 methods. Moved the new 2.0 properties into alphabetical order with
26676 other properties and added MonoTODO tags
26678 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26680 * AutoScaleMode.cs: Added. Fix build.
26682 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26684 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26685 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
26686 and was requiring premature handle creation for calls from above
26687 * Form.cs, Control.cs: Removed handle arguments from calls to
26688 CalculateClientRect()
26690 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26692 * ListView.cs (HeaderMouseMove): Fix csc compilation.
26693 drag_column.column_rect is MarshalByRef and can't be used that way
26695 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26697 * AxHost.cs: Added deserialization constructor for
26698 AxHost+State (fixes 77743)
26700 2006-03-09 Mike Kestner <mkestner@novell.com>
26703 - Added column drag reordering for details view.
26704 - fixed behavior when mouse is dragged off column and
26705 AllowColumnReorder is false.
26706 * ColumnHeader.cs: clone the format too in Clone.
26707 * Theme.cs: add DrawListViewHeaderDragDetails method.
26708 * ThemeWin32Classic.cs:
26709 - impl new method for drawing drag column shadows and targets.
26710 - support column offset for details mode in DrawListViewItem.
26712 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26714 * TextControl.cs: Reset the char_count when the document is cleared
26715 (Fixes bug reported on mono-winforms mailing list)
26717 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26719 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
26720 of calling base we simply process the key ourselves, since both
26721 DefWindowProc and the handled method would set m.Result.
26724 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26726 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
26727 method also moves the window; instead implemented a copy of
26728 Control.ScaleCore (Part of fix for #77456)
26730 - Created new CreateGraphicsInternal method to allow providing
26731 a graphics context when no handle is created without triggering
26732 handle creation. (Part of fix for #77456)
26733 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26735 - Switched Constructor to require TextBoxBase instead of Control (to
26736 allow uncast access to CreateGraphicsInternal)
26737 - Safeguarded use of owner.Handle property. No longer accessing it
26738 unless the handle is already created.
26739 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26740 - Now triggering a recalc when owning control becomes visible
26741 * TextBox.cs, RichTextBox.cs: Switched to use new internal
26742 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
26743 premature handle creation (Part of fix for #77456)
26745 - We now only destroy our double-buffering buffers when the
26746 control is resized or disposed, but not when visibility
26747 changes. (The code even re-created them twice every time)
26748 - Now requiring a redraw of the buffer on visibility changes
26749 (fixes bug 77654 part 2)
26750 - Not passing OnParentVisibleChanged up unless the control
26752 - CanFocus: Fixed to match MS documentation
26753 - Focus: Fixed to return actual focus state and to check if
26754 setting focus is legal before setting it
26756 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
26758 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
26759 when to draw focus rectangle by looking at parent focus and
26760 selected state instead. This fixes TabPages on Linux sometimes
26761 having none or multiple focus rectangles.
26762 * XplatUIX11.cs (SetFocus):
26763 - Don't set the focus if the same window already has focus
26764 - Use SendMessage instead of PostMessage (like it's Win32
26765 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
26766 to match MS behaviour
26767 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
26768 are not selectable.
26770 2006-03-07 Jackson Harper <jackson@ximian.com>
26772 * PictureBox.cs: Revert line I accidently committed last week.
26774 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
26777 - Added new IsRecreating and ParentIsRecreating properties to
26778 allow testing if RecreateHandle has been called on ourselves
26779 or one of our parents
26780 - WndProc(WM_DESTROY): If our control handle is being recreated
26781 we immediately need to create the handle when receiving the
26782 destroy, that way our child windows find a valid parent handle
26783 when they themselves are being recreated upon WM_DESTROY receipt
26784 (fix for bug #77654 part 1)
26786 - DestroyWindow: WM_DESTROY must be sent to our own window before
26787 notifying any child windows. MS documents that child windows
26788 are still valid when WM_DESTROY is received. (Control now relies on
26790 - Added some fine-grain debug options
26792 2006-03-06 Jackson Harper <jackson@ximian.com>
26794 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
26795 box and base calculations off this.
26796 * MdiChildContext.cs:
26797 * MdiWindowManager.cs: Don't need to ensure scrollbars here
26800 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
26802 * Splitter.cs: In situations where the affected control is added
26803 to the parent's control list after the splitter, we would not
26804 populate affected. Now we try populating it on mousedown, if
26805 it's not already set, and force it to be re-set whenever our
26808 2006-03-03 Matt Hargett <matt@use.net>
26810 * Control.cs: implement Control.Padding
26811 * Padding.cs: -Padding.All returns -1 when constructing with the
26812 implicit default ctor
26813 -Padding.ToString() matches MS.NET
26814 * ContainerControl.cs: implement
26815 ContainerControl.AutoScaleDimensions
26816 * ListControl.cs: implement ListControl.FormattingEnabled
26817 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
26819 * TabPage.cs: Implement UseVisualStyleBackColor.
26820 * PictureBox.cs: Implement PictureBox.InitialImage.
26822 2006-03-03 Mike Kestner <mkestner@novell.com>
26824 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
26825 event declarations to proxy to base event.
26826 * ListViewItem.cs: update to use ItemControl.
26827 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
26828 * ThemeWin32Classic.cs: update to new ListView theme API and fix
26829 column header label rendering for 0 width columns.
26831 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
26833 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
26834 that causes the control to be created. Fixes #77476.
26836 2006-03-02 Jackson Harper <jackson@ximian.com>
26838 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
26841 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
26843 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
26844 passed in for the EventArgs (fixes #77690)
26846 2006-03-01 Jackson Harper <jackson@ximian.com>
26848 * ScrollBar.cs: Refresh afterbeing resized.
26850 2006-02-28 Mike Kestner <mkestner@novell.com>
26852 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
26853 Clean up a tracker compile warning.
26854 * MenuItem.cs: add internal PerformPopup method.
26857 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
26859 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
26860 implicit expose) when the text is set to null
26862 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
26864 * RichTextBox.cs (FlushText): When newline is true, we always
26865 need to split the line, even if no text is on it and we may
26866 never eat newlines. (Fixes #77669)
26868 2006-02-28 Mike Kestner <mkestner@novell.com>
26870 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
26871 and set Selected instead.
26872 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
26875 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
26877 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
26879 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
26882 - Got rid of the panel. All controls are now directly added to
26884 - It is now possible to set a font with the Font property
26885 - MinSize and MaxSize property do now what they should
26886 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
26887 - Searching and selecting a font with the font textbox works now,
26888 the same applies to the style and size textbox
26889 - Draw the correct 3D border in the example panel
26890 - Fixed a little mem leak (unused fonts didn't get disposed)
26891 - Many other internal updates/rewrites...
26894 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
26897 - InsertRTFFromStream: Added 'number of characters inserted' argument
26898 - set_SelectedRTF: Now using the number of characters to calculate
26899 the new location for the selection and cursor (x/y cannot be used
26900 due to potentially already wrapped text)
26902 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
26904 * TextControl.cs: Added property and implemented means to allow
26905 disabling recalculation of a document (can be used to speed up
26906 multiple inserts and is needed to make RTF inserts predictable, see
26908 * RichTextBox.cs: Using the new NoRecalc property of Document to
26909 keep x/y insert locations predictable. Also makes it faster inserting
26910 large chunks of RTF
26912 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
26914 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
26915 it's easier for a child control to handle the other messages without
26916 having to duplicate the special functionality
26918 - WndProc: Removed calling base handler for WM_KEYDOWN and added
26919 code to handle processing the key ourselves, in order to get
26920 access to the result of KeyEventArgs.Handled. We now only call
26921 ProcessKey if they key hasn't been handled already. Fixes #77526.
26922 - set_Text: If null or empty string is given, just clear the
26923 document. Fixes part of #77526
26925 2006-02-27 Jackson Harper <jackson@ximian.com>
26927 * SizeGrip.cs: Paint the background color before painting the grip
26928 so things look right.
26929 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
26931 2006-02-27 Mike Kestner <mkestner@novell.com>
26934 - Restructure layout and invalidation model to remove a ton of
26935 flicker from the control and speed up performance in general.
26936 - Add manual column resize, flickers like crazy, but I already have
26937 some ideas on how I'll fix that. (#76822)
26938 - Merge the three Icon-based views into a single layout method.
26939 - Move item selection interaction logic from the item since
26940 interaction with the collections is more appropriate to the view.
26941 - Deselection on non-item clicks.
26943 - Encapsulate most of the layout. Add some internal props to trigger
26944 layout. Move to a model where Items invalidate themselves instead
26945 of just invalidating the whole control every time something changes.
26946 - Invalidate on Text/Caption changes.
26947 - switch to an offset based layout model to avoid having to absolute
26948 position every element on item moves.
26949 - correct checkbox layout to conform to MS layout.
26950 * ThemeWin32Classic.cs:
26951 - refactor some column header drawing code.
26952 - fix string justification for column headers (#76821)
26953 - make SmallIcon labels top justified for compat with MS impl.
26954 * ThemeClearlooks.cs:
26955 - adjust to new ListViewItem internal checkbox bounds api.
26957 2006-02-27 Jackson Harper <jackson@ximian.com>
26959 * Control.cs: Change where implicit controls fall in the zorder.
26960 They are now on top of all children.
26961 - Synced AddImplicit code with Add
26962 - Removed unused enumerator.
26963 * SizeGrip.cs: Remove the TODO as its been TODONE.
26965 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
26967 * TextControl.cs(Insert): Combine the last lines unless the insertion
26968 string ends with \n\n, otherwise we leave one line too many (Fixes
26969 something I noticed with the testapp for #77526; the bug itself was
26970 already fixed in the previous checkin)
26972 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
26975 - SelectionColor and SelectionFont methods no longer set absolute
26976 styles. Instead, the keep font or color respectively (This
26977 resolves a long-standing FIXME in the code)
26978 - When flushing RTF text, the insert code now considers text trailing
26979 behind the insertion point (Fixes the bug where when replacing
26980 the selected text via SelectedRTF the remainder of the line behind
26981 the selection would stay on the first insertion line)
26983 - AppendText now updates the selection points after inserting text
26984 - AppendText now ensures that the last tag (sometimes 0-length) of
26985 the document is used for the style information (Fixes part of
26988 - Created new FontDefiniton class to allow describing partial style
26990 - StreamLine() now takes a lines argument, to allow it to decide
26991 whether an encountered zero-length tag is the last in the document
26992 (which must be kept to not loose the font/color contained in it,
26994 - Created Combine() and Split() methods for Marker structs, to
26995 support marker updates due to reformatted documents (soft line
26997 - Implemented Document.CaretTag setter
26998 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
26999 of the last line (Not the cause, but also exposed by bug #77220)
27000 - Added LineTag argument to InsertString method, to allow callers
27001 to force a certain tag to be used (required to force use of the
27002 trailing zero-length tag of a document)
27003 - Now updating markers in Combine(), to avoid stale tag markers
27004 - Added some method descriptions to aid maintenance
27005 - Implemented new FormatText concept, allowing additive/subtractive
27006 formatting by only specifying the components that are to be
27007 changed. This was needed for resolving the RTB.SelectedColor/
27008 RTB.SelectedFont fixmes
27009 - Added Break() support method to allow breaking up linetags (used
27010 for partial formatting)
27011 - Added GenerateTextFormat() method. It is used for partial
27012 formatting and allows to generate a full font/color from given
27013 attributes and an existing tag.
27015 2006-02-26 Jackson Harper <jackson@ximian.com>
27017 * XplatUIX11.cs: Use the correct caption height.
27018 - Translate hittest coordinates to screen coords to match MS.
27019 * XplatUIWin32.cs: When we create MDI windows we need to reset
27020 some of the style flags, so we get a nice blank window, and can
27021 draw all the decorations ourselves.
27022 - Set a clipping rectangle on the non client paint event, the
27023 window manager drawing code needs one.
27024 * Form.cs: The window manager needs to know when the window state
27026 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27027 don't need to factor in border and title sizes in these
27028 methods. TODO: Remove the args and fix the call points.
27029 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27031 - Let the driver set the cursors.
27032 - Improve active window handling
27033 - Correct sizes for title bars and buttons.
27034 - Match MS drawing better
27035 * MdiWindowManager.cs: We don't need to handle border style
27036 updates specially anymore.
27037 - Check for scrollbars when windows are done moving
27038 - Handle Active properly.
27039 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27040 correctly. I am spewing the exception though, so we don't hide the
27043 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
27045 * DataGridViewRowPostPaintEventArgs.cs,
27046 DataGridViewCellPaintingEventArgs.cs,
27047 DataGridViewRowCollection.cs,
27048 DataGridViewRowPrePaintEventArgs.cs,
27049 DataGridViewCell.cs: Clear a few warnings and implement a few
27050 exceptions that should be thrown.
27052 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27054 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27055 'inheriting' our parent's (non-default) cursor. (Part of
27056 the fix for #77479)
27058 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27060 * XplatUIX11.cs: Fixed cast to make csc happy
27062 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27064 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27065 it's for the client area (part of fix for #77479 and needed
27066 for MDI window cursor handling)
27068 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27069 the appropriate default cursors and also passing the message
27070 up the parent chain
27071 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27072 for non-client areas
27074 2006-02-15 Jackson Harper <jackson@ximian.com>
27076 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27077 is a real MDI window
27079 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
27081 * X11DesktopColors.cs: Instead of checking the desktop session
27082 string for "KDE" check if it starts with "KDE"
27084 2006-02-10 Jackson Harper <jackson@ximian.com>
27086 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27089 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27091 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27094 - Got rid of the panel. All controls are now directly added to
27096 - Changed to mono coding style
27098 2006-02-10 Jackson Harper <jackson@ximian.com>
27100 * InternalWindowManager.cs: We don't need the set visibility to
27101 false hack anymore now that peter has written beautiful shutdown
27104 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
27106 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27107 where already explicitly destroyed
27109 2006-02-10 Jackson Harper <jackson@ximian.com>
27111 * MdiClient.cs: Handle the case where windows are too high or to
27112 the left and we need scrollbars.
27114 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27116 * MimeIcon.cs: Added some icons
27119 - Got rid of the panel. All controls are now directly added to
27121 - Changed to mono coding style
27122 - On Linux "My Computer" and "My Network" will now show some
27123 more usefull information. A new class, MasterMount, gathers
27124 this information from /proc/mount. Updated MWFFileView to make
27125 use of this information
27126 - Fixed a bug that caused FileDialog to crash when
27127 ".recently_used" file had a zero size
27128 - FilterIndex does now what it should
27130 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27133 2006-02-09 Jackson Harper <jackson@ximian.com>
27135 * ComboBox.cs: Don't touch if null.
27137 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
27139 * Cursor.cs: 64bit safeness fix
27140 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27142 2006-02-09 Jackson Harper <jackson@ximian.com>
27144 * Form.cs: If a form is made into an MDI form update the styles so
27145 all the props can get set correctly.
27146 - Kill the mdi_container when we dont need it anymore.
27147 * InternalWindowManager.cs: Add missing NOT
27149 2006-02-08 Jackson Harper <jackson@ximian.com>
27151 * InternalWindowManager.cs: Respek clipping when drawing MDi
27154 2006-02-08 Jackson Harper <jackson@ximian.com>
27156 * Hwnd.cs: Add bits to track non client expose events.
27157 * XplatUIX11.cs: Track non client expose events on the hwnd. This
27158 gives us a proper invalid rect and will allow for some nice
27159 optimizations with NC client drawing
27160 - MDI windows are children windows, so move their style handling
27161 into the child window block.
27162 * InternalWindowManager.cs: Remove a state reset that was
27163 getting invoked at the wrong time. Fixes managed windows getting
27164 into a 'stuck' captured state.
27166 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27168 * TextControl.cs (Document.ctor): Now initializing
27169 selection_anchor. Fixes #77493
27171 2006-02-07 Jackson Harper <jackson@ximian.com>
27173 * TrackBar.cs: The increment/decrements were backwards.
27175 2006-02-07 Mike Kestner <mkestner@novell.com>
27177 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27178 to the instance itself.
27180 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27182 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27183 on ulongs and pointers, the size differs between 32bit and 64bit
27186 2006-02-07 Mike Kestner <mkestner@novell.com>
27188 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27189 for 64 bit platforms to work around a metacity bug.
27191 2006-02-07 Jackson Harper <jackson@ximian.com>
27193 * TrackBar.cs: Process the input keys we need, and hookup to
27194 KeyDown instead of using WndProc, so we get key messages.
27196 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27198 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27200 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27201 we need to translate the XdndVersion atoms array before sending it
27203 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27206 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27207 number of bits for the property, not the number of bytes. The
27208 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27209 but would not crash since it specified 8 bits instead of 4 bits)
27210 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27211 defined as XID -> long in the C headers)
27212 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
27213 references since those are now IntPtr to begin with
27214 - Switched all Atom.XXX 'int' casts to IntPtr casts
27215 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27216 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27217 - Added XChangeActivePointerGrab DllImport (for X11DnD)
27219 - Changed 'int' type for Atoms in XEvent structures to IntPtr
27220 - Changed atom in HoverStruct to be IntPtr
27222 - Removed local DllImports, switched code to use those from XplatUIX11
27223 - Removed/fixed casts related to the switch of Atom to be a IntPtr
27225 2006-02-06 Mike Kestner <mkestner@novell.com>
27227 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
27228 method signatures in the import region. There may still be some
27229 lingering struct marshaling issues, as I didn't drill down into those.
27232 2006-02-06 Jackson Harper <jackson@ximian.com>
27234 * ComboBox.cs: Dont manually set the top_item, this is computed
27235 when the scrollbar position is set.
27237 2006-02-06 Mike Kestner <mkestner@novell.com>
27239 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27240 startup crashes on amd64. There's other fixes needed. All pinvoke
27241 usage of Atom needs to be mapped to IntPtr for example. And there are
27242 likely other int/long issues to be addressed.
27244 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
27246 * FileDialog.cs: One more...
27248 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27250 * FileDialog.cs: Next try
27252 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27254 * FileDialog.cs: First part of fix for #77464
27256 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27258 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27259 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27260 AcceptButton border drawing.
27262 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27264 * Form.cs: Moved positioning of form after auto scaling is applied,
27265 otherwise it would possibly use wrong form size.
27267 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27269 * Control.cs (RecreateHandle): No need to re-create any child
27270 controls, the child windows will get destroyed automatically by
27271 the windowing system or driver, and re-created when the handle
27272 is being accessed the first time. Fixes #77456
27273 * Form.cs: No longer setting the form to closing if the handle is
27274 being recreated. This seems like the right thing to do, don't
27275 have a bug or testcase for this, though.
27277 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27279 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27280 controls to avoid unwanted side effects
27282 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27285 - ScaleCore needs to scale the bounds, not the ClientSize of the
27286 control. Fixes #77416.
27287 - DefaultSize is 0,0 for control
27289 - DefaultSize is 100, 20
27290 - SetBoundsCore: Now enforcing the height, no matter if the provided
27291 height is more or less than the preferred one, as long as AutoSize
27293 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27295 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27298 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27299 call unless both performLayout is true *and* we have a pending
27301 - ResumeLayout: MS does not completely nest Suspend and Resume,
27302 they bottom out at 0, fixed our code to match that.
27303 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27304 SetBoundsCore, we were updating even when we shouldn't. This fixes
27305 swf-anchors mis-anchoring when resizing the app fast and lots.
27306 - UpdateDistances: Now only setting the left and top distance if
27307 we have a parent and are not suspended, this is based on
27308 a suggestion by Don Edvaldson in bug #77355.
27309 - OnVisibleChanged: Fixed logic when to create the control. We may
27310 not create the control if we have no parent or if it's not visible;
27311 switched to using Visible property instead of is_visible field
27312 since the property also considers parent states. This fixes a bug
27313 when starting Paint.Net
27315 2006-02-02 Jackson Harper <jackson@ximian.com>
27317 * Form.cs: If the forms handle hasn't been created yet don't call
27318 into xplatui to make it top most, just set the topmost flag on the
27319 form in CreateParams
27320 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27322 2006-02-01 Jackson Harper <jackson@ximian.com>
27324 * ScrollableControl.cs: Refactored the Recalculate method a
27325 little, this wasn't handling all the variants of bottom and right
27326 bars needed to be added and added/removed based on their
27327 counterparts being added/removed (which changes the drawable
27328 size). Also we special case client widths and heights of 0 and
27329 don't add the scrollbar for those.
27331 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
27334 - Added method to get AbsoluteGeometry(); currently unused, but might
27335 be used in the future, if we try again to figure out toplevel
27336 coordinates with some more crappy window managers
27337 - Added FrameExtents() method to retrieve the WM set decoration size
27338 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
27339 to deal with at least KDE, FVWM and metacity (Fixes #77092)
27341 - Added whacky_wm tracking var for metacity
27342 - Added logic to have default menu height if the actual menu height
27343 has not yet been calculated (part of fix for #77426)
27344 * Form.cs: Keep track whether client size has been set and re-set
27345 it if a menu is added/removed afterwards (Fixes #77426)
27347 2006-01-31 Jackson Harper <jackson@ximian.com>
27349 * Control.cs: When a new Site is set on the component attempt to
27350 pull the AmbientProperties from it.
27352 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
27354 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27355 in the background of the owning form. Fixes #77332
27357 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27359 * MimeIcon.cs: Fix for #77409
27361 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27363 * XplatUIX11GTK.cs: Initial import
27365 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
27367 * FixedSizeTextBox: fixes class signature
27369 2006-01-30 Jackson Harper <jackson@ximian.com>
27371 * FixedSizeTextBox.cs: New internal class that represents a
27372 textBox that will not be scaled.
27375 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27378 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27380 * XplatUIX11.cs: Retrieve default screen number instead of
27381 assuming 0. Attempted fix for #77318
27383 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27386 - GetWindowPos: When a window is parented by FosterParent, use
27387 the desktop instead of FosterParent as the base to get coordinates
27388 - CreateWindow: Don't make FosterParent the parent window for Popups
27389 if we don't want a taskbar entry, Popups automatically don't get one
27390 * Hwnd.cs: Need to call remove to actually remove the key from the
27393 2006-01-30 Mike Kestner <mkestner@novell.com>
27395 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27397 2006-01-30 Jackson Harper <jackson@ximian.com>
27400 * TreeNode.cs: Raise events no matter how the treenode is
27401 checked. Patch by Don Edvalson.
27403 2006-01-30 Jackson Harper <jackson@ximian.com>
27405 * TreeNode.cs: Signature fix.
27407 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
27409 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27411 2006-01-20 Mike Kestner <mkestner@novell.com>
27413 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27414 event forwarding when menus are active.
27415 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
27416 Most of the patch is pdb's with a little rework.
27418 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27420 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
27421 Removed GetMenuDC and ReleaseMenuDC methods; replaced
27422 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27423 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27424 * InternalWindowManager.cs: Added use of PaintEventStart/End to
27425 handling of WM_NCPAINT message, now passing the PaintEventArgs to
27426 the PaintWindowDecorations method
27427 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27428 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27429 * MenuAPI.cs: Made tracker window invisible
27431 - Removed GetMenuDC and ReleaseMenuDC methods
27432 - Implemented the client=false path for PaintEventStart and
27435 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27437 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27438 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27441 - MaximizeBox, MinimizeBox: Recreate the handle when setting
27443 - CreateParams: Reworked the styles to match MS look'n'feel,
27444 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27445 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27447 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27449 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
27450 window is not mapped, since otherwise every form that's being
27451 created is considered minimized, which is wrong.
27452 * Form.cs: Catching the exception and returning our internal value
27455 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27457 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27458 SetWindowMinMax() to have means to tell the driver about the minimum,
27459 maximum and maximized state window sizes. (Part of the fix for #76485)
27461 - Implemented tracking of minimum and maximum window size, now calling
27462 new SetWindowMinMax() driver method to tell the driver (Part of the
27464 - Finished handling of WM_GETMINMAXINFO method, now setting all values
27465 (Completes fix for #76485)
27466 - Calling new SetWindowMinMax driver method when the handle for a
27467 form is created, to make sure the driver knows about it even if
27468 the values have been set before the window was created
27469 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27470 to avoid messing up our anchoring calculations (partial fix
27472 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27474 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27475 - Improved GetWindowState() to detect 'Minimized' state on Metacity
27476 (and presumably other freedesktop.org compliant WMs). Left the
27477 assumption unmapped=minimized, needed for SetVisible to work.
27478 - Now setting the window state when creating windows
27479 - Fixed SetVisible to consider/set the window state when mapping
27480 a Form. We cannot set the state before it's mapped, and we cannot
27481 use Form.WindowState once it's mapped (since it would ask the
27482 driver and get 'normal'. Therefore, we grab the state before
27483 mapping, map, and then set state.
27484 - Implmemented SetWindowMinMax method; Metacity does not seem to
27485 honor the ZoomHints, though.
27487 - Removed MINMAXINFO (moved to XplatUIStructs)
27488 - Added SetWindowMinMax stub (on Win32 the only way to set that
27489 information is in response to the WM_GETMINMAXINFO message, which
27490 is handled in Form.cs)
27491 - Added logic to SetVisible to set the proper window state when a
27492 form is made visible (fixes #75720)
27494 2006-01-26 Jackson Harper <jackson@ximian.com>
27496 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27497 same way we handle them with Invoke.
27499 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
27502 - Added tracking of window state so CreateParams can return
27503 the appropriate style
27504 - Moved setting of WS_CAPTION style in CreateParams to allow
27505 styles without caption
27506 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
27507 control if the TextBox property is accessed. Fixes #77345
27509 - get_Created: now uses is_disposed and is_created to determine
27510 return value (suggested by Jackson)
27511 - CreateHandle: No longer exits if the handle is being recreated
27512 - RecreateHandle: If the handle is not yet created call the
27513 appropriate method to create either control or handle. If the
27514 control is already created CreateHandle will simply exit instead
27515 of just creating the handle
27516 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27517 now SendMessage WM_DESTROY directly to the control when DestroyWindow
27520 - When DestroyWindow is called, instead of waiting for the
27521 DestroyNotification from X11, we directly post it to the WndProc
27522 and immediately dispose the hwnd object.
27523 Same applies to DestroyChildWindows, and this obsoletes the
27524 expose_pending tracking. Contrary to Win32 behaviour we destroy our
27525 child windows before our own, to avoid X11 errors.
27526 - Removed the direct sending of WM_PAINT on UpdateWindow
27528 - Reworked DoEvents and GetMessage to allow access to internal queue
27529 even when trying non-blocking access to the queue. Fixes #77335.
27530 Based on a patch suggestion by Don Edvalson. The new private
27531 GetMessage can now also be used as a backend for a PeekMessage
27533 * XplatUI.cs: Improved debug output for CreateWindow
27535 2006-01-25 Jackson Harper <jackson@ximian.com>
27537 * Help.cs: Allow param to be null. Patch by Don Edvalson.
27539 2006-01-24 Jackson Harper <jackson@ximian.com>
27541 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27542 when we have a MaxDropItems lower then the selected index.
27544 2006-01-24 Jackson Harper <jackson@ximian.com>
27546 * Control.cs: Don't allow selection of non visible controls, allow
27547 selection of controls without parents.
27549 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27551 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27552 * DataGridDrawingLogic.cs: Add editing row only when is necessary
27554 2006-01-23 Jackson Harper <jackson@ximian.com>
27556 * UpDownBase.cs: Make the textbox handle all the selection and
27557 tabbing. This fixes tabing to updown controls.
27559 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27561 * TextBoxBase.cs: fixes exception thown the object was null
27563 2006-01-23 Jackson Harper <jackson@ximian.com>
27565 * ButtonBase.cs: Just use the base CreateParams. They set
27566 visibility and enabled correctly.
27569 * MonthCalendar.cs: Lets let the base set as much of the
27570 createparams as possible so we don't have duplicate code all over
27573 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
27575 * ThemeGtk.cs: Added TrackBar and some experimental code to
27576 get double buffering back
27578 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
27580 * DataGrid.cs: Allows row number set internally higher than the last
27581 when creating a new row. Restores the editing functionality.
27583 2006-01-20 Mike Kestner <mkestner@novell.com>
27585 * MimeIcon.cs: delay Image creation until the icons are accessed
27586 instead of creating 190 scaled images on GnomeHandler startup.
27588 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27590 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27591 first call base before processing the event. Fixes #77279
27593 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27595 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27596 that the stride for the GDI bitmap would match the stride of
27599 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
27601 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27603 2006-01-19 Jackson Harper <jackson@ximian.com>
27605 * ComboBox.cs: Hookup the text controls keydown event so we get
27606 those when the text control has the focus.
27608 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27610 * Label.cs: Now using the base events instead of defining new ones;
27611 this allows us to just call the base properties without having to
27612 duplicate all base property logic
27614 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27616 * Label.cs: A label by default is not a tabstop (Fixes one of our
27617 failing nunit tests)
27619 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27621 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27622 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27624 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27626 * Cursor.cs: Reimplemented creating cursor bitmaps without using
27627 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27630 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
27631 constructor creates images that can't be saved. Part of the fix
27633 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27634 - SetWindowState: Switched ShowWindow flags (part of an upcoming
27635 bug fix for handling window state in forms properly)
27637 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27639 * ThemeGtk.cs: Simplify ScrollBar drawing
27641 2006-01-18 Jackson Harper <jackson@ximian.com>
27643 * Splitter.cs: Set the default dock style for the splitter control
27644 in the constructor.
27646 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27648 * ThemeGtk.cs: Corrected StateType and ShadowType for
27651 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27653 * Control.cs: Make use of Theme.DoubleBufferingSupported
27655 - Added drawing for flat style buttons
27656 - Added ScrollBar drawing
27658 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27660 * ThemeClearlooks.cs: Removed some unneeded code.
27661 * ThemeGtk.cs: First part of ThemeGtk enhancements.
27663 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27665 * LinkLabel.cs: We need to update the hover drawing when
27666 leaving the control as well.
27668 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
27670 * DataGrid.cs: Clicking on non empty areas in the columns
27671 area was giving an exception
27673 2006-01-17 Jackson Harper <jackson@ximian.com>
27675 * ThemeWin32Classic.cs:
27676 * ListView.cs: Do not draw/clip the headers when the header style
27679 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27681 * DataGrid.cs: Fixes 77260
27683 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27685 * DataGrid.cs: Clicking on a column on a empty grid was giving
27688 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27690 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
27691 or any keypress will crash the grid.
27693 2006-01-17 Mike Kestner <mkestner@novell.com>
27695 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
27696 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
27697 invisible/previously-visible items.
27700 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
27702 * ThemeClearlooks.cs:
27703 - Added CL_Draw_Button method; now other theme controls that are
27704 not derived from button or do not have a button can draw buttons
27706 - Updated ComboBox drawing
27707 - Beautified RadioButton drawing
27708 - Corrected drawing of bottom and left tabs
27709 - Beautified DateTimePicker and MonthCalendar
27710 - Added CPDrawButton and CPDrawRadioButton
27712 2006-01-16 Jackson Harper <jackson@ximian.com>
27714 * ComboBox.cs: Set the initial value of the scrollbar to the
27715 current index. Reduce the numbers of refreshs and IndexOfs called.
27717 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
27719 * FileDialog.cs: When the file listview is focused hitting the
27720 backspace key moves the fileview to the parent directory
27722 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27725 - Added RecreateHandle call when changing taskbar visibility to
27726 trigger reparenting in Win32 driver (Fixes #75719)
27727 - If a window has minimize or maximize buttons, it cannot have
27730 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
27731 the toplevel form with FosterParent (A toolwindow not on the
27732 taskbar) (Fixes #75719)
27733 - Made FosterParent a toolwindow
27735 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27737 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
27739 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27741 * ToolTip.cs: If SetToolTip is called from a control and the mouse
27742 is currently over that control, make sure that tooltip_window.Text
27745 2006-01-13 Mike Kestner <mkestner@novell.com>
27747 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
27749 2006-01-13 Jackson Harper <jackson@ximian.com>
27751 * TreeView.cs: On MS GetNodeAt never actually factors in the X
27752 value passed. Also redraw the selected node when we recieve
27753 focus, so tabbing between trees works correctly.
27755 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27757 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
27758 ~/.gconf/%gconf-tree.xml, so use
27759 .gconf/desktop/gnome/interface/%gconf.xml
27761 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27763 * TextControl.cs: Draw text in gray if control is disabled
27765 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27767 * TreeView.cs: Draw the focus rectangle outside the highlight, to
27768 make sure it's always visible. Fixes #76680.
27770 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27772 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
27774 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
27776 * PageSetupDialog.cs: Added.
27777 * PrintDialog.cs: Attributes.
27778 * PrintPreviewControl.cs: Updates.
27779 * PrintPreviewDialog.cs: Updates.
27781 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27783 * Control.cs: Undid my selection check fix, since it's not needed
27785 - Now considering the presence of hscroll/vscroll when sizing
27786 vscroll/hscroll respectively. Fixed bug #77077
27787 - Added Left/Up/Down/Right to IsInputKey list to prevent
27788 ContainerControl from stealing them. This fixes what I broke
27789 with my last checkin.
27791 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27793 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
27794 I finally understand how the property can be set without a setter :-)
27796 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27799 - Switched RunLoop to use static Message.Create to create a
27801 - Added PreProcessMessage call in runloop for keyboard events; this
27802 is part of the fix for #77219, I overlooked this originally in the
27803 MSDN doc for PreProcessMessage
27805 - Removed call to PreProcessMessage from handling of keyboard
27806 messages; it's supposed to be done in the message pump
27807 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
27808 per MSDN documentation.
27809 - IsInputChar: All chars are input chars by default; removed the
27810 parent calling chain, MS does not document that
27811 - PreProcessMessage: If IsInputChar is true, we want to return false
27812 to allow dispatching of the message
27813 - When selecting the next control, now also check that we're not
27814 selecting ourselves again and therefore return a false positive.
27816 - Tried to match return values for IsInputKey and ProcessDialogKey
27817 to what MS returns; moved processing of our special keys outside
27818 ProcessDialogKey since MS does not seem to return true on those.
27819 - Moved code that previously was in ProcessDialogKey into new private
27820 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
27821 - Reworked handling of WM_CHAR to not have to duplicate code from
27822 Control.cs anymore, instead we simply call down to base.
27824 2006-01-12 Jackson Harper <jackson@ximian.com>
27826 * ComboBox.cs: We always need to refresh the text area when
27827 EndUpdate is called. Fixes the combobox in the file dialog.
27828 * Control.cs: Don't create the creator_thread until the controls
27829 handle is created. Also in InvokeRequired we check if the
27830 creator_thread is null. This gives the effect of InvokeRequired
27831 returning true if the controls handle is not created yet, and
27834 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27837 - Added StartLoop() driver method. This is used to allow drivers to
27838 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
27839 loop for a particular thread
27840 - Added EndLoop() driver method. This is called once the message
27841 pump for the thread is shut down
27842 - Added SupportsTransparency method to allow the driver to indicate
27843 opacity support for windows
27845 - Removed TODO attribute, completed AllowTransparency property
27846 - Added documented logic to Opacity
27847 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
27848 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
27849 versions of CompatibleTextRendering
27850 * X11Structs.cs: Added opacity atom to our atom enumeration
27851 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
27852 of a form might be set before it's reparented by the WM, and we need
27853 the opacity value without calling up to Form)
27854 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
27855 SupportsTransparency() driver methods
27856 * Application.cs: Now calling StartLoop and EndLoop driver methods
27858 - Added opacity atom registration
27859 - Added StartLoop()/EndLoop() methods. They're empty right now but
27860 will need to get implemented when we switch to a per-thread queue
27861 - Implemented SupportsTransparency() method
27862 - Implemented SetWindowTransparency() method
27863 - Added support for setting the opacity value when a window is
27864 reparented (since the opacity needs to be set on the WM frame)
27865 * XplatUIOSX.cs, XplatUIWin32.cs:
27866 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
27868 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
27870 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
27872 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
27874 * FileDialog.cs: Added ToolTip for MWFFileView
27875 * MimeIcon.cs: Rewrote GnomeHandler.
27876 - Get currently used gnome icon theme from
27877 ($HOME)/.gconf/%gconf-tree.xml
27878 - Make use of inherited icon themes
27879 - Support SVG icon themes like Tango via librsvg
27881 2006-01-12 Miguel de Icaza <miguel@novell.com>
27883 Revert's Jackson's revert which broke 2.0 builds. Fix both
27886 * Application.cs: Move the use_compatible_text_rendering outside
27887 the NET_2_0 define. If we ever need to use the
27888 use_compatible_text_rendering on the individual controls they will
27889 access the variable from the common shared code paths.
27891 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27894 - Added more granular debug options
27895 - Added method to print both window text and id
27896 - Switched debug output to use new Window() debug method
27897 - Added IsEnabled() driver method
27898 - Added EnableWindow() driver method
27900 - Removed end_modal; no longer needed, new loop handles termination
27901 via 'closing' variable
27902 - If form is modal, setting DialogResult will now initiate loop
27903 termination via 'closing' variable
27904 - Added support for is_enabled/WS_DISABLED to CreateParams
27905 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
27907 - Removed code that's now in RunLoop from ShowDialog()
27908 - Added various documented sanity checks to ShowDialog()
27909 - Added handling of WM_DESTROY message; we set 'closing' on getting
27910 the message to indicate the message pump to terminate
27911 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
27912 send by the Application.ExitThread method. (We send the message
27913 to destroy the window after all other events have been
27914 processed through the queue, instead of destroying the handle
27916 - Moved code from Close() method to WM_CLOSE handler; added logic
27917 to only send close-related events if the form is not displayed
27919 * Splitter.cs (..ctor): Fixed typo in resource name
27921 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
27923 - set_Cursor: Now only setting calling into XplatUI if the handle for
27924 the control is already created; this avoids implict handle creation
27925 or crashes if it's not created
27926 - set_Enabled: Now setting the enabled state via the new driver method
27927 instead of just tracking it
27928 - CreateParams: Added logic to set WS_DISABLED based on enabled state
27929 - CreateControl: Reordered event firing and method calls to more
27930 closely fire events in the order MS does. Now setting the
27931 enabled state in the driver when creating the control.
27932 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
27934 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
27935 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
27936 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
27938 - Added tracking of window enabled state (get_Enabled/set_Enabled)
27939 - Added EnabledHwnd property to easily allow a driver to find the
27940 handle of the first enabled window in the parent chain (this is
27941 used by drivers to pass up input events of disabled windows)
27942 * XplatUIDriver.cs: Added IsEnabled() method
27944 - Removed crude and obsolete exiting tracking variable
27945 - Removed internal ModalRun(); replaced by RunLoop()
27946 - Implemented private CloseForms() method to allow closing all
27947 windows owned by a particular (or all) threads
27948 - Exit() now properly closes all windows without forcing the message
27950 - Removed obsolete InternalExit() method
27951 - Changed Run() methods to use new RunLoop() message pump
27952 - Implemented new RunLoop() method for both modal and non-modal forms
27954 - get_CreateParams: Added setting of WS_DISABLED
27955 - Simplified ShowDialog(); now all the work is done in RunLoop(),
27956 invoked via Form.ShowDialog()
27957 * NativeWindow.cs: We don't remove the window from the collection when
27958 the handle is destroyed; there might still be messages for it in the
27959 queue (mainly the resulting WM_DESTROY); instead it will be removed
27960 when Control calls InvalidateHandle in the WM_DESTROY handler
27962 - CreateWindow: Added logic to handle the WS_DISABLED window style
27963 - EnableWindow: Implemented based on Hwnd.Enabled
27964 - GetMessage: Reset PostQuitState so the method can be called again
27965 - Implemented support for disabled windows (passing messages to the
27966 first enabled parent) in handling all input messages
27967 - Added optimizations for handling Expose events
27968 - Implemeted new driver method IsEnabled()
27969 - Now always resetting paint pending tracking vars when we start paint
27970 - Re-implemented UpdateWindow via just sending a WM_PAINT message
27971 * XplatUIOSX.cs: Added IsEnabled method stub
27972 * XplatUIWin32.cs: Implemented new IsEnabled() method
27974 2006-01-11 Jackson Harper <jackson@ximian.com>
27976 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27977 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
27978 variables a little.
27979 * ColorDialog.cs: Clear out the old form before adding the new
27982 2006-01-11 Jackson Harper <jackson@ximian.com>
27984 * X11Dnd.cs: Make sure to add all the text formats when adding
27985 strings to the data object.
27986 * TreeNodeCollection.cs: When adding to a sorted tree we need to
27987 do some redrawing too. Also change the UpdateNode to an
27988 UpdateBelow so the newly added node gets painted.
27990 2006-01-11 Miguel de Icaza <miguel@novell.com>
27992 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27993 LinkLabel.cs, PropertyGrid.cs: Implement the
27994 UseCompatibleTextRendering property for 2.x
27996 * Application.cs (SetCompatibleTextRenderingDefault): Add.
27998 2006-01-11 Jackson Harper <jackson@ximian.com>
28000 * TreeView.cs: Use the property for setting the selected node so
28001 the correct events get raised.
28002 * TreeNode.cs: Update the tree when the fore/back colours of a
28005 2006-01-10 Jackson Harper <jackson@ximian.com>
28007 * TreeView.cs: Allow setting SelectedNode to null.
28009 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28011 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28013 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28015 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28017 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28019 * PrintDialog.cs: Added attributes and set default property values.
28021 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28023 * PrintControllerWithStatusDialog.cs:
28024 Added PrintControllerWithStatusDialog.
28026 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28028 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28029 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28031 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28033 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28035 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28037 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28038 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28040 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28042 * MimeIcon.cs: Added internal class SVGUtil.
28044 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28046 * FileDialog.cs: Don't crash if there are two files with the
28047 same name but different locations.
28049 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
28051 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28052 dates across multiple month grids. Used to not highlight entire
28053 month, but does now.
28055 2006-01-06 Jackson Harper <jackson@ximian.com>
28057 * MonthCalendar.cs: Removed DoEvents call to prevent a running
28058 message loop. Change timer intervals to numbers that seem more
28061 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
28063 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28064 object for location info since screen object is now implemented.
28066 2006-01-05 Jackson Harper <jackson@ximian.com>
28068 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28069 * AsyncMethodResult.cs: We no longer use a WeakReference for the
28070 AsyncMethodResult, this is because we ALWAYS want the
28071 ManualResetEvent to get set.
28072 * Control.cs: When disposing use an async invoke to call shutdown
28073 code, so that thigns don't block on the finalizer thread. Also
28074 check if we even have a message loop before trying to send
28075 messages, if we don't then don't bother sending messages.
28076 - No more weak references for async methods
28077 * XplatUIDriver.cs: No more weak references for async methods.
28079 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28081 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28082 returns two FontFamily with the same name
28084 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28086 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
28087 drawing disabled text. Instead using the ColorGrayText color
28089 2006-01-04 Jackson Harper <jackson@ximian.com>
28091 * TreeNode.cs: redraw the node when its image index is changed.
28093 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28095 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28096 time I checked there are no others like it.
28098 2006-01-04 Jackson Harper <jackson@ximian.com>
28100 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28101 this gives the behavoir I was looking for.
28102 * Control.cs: Special case Invoking EventHandlers, this matches MS
28103 and fixes part of bug #76326.
28105 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28107 * ThemeClearlooks.cs, FileDialog.cs:
28108 - Reflect the latest Theme class changes
28109 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
28112 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28114 * Theme.cs: Cache UI resource images and resize them if needed
28116 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28118 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28119 is called. This fixes the crash in Nexxia when setting the font
28120 attributes in the chat. [However, RTF needs a look-over to make sure
28121 that all SelectionXXX methods handle the special case that selection
28122 is empty and therefore the change must be applied to all text starting
28123 at the cursor/selection start]
28125 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28127 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28128 XplatUIOSX.cs: Added SendMessage and PostMessage methods
28129 * X11Keyboard.cs: Switched to new way of calling PostMessage
28131 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28133 * Theme.cs: Added theme interface for images to allow the theme to
28134 control what images are used for things like FileDialog, MessageBox
28136 * MessageBox.cs: Now uses the new Theme icon/image interfaces
28138 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
28141 - Removed some dead code
28142 - Opening a recently used file does work now
28143 - Small UI enhancements
28146 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28148 * FileDialog.cs: Forgot too add __MonoCS__
28150 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28152 * FileDialog.cs: We are able to read recently used files now let's
28153 go on and write them.
28155 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
28157 * FileDialog.cs: Breathe some life into "last open"/"recently used"
28159 * MimeIcon.cs: Do a check for the top level media type also
28161 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28163 * ThemeClearlooks.cs:
28164 - Added CPDrawStringDisabled
28165 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28166 some chars if the text doesn't fit into text_rect
28167 - DrawListViewItem: If View = View.LargeIcon center the image;
28168 rewrote the drawing of ListViewItem.Text if View =
28171 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28173 * MimeIcon.cs: Use default KDE icon theme if there is no
28174 "48x48" directory for the current icon theme, fixes #77114
28175 * Mime.cs: Disable not working and actually not used code.
28176 * ThemeWin32Classic.cs:
28177 - Replace "new SolidBrush" in GetControlBackBrush and
28178 GetControlForeBrush with ResPool.GetSolidBrush
28179 - Changed DrawListViewItem from private to protected virtual
28181 - Added form.MaximizeBox = true
28182 - Don't throw an exception if there is a broken symbolic link
28184 2005-12-23 Jackson Harper <jackson@ximian.com>
28186 * TabControl.cs: Give the panels focus, keyboard navigation is
28187 fixed so this works correctly now.
28188 - We need these key events also.
28189 * ToolBar.cs: Remove some of the poor mans double buffering.
28191 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
28193 * ComboBox.cs: The internal TextBox now returns the focus.
28195 2005-12-23 Jackson Harper <jackson@ximian.com>
28197 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
28199 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28201 * Control.cs: Removed debug code
28202 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28205 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28207 * Control.cs: When creating the control, update the Z-order after
28208 all it's children are created, too. (Fixes nexxia not showing
28211 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28213 * Control.cs: Do not update the anchoring distances if layout is
28214 suspended, instead do it once layout is resumed
28216 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28219 - After many hours of debugging, for both Jackson and
28220 myself, it turns out that it helps to set the parent of a control
28221 if you want to actually see it onscreen. In the spirit of that
28222 discovery, we're now setting the parent of the control and
28223 it's children when the control's handle is created. This fix
28224 will make Lutz Roeder's Reflector run happily.
28225 - now just creating the handle instead of the whole control when
28226 getting a graphics context for the control.
28228 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28230 * ScrollableControl.cs: When calculating the canvas, don't consider
28231 the scrollbar widths. Instead, predict if horizontal scrollbar
28232 will affect canvas when deciding on vertical display and vice versa.
28234 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28236 * RichTextBox.cs: Set default RTF font for documents that don't
28237 have a font table (Fixes #77076)
28239 2005-12-22 Jackson Harper <jackson@ximian.com>
28241 * TextBoxBase.cs: It's difficult to do, but you can have an empty
28242 clipboard. This prevents a NullRef in that case.
28243 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28244 clipboard. PRIMARY is for the currently selected text only. (We
28245 should implement PRIMARY at some point.
28247 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28249 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28250 a Unicode function with a structure that was defined in Ansi way.
28253 2005-12-21 Jackson Harper <jackson@ximian.com>
28255 * StatusBar.cs: Statusbar handles its fore/back colours on it's
28256 on. Because thats how it rolls. (and this avoids it using ambient
28258 * ThemeWin32Classic.cs: Use the proper back color for filling.
28259 * Menu.cs: Use the system menu bar color for drawing menu
28260 bars. Using the window back color will bring ambient colours into
28263 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
28265 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28266 Bitmaps were created and not disposed.
28268 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28270 * Control.cs (CreateControl): Don't do anything if the control is
28271 already created, otherwise we'd fire the OnCreated event more than
28274 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28276 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28277 will always match. Instead return -1. Fixes #76464.
28279 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28281 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28282 neither the beginning nor the end of the line (Fixes bug #76479)
28284 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28287 - ControlNativeWindow.ControlFromHandle(): Now handling situation
28288 where handle is invalid
28289 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28290 instead of slower linear search
28291 * NativeWindow.cs: Don't remove the window from the hashtable until
28292 after the driver has destroyed it (since the driver might use
28293 Control.FromHandle to lookup the control object
28294 * Hwnd.cs: Added DestroyPending property to track if a window is
28295 already destroyed as far as the driver is concerned and only hasn't
28296 yet notified the control
28298 - Activate(): Check if the window is still valid before using the
28300 - Implemented DestroyChildWindow() method to mark child windows as
28301 destroyed when a window is destroyed. This prevents situations
28302 where we might call an X method based on queued events for a
28303 window that already has been destroyed but we haven't yet pulled
28304 the destroy method from the queue.
28305 - Added a call to the new DestroyChildWindow() method to the drivers
28306 DestroyWindow code. Also now marking the destroyed window itself
28309 2005-12-20 Jackson Harper <jackson@ximian.com>
28312 * StatusBarPanel.cs: Don't calculate panel sizes on draw
28313 anymore. Just do them when needed, also track the rects of panels
28314 so that we can optimize refreshing more in the future.
28316 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
28318 * ColorDialog.cs: Fixed focus drawing in small color controls
28320 2005-12-19 Jackson Harper <jackson@ximian.com>
28322 * InternalWindowManager.cs:
28323 * MdiWindowManager.cs: Cleanup some coordinate system changes so
28324 moving windows works properly.
28326 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
28329 - Removed call to InitLayout() from SetBoundsCore(); doc says
28330 it's only called when a control is added to a container
28331 - Split InitLayout logic, moved to separate UpdateDistances() method
28332 since we need to perform those calculations more often than just
28333 when adding the control to a container. (Needed to fix #77022)
28334 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28335 - Reduced the OnBindingContextChanged events count, don't send them
28336 unless the control is created, we still aren't totally matching
28337 MS, but I can't quite figure out some of their rules
28339 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28341 * ThemeClearlooks.cs: Corrected distance between ProgressBar
28344 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28346 * ThemeClearlooks.cs:
28347 - Updated ProgressBar drawing
28348 - Corrected drawing of ScrollBars and scroll buttons
28349 - Some temporary fixes for minor pixel artefacts
28351 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
28354 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28355 cause events to be sent in the same order as MS does.
28356 - Added ChangeParent() method to trigger various OnXXXChanged events
28357 that need to be fired when a parent changes (This is a reworking
28358 of the patch from r54254, with the X11 errors fixed)
28359 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28360 since on MS we get OnLayoutChanged events when calling Clear()
28361 - Changed Enabled property to consider parent state as well, if a
28362 parent is not enabled, the control will not be either
28363 - Changed Parent property to simply call Controls.Add() since that
28364 now does all the work required, this way we avoid code duplication
28365 - Threw in a few OnBindingsContextChanged calls to try and match
28366 when MS sends them. We seem to send a few too many, though.
28367 - Added call to CreateControl when adding the control to a parent.
28368 We were never calling CreateControl. Still needs some work, in
28369 some places we treat HandleCreated and ControlCreated as equal,
28371 - Removed obsolete commented out code from UpdateZOrder()
28373 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28375 * ThemeClearlooks.cs: Updated TrackBar drawing.
28377 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28379 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28381 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28383 * FileDialog.cs: Add the Help button and the open readonly
28384 checkbox only if needed
28386 2005-12-16 Jackson Harper <jackson@ximian.com>
28388 * Control.cs: Make sure we have an active menu before trying to
28389 process commands on it. Prevents menu-less forms from crashing
28390 when Alt is pressed.
28391 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28393 * RichTextBox.cs: Expand statement to help out gmcs and fix the
28396 2005-12-16 Jackson Harper <jackson@ximian.com>
28398 * InternalWindowManager.cs: Don't translate tool windows screen
28399 coordinates. This fixes windows 'bouncing' around when being moved.
28401 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28404 - MaxLength now treats 2^31-1 equal to unlimited length (this is
28405 not quite MS compatible, MS uses that number only for single line
28406 and 2^32-1 for multi-line, but I figure it won't hurt keeping
28408 - Now enforcing the MaxLength limit when entering characters
28409 - Added argument to internal Paste() method to track if it's called
28410 from programatically or via keyboard, since keyboard driven pastes
28411 need to enforce max-length
28412 - Added logic to Paste to only paste as many chars as MaxLength
28414 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28416 - Added Length property to return number of characters in document
28417 - Added private CharCount property which only tracks actual chars
28418 in the document (no linefeeds) and fires event when CharCount
28420 - Added tracking of character count to all methods that alter it
28421 - Added LengthChanged event to allow applications to subscribe
28422 to any changes to the document
28424 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28427 - Removed local password_char field (moved to TextBoxBase)
28428 - Now setting the document's password var when password is
28431 - Added password_char field (needed here so MultiLine can
28433 - Added logic to MultiLine property setter to set the document's
28434 variable when password display is allowed
28435 - Removed debug code and made some debug code conditional
28437 - Added RecalculatePasswordLine() method to handle special password
28439 - Added PasswordChar property, also added related tracking vars
28440 - Draw() method now uses local text var for grabbing text to draw,
28441 this var is set to line.text unless we're doing password display,
28442 then it is set to the pre-generated all-password-chars line
28443 - Added calling RecalculatePasswordLine() method for password lines
28445 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28448 - Added Reparented property to allow tracking of Window Manager
28449 reparenting actions (which affect X/Y calculations of toplevel
28451 - Made ToString() print window handles in hex
28453 - AddConfigureNotify(): Now uses reparented state off Hwnd to
28454 determine if X/Y needs offsetting
28455 - AddConfigureNotify(): Fixed offset calculations
28456 - Now adds ReparentNotify messages into the queue
28457 - Now processes ReparentNotify messages and causes a
28458 WM_WINDOWPOSCHANGED message to be sent upstream if a window
28459 is reparented (as most likely it's X/Y coordinates are changed
28462 2005-12-14 Jackson Harper <jackson@ximian.com>
28464 * XplatUIX11.cs: Tool windows still need to respek focus.
28466 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28468 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28469 have a working release
28471 2005-12-13 Jackson Harper <jackson@ximian.com>
28473 * Form.cs: Update styles after setting the border style regardless
28474 of whether or not the window is using a window manager.
28476 2005-12-13 Jackson Harper <jackson@ximian.com>
28478 * Form.cs: We now hook into an internal window manager instead of just an
28479 MDI subsystem, this is so we can have properly behaving tool windows.
28480 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28481 * InternalWindowManager.cs: New internal class that acts as a
28482 window manager for tool windows and as a base for mdi windows.
28483 * MdiWindowManager.cs: New class that acts as a window manager for
28486 2005-12-12 Jackson Harper <jackson@ximian.com>
28488 * Control.cs: Updates so we match behavoir for for implicit
28489 controls. Fixes explosions in MDI.
28491 2005-12-12 Jackson Harper <jackson@ximian.com>
28493 * Control.cs: Implement Invalidate (Region).
28495 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
28498 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
28499 the same events as MS does. MS fires events for each property
28500 except, for unknown reasons, Cursor, when the control is reparented.
28501 I can't seem to totally match add/remove since MS also fires some
28502 VisibleChanged events, which makes no sense. Consolidated the
28503 parenting code into a separate method so it can be called from
28504 both Add and Remove. set_Parent no longer needs any special logic
28505 as it calls the parent's add method which implicitly fires
28507 - Removed some obsolete code and debug output
28508 - Enabled state is inherited from parents, if this is enabled
28510 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28512 * Form.cs: Removed commented out code
28514 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28517 - Added internal version of Invoke, with additional argument
28518 indicating if we're calling it from a Dispose() handler. That
28519 way we can avoid BeginInvoke throwing an exception if we're
28520 calling for an already destroyed window.
28521 - Added a dispose argument to BeginInvokeInternal, and made the
28522 check if a valid window handle chain exists conditional on
28523 it not being a dispose call
28524 - Removed code in DestroyHandle to destroy our children. Since we
28525 now handle the WM_DESTROY message we will catch all our children
28527 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28529 - Added a field to track the application context of the form.
28530 - No need to set closing variable as response to WM_CLOSE, instead
28531 we destroy the window. We also call PostQuitMessage if the form
28532 has an application context (which makes it the main app form,
28533 which, when closed terminates the app)
28535 - Dropped Exit() method, it's naming was confusing
28536 - Added PostQuitMessage() which causes GetMessage to return false
28537 once the message queue is empty
28538 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
28540 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28541 no longer a valid XplatUI method, but left it in since it's used
28542 internally. Added empty PostQuitMessage() method.
28543 * MenuAPI.cs: Replaced call to Exit() with call to
28544 PostQuitMessage, even though this is probably no longer needed.
28545 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28546 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28548 - Replaced call to XplatUI.Exit() with PostQuitMessage()
28549 - Removed old debug code that would call XplatUI for exception
28550 display, enabled standard exception handling (Still not enabled
28551 though, until NativeWindow's ExternalExceptionHandler define
28554 - Added internal method to allow control to update NativeWindow
28555 after a window has been destroyed
28556 - Added handling of already destroyed windows when calling i
28558 - Added removal of handle from list on ReleaseHandle
28560 - Dropped GetMessageResult var and related code
28561 - Added PostQuitState to field to track if PostQuitMessage has been
28563 - Dropped Exit() method
28564 - Added PostQuitMessage() method
28565 - GetMessage now will return false if PostQuitState is set and no
28566 more messages are in the queue.
28567 - Expose handler will no longer generate WM_PAINT messages if we are
28568 in PostQuitState since it's very likely any windows have already
28569 been destroyed, and since Hwnd won't get updated until we have
28570 processed the DestroyNotify we'd be causing X errors.
28572 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28574 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28575 Thanks to Mike for pointing out the err of my ways.
28577 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28579 * Control.cs(PreProcessMessage): Moved menu handling back, but
28580 after all other key handling, to match MS (who handles Menu in
28582 * Menu.cs (WndProc): Removed my brainfart
28584 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28586 * Control.cs(PreProcessMessage): Removed special menu handling
28587 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28589 2005-12-07 Mike Kestner <mkestner@novell.com>
28591 * Control.cs : special case SYSKEYUP so that we can adjust keynav
28592 state according in tracker.
28593 * Menu.cs : promote tracker field to base class and provide a tracker
28594 lookup capability. Add/Remove shortcuts dynamically if the top menu
28595 has a tracker. Unparent items that are removed from the collection.
28596 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28597 * Theme*.cs: add always_show_hotkeys field to support configurability
28598 of mnemonic display. win32 doesn't show mnemonics until Alt is
28601 2005-12-07 Jackson Harper <jackson@ximian.com>
28603 * MdiChildContext.cs: Use Control.ResetCursor.
28604 * Control.cs: ResetCursor needs to set the property so that the
28605 correct XplatUI call gets made.
28607 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28609 * Control.cs: More fixes to make our key events match MS. We
28610 were not setting the modifier state on KeyData, and we were
28611 not generating any events when Alt was pressed with a key
28612 since handling of WM_SYSxxx was missing for the OnKey methods.
28614 2005-12-07 Jackson Harper <jackson@ximian.com>
28616 * MdiChildContext.cs: reenable the sizing code.
28617 - When the mouse leaves a window reset its cursor.
28619 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28621 * ThemeClearlooks.cs: Reflect latest Hwnd changes
28623 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28625 * Hwnd.cs: Now using the theme 3d bordersize to calculate
28626 widths of Fixed3D borders
28628 2005-12-07 Jackson Harper <jackson@ximian.com>
28630 * MdiClient.cs: Fix warnings. Earn Mike's love.
28632 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28634 * ThemeClearlooks.cs:
28635 - Adjusted mouse over button color
28636 - Added first parts of CheckBox drawing
28637 - Added correct color for selected text background
28638 - Fixed ComboBox drawing
28639 - Added CPDrawBorder3D and CPDrawBorder
28641 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28643 * XplatUIX11.cs: Added call to XBell for AudibleAlert
28645 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28647 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28648 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28649 alert users via sound. We could add an enum arg with different
28650 types of alerts in the future
28652 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28654 * Control.cs: Fix behaviour problems pointed out by Mike
28656 2005-12-05 Mike Kestner <mkestner@novell.com>
28658 * StatusBarPanel.cs: add Invalidate method and hook it into all the
28659 prop setters. Calls parent.Refresh for now, but could be maybe be
28660 optimized with an internal method on StatusBar at some point.
28663 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
28665 * RichTextBox.cs: Implemented get_SelectionColor
28667 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
28669 * ThemeClearlooks.cs:
28670 - Removed dead code
28671 - Draw black button border only if button is Form.AcceptButton
28672 - Draw correct button color for pressed RadioButton if the mouse
28673 has entered the button
28674 - Updated ProgressBar drawing!
28675 - Updated CPDrawSizeGrip drawing
28676 - Updated StatusBarPanel drawing
28678 2005-12-05 Mike Kestner <mkestner@novell.com>
28680 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
28681 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
28683 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
28685 * ThemeClearlooks.cs: Initial check-in, activate with
28686 export MONO_THEME=clearlooks
28687 * ThemeEngine.cs: Added ThemeClearlooks
28689 2005-12-03 Mike Kestner <mkestner@novell.com>
28691 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
28694 2005-12-02 Jackson Harper <jackson@ximian.com>
28696 * Form.cs: If the child form has no menu the default main menu is
28697 used as the active menu.
28699 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28701 * ListBox.cs: Check if any items exist before trying to resolve
28702 coordinates into items
28704 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28706 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
28707 as the second color for the background hatch
28709 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28711 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
28712 * RichTextBox.cs: FormatText position arguments are 1-based, now making
28713 sure that what we pass to FormatText is always 1-based. Fixes #76885
28715 2005-11-29 Miguel de Icaza <miguel@novell.com>
28717 * NumericUpDown.cs (EndInit): When we are done initializing,
28718 reflect any updates on the UI.
28720 2005-12-02 Jackson Harper <jackson@ximian.com>
28722 * ImplicitHScrollBar.cs:
28723 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
28724 their container controls.
28725 * TreeView.cs: Use the new implicit scrollbars.
28727 2005-12-02 Jackson Harper <jackson@ximian.com>
28729 * TreeView.cs: Make top_node internal so the TreeNodeCollections
28731 * TreeNodeCollection.cs: If we remove the topnode we need to
28732 update topnode to the next node in line.
28733 - When clearing nodes go through the same process as removing
28734 them, so they get depareneted and checked if they are top node.
28736 2005-12-01 Jackson Harper <jackson@ximian.com>
28738 * TreeView.cs: When imagelists are used the image area is
28739 selectable as well as the text.
28740 - If there are no selected nodes select the first one.
28741 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
28742 so don't do it more then we need to.
28744 2005-12-01 Jackson Harper <jackson@ximian.com>
28746 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
28747 that arrows can be scaled.
28749 2005-12-01 Jackson Harper <jackson@ximian.com>
28751 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
28752 fail. Patch by Dieter Bremes
28754 2005-11-30 Jackson Harper <jackson@ximian.com>
28756 * Form.cs: Property is 2.0 only
28757 * PrintDialog.cs: Signature fix.
28759 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28762 - No longer artificially moves text 2 pixels down (now that we have
28763 borders this is no longer needed)
28764 - Added calcs for left, hanging and right indent
28766 2005-11-23 Mike Kestner <mkestner@novell.com>
28768 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
28770 2005-11-30 Jackson Harper <jackson@ximian.com>
28772 * MdiChildContext.cs: Set the cloned menus forms, as these don't
28773 get cloned as part of CloneMenu ().
28774 * Menu.cs: Make sure the parent of the items get set correctly
28775 when they are added. And the owners are notified of the changes.
28776 * Form.cs: Create an ActiveMenu property, so that when MDI is used
28777 we can change the menu being displayed/handled by the form without
28778 changing the menu assosciated with the form.
28779 - Don't let Mdi children draw/handle menus.
28781 2005-11-30 Jackson Harper <jackson@ximian.com>
28783 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
28784 a MenuChanged event. Just to make the API a little more
28787 * MenuItem.cs: Use the new OnMenuChanged
28788 * MdiChildContext.cs: Handle menu merging.
28789 * Form.cs: Implement MergedMenu.
28791 2005-11-30 Jackson Harper <jackson@ximian.com>
28793 * Menu.cs: We were misusing Add. Add goes behind the specified
28794 index according to the docs, and does not replace the specified
28795 index. So I added an Insert method.
28797 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28799 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
28800 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
28802 * RichTextBox.cs: Added calls to base for DnD events
28804 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
28807 - Fixed drag-selection related crash; style fixes
28808 - Implemented undo class
28809 o Implemented method to capture document state for specified
28810 range in document tree
28811 o Implemented method to restore captured document state
28812 o Implemented cursor tracking
28813 o Implemented basic undo stack
28814 - Added undo cursor tracking to methods altering cursor location
28815 - Added undo tracking to selection deletion (still missing
28816 other text-altering hookups)
28818 - Added SelectionLength property
28819 - Implemented CanPaste()
28820 - Implemented Paste()
28821 - Added missing protected methods
28822 - Fixed RTF->Document conversion; now uses font index 0 and color
28823 index 0 as the default font for the parsed text
28824 - Fixed RTF<->Document font size translation
28825 - Fixed RTF generation, now properly handles cross-tag boundaries
28826 for single line selection
28827 - No longer always appends blank line to generated RTF
28829 - Added missing attributes
28830 - Hooked up undo-related methods
28832 - Implemented Copy()
28833 - Implemented Paste()
28834 - Implemented Cut()
28835 - Fixed caret mis-behaviour on backspace across line-boundaries
28837 2005-11-29 Jackson Harper <jackson@ximian.com>
28839 * MdiClient.cs: Add a method for activating mdi children. Very
28840 basic right now. I imagine someday it might need more girth.
28841 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
28842 children windows names are added to the menu item.
28843 * ThemeWin32Classic.cs: Draw the arrow if the item is an
28844 mdilist. This happens regardless of whether or not there are any
28845 mdi windows to see in the list, and according to my tests happens
28846 before the items are even added. Also happens if there isn't even
28847 an mdi client to get windows from.
28849 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
28851 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
28852 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
28854 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
28856 * DataGridTableStyle.cs:
28857 - Create always the styles for the missing columns even if they are
28858 provided by the user (not default table style)
28861 - Fixes SetDataBinding (always re-attach source)
28862 - Fixes SetNewDataSource (only clear styles if they are not for
28864 - Expands OnTableStylesCollectionChanged to handle style refresh
28865 and remove properly
28867 2005-11-29 Jackson Harper <jackson@ximian.com>
28869 * FileDialog.cs: Implement missing bits, remove some dead
28871 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
28872 creation of the panel so that the options set on the dialog are
28873 seen when the panel is created.
28874 * TreeView.cs: raise a click when items are clicked.
28876 2005-11-29 Jackson Harper <jackson@ximian.com>
28878 * MdiClient.cs: Pass some signature methods through to base.
28880 2005-11-28 Jackson Harper <jackson@ximian.com>
28882 * ListView.cs: Raise the click event when items are clicked.
28884 2005-11-28 Jackson Harper <jackson@ximian.com>
28886 * MdiClient.cs: Make this algorithm even more beautiful. And fix
28889 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
28891 * ThemeNice.cs: - Removed 1 pixel bitmaps
28892 - Use SmoothingMode.AntiAlias where it makes sense
28893 (ScrollButton arrow for example)
28894 - Enhanced Button focus drawing
28895 - Fixed ComboBox drawing (no artefacts anymore, focus
28896 rectangle is back again, reduced size of ComboButton, etc.)
28897 - Fixed RadioButton focus drawing for Appearence.Button
28898 - Slight ScrollButton redesign
28899 - Some LinearGradientBrush size fixes
28900 - GroupBoxes have now rounded edges
28901 - Fixed StatusBar drawing
28903 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
28905 * ThemeNice.cs: - Remove dead code
28906 - use correct background colors for menus, etc.
28907 - Fake pixel drawing with 1 pixel bitmaps
28909 2005-11-24 Jackson Harper <jackson@ximian.com>
28911 * MdiClient.cs: Size the scrollbars when resizing the window.
28912 - Resize the maximized windows when the client is resized
28913 * Form.cs: Make the child context available
28915 2005-11-23 Jackson Harper <jackson@ximian.com>
28917 * MdiChildContext.cs: Don't size windows if they are maximized.
28919 2005-11-23 Mike Kestner <mkestner@novell.com>
28921 * ContextMenu.cs: use MenuTracker.
28922 * Control.cs: remove menu handle usage.
28923 * Form.cs: remove menu handle usage.
28924 * Hwnd.cs: remove menu handle usage.
28925 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
28926 motion and clicks to the new Tracker handlers.
28927 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
28929 * MenuAPI.cs: refactored to combine popup and menubar event handling.
28930 Killed the MENU and MENUITEM data types and associated collections
28931 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
28932 MenuTracker class that exposes the leftovers from the old MenuAPI
28933 static methods. Restructured Capture handling so that only one grab is
28934 done for the entire menu hierarchy instead of handing off grabs to
28935 submenus. Tracker now has an invisible control to Capture when active.
28936 * MenuItem.cs: add sizing accessors, kill Create
28938 * Theme.cs: remove menu handle and MENU(ITEM) usage.
28939 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
28940 MENU(ITEM). remove menu handle usage, use Menu directly.
28941 * XplatUIDriver.cs: remove menu handle usage.
28942 * XplatUIOSX.cs: remove menu handle usage.
28943 * XplatUIWin32.cs: remove menu handle usage.
28944 * XplatUIX11.cs: remove menu handle usage.
28946 2005-11-22 Jackson Harper <jackson@ximian.com>
28948 * Hwnd.cs: Don't compute the menu size for
28949 DefaultClientRectangle.
28950 - Reenable menu sizes being computed for GetClienRectangle.
28951 * Form.cs: Remove comment of trechery
28953 2005-11-22 Jackson Harper <jackson@ximian.com>
28955 * Hwnd.cs: The adjustments for the menu bar are made when it is
28956 attached to the form.
28958 2005-11-19 Jackson Harper <jackson@ximian.com>
28960 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
28961 (just like on windows).
28963 2005-11-19 Jackson Harper <jackson@ximian.com>
28965 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
28966 use real buttons anymore because they are in non client area. The
28967 one TODO here is that I need to somehow invalidate a section of
28968 the non client area.
28970 2005-11-18 Jackson Harper <jackson@ximian.com>
28972 * Control.cs: Put the enum check back in now that MDI doesnt have
28973 to use this to set border styles.
28974 * Form.cs: Only set mdi child windows borders if the handle has
28976 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
28977 this directly on to the driver.
28978 - Get the move start position before adjusting for the titlebar
28979 height, this fixes the windows "skipping" when they are first
28982 2005-11-18 Jackson Harper <jackson@ximian.com>
28984 * XplatUIX11.cs: Just compute the mdi borders separately as they
28985 don't totally match up with normal form borders.
28987 2005-11-18 Jackson Harper <jackson@ximian.com>
28989 * Control.cs: Set WS_ styles for borders, so that the driver does
28990 not have to retrieve the control instance to figure out what kind
28991 of borders it should have.
28992 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
28993 driver can know its an mdi child easily.
28994 * XplatUIX11.cs: Get the border styles and whether the window is
28995 MDI from the Styles and ExStyles params instead of having to get a
28996 control. This prevents a chicken and egg problem.
28998 2005-11-18 Jackson Harper <jackson@ximian.com>
29000 * MdiClient.cs: Fix typo so scrollbars show up correctly.
29002 2005-11-18 Jackson Harper <jackson@ximian.com>
29004 * MdiClient.cs: Calculate when to add and remove scrollbars
29006 * MdiChildContext.cs: Adjust the y position to take the titlebar
29008 - No height for FormBorderStyle.None
29010 2005-11-18 Jackson Harper <jackson@ximian.com>
29012 * Control.cs: Allow non enum values to be used for
29013 InternalBorderStyle. MDI does this to set a special border style.
29014 - New utility methods for converting points to/from client coords
29015 - Add the newly created control to the Controls collection before
29016 updating its style. This way UpdateStyle can walk the control
29017 heirarchy to find the control if needed.
29018 so I don't need to create a new Point object all the time.
29019 * Form.cs: Let MDI windows handle their border styles.
29020 - Set styles on MDI windows so the correct title style is derived.
29021 * MdiChildContext.cs: Move all the painting and window handling
29022 into the non client area.
29023 - Use correct sizing and put correct buttons on frames based on
29024 the FormBorderStyle.
29025 - Notify the mdi client about scrolling
29026 - Need to handle the buttons ourselves now, because they are all
29027 in non client areas and we can't add controls there.
29028 * MdiClient.cs: Halfway to scrolling, this implementation is
29029 somewhat broken though, we need to check to make sure other
29030 windows aren't causing scrolling before removing the bars. Also
29031 the bars need to be drawn on top, maybe I can switch implicit
29032 controls to be on top.
29033 * Hwnd.cs: caption_height and tool_caption_height are now
29034 properties of an hwnd, this way they can be set by the driver
29035 based on the type of window they are. In X11 the window manager
29036 handles the decorations so caption_height is zero unless its an
29038 - Add 3 pixel borders for MDI windows (0xFFFF).
29039 - Get rid of some code duplication, have DefaultClientRectanle
29040 just call GetClientRectangle.
29041 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29043 - Set border styles differently for mdi windows.
29044 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29047 2005-11-15 Mike Kestner <mkestner@novell.com>
29049 * Menu.cs: when adding an item to the collection, if item is already
29050 parented, remove it from the parent.
29052 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
29054 * X11DesktopColors.cs: Added KDE support
29056 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
29059 - Clipboard methods now can translate Rtf format
29060 - No longer removes clipboard contents whenever a new format is added
29061 to allow placing multiple formats on the clipboard
29062 * Clipboard.cs: Clipboard now supports getting a IDataObject and
29063 will place all formats contained in it onto the clipboard. Also
29064 now cleans the clipboard before placing a new object onto it
29066 - Implemented set_Rtf
29067 - Implemented set_SelectedRtf
29068 - Created InsertRTFFromStream() method to allow single code base
29069 for all properties and methods that insert RTF into document
29070 - Removed debug output
29072 - Fixed Delete(int) to fix up line numbers
29073 - Fixed ReplaceSelection to combine start and end line
29074 - Fixed serious DeleteChars bug that would leave the document tree
29076 - Improved DumpTree with several logic checks to detect broken
29078 - Removed debug lines
29079 - Fixed Caret.WordForward/WordBack moving code, now always also
29080 updates caret.tag (fixes crash when word-selecting across tag
29081 boundaries via keyboard)
29082 - Added Insert() method for inserting multiline text into documents
29083 - Fixed DeleteChars() calculation errors that would cause a broken
29084 tag chain with multiple tag lines
29085 - DeleteChars() no longer crashes on multi-tag lines if not all tags
29086 - Split() no longer moves caret if split is at caret location
29087 - ReplaceSelection() now updates the cursor and re-displays it
29088 - ReplaceSelection() now uses new Insert() method to avoid code
29090 - FormatText() can now handle formatting partial lines
29092 - Append now uses new TextControl.Insert() method (this avoids
29094 - Implemented Ctrl-X (Cut) (
29095 - Implemented Ctrl-C (Copy)
29096 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
29097 regeneration when pasting text; roundtripping Copy&Paste within
29098 edit control still fails due to some calculation bugs in GenerateRTF)
29099 - The Delete key will now remove the current selection if it is visible
29100 * TextBox.cs: Removed debug lines
29101 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29102 driver to be initialized and can't therefore be done via a static ctor)
29104 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
29106 * TextControl.cs: Added backend code for finding char arrays and strings
29108 - Added mouse wheel scroll support
29109 - Added support for VScroll and HScroll events
29111 - Implemented all seven Find() variants
29112 - Implemented GetCharFromPosition()
29113 - Implemented GetCharIndexFromPosition()
29114 - Implemented GetLineFromIndex()
29115 - Implemented GetPositionFromCharIndex();
29116 - Implemented SaveFile for PlainText and UnicodeText
29117 - Fixed set_Font, now setting a new font applies that font to
29119 - Implemented generic Document to RTF converter
29120 - Implemented SaveFile for RichText format (still missing unicode
29121 conversion for non-ansi chars)
29122 - Implemented get_Rtf
29123 - Implemented get_SelectedRtf
29125 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
29127 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29128 to allow any captures to be released before triggering OnClick. This
29129 way a click handler may capture the mouse without interference.
29130 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29131 This way we send them even though X may not allow a grab (if the window
29132 isn't visible, for example)
29134 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
29136 * DataGridViewRowEventArgs.cs: DataGridView implementation
29137 * DataGridViewElement.cs: DataGridView implementation
29138 * DataGridViewComboBoxCell.cs: DataGridView implementation
29139 * DataGridViewDataErrorContexts.cs: DataGridView implementation
29140 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29141 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29142 * ImageLayout.cs: DataGridView implementation
29143 * DataGridViewComboBoxColumn.cs: DataGridView implementation
29144 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29145 * DataGridViewSelectionMode.cs: DataGridView implementation
29146 * IDataGridViewEditingControl.cs: DataGridView implementation
29147 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29148 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29149 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29150 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29151 * DataGridViewColumnSortMode.cs: DataGridView implementation
29152 * DataGridView.cs: DataGridView implementation
29153 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29154 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29155 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29156 * Padding.cs: DataGridView implementation
29157 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29158 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29159 * DataGridViewRowEventHandler.cs: DataGridView implementation
29160 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29161 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29162 * DataGridViewButtonCell.cs: DataGridView implementation
29163 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29164 * DataGridViewEditMode.cs: DataGridView implementation
29165 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29166 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29167 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29168 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29169 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29170 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29171 * DataGridViewCellEventHandler.cs: DataGridView implementation
29172 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29173 * DataGridViewCellStyleConverter.cs: DataGridView implementation
29174 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29175 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29176 * DataGridViewColumnEventArgs.cs: DataGridView implementation
29177 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29178 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29179 * QuestionEventArgs.cs: DataGridView implementation
29180 * IDataGridViewEditingCell.cs: DataGridView implementation
29181 * DataGridViewTriState.cs: DataGridView implementation
29182 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29183 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29184 * DataGridViewColumnCollection.cs: DataGridView implementation
29185 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29186 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29187 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29188 * DataGridViewColumn.cs: DataGridView implementation
29189 * DataGridViewCellBorderStyle.cs: DataGridView implementation
29190 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29191 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29192 * DataGridViewRow.cs: DataGridView implementation
29193 * DataGridViewImageCellLayout.cs: DataGridView implementation
29194 * DataGridViewImageCell.cs: DataGridView implementation
29195 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29196 * DataGridViewCheckBoxCell.cs: DataGridView implementation
29197 * DataGridViewHeaderCell.cs: DataGridView implementation
29198 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29199 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29200 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29201 * DataGridViewTextBoxColumn.cs: DataGridView implementation
29202 * QuestionEventHandler.cs: DataGridView implementation
29203 * DataGridViewCellStyleScopes.cs: DataGridView implementation
29204 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29205 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29206 * DataGridViewCell.cs: DataGridView implementation
29207 * DataGridViewCellEventArgs.cs: DataGridView implementation
29208 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29209 * DataGridViewCellStyle.cs: DataGridView implementation
29210 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29211 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29212 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29213 * TextFormatFlags.cs: DataGridView implementation
29214 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29215 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29216 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29217 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29218 * DataGridViewButtonColumn.cs: DataGridView implementation
29219 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29220 * HandledMouseEventArgs.cs: DataGridView implementation
29221 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29222 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29223 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29224 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29225 * DataGridViewRowCollection.cs: DataGridView implementation
29226 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29227 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29228 * DataGridViewHitTestType.cs: DataGridView implementation
29229 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29230 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29231 * DataGridViewColumnEventHandler.cs: DataGridView implementation
29232 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29233 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29234 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29235 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29236 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29237 * DataGridViewContentAlignment.cs: DataGridView implementation
29238 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29239 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29240 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29241 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29242 * DataGridViewPaintParts.cs: DataGridView implementation
29243 * DataGridViewCellCollection.cs: DataGridView implementation
29244 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29245 * DataGridViewImageColumn.cs: DataGridView implementation
29246 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29247 * DataGridViewElementStates.cs: DataGridView implementation
29248 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29249 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29250 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29251 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29252 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29253 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29254 * DataGridViewRowHeaderCell.cs: DataGridView implementation
29255 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29256 * DataGridViewTextBoxCell.cs: DataGridView implementation
29257 * DataGridViewBand.cs: DataGridView implementation
29258 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29259 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29260 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29261 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29262 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29263 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29264 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29265 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29266 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29267 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29268 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29270 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
29272 * ThemeWin32Classic.cs:
29273 - Draw the outside focus rectangle around buttons
29274 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29275 doesn't use end caps for every dash of a line anymore. This
29276 workaround ignores the forecolor.
29278 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
29280 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29283 2005-11-07 Jackson Harper <jackson@ximian.com>
29285 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29287 2005-11-07 Jackson Harper <jackson@ximian.com>
29289 * ScrollableControl.cs: Calculate the maximum and change vars
29290 (more) correctly so that scrollbars appear as a sensible size.
29292 2005-11-04 Jackson Harper <jackson@ximian.com>
29294 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29296 * TreeView.cs: When the tree is sorted null out the top_node so
29297 that it is recalculated.
29298 - Use dotted lines instead of dashed lines to match MS better.
29300 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
29303 - Implements key search for items. Useful when browsing files with FileDialog
29304 - When changing view mode or when clear the items reset scrollbar positions
29306 2005-11-04 Jackson Harper <jackson@ximian.com>
29308 * CurrencyManager.cs: Implement the MetaDataChanged event, the
29309 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29310 as to what the method may do as there is no real way of creating a
29311 derived CurrencyManager and calling the method.
29313 2005-11-03 Jackson Harper <jackson@ximian.com>
29315 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29316 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29317 method which seems to just be used internally to refresh the tabs.
29319 2005-11-03 Jackson Harper <jackson@ximian.com>
29321 * TabControl.cs: Implement the remove method. Fix some broken
29324 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29326 * DateTimePicker.cs:
29327 - Added missing DateTimePickerAccessibleObject class
29328 - Added missing events
29329 - Added OnFontChanged method
29330 * Form.cs: Added missing attributes
29331 * TreeView.cs: Added missing attributes
29333 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29335 * GridItemCollection.cs: Fix signatures
29337 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29339 * XplatUI.cs: Updated build rev/date
29340 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
29341 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29342 * Application.cs: Trigger context-specific ExitThread events
29344 2005-11-03 Jackson Harper <jackson@ximian.com>
29348 * GridTableStylesCollection.cs:
29353 * MonthCalendar.cs: Signature fixes
29355 2005-11-03 Jackson Harper <jackson@ximian.com>
29357 * TreeNodeCollection.cs: Remove should not be virtual.
29358 * TreeView.cs: Implement the last of the missing methods.
29360 2005-11-03 Jackson Harper <jackson@ximian.com>
29362 * TreeNodeConverter.cs: Implement to get off my class-status back.
29364 2005-11-03 Jackson Harper <jackson@ximian.com>
29366 * TreeView.cs: Hookup the bits for drag and drop.
29367 * TreeNode.cs: Don't cache the tree_view or index anymore, now
29368 that nodes can be moved from tree to tree easily this just causes
29369 all sorts of problems.
29370 * TreeNodeCollection: Don't need to give treenodes an index and
29371 treeview anymore when they are added, these are computed on the
29372 fly. Also make sure to remove a node before its added.
29374 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29377 - Added CaretSelection enum
29378 - Added comparison methods to Marker struct, makes selection code
29380 - Added SelectionStart and SelectionEnd as 'moveable' location for
29381 the CaretDirection enum and handler
29382 - Added selection_prev variable to track optimized invalidation for
29383 word and line selection
29384 - Added SelectionVisible property (returns true if there is a valid
29386 - Switched CaretHasFocus to only display the caret if there is no
29388 - Avoiding StringBuilder.ToString to retrieve a single char, instead
29389 using the direct character index; should be much faster
29390 - Added various conditional debug statements
29391 - Fixed invalidation calculation for selection ranges
29392 - Added ExpandSelection() method to support word and line selection
29393 - Switched SetSelectionToCaret to use new Marker compare overloads
29394 - Added central IsWordSeparator() method to determine word
29395 separators/whitespace and FindWordSeparator() to streamline common
29396 usage of IsWordSeparator()
29398 - Removed unneeded grabbed variable, it was just mirroring
29400 - No longer firing OnTextChanged event when Text setter is called,
29401 since the base will fire the event for us
29402 - Added handling of Ctrl-Up/Down selection
29403 - Added handling of Shift-Cursorkey selection
29404 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29406 - Added handling of Shift and Ctrl-Shift-Home/End selection
29407 - Removed some debug output
29408 - Added handling for single/double/tripple-click to place caret/
29409 select word/select line respectively (Fixes bug #76031)
29410 - Added support for drag expansion of word/line selection
29411 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29414 2005-11-02 Jackson Harper <jackson@ximian.com>
29416 * X11Dnd.cs: If the drag is going to and from a MWF window just
29417 copy the data instead of sending it out through the X Selection
29420 2005-11-02 Jackson Harper <jackson@ximian.com>
29423 * XplatUIX11.cs: When in a drag we don't want motion notify
29424 messages to get passed on to the other controls. This prevents
29425 mouse move messages from showing up in the drag source.
29427 2005-11-02 Jackson Harper <jackson@ximian.com>
29429 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
29430 the correct button is release to end a drag.
29431 * XplatUIX11.cs: Make the button state internal so the drag system
29432 can access it. Dragging needs to know about all button releases,
29433 not just left button.
29435 2005-11-02 Miguel de Icaza <miguel@novell.com>
29437 * Form.cs (Icon): If the icon is null, reset the icon to the
29440 * Cursor.cs: When writing the AND-mask bitmap do not include the
29441 number of colors, but hardcode those to two (black and white),
29442 fixes the loading of color cursors (Paint Dot Net).
29444 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29445 turn off autoscaling.
29447 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29449 2005-11-02 Jackson Harper <jackson@ximian.com>
29451 * X11Dnd.cs: Make sure to send a status message if the pointer
29452 enters a control that can not accept a drop, otherwise the cursor
29453 isn't updated correctly. Also tried to compress the lines of code
29456 2005-11-02 Jackson Harper <jackson@ximian.com>
29458 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29459 set actions correctly. This isn't perfect as XDND and win32 have
29460 some differences on how you allow actions. I'll clear this up by
29461 adding a path for drag from MWF to MWF windows.
29462 * XplatUIX11.cs: Hook into the dnd system.
29464 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
29466 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29467 previously shown but they are no longer need it. Very obvious when
29468 browsing files with FileDialog.
29470 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
29472 * Control.cs: We always need to call OnPaintBackground. We pretty much
29473 ignore AllPaintingInWmPaint and always do the painting there, whether
29474 it's set or not, since we always ignore the WM_ERASEBKGND message
29475 (which we don't generate on X11). This fixes #76616.
29476 * Panel.cs: Removed unneeded background painting. This happens properly
29477 in Control.cs already
29479 2005-10-31 Mike Kestner <mkestner@novell.com>
29481 * Menu.cs: Add items to collection before setting their index.
29482 * MenuItem.cs : add range checking with ArgumentException like MS.
29485 2005-10-31 Jackson Harper <jackson@ximian.com>
29487 * ListBox.cs: Invalidate if the area is visible at all not just
29488 contained in the visible rect. Fixes unselection of semi visible
29491 2005-10-31 Jackson Harper <jackson@ximian.com>
29493 * Control.cs: Consistently name the dnd methods. Make them
29494 internal so we can override them to match some MS behavoir
29496 * Win32DnD.cs: Use the new consistent names.
29498 2005-10-31 Jackson Harper <jackson@ximian.com>
29500 * TreeView.cs: Don't draw the selected node when we lose focus.
29502 2005-10-31 Jackson Harper <jackson@ximian.com>
29504 * X11Dnd.cs: We still need to reset the state even though a full
29505 reset isn't being done, otherwise status's still get sent all over
29508 2005-10-31 Jackson Harper <jackson@ximian.com>
29510 * Control.cs: Make the dnd_aware flag internal so the dnd
29511 subsystem can check it. Catch exceptions thrown in dnd handlers to
29513 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29514 * X11Dnd.cs: Handle null data in the converters. Set the XDND
29515 version when sending a XdndEnter. Use the control/hwnd dnd_aware
29516 flags to reduce the number of dnd enters/status's sent.
29518 2005-10-31 Jackson Harper <jackson@ximian.com>
29520 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29522 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
29524 * PictureBox.cs: Fixes 76512
29526 2005-10-28 Jackson Harper <jackson@ximian.com>
29528 * X11Dnd.cs: Early implementation to support winforms being a drag
29529 source for data on X11. Also restructured the converters so they
29530 can go both ways now.
29531 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29533 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
29535 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29538 2005-10-27 Jackson Harper <jackson@ximian.com>
29540 * TreeNode.cs: Implement serialization so my DnD examples will work.
29542 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
29544 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29545 TreeView.cs: Don't dispose objects that are not owned.
29547 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
29549 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29550 should retrieve the current cursor and report that, but XplatUI
29551 doesn't (yet) have an interface for that (and I'm not sure I even
29553 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29554 until any message loop processing is done (and the WM_SETCURSOR
29555 replaces the cursor to the proper one)
29557 - Fixed override behaviour, we can't set the cursor globally on X11,
29558 just for our windows.
29559 - Invalidating the System.Drawing X11 display handle when we are
29561 * Control.cs: Fix to make csc happy
29563 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
29566 - get_Text: Add last line (without trailing newline) to returned
29567 value (Fixes 76212)
29568 - get_TextLength: Count last line in returned length
29569 - ToString: Call Text property instead of duplicating code
29571 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
29573 * ImageList.cs: Dispose ImageAttributes objects.
29575 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
29577 * ImageList.cs: Use attribute constructors with less arguments where
29580 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
29582 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29583 Use typeof instead of strings when assembly is referenced. Added
29584 some more comments.
29586 2005-10-21 Jackson Harper <jackson@ximian.com>
29588 * ListView.cs: Raise a double click event. Also tried to somewhat
29589 fix when the selectedindexchanged event is raised. Its still
29592 2005-10-21 Jackson Harper <jackson@ximian.com>
29594 * TreeView.cs: New method to invalidate the plus minus area of a
29595 node without invalidating the whole node (maybe this can be used
29596 in some more places).
29597 * TreeNodeCollection.cs: When adding to an empty node we need to
29598 invalidate its plus minus area so the little block shows up.
29600 2005-10-21 Jackson Harper <jackson@ximian.com>
29602 * TreeView.cs: Make sure that when we invalidate a node the bounds
29603 are big enough to cover the selected box and the focus
29604 rectangle. Use a different colour for the lines connecting nodes
29605 so they show up with all themes.
29607 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29609 * NativeWindow.cs: Don't call anything that could call into the driver,
29610 we might be on a different thread.
29612 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29614 * Control.cs(Dispose): Since Dispose might run on a different thread,
29615 make sure that we call methods that could call into the driver via
29616 invoke, to avoid thread issues
29618 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29620 * XplatUI.cs: Removed finalizer
29621 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29622 not allowing to be called on the finalizer thread.
29624 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
29627 - Reverted r51889 and r51891.
29628 - Added ImageListItem class that stores unmodified image items and image
29629 properties required to create list images until handle is created.
29630 - Added AddItem and moved image creation logic to AddItemInternal.
29631 - Added CreateHandle method that creates images based on unmodified items.
29632 - Added DestroyHandle that changes state to store unmodified items.
29633 - Add and AddStrip methods no more create handle.
29634 - ReduceColorDepth has no return value.
29635 - Dispose destroys handle.
29636 - Modified other methods to reflect the above changes.
29637 - Implemented key support.
29638 - Added profile 2.0 members and attributes.
29639 - Added private Reset and ShouldSerialize methods that provide the same
29640 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29641 them as they are private.
29642 - Added some more comments about implementation details.
29644 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29646 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29648 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29650 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29652 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29654 * DataGridDrawingLogic.cs: Fixes column hit calcultation
29655 * DataGridColumnStyle.cs: Remove debug message
29657 2005-10-20 Jackson Harper <jackson@ximian.com>
29659 * TreeView.cs: We can always get input keys regardless of whether
29660 or not editing is enabled. They are used for navigation.
29662 2005-10-20 Jackson Harper <jackson@ximian.com>
29664 * TreeNode.cs: Use the viewport rect for determining if a node
29665 needs to be moved for visibility. Don't use Begin/End edit. This
29666 calls a full refresh when its done.
29667 * TreeView.cs: New SetBottom works correctly. Make the viewport
29668 rect property internal so the treenodes can see it. When clicking
29669 on a node we need to ensure that its visible because it might just
29670 be partly visible when clicked.
29672 2005-10-20 Jackson Harper <jackson@ximian.com>
29674 * TreeNodeCollection.cs: Remove debug code.
29676 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29678 * Datagrid.cs: Implements column sorting in Datagrid
29679 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
29681 2005-10-20 Jackson Harper <jackson@ximian.com>
29683 * TreeNodeCollection.cs: Remove items properly. Update the correct
29684 area after removing them.
29686 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29688 * Datagrid.cs: Should not call base.OnPaintBackground
29690 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29692 * XplatUIX11.cs (GetMessage):
29693 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
29694 window instead of client window
29695 - Now properly calculates NC_xBUTTONUP message coordinates
29696 - ScreenToMenu now properly calculates it's coordinates of whole
29697 window, since menus are in the whole window, not in the client
29699 - Added WholeToScreen coordinate translation method
29701 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29703 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
29704 want to return a message, loop back to the beginning of the function
29705 and grab the next real message to process instead.
29707 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29709 * Splitter.cs: Properly set limits if no filler control is used
29711 2005-10-19 Jackson Harper <jackson@ximian.com>
29713 * ColorDialog.cs: Don't show the help button if it is not enabled
29714 instead of disabling it (this is what MS does). Don't create the
29715 panel until the dialog is run, otherwise the vars (such as
29716 ShowHelp) are not set yet.
29718 2005-10-19 Jackson Harper <jackson@ximian.com>
29720 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
29721 are reduced when adding nodes.
29723 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
29726 2005-10-19 Jackson Harper <jackson@ximian.com>
29728 * FolderBrowserDialog.cs: End editing our treeview so the window
29729 actually gets refreshed.
29731 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29733 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
29734 Obsoleted handling of WM_ERASEBKGND, now always draws our background
29737 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29739 * MenuAPI.cs: Returns after Hidding window
29740 * XplatUIX11.cs: Added TODO found while debugging menu issues
29742 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29744 * XplatUIX11.cs: Do not re-map the whole window when it's size
29745 becomes non-zero unless it's supposed to be actually visible
29747 2005-10-18 Jackson Harper <jackson@ximian.com>
29749 * TreeView.cs: We don't need to keep a count anymore.
29750 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
29751 use the Grow method.
29753 2005-10-18 Jackson Harper <jackson@ximian.com>
29755 * TreeNodeCollection.cs: Insert is not supported on arrays, so
29756 implement it manually here.
29758 2005-10-18 Jackson Harper <jackson@ximian.com>
29760 * ImageList.cs: Dont kill the list when the colour depth is
29761 changed, just change the colour depth of all the images.
29762 - Same goes for setting the image size. Just resize them all
29763 instead of killing the list softly.
29765 2005-10-18 Jackson Harper <jackson@ximian.com>
29767 * Control.cs: Don't invalidate empty rectangles.
29769 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29772 - Adds checked item to the Checked/Item lists (where empty before)
29773 - Do not add items to the Selected lists if they are already present
29775 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
29776 - When deleting items make sure that we delete them for the Selected
29777 and Checked list also.
29779 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29781 * Label.cs: Dispose objects no longer used
29782 * ThemeWin32Classic.cs: Dispose objects no longer used
29784 2005-10-18 Jackson Harper <jackson@ximian.com>
29786 * TabControl.cs: Don't refresh the whole control when the tabs are
29787 scrolled, we just need to refresh the tab area.
29789 2005-10-17 Jackson Harper <jackson@ximian.com>
29791 * XplatUIX11.cs: Compress code a little bit. Only calculate the
29792 after handle when we need it.
29794 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29796 * Control.cs: When the parent size changes, recalculate anchor
29797 positions. Partial fix for #76462
29799 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29801 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
29802 drawn. Fixes #76462
29804 2005-10-17 Jackson Harper <jackson@ximian.com>
29806 * MonthCalendar.cs: Don't create the numeric up down until our
29807 handle is created. Otherwise our handle is created in the
29808 constructor and we don't know if we are a WS_CHILD or WS_POPUP
29811 2005-10-17 Jackson Harper <jackson@ximian.com>
29813 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
29816 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29817 * TreeNode.cs : small logical fix (was using local var instead of field)
29819 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
29821 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
29823 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
29825 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
29827 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
29830 - Re-implemented anchoring code. My first version was really broken.
29831 This fixes bug #76033. Unlike the previous implementation we will
29832 no longer have round errors since all numbers are calculated from
29833 scratch every time. Removed various anchor-related obsolete vars.
29834 - InitLayout no longer causes layout event firing and layout to be
29837 2005-10-16 Jackson Harper <jackson@ximian.com>
29839 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
29842 2005-10-16 Jackson Harper <jackson@ximian.com>
29844 * TabControl.cs: Remove debug code.
29846 2005-10-16 Jackson Harper <jackson@ximian.com>
29848 * XEventQueue.cs: Increase the default queue size (very simple
29849 apps needed to grow the queue).
29850 * Hwnd.cs: No finalizer so we don't need to suppress
29851 finalization. Compute the invalid area manually so a new rectangle
29852 does not newto be created.
29853 * ScrollableControl.cs: Don't set any params (otherwise visibility
29854 isn't set correctly).
29855 * MdiChildContext.cs: New constructor takes the mdi parent so it
29856 doesn't have to be computed and avoids a crash on windows. Draw
29857 the window icon properly, and allow the text to be seen.
29858 * Form.cs: Use new MdiChildContext constructor. Make sure the
29859 child context isn't null in wndproc.
29860 * TabControl.cs: Don't set focus, this is muddling keyboard
29861 behavoir. Expand the tab rows when a window size increase will
29862 allow extra tabs to be seen. Don't allow tabs smaller than the
29863 width of a window to be scrolled out of view.
29865 * TreeView.cs: Use measure string to calculate a nodes width, the
29866 width is cached and only updated when the text or the font is
29867 changed. Don't check for expand/collapse clicks on the first level
29868 nodes if root lines are disabled.
29870 2005-10-16 Ritvik Mayank <mritvik@novell.com>
29872 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
29874 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
29876 * DataGridBoolColumn.cs: fixes warning
29878 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
29880 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
29881 to match more to match more precisely the MS Net behavior
29883 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29885 * Hwnd.cs: Added field to track if window is mapped
29887 - Unmap windows if they become 0-size, re-map when
29888 they are >0 again; fixes #76035
29889 - Re-set our error handler after initializing X11Desktop
29890 to override any error handlers Gtk or whatever was called
29893 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29895 * CheckedListBox.cs: Removed unused vars
29896 * ListView.cs: Fixed signatures
29897 * RichTextBox.cs: Removed unused vars
29898 * TextBoxBase.cs: Removed unused vars
29899 * XplatUIWin32.cs: Removed unused vars
29900 * XplatUIX11.cs: Removed unused vars
29901 * XplatUI.cs: Updated version and date to latest published
29903 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29905 * Cursor.cs: Added private .ctor to work around a bug in
29906 resourceset (Thanks to Geoff Norton for the help on this)
29907 * SplitterEventArgs.cs: Made fields accessible so we don't
29908 waste boatloads of objects and can reuse the same one
29910 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
29911 any captions and borders when generating screen coordinates
29912 * Splitter.cs: Reimplemented control, now fully complete, uses
29913 rubberband drawing, supports and obeys all properties, has
29916 2005-10-13 Miguel de Icaza <miguel@novell.com>
29918 * Form.cs (Form): Setup default values for autoscale and
29919 autoscale_base_size; Make these instance variables, not static
29922 (OnLoad): on the first load, adjust the size of the form.
29924 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29926 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
29927 width argument to DrawReversibleRectangle()
29928 * XplatUIWin32.cs, XplatUIX11.cs:
29929 - Implemented width for DrawReversibleRectangle()
29930 - Added logic to DrawReversibleRectangle that recognizes a zero
29931 width or height and only draws a line in that situation
29933 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
29935 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
29936 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
29937 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
29938 method (it uses our FosterParent window to get a graphics context)
29940 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
29942 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
29943 and SetWindowBackground methods
29945 - Setting proper ControlStyles
29946 - We no longer call XplatUI.SetWindowBackground and XplatUI.
29947 EraseWindowBackground, instead we draw the window background
29948 ourselves in PaintControlBackground. This behaviour is
29949 required to match MS, where, when OnPaintBackground is not
29950 called, the background is not drawn.
29951 - Removed unneeded Refresh() in set_Text
29952 * Hwnd.cs: Dropped the ErasePending support. No longer needed
29954 - Created DeriveStyles method to translate from CreateParams to
29955 FormBorderStyle and TitleStyle, also handles BorderStyle (which
29956 matches FormBorderStyle enum values)
29957 - Consolidated SetHwndStyles and CalculateWindowRect border/title
29958 style calculations into single DeriveStyles method
29959 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
29960 from redrawing the whole window on any resize or expose.
29961 - Fixed CreateWindow usage of SetWindowValuemask. Before not
29962 all styles were applied to our whole/client window appropriately
29963 - Removed EraseWindowBackground() and SetWindowBackground() methods
29964 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
29965 no longer clear/redraw the background through X
29966 - Removed handling of erase_pending bit, we have no use for it (or
29969 - Removed generation and handling of WM_ERASEBKGND message
29970 - Removed EraseWindowBackground() and SetWindowBackground() methods
29971 - Removed handling of hwnd.ErasePending flag
29973 - Removed EraseWindowBackground() and SetWindowBackground() methods
29974 - We no longer call EraseWindowBackground on PaintEventStart, we
29975 ignore the fErase flag, erasing is handled in Control in the
29977 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
29978 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
29979 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
29980 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
29981 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
29982 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
29983 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
29985 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
29987 * PropertyGrids.cs: Get sub properties
29988 * PropertyGridView.cs: Fix drawing code
29990 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29992 * ListBox.cs: Fixes 76383
29994 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29996 * DataGridTextBoxColumn.cs: Sets location and size before attachment
29997 * ThemeWin32Classic.cs: Fixes border drawing and calculations
29998 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30001 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30003 * ComboBox.cs: Fixes border drawing
30005 2005-10-10 Miguel de Icaza <miguel@novell.com>
30007 * MimeIcon.cs: Ignore errors if the file can not be read.
30009 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30011 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30012 - Fixed border calculations
30013 - Fixed horizontal scrolling in single column listboxes
30014 - Fixed drawing issues
30016 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
30018 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
30019 FormBorderStyle enum
30020 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
30021 code to determine FormBorderStyles from CreateParams
30023 - Fixed bug where we'd set the wrong window styles if we were
30024 not creating an MDI window
30025 - Added call to XplatUI.SetBorderStyle when form borders are set
30026 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30028 - Removed obsolete edge style
30029 - Switched from BorderStyle to FormBorderStyle
30031 2005-10-10 Jackson Harper <jackson@ximian.com>
30033 * Form.cs: Use the property to get the window handle instead of
30034 accessing it directly. Prevents a null reference exception.
30036 2005-10-10 Jackson Harper <jackson@ximian.com>
30038 * TreeView.cs: Don't adjust the rect given to DrawString now that
30039 our libgdiplus draws correctly.
30041 2005-10-08 Jackson Harper <jackson@ximian.com>
30043 * TreeView.cs: Don't try to find the clicked on node if there are
30044 no nodes in the tree.
30046 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30052 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30054 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30055 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30057 Use ResPool for brushes and dispose System.Drawing objects that
30058 are not used anymore.
30060 2005-10-07 Jackson Harper <jackson@ximian.com>
30062 * MdiChildContext.cs: Use the new borders instead of drawing them
30065 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30067 * Calling UpdateBounds after changing the window's BorderStyle
30068 since the style can change the ClientSize
30070 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30072 * Control.cs: Made PaintControlBackground virtual
30073 * Panel.cs: Overriding PaintControlBackground instead of using paint
30074 event; paint event method was interfering with 'real' users of the
30077 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30079 * ThemeWin32Classic.cs: remove border drawing since it is handled
30080 by the base control class now and was causing double border drawing.
30082 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30084 * Panel.cs: Redraw our background on paint. Not a pretty solution,
30085 but it does seem to match MS behaviour. This fixes bug #75324
30087 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30089 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30090 somewhat hackish looking
30092 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30095 - We now accept Enter even if AcceptEnter is false, if the containing
30096 form does not have an AcceptButton configured (fixes bug #76355)
30097 - Calculations are now fixed to no longer use Width/Height, but
30098 ClientSize.Width/Height, since we now support borders (this was
30099 a result of fixing borders and therefore bug #76166)
30100 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
30101 true (fixes bug #76354)
30103 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30106 - Defaulting BorderStyle and setting it in XplatUI when our window
30108 - Added enum check to InternalBorderStyle setter
30110 - Added drawing of window borders
30111 - Now properly calculates WM decorations offset for toplevel
30112 windows (fixes bug #74763)
30114 - Implemented BorderStyles for windows (we're letting win32 draw
30116 - Fixed the signature for SetWindowLong
30117 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30118 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
30120 * UpDownBase.cs: Remove drawing of borders, this is handled by
30121 the driver, outside the client area
30122 * ListView.cs: Removed bogus border calculations. The control should
30123 be oblivious to borders, since those are not part of the client
30125 * X11DesktopColors.cs: Commented out (currently) unneeded variables
30126 * ThemeWin32Classic.cs: Removed border calculations from ListView
30129 2005-10-06 Jackson Harper <jackson@ximian.com>
30131 * MdiChildContext.cs: Clear out the old virtual position remove
30132 all the unneeded calls to CreateGraphics.
30134 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30136 * TextControl.cs: Use proper color for highlighted text; fixes #76350
30138 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30141 - Added loading and setting of our new default icon
30142 - Only set icon if window is already created
30144 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30147 - Do not explicitly set the foreground and background colors, to
30148 allow inheriting from parents (fixes #76302)
30149 - Use Control's InternalBorderStyle property to deal with borders
30151 2005-10-06 Jackson Harper <jackson@ximian.com>
30153 * MdiChildContext.cs: Use the new xplatui function to draw a
30156 2005-10-06 Jackson Harper <jackson@ximian.com>
30158 * Form.cs: Add the parent before creating the child context cause
30159 we need the parent when setting up the child.
30161 2005-10-06 Jackson Harper <jackson@ximian.com>
30163 * FolderBrowserDialog.cs: redo the tree population code so a
30164 second thread isn't used. Should be a lot faster and more stable
30167 2005-10-05 Jackson Harper <jackson@ximian.com>
30169 * TreeView.cs: There are no expand/collapse boxes if the node has
30172 2005-10-05 Jackson Harper <jackson@ximian.com>
30174 * X11DesktopColors.cs: Get menu colours for the gtk theme.
30176 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
30178 * FileDialog.cs: Fix InitialDirectory
30180 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30183 - Fixes changing between styles
30184 - Fixes simple mode
30185 - Fixes last item crashing when navigating with keyboard
30187 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30189 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30191 2005-10-05 Jackson Harper <jackson@ximian.com>
30193 * TreeView.cs: If updating the root node do a full refresh.
30194 * TreeNode.cs: The root node should be expanded by default. Also
30195 added a utility prop to tell if we are the root node.
30196 * TreeNodeCollection.cs: Only refresh if the node we are being
30197 added to is expanded. Also added a comment on a potential
30200 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
30202 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
30203 in dispose method. Fixes #76330
30205 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
30207 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30209 - Implements vertical and horizontal scrolling using XplatUI
30210 - Fixes keyboard navagation
30211 - Fixes EnsureVisible
30213 - Handles and draws focus properly
30216 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
30218 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30219 Create handle. NET_2_0: Destroy handle when value is null.
30221 2005-10-03 Jackson Harper <jackson@ximian.com>
30223 * ScrollBar.cs: My last scrollbar patch was broken. This is a
30224 revert and a new patch to prevent the thumb from refreshing so
30227 2005-10-02 Jackson Harper <jackson@ximian.com>
30229 * ScrollBar.cs: Don't update position if it hasn't actually
30230 changed. This occurs when you hold down the increment/decrement
30231 buttons and the thumb gets to the max/min.
30233 2005-10-01 Jackson Harper <jackson@ximian.com>
30236 * MdiChildContext.cs:
30237 * MdiClient.cs: Implement ActiveMdiChild in Form.
30239 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
30241 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30243 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
30245 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30248 2005-09-30 Jackson Harper <jackson@ximian.com>
30250 * ListBox.cs: Don't do a full refresh unless some data has
30253 2005-09-30 Jackson Harper <jackson@ximian.com>
30255 * TreeView.cs: Make sure that the checkboxes size is factored in
30256 even when not visible.
30258 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30260 * FileDialog.cs: Fix Jordi's build break
30262 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30265 - Use standard the Windows colours for the combobox as espected
30266 - Dispose objects that use resouces when no longer need them
30268 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30270 * X11DesktopColors.cs: Initial incomplete implementation
30271 * XplatUIX11.cs: Added call to initialize X11DesktopColors
30273 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30276 - Switched Theme color names to match the names defined in
30277 System.Drawing.KnownColors. Life's hard enough, no need to make
30279 - Added setters to all theme color properties so themes can set
30280 their color schemes. The setters also propagate the color changes
30281 to System.Drawing.KnownColors via reflection
30282 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30283 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30284 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30285 use the new, more logical theme color names
30286 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30288 * ThemeWin32Classic.cs:
30289 - Removed code to set the old classic Windows colors. Instead it
30290 now relies on the colors returned by System.Drawing.KnownColors
30291 which will be either modern static colors (Unix) or colors
30292 read from the user's configuration (Win32)
30293 - Updated to use the new, more logical theme color names
30294 - Switched DataGrid drawing code to use only Theme colors instead of
30295 a mix of System.Drawing.KnownColors and Theme colors
30296 - DrawFrameControl(): Removed code that fills the button area, the
30297 fill would overwrite any previous fill done by a control. This
30299 - Added DrawReversibleRectangle() stub
30300 * ScrollableControl.cs: Set visible state to false when scrollbars
30301 are removed (pdn fix)
30302 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
30303 DrawReversibleRectangle() method to allow drawing primitive
30305 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30307 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30309 * ImageList.cs: Add(Icon): Create handle.
30311 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30314 * ThemeWin32Classic.cs:
30315 - Fixes detail mode
30317 - Issues with drawing
30319 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30321 * ImageList.cs: Moved RecreateHandle back to ImageList as event
30322 source has to be the ImageList.
30324 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30326 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30328 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30330 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30332 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30334 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30336 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
30337 * GridItem.cs: Fixed TODOs
30338 * GridItemCollection.cs: Added ICollection interface
30340 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30342 * ImageList.cs: Resize icons when needed.
30344 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
30347 - Fixes GetBounds and returns on screen rects
30349 - Fixes vertical and horzintal scrolling of items
30350 * ThemeWin32Classic.cs:
30353 2005-09-29 Raja R Harinath <harinath@gmail.com>
30355 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30357 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
30359 * ImageList.cs: Added comments about handle creation. Moved Handle,
30360 HandleCreated and OnRecreateHandle implementations to ImageCollection.
30361 Handle is created in Add methods.
30363 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30365 * DataGridDrawingLogic.cs:
30366 - Takes rows into account on Colum calculations
30367 - Returns the column when clickig
30369 - Fixes default HitTestInfo values
30370 - Fixes HitTestInfo.ToString
30371 - Fixes ResetBackColor
30373 2005-09-28 Jackson Harper <jackson@ximian.com>
30375 * MdiChildContext.cs: Obey rules for fixed sized windows (no
30376 sizing or cursor changes). Also added some temp code to draw the
30377 titlebars text (Makes dev a little easier).
30379 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
30381 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30383 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30385 * ListBox.cs: Fixes bug 76253
30387 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
30389 * ImageList.cs: Added comments about the current implementation. Added
30390 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30391 Format32bppArgb to preserve transparency and can use Graphics.FromImage
30392 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30393 with Bitmap.LockBits for better performance. Revised the whole file to
30394 match MS.NET behaviour and provide better performance. Non-public
30395 interface members are calling public members even when they throw
30396 NotSupportedException for better maintainability. Moved ColorDepth,
30397 ImageSize, ImageStream and TransparentColor implementations to
30398 ImageCollection for better performance as these properties are not used
30400 * ImageListStreamer.cs: Added a new internal constructor that takes an
30401 ImageList.ImageCollection and serializes Images based on
30402 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30403 match ImageList property name.
30405 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
30407 * ListBox.cs: Fixes IndexFromPoint for last item
30409 2005-09-27 Jackson Harper <jackson@ximian.com>
30411 * Form.cs: Set the position of new mdi children correctly.
30413 2005-09-27 Jackson Harper <jackson@ximian.com>
30415 * MdiClient.cs: New mdi children need to be added to the back of
30416 the controls collection so the zorder is set correctly. Also add a
30417 count of all the child windows that have been created.
30419 2005-09-27 Jackson Harper <jackson@ximian.com>
30421 * Form.cs (CreateParams): Setup MDI forms correctly.
30423 2005-09-27 Jackson Harper <jackson@ximian.com>
30425 * MdiChildContext.cs:
30426 * MonthCalendar.cs:
30432 * ScrollableControl.cs:
30433 * ComboBox.cs: Add implicit controls using the new implict control
30434 functionality in ControlCollection. Also try to block multiple
30435 control add in a suspend/resume layout to save some cycles.
30437 2005-09-27 Jackson Harper <jackson@ximian.com>
30439 * Control.cs: Add functionality to the controls collection to add
30440 'implicit controls' these are controls that are created by the
30441 containing control but should not be exposed to the user. Such as
30442 scrollbars in the treeview.
30443 * Form.cs: The list var of the ControlsCollection is no longer
30444 available because of the potential of implicit controls getting
30445 ignored by someone accessing the list directly.
30447 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
30449 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30450 loose it's parent. (Fixed bug introduced in r49103 when we added
30451 setting the child parent to null on Remove)
30453 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
30455 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30456 * Splitter.cs: Added missing attributes for BorderStyle property.
30457 * TextBoxBase.cs: Marked Calculate* methods internal.
30458 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30461 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
30463 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30465 2005-09-25 Jackson Harper <jackson@ximian.com>
30467 * TreeView.cs: Update the node bounds correctly regardless of
30468 whether the node is visible.
30470 2005-09-25 Jackson Harper <jackson@ximian.com>
30472 * ImageList.cs: Don't dispose the image after it is added to the
30473 image list. Only reformat images that need to be resized.
30475 2005-09-25 Jackson Harper <jackson@ximian.com>
30477 * ImageList.cs: Don't set the format when changing the image.
30479 2005-09-25 Jackson Harper <jackson@ximian.com>
30481 * TreeView.cs: We can't just assume the node has a font. Use the
30482 treeviews font if no node font is available.
30484 2005-09-25 Jackson Harper <jackson@ximian.com>
30486 * TreeView.cs: Allow the scrollbars to be reset with negative
30488 - Don't add scrollbars to negative sized windows.
30490 2005-09-23 Jackson Harper <jackson@ximian.com>
30492 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30493 old Mono.Posix. Also remove some stray code that shouldn't have
30496 2005-09-23 Jackson Harper <jackson@ximian.com>
30498 * TreeView.cs: Attempt at proper sizing of the horizontal
30499 scrollbar. Also don't resize the scrollbars unless they are
30502 2005-09-23 Jackson Harper <jackson@ximian.com>
30504 * TreeView.cs: We don't need to expand the invalid area when the
30505 selection changes, as this is all drawn in the node's bounding
30506 box. The area needs to be expanded (previous typo was contracting
30507 it) when the focus rect moves.
30509 2005-09-23 Jackson Harper <jackson@ximian.com>
30511 * TreeView.cs: Display the selection box under the correct
30512 circumstances. We were rendering white text with no selection box
30515 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
30517 * TextControl.cs(Split): Now updates selection start/end if it points
30518 into a line that's being split. Fixes a FIXME and bug #75258
30520 2005-09-23 Jackson Harper <jackson@ximian.com>
30523 * ListControl.cs: Don't use the path when retrieving binding
30524 managers from the binding context. My bat sense tells me that the
30525 path is only used on insertion.
30527 2005-09-22 Jackson Harper <jackson@ximian.com>
30529 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30531 2005-09-22 Jackson Harper <jackson@ximian.com>
30533 * Splitter.cs: There are special cursors used for splitting.
30534 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30536 2005-09-22 Jackson Harper <jackson@ximian.com>
30538 * Splitter.cs: Change the cursor appropriately when the splitter
30539 is moused over, so the user actually knows there is a splitter
30542 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30544 * Label.cs : Fix ToString method to give same output as MS.NET
30546 2005-09-22 Jackson Harper <jackson@ximian.com>
30548 * TreeView.cs: Create the scrollbars when the handle is created
30549 and add them right away, just make them invisble. Also account for
30550 the window being shrunk vertically to the point that the vert
30551 scrollbar needs to be added.
30552 - Remove some 0.5 adjustments to get around anti aliasing issues.
30554 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
30556 * MainMenu.cs: Fixes default value
30557 * MenuItem.cs: Fixes default value
30559 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
30561 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30563 2005-09-21 Jackson Harper <jackson@ximian.com>
30565 * Control.cs: Don't try to set the border style on the window if
30566 it hasn't been created. When the window is created the border
30567 style will be used.
30569 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30571 * Control.cs (Update): Don't call XplatUI if we don't have a
30574 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30576 * ContainerControl.cs: Instead of throwing an exception, print
30577 a one-time warning about Validate not being implemented
30578 * XplatUIWin32.cs: Removed debug output
30580 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30582 * Control.cs: Only set XplatUI background if we expect the windowing
30583 system to handle the background. This stops controls that draw their
30584 own background from flickering
30586 * XplatUIX11.cs: Support custom visuals and colormaps for window
30587 creation. This allows, amongst other things, using MWF X11 windows
30590 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30592 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30593 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30594 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30595 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30596 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30597 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30598 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30599 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30600 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30601 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30602 GridColumnStylesCollection.cs,
30603 IDataGridColumnStyleEditingNotificationService.cs,
30604 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30605 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30606 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
30607 TreeNodeCollection.cs, AmbientProperties.cs,
30608 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30609 DataObject.cs, ErrorProvider.cs, Splitter.cs,
30610 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30611 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30612 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30613 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30614 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30615 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30616 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30617 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30618 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30619 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30620 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30621 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30622 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30623 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30624 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30625 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30626 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30627 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30628 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30629 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30630 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30631 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30632 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30633 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30634 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30635 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30636 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30637 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30638 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30639 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30640 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30641 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30642 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30643 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30644 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30646 2005-09-21 Jackson Harper <jackson@ximian.com>
30648 * TreeNode.cs: Call Before/After Expand not Collapse when
30651 2005-09-20 Jackson Harper <jackson@ximian.com>
30653 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30655 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30659 - Fixes proper storing of subitems
30660 - Fixes not updated items
30662 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30664 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30665 things if our window handle isn't created yet. Also disabled
30666 debug for TextBoxBase
30668 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30670 * MenuAPI.cs: Remove filtering of events to allow menu usage
30672 2005-09-20 Miguel de Icaza <miguel@novell.com>
30674 * Cursor.cs: Allow null to be passed to Cursor.Current.
30676 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
30678 * ThemeWin32Classic.cs:
30679 - Change some private methods/fields to protected virtual so that
30680 they can be accessed and overriden in derived classes
30681 - First refactoring of some methods. Derived themes now don't
30682 need to duplicate the complete code from ThemeWin32Classic
30684 - Added nice StatusBar
30685 - Derive from ThemeWin32Classic and not Theme
30686 - Removed duplicate ThemeWin32Classic code
30688 2005-09-20 Miguel de Icaza <miguel@novell.com>
30690 * Control.cs (ControlCollection.Add): If the value null is passed
30691 the control is ignored.
30693 Optimize this loop.
30695 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30697 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
30698 PostQuitMessage state.
30699 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
30701 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30703 * Application.cs: Our constructor will never get called, move
30704 initialization to fields; fixes bug #75933
30706 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30709 - Allow files to be selected properly using file name
30711 - Add ability to change diretory (absolute / relative)
30712 using file name combo box.
30714 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30717 - Fixes Multicolumn listboxes item wrong calculations
30718 - Allows to click when only one item is in the listbox
30719 - Fixes crash when no items using keyboard navigation
30721 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
30723 * ComboBox.cs: Reverted almost everything from the latest patch which
30726 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
30729 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
30731 - When DropDownStyle is Simple, it does not show scrollbar
30732 to the last item of the list.
30733 - When DropDownStyle is Simple, it crashed when the list was
30734 scrolled down with the down cursor key.
30735 - Fixed a bug that when DropDownStyle is DropDownList, the
30736 selected item was not shown.
30737 - The position of the selected item was not preserved when
30738 the next dropdown happened.
30739 * ThemeWin32Classic.cs:
30740 - Items were wrapped at the right end.
30741 * CheckedListBox.cs:
30744 - Items should be fully shown.
30745 - When resizing and vertical scrollbar disappeared, the item
30746 of index 0 should be on the top of the list.
30747 - GetItemRectangle should consider the size of ver. scrollbar
30749 - SizingGrip area should not be allocated when it is not
30751 - Now it reflects MinWidth of the containing panel and
30752 fixed a crash that happens when its width becomes so small.
30754 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30756 * CheckedListBox.cs: Fixes bug 76028
30757 * ListBox.cs: Fixes bug 76028
30759 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30761 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
30762 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
30764 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
30766 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
30768 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30770 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
30772 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30774 * IRootGridEntry.cs: Added
30775 * PropertyGridCommands.cs: Added
30776 * PropertiesTab.cs: Added missing methods and property
30777 * PropertyGridView.cs: Made class internal
30778 * PropertyGridTextBox.cs: Made class internal
30780 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30782 * MimeIcon.cs: Try to check some other environment variables
30783 if "DESKTOP_SESSION" returns "default"
30785 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30787 * ThemeNice.cs: Corrected background colors (e.g. menus)
30788 * ColorDialog.cs: Use correct background colors for controls
30790 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30792 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
30794 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
30796 * RichTextBox.cs: Added initial implementation
30797 * lang.cs: Removed. Was accidentally checked in long time ago
30798 * TODO: Removed. Contents were obsolete
30800 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30802 * PropertiesTab.cs : Added
30804 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30806 * PropertyGrid.cs : Update
30807 * PropertyGridView.cs : Update
30808 * System.Windows.Forms.resx : Added images and strings
30810 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
30812 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
30814 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
30816 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
30817 a busy loop right after the Ungrab the X11 display is otherwise
30820 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
30822 * ThemeWin32Classic.cs: Optimise the use of clipping
30824 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
30826 * DataGrid.cs: fixes recursion bug
30828 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
30831 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
30834 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
30836 * ThemeNice.cs: Draw nice ProgressBars
30838 2005-09-01 Miguel de Icaza <miguel@novell.com>
30840 * VScrollBar.cs: Another buglet found by Aaron's tool.
30842 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
30845 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
30848 - Added nicer menu drawing
30852 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30854 * CreateParams.cs (ToString): Made output match MS
30855 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
30856 handle is already created (to avoid forcing window creation)
30857 * XplatUIX11.cs: Set window text to caption after creating window,
30858 in case Text was set before window was created
30859 * Form.cs: Use this.Text instead of a static string as caption
30861 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30863 * NotifyIcon.cs: Don't set the window to visible; this screws
30864 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
30865 OnPaint without a bitmap)
30866 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
30867 happen very often anyway; we could add the check to the WM_PAINT
30868 event generation code
30870 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30872 * NotifyIcon.cs: Fill the icon area with a background color, to
30873 avoid 'residue' when transparent icons are drawn
30875 - Handle whole_window == client_window when destroying windows
30876 - SystrayAdd(): Set client_window to whole_window value to
30877 get mouse and other events passed to NotifyIcon
30879 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30881 * Form.cs: Set proper default for Opacity property
30883 - ShowSystray(): Don't bother creating telling the OS
30884 about the systray item if no icon is provided
30885 - Now handles WM_NCPAINT message to deal with whole/client window
30887 - Create window as visible to not get caught by Expose optimization
30888 * Hwnd.cs: Removed debug message
30889 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
30890 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
30891 PaintEventStart/End to use new client argument
30893 - Commented out debug messages
30894 - Switched PaintEventStart/End to use new client argument
30895 * XplatUI.cs: Added client window bool to PaintEventStart()/
30896 PaintEventEnd() calls, to support drawing in non-client areas
30897 * XplatUIDriver.cs:
30898 - Added client window bool to PaintEventStart()/PaintEventEnd()
30899 calls, to support drawing in non-client areas
30900 - Added conditional compile to allow using MWF BeginInvoke
30903 - Added some conditional debug output
30904 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
30905 whole/client window split
30906 - Implemented handling of client argument to PaintEventStart()/End()
30908 - Throw exception if BeginInvoke() is called and the window handle
30909 or one of the window's parent handles is not created
30910 - Added conditional compile to allow using MWF BeginInvoke on
30912 - get_Parent(): Only sets parent if handle is created. This avoids
30913 forcing window handle creation when parent is set.
30914 - Now fires Layout and Parent changed events in proper order
30915 - Switched to use Handle instead of window.Handle for Z-Order setting,
30916 the get_Parent() patch above causes us to possibly get null for 'window'
30917 - Implemented handling of client argument to PaintEventStart()/End()
30918 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
30920 - Now sends a Refresh() to all child windows when Refresh() is called
30922 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
30924 * Form.cs: Added (non-functional) Opacity property
30925 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
30927 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
30928 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
30929 use export MONO_THEME=nice to activate it.
30930 Currently supported controls:
30934 - TabControl (TabAlignment.Top only, other will follow)
30935 * ThemeEngine.cs: Add theme nice
30936 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
30939 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
30941 * Splitter.cs: Resize docked control and its neighbor.
30943 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30944 -- Making Windows with Menus layout correctly --
30945 * Form.cs : The first leg of the fix
30946 Menu setter - adjust Client Size as needed to make space for the menu
30947 SetClientSizeCore - doesn't call base version to be able to pass the
30948 menu handle to XplatUI.CalculateWindowRect
30949 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
30950 * XplatUIX11.cs: The critical second leg of the fix
30951 GetWindowPos needs to use a recalculated client_rect
30952 so that resizing the window doesn't break layout of child controls.
30953 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
30954 Lots of \t\n killed
30956 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
30958 * Label.cs: Now properly recalculates width and height on Font and Text
30959 changes if AutoSize is set
30961 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30962 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
30964 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
30966 * ImageList.cs: Makes ToString method compatible with MS
30968 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
30970 * MenuAPI.cs: fixes bug 75716
30972 2005-08-11 Umadevi S <sumadevi@novell.com>
30973 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
30975 2005-08-11 Umadevi S <sumadevi@novell.com>
30976 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
30978 2005-08-10 Umadevi S <sumadevi@novell.com>
30979 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
30981 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
30983 * Menu.cs: fixes bug 75700
30984 * MenuAPI.cs: fixes navigation issues
30986 2005-08-09 Umadevi S <sumadevi@novell.com>
30987 * CheckedListBox.cs - simple fix for GetItemChecked.
30989 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
30991 * ComboBox.cs: Serveral fixes
30992 * ListBox.cs: Serveral fixes
30994 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
30996 * ComboBox.cs: Fixes FindString methods and GetItemHeight
30997 * ListBox.cs: Fixes FindString methods
30999 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31001 * DataGrid.cs: fixes bugs exposed by new tests
31003 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
31005 * Mime.cs: Compile Mono assembly references only if compiling
31006 with Mono (Allows to build with VS.Net again)
31008 2005-07-28 Marek Safar <marek.safar@seznam.cz>
31010 * Control.cs (PaintControlBackground): Draw background image
31012 (CheckForIllegalCrossThreadCalls): Stubbed.
31014 * Form.cs (OnCreateControl): Center when should be centered.
31016 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31018 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
31020 * Binding.cs: Binding to properties should be case unsensitive
31022 2005-07-18 vlindos@nucleusys.com
31024 * DataGrid.cs: fixes setmember order
31026 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
31028 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31029 * FileDialog.cs: FileDialog is now resizable and uses the new
31032 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
31034 * DataGridTextBoxColumn.cs: default value
31035 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31036 * GridTableStylesCollection.cs: fixes checking MappingName
31037 * DataGridDrawingLogic.cs: fixes drawing logic issues
31038 * DataSourceHelper.cs: rewritten to make compatible with more data sources
31039 * DataGrid.cs: fixes
31041 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
31043 * MimeGenerated.cs: Use case sensitive comparer for
31044 NameValueCollections
31046 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
31048 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
31049 * ThemeWin32Classic.cs: bug fixes, code refactoring
31050 * DataGridDrawingLogic.cs: bug fixes, code refactoring
31051 * DataGrid.cs: bug fixes, code refactoring
31052 * DataGridTextBox.cs: bug fixes, code refactoring
31053 * DataGridColumnStyle.cs: bug fixes, code refactoring
31054 * Theme.cs: bug fixes, code refactoring
31056 2005-07-01 Peter Bartok <pbartok@novell.com>
31058 * TextControl.cs: Quick fix for the reported crash on ColorDialog
31059 and other text box usage
31061 2005-07-01 Jackson Harper <jackson@ximian.com>
31063 * TabControl.cs: Make sure the bottom of the tab covers the pages
31066 2005-06-30 Peter Bartok <pbartok@novell.com>
31068 * Form.cs (ShowDialog): Assign owner of the dialog
31069 * TextBoxBase.cs: Always refresh caret size when deleting, caret
31070 might have been moved to a tag with different height
31072 2005-06-30 Jackson Harper <jackson@ximian.com>
31074 * Form.cs: Don't create an infinite loop when setting focus
31075 * MenuItem.cs: Don't dirty the parents if we don't have any
31077 2005-06-29 Ben Maurer <bmaurer@ximian.com>
31079 * LibSupport.cs: Rename
31081 2005-06-29 Peter Bartok <pbartok@novell.com>
31083 * TextBoxBase.cs: Re-align caret after deleting a character
31085 - DeleteChars(): Ensure that tag covers the provided position
31086 - StreamLine(): Drop reference for dropped tag
31088 2005-06-29 Peter Bartok <pbartok@novell.com>
31091 - Selections now work properly, anchoring at the initial location
31092 and properly extending in either direction (SetSelectionToCaret(),
31093 SetSelectionStart() and SetSelectionEnd())
31094 - No longer redraws the whole control on selection change, now
31095 calculates delta between previous and new selection and only
31096 invalidates/redraws that area
31097 - Fixed FindPos() math off-by-one errors
31098 - Changed DeleteChars() to verify the provided tag covers the
31099 provided position, selections may have a tag that doesn't cover
31100 the position if the selection is at a tag border
31101 - Fixed off-by-one errors in DeleteChars()
31102 - Added missing streamlining check in DeleteChars() to remove
31104 - Implemented Invalidate() method, now properly calculates exposures
31105 between two given lines/positions
31106 - Implemented SetSelection()
31107 - Obsoleted and removed FixupSelection()
31108 - Improved RecalculateDocument() logic, removing code duplication
31110 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31112 * LibSupport.cs: changes to match different input/output arguments.
31114 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31116 * LibSupport.cs: added libsupport.so init routine.
31118 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
31120 * ControlBindingsCollection.cs
31121 - Throws an exception on null datasource when adding
31122 - Checks for duplicated bindings when adding
31124 2005-06-28 Jackson Harper <jackson@ximian.com>
31126 * TreeView.cs (OnKeyDown): Support left and right properly
31127 (navigates as well as expanding and collapsing.
31128 - Add support for Multiply, this expands all the selected nodes
31130 - Fix some tabbing.
31132 2005-06-28 Jackson Harper <jackson@ximian.com>
31134 * TreeView.cs: Implement keyboard navigation, currently supports,
31135 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31136 support for toggling checkboxes with the space bar.
31138 2005-06-28 Jackson Harper <jackson@ximian.com>
31140 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31143 2005-06-28 Jackson Harper <jackson@ximian.com>
31145 * TreeView.cs: Add missing event.
31147 2005-06-27 Peter Bartok <pbartok@novell.com>
31150 - Made line ending size configurable (now allows for counting
31151 lineendings as \n or \r\n)
31152 - Added margin to viewport to keep caret visible on right side
31153 - Fixed translation routines for line/pos to documentpos to consider
31154 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31155 - Fixed some line-endings to be unix style
31156 - Fixed Document.FormatText to perform it's calculations 1-based
31157 - Added descriptions for a few methods that might otherwise get
31159 - Added NOTE section with some basic conventions to remember at
31160 the top of the file
31161 - Major fixup for RichTextBox selection drawing:
31162 * Fixed crashes when multiple tags on a single line were selected
31163 * fixed selection box drawing not overlaying text
31164 * fixed bogus offset calculation for tags not starting at index 1
31165 * Switched behaviour from using multiple Substrings of a
31166 StringBuilder.ToString() to using multiple
31167 StringBuilder.ToString(start, length) statements, hoping this is
31168 faster (kept original version commented out in the code, in case
31169 original version was faster)
31170 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
31172 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31175 2005-06-27 Jackson Harper <jackson@ximian.com>
31177 * TabControl.cs: Move to the left and right with the arrow
31178 keys. These keys don't cycle beyond first and last like
31179 tab. Refresh all the tabs when scrolling them to the left or
31182 2005-06-27 Jackson Harper <jackson@ximian.com>
31185 - ToString: Added method
31186 - CreateParams: Remove TODO and comment
31187 - OnKeyDown: Cycle through bounds properly.
31188 - SelectedIndex: Scroll to the right or left if we need to
31189 display the newly selected tab.
31191 2005-06-23 Jackson Harper <jackson@ximian.com>
31193 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31196 2005-06-23 Jackson Harper <jackson@ximian.com>
31198 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31199 CTRL-SHIFT-TAB, and HOME, END are there any others?
31201 2005-06-23 Jackson Harper <jackson@ximian.com>
31203 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31205 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31207 * DataGridTextBoxColumn.cs: fixes and enhancements
31208 * ThemeWin32Classic.cs: fixes and enhancements
31209 * DataGridBoolColumn.cs: fixes and enhancements
31210 * DataGridDrawingLogic.cs: fixes and enhancements
31211 * CurrencyManager.cs: fixes and enhancements
31212 * DataGrid.cs: fixes and enhancements
31213 * DataGridColumnStyle.cs: fixes and enhancements
31215 2005-06-22 Jackson Harper <jackson@ximian.com>
31217 * TabControl.cs: Add some missing methods that just call into the
31218 base. Make the TabPageCollection's IList interface behave in the
31219 same manner as the MS implementation.
31221 2005-06-22 Peter Bartok <pbartok@novell.com>
31223 * TextControl.cs: Added sanity check
31225 - Fixed wrapping behaviour, don't set wrap on single line controls
31226 (this fixes the breakage of colordialog introduced in an earlier
31228 - Added rudimentary support for autoscrolling right-aligned controls
31229 (still needs fixing, also, center alignment scroll is missing)
31231 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31233 * ScrollBar.cs: Fixes thumbpos on Maximum values
31235 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
31237 * PropertyGridView.cs: Pass context information to UITypeEditors
31239 2005-06-21 Peter Bartok <pbartok@novell.com>
31242 - Now calling PositionCaret with absolute space coordinates
31243 - Enabled vertical scrolling
31244 - Better tracking of scrollbar changes, tied into WidthChange
31246 - Improved cursor tracking
31247 - Removed debug output
31249 - PositionCaret coordinates are now works in absolute space, not
31251 - Improved tracking of document size
31252 - Added events for width and height changes
31254 2005-06-21 Peter Bartok <pbartok@novell.com>
31256 * Form.cs: Set focus to active control when form is activated
31258 - Added word-wrap functionality to RecalculateLine()
31259 - Added some short function descriptions for VS.Net to aid in
31260 writing dependent controls
31261 - Added Caret property, returning the current coords of the caret
31262 - Added ViewPortWidth and ViewPortHeight properties
31263 - Added Wrap property
31264 - Added CaretMoved event
31265 - Removed some old debug code
31266 - Split() can now create soft splits
31267 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31268 - Added method to format existing text
31269 - Fixed size/alignment calculations to use viewport
31270 - RecalculateDocument now can handle changing line-numbers while
31274 - Added some wrap logic, we don't wrap if alignment is not left
31275 - Added casts for scrollbar var, base class switched types to
31276 also support RichTextBoxA
31277 - Implemented handling of scrollbar visibility flags
31280 - Switched scrollbars type to RichTextBoxScrollBars to support
31282 - Added tracking of canvas width/height
31283 - Switched scrollbars to be not selectable (to keep focus on text)
31284 - Added central CalculateDocument() method to handle all redraw
31286 - Added ReadOnly support
31287 - Added WordWrap support
31288 - Fixed handling of Enter key (we now treat it as a DialogKey)
31289 - Fixed caret positioning when h or v scroll is not zero
31290 - Fixed placing/generation of vertical scrollbar
31291 - Added CalculateScrollBars() method to allow updating scrollbar
31292 limits and visibility
31293 - Fixed handling of horizontal scroll
31294 - Added handling of vertical scroll
31295 - Implemented auto-'jump' when caret moves to close to a left or
31296 right border and there is text to be scrolled into view (currently
31297 there's the potential for a stack overflow, until a bug in
31298 scrollbar is fixed)
31300 2005-06-21 Geoff Norton <gnorton@customerdna.com>
31302 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31304 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
31308 - return application/x-zerosize for files with size zero
31309 (if no extension pattern matches).
31310 - check matches collection for strings too.
31311 - return only the first mime type if the name value
31312 collection has more than one mime type.
31314 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
31316 * PropertyGrid.cs: Cleaned up some TODOs
31317 * PropertyGridView.cs: Added support for UITypeEditors
31319 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31321 * DataGrid.cs: clears cached value
31323 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31325 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31326 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31327 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31328 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31330 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
31332 * ThemeWin32Classic.cs: fixes colour
31334 2005-06-15 Peter Bartok <pbartok@novell.com>
31336 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31337 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31338 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31339 * Control.cs: Added some MWFCategory and MWFDescription attributes
31340 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31342 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
31344 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31347 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
31349 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31350 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31351 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31352 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31353 * DataGrid.cs: default datagrid settings for Default Styles, fixes
31354 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31356 2005-06-13 Jackson Harper <jackson@ximian.com>
31358 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31359 isn't printed when the user enables dropping. (X11 does accept
31362 2005-06-13 Jackson Harper <jackson@ximian.com>
31364 * TreeView.cs: Remove some TODOS.
31366 2005-06-13 Jackson Harper <jackson@ximian.com>
31368 * Form.cs: Hook into the mdi framework.
31369 * MdiClient.cs: Use the base control collections add method so
31370 parents get setup correctly. Set the default back colour and dock
31372 * MdiChildContext.cs: New class, this bad actor handles an
31373 instance of an MDI window. Right now there is only basic
31374 support. You can drag, close, and resize windows. Minimize and
31375 Maximize are partially implemented.
31377 2005-06-13 Jackson Harper <jackson@ximian.com>
31379 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31380 freaky when both vals are negative. NOTE: There are probably other
31381 places in XplatUIX11 that this needs to be done.
31383 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
31385 * DataGrid.cs: implement missing methods, move KeyboardNavigation
31386 * DataGridColumnStyle.cs: fixes signature
31388 2005-06-12 Jackson Harper <jackson@ximian.com>
31390 * XplatUIX11.cs: Use sizing cursors similar to the ones on
31393 2005-06-11 Jackson Harper <jackson@ximian.com>
31395 * StatusBarPanel.cs: Signature cleanups. Implement
31398 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
31400 * DataGridTextBoxColumn.cs: Honors aligment
31401 * GridColumnStylesCollection.cs: Contains is case unsensitive
31402 * GridTableStylesCollection.cs: several fixes
31403 * DataGridTableStyle.cs: default column creation
31404 * DataGridDrawingLogic.cs: fixes
31405 * CurrencyManager.cs: ListName property
31406 * DataGrid.cs: multiple styles support
31407 * DataGridColumnStyle.cs: fixes
31410 2005-06-10 Peter Bartok <pbartok@novell.com>
31412 * Control.cs(Select): Moved SetFocus call to avoid potential
31413 loops if controls change the active control when getting focus
31414 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31415 the up/down buttons
31417 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
31419 * ImageListConverter.cs: Implemented
31421 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31423 * MonthCalendar.cs: Wired in NumericUpDown control for year
31425 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31427 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31428 DoubleClick events, since they are not meant to be fired.
31430 2005-06-09 Peter Bartok <pbartok@novell.com>
31432 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31433 Jonathan's standalone controls into MWF, implemented missing
31434 events, attributes and methods; added xxxAccessible classes
31435 * AccessibleObject.cs: Made fields internal so other classes
31436 can change them if needed
31438 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
31440 * UpDownBase.cs: Complete implementation
31441 * NumericUpDown.cs: Complete implementation
31442 * DomainUpDown.cs: Complete implementation
31444 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
31446 * DataGridTextBoxColumn.cs: drawing fixes
31447 * DataGridCell.cs: fixes ToString method to match MSNet
31448 * DataGridTableStyle.cs: fixes
31449 * DataGridBoolColumn.cs: fixes, drawing
31450 * DataGridDrawingLogic.cs: fixes, new methods
31451 * DataGridTextBox.cs: Keyboard and fixes
31453 - Keyboard navigation
31455 - Row selection (single, multiple, deletion, etc)
31458 2005-06-07 Jackson Harper <jackson@ximian.com>
31460 * ThemeWin32Classic.cs: Clear the background area when drawing
31463 2005-06-06 Peter Bartok <pbartok@novell.com>
31465 * ImageListStreamer.cs: Fixed signature for GetData
31466 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31468 - Added missing ChildAccessibleObject class
31469 - Added missing OnXXXFocus overrides, switched to using those
31470 instead of the event handler
31472 - Added Parent property for ControlAccessibleObject
31475 - Added ResetBindings()
31476 * ListBindingConverter.cs: Implemented some methods
31477 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31478 * ImageList.cs: Implemented basic handle scheme, removed TODOs
31479 * ContainerControl.cs: Fixed signature, now subscribing to the
31480 ControlRemoved event instead of overriding the handler, LAMESPEC
31481 * CurrencyManager.cs: Added missing attribute
31482 * MonthCalendar.cs: Added missing properties
31484 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31486 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31488 2005-06-06 Gaurav Vaish and Ankit Jain
31490 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31491 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31493 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31495 * Control.cs: fixes CreateParams Width / Height.
31497 2005-06-05 Peter Bartok <pbartok@novell.com>
31499 * Win32DnD.cs: Removed compilation warnings
31501 2005-06-05 Peter Bartok <pbartok@novell.com>
31503 * Control.cs (CreateParams): Since we don't know if one of the
31504 properties we use is overridden, lets make sure if we fail accessing
31505 we continue with a backup plan
31507 2005-06-05 Peter Bartok <pbartok@novell.com>
31510 - Removed debug output
31511 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31513 - Plugged resource leak
31514 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31517 2005-06-05 Peter Bartok <pbartok@novell.com>
31519 * XplatUIWin32.cs: Removed DnD code
31520 * Win32DnD.cs: Implemented drop source and drop target functionality
31522 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31524 * UpDownBase.cs: remove duplicate addition of event, enable some code
31525 that was commented out.
31526 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31527 Validate input when a key is pressed. It works fine now for every
31528 combination of Hexadecimal. Only missing some drawing love when sharing
31529 space with other controls.
31531 2005-06-04 Peter Bartok <pbartok@novell.com>
31534 - We need to pass a window for DragDrop, so enable callback events
31535 - Added DnD callback events when being a DragSource
31536 * XplatUI.cs (StartDrag): Added window handle argument
31537 * XplatUIDriver.cs (StartDrag): Added window handle argument
31538 * QueryContinueDragEventArgs: Made fields internally accessible so
31539 drivers can set them
31540 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31543 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
31545 * DataGridTextBoxColumn.cs: column text editing
31546 * DataGridTableStyle.cs: Respect columns styles created by the user
31547 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31548 * DataGridBoolColumn.cs: bool column editing
31549 * DataGrid.cs: fixes to scrolling, properties, etc
31550 * DataGridTextBox.cs: handle keyboard
31551 * DataGridColumnStyle.cs: fixes
31553 2005-06-02 Jackson Harper <jackson@ximian.com>
31555 * ImageListStreamer.cs: Somewhat broken implementation of
31556 GetObjectData. The RLE needs some work to match MS properly.
31558 2005-06-02 Jackson Harper <jackson@ximian.com>
31560 * X11Dnd.cs: Attempting to keep at least one file in MWF
31563 2005-06-02 Peter Bartok <pbartok@novell.com>
31565 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31568 2005-06-02 Peter Bartok <pbartok@novell.com>
31570 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31571 * XplatUI.cs: Added DoDragDrop() method
31572 * XplatUIDriver.cs: Added DoDragDrop() method
31574 2005-06-02 Jackson Harper <jackson@ximian.com>
31576 * Splitter.cs: Implement BorderStyle.
31578 2005-06-02 Jackson Harper <jackson@ximian.com>
31580 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31581 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31584 2005-06-02 Peter Bartok <pbartok@novell.com>
31587 - Added Data setter
31588 - Fixed broken insertion code for SetData, now also
31589 overwrites any existing entry of the same format name
31590 * Hwnd.cs: Added list of pointers that automatically gets
31591 freed when the window is disposed
31592 * XplatUI.cs: Call driver initialization method when loading
31595 - OnDragLeave takes EventArgs, not DragEventArgs
31596 - Added setting of WS_EX_ACCEPTFILES style when dropping is
31598 - Forces style update when drop state changes
31599 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31600 not perfect since we cannot (yet) call the IDataObject.GetData()
31601 method, we keep getting 0x80004005 error, dunno why)
31603 2005-06-02 Peter Bartok <pbartok@novell.com>
31605 * DragEventArgs.cs: Make fields internal so we can cache the
31606 object and re-set the fields from XplatUI
31608 2005-06-02 Jackson Harper <jackson@ximian.com>
31610 * Control.cs: Add some internal methods so the DnD subsystem can
31611 raise DnD events. Also call into the driver when AllowDrop is set.
31613 * XplatUIDriver.cs: New method for setting whether or not a window
31614 is allowed to accept drag and drop messages.
31616 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
31618 * ScrollBar.cs: Make sure that values sent in Scroll events
31619 are always between Maximum and Minimum.
31621 2005-06-01 Marek Safar <marek.safar@seznam.cz>
31623 * Menu.cs: Call MenuChanged when menuitem visibility has been
31625 * MenuItem.cs: Rebuild menu when item is (not) visible.
31626 * MainMenu.cs: MainMenu has special MenuChanged.
31627 * Theme.cs: Caption and FrameBorderSize are not fixed.
31628 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31629 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31631 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31632 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31634 2005-05-30 Jackson Harper <jackson@ximian.com>
31636 * DataFormat.cs: We can't statically initialize this stuff because
31637 it calls into the xplatui and could create a loop. So we lazy init
31640 2005-05-28 Jackson Harper <jackson@ximian.com>
31642 * Control.cs: Proper implementation of Product(Name/Version).
31644 2005-05-27 Jackson Harper <jackson@ximian.com>
31646 * DataObject.cs: Dont crash if no data is found.
31648 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31649 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31650 as per status page, guessing it should be set to true
31652 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
31654 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31655 * DataGridTableStyle.cs: set proper formatting text, def header text
31656 * ThemeWin32Classic.cs: new themable paramaters
31657 * DataGridBoolColumn.cs: paint check box, get data, fixes
31658 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31659 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31660 * DataGridColumnStyle.cs: fixes
31661 * Theme.cs: new themable paramaters
31663 2005-05-26 Peter Bartok <pbartok@novell.com>
31665 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31667 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31668 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31670 2005-05-24 Peter Bartok <pbartok@novell.com>
31672 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
31673 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
31674 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
31675 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
31676 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
31677 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
31678 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
31679 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
31680 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
31681 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
31682 missing attributes, etc
31683 * DataGridPreferredColumnWidthTypeConverter.cs: Added
31685 2005-05-24 Peter Bartok <pbartok@novell.com>
31687 * Help.cs: Added, implemented trivial functions, throws up MessageBox
31688 when user tries to get help
31689 * DataObject.cs, DataFormats.cs, LinkArea.cs,
31690 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
31691 to suppress warnings
31692 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
31693 avoid unreachable code warning
31695 2005-05-20 Peter Bartok <pbartok@novell.com>
31697 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
31699 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31701 * DataGridTextBoxColumn.cs: Basic painting methods
31702 * DataGridTableStyle.cs: Set table style in the column
31703 * ThemeWin32Classic.cs: Use Theme for colors
31704 * DataGridDrawingLogic.cs: Implement more drawing
31705 * DataGrid.cs: drawing, theming, enhacements, fixes
31706 * DataGridColumnStyle.cs: fixes, drawing
31707 * Theme.cs: theming for Datagrid
31709 2005-05-20 Peter Bartok <pbartok@novell.com>
31711 * Cursor.cs: Implemented GetObjectData() method
31713 2005-05-20 Peter Bartok <pbartok@novell.com>
31715 * Cursors.cs: Added setting of cursor name
31717 - Implemented constructors
31718 - Implemented Draw and DrawStretched
31719 - Implemented Current property
31720 - Implemented == and != operators
31721 - Implemented Dispose()
31722 - Implemented ToString
31723 - Added missing attributes
31725 - Added missing reset for OverrideCursor when DoEvents is called
31726 - Fixed creation of cursor, logic was wrong
31728 - Added missing reset for OverrideCursor when DoEvents is called
31729 - Fixed creation of cursor, bit arrays were swapped
31730 * Clipboard.cs: Removed obsolete MonoTODO attribute
31732 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31734 * ComboBox.cs: fixes OnSelectedItemChanged
31735 * ControlBindingsCollection.cs: fixes item range check
31737 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31740 - Calc preferred height properly
31741 - Implement missing properties
31743 * NumericUpDown.cs: Implement missing events
31745 2005-05-19 Jackson Harper <jackson@ximian.com>
31747 * TabControl.cs: New method that resizes the tab pages before
31748 redrawing them. This as needed as the control is double buffered
31749 and sizing will not be recalculated unless ResizeTabPages is
31751 * TabPage.cs: Set base.Text instead of Text in the constructor so
31752 that UpdateOwner does not get called. Use the new Redraw method of
31753 TabControl instead of Refresh so the sizing is recalculated.
31754 * ThemeWin32Classic.cs: Draw the text for button tabs.
31756 2005-05-19 Jackson Harper <jackson@ximian.com>
31758 * Control.cs: Paint control background images. Fix typo where
31759 PaintControlBackground was not getting called correctly.
31761 2005-05-19 Peter Bartok <pbartok@novell.com>
31763 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
31764 I can investigate, apparently I broke FileDialog
31766 2005-05-19 Marek Safar <marek.safar@seznam.cz>
31768 * AxHost.cs: Some simple properties.
31769 * Control.cs: window must be accessible after ctor.
31770 * Form.cs: Added TransparencyKey property.
31771 * TextBoxBase.cs: Implemented Clear. Text property can be null.
31772 * XplatUIWin32.cs: SetBorderStyle implemented.
31774 2005-05-18 Peter Bartok <pbartok@novell.com>
31776 * DataObject.cs: Entries are not global but particular to the
31777 DataObject, now it behaves that way
31778 * XplatUIWin32.cs: Implemented Clipboard methods
31779 * Clipboard.cs: Implemented
31780 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
31781 * XplatUIOSX.cs: Updated to final clipboard prototypes
31782 * XplatUIX11.cs: Implemented Clipboard methods
31783 * XplatUIDriver.cs: Updated to final clipboard prototypes
31784 * XplatUIStructs.cs:
31785 - Added BITMAPINFOHEADER struct
31786 - Added ClipboardFormats enum
31788 - Added ClipboardStruct
31789 - Added Atom enum items for clipboard types
31790 - Fixed atom types for Selection event structures
31792 - Added internal properties and methods for drivers to enumerate
31794 - Switched initialization method to allow drivers to assign their
31795 own IDs even for the MS predefined clipboard IDs
31796 * XplatUI.cs: Updated to final clipboard interface
31798 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31799 * PropertyGridView.cs: Fixed compiler warnings.
31801 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31802 * PropertyGrid.cs: Added some event calls
31803 * PropertyGridView.cs: Change drawing code to use double buffering
31804 * PropertyGridTextBox.cs: Changed Text property name
31805 * GridItem.cs: Added Bounds property.
31806 * GridEntry.cs: Added Bounds property.
31808 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
31810 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
31811 since GetType() may not return the correct type if the object is
31814 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
31816 * TreeNodeCollection.cs: fixes get/set item ranges
31818 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
31820 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
31822 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
31824 * ComboBox.cs: Fix item range comparation
31825 * ListView.cs: Fix item range comparation
31827 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
31830 - Clear example panel when OnPaint is called
31831 - Better solution for displaying the example panel text
31832 - Select default indexes in the ListBoxes
31834 2005-05-11 Geoff Norton <gnorton@customerdna.com>
31836 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
31838 2005-05-11 Peter Bartok <pbartok@novell.com>
31840 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
31841 * SelectionRangeConverter.cs: Implemented
31842 * PropertyGrid.cs: Fixed attribute value
31844 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
31845 - Added Sebastien Pouliot's CAS Stack Propagation fixes
31846 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
31847 that's common to all drivers. First methods to go there are
31848 Sebastien Pouliot's CAS Stack Propagation helper methods
31849 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
31850 Sebastien Pouliot for CAS Stack Propagation
31852 2005-05-11 Geoff Norton <gnorton@customerdna.com>
31855 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
31857 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
31859 * DataGridTextBoxColumn.cs: fixed some members
31860 * GridColumnStylesCollection.cs: indexed column is case insensitive
31861 * DataGridTableStyle.cs: fixes
31862 * ThemeWin32Classic.cs: add new theme parameter
31863 * Theme.cs: add new theme parameter
31864 * DataGridDrawingLogic.cs: Datagrid's drawing logic
31865 * DataGrid.cs: fixes, new internal properties, etc.
31866 * DataGridColumnStyle.cs: allows to set grid value
31869 2005-05-10 Peter Bartok <pbartok@novell.com>
31871 * AccessibleObject.cs:
31872 - Removed MonoTODO attribute on help, method is correct
31873 - Fixed Bounds property
31874 * AxHost.cs: Moved MonoTODO
31875 * ButtonBase.cs: Now setting AccessibleObject properties
31876 * RadioButton.cs: Setting proper AccessibleObject role
31877 * CheckBox.cs: Setting proper AccessibleObject role
31878 * ControlBindingsCollection.cs: Added properties, methods and attributes
31879 * DataFormats.cs: Fixed awkward internal API, and changed to enable
31880 userdefined DataFormats.Format items as well
31881 * ListControl.cs: Removed data_member from the public eye
31882 * OpenFileDialog.cs:
31883 - Made class sealed
31884 - Added missing attributes
31885 * SaveFileDialog.cs: Added missing attributes
31886 * ImageListStreamer.cs: Fixed code that caused warnings
31887 * LinkLabel.cs: Removed unreachable code
31888 * TreeView.cs: Fixed code that caused warnings
31889 * PropertyGridView.cs: Fixed code that caused warnings
31890 * GridColumnStylesCollection.cs: Added missing attributes
31891 * GridTableStylesCollection: Added missing attribute
31892 * PropertyManager: Added .ctor
31893 * SecurityIDType: Added
31894 * DataObject.cs: Implemented class
31895 * LinkArea.cs: Added missing attribute
31897 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
31899 * RadioButton.cs: call base method to allow to fire OnClick event
31900 * UpDownBase.cs: OnMouseUp call base method
31901 * CheckedListBox.cs: call base method before returning
31902 * TrackBar.cs: call base method before returning
31905 2005-05-10 Peter Bartok <pbartok@novell.com>
31907 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
31910 2005-05-10 Peter Bartok <pbartok@novell.com>
31912 * DataFormats.cs: Implemented
31913 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
31914 XplatUIX11.cs: Added Clipboard APIs
31915 * XplatUIWin32.cs: Implemented Clipboard APIs
31916 * FolderBrowserDialog.cs: Added missing event, attributes
31918 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
31920 * CheckBox.cs: call base method to allow to fire OnClick event
31922 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
31924 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
31926 2005-05-06 Peter Bartok <pbartok@novell.com>
31928 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
31929 * Screen.cs: Implemented
31930 * HelpNavigator.cs: Added
31931 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
31933 * HelpProvider.cs: Implemented all we can do until we have a CHM
31934 help library (which means that "What's This" does work now)
31936 2005-05-06 Jackson Harper <jackson@ximian.com>
31938 * XplatUIX11.cs: Fix waking up the main loop.
31940 2005-05-05 Peter Bartok <pbartok@novell.com>
31942 * XplatUI.cs: Updated revision
31943 * Form.cs: Removed enless loop
31944 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
31945 * Label.cs (OnPaint): Added call to base.OnPaint()
31946 * ToolTip.cs: Made ToolTipWindow reusable for other controls
31947 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
31948 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
31950 * ButtonBase.cs: Moved base.OnPaint() call to end of method
31951 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
31952 to ToolTip.ToolTipWindow for drawing and size methods; this allows
31953 reuse of ToolTipWindow by other controls
31954 * SizeGrip.cs: Moved base.OnPaint() call to end of method
31955 * XplatUIX11.cs: Now clipping drawing area (experimental)
31956 * PictureBox.cs: Moved base.OnPaint() call to end of method
31957 * Theme.cs: Fixed ToolTip abstracts to match new format
31958 * ErrorProvider.cs: Implemented
31960 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
31962 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
31966 - Implements LinkBehavior
31967 - Fixes many issues
31969 2005-05-03 Jackson Harper <jackson@ximian.com>
31971 * ListView.cs: Calculate the scrollbar positioning on resize and
31972 paint, so they get put in the correct place.
31974 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
31976 * ColorDialogs.cs: The small color panels are now handled by
31977 SmallColorControl. This fixes drawing of the focus rectangle
31978 and adds a 3D border.
31980 2005-05-03 Peter Bartok <pbartok@novell.com>
31982 * Control.cs: Modified version of Jonathan Chamber's fix for
31985 2005-05-03 Jackson Harper <jackson@ximian.com>
31987 * ListView.cs: Remove redraw variable. Control now handles whether
31988 or not a redraw needs to be done, and will only raise the paint
31989 event if redrawing is needed.
31991 2005-05-03 Jackson Harper <jackson@ximian.com>
31993 * Splitter.cs: No decorations for the splitter form. Cache the
31996 2005-05-03 Jackson Harper <jackson@ximian.com>
31998 * TreeView.cs: Use dashed lines to connect nodes. Use the
31999 ControlPaint method for drawing the focus rect instead of doing
32002 2005-05-02 Peter Bartok <pbartok@novell.com>
32004 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32006 2005-04-29 Jackson Harper <jackson@ximian.com>
32008 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32009 entire image buffer. Just clear the clipping rectangle.
32011 2005-04-29 Jackson Harper <jackson@ximian.com>
32013 * ThemeWin32Classic.cs: Don't draw list view items that are
32014 outside the clipping rectangle.
32016 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
32018 * ListBox.cs: added horizontal item scroll
32020 2005-04-29 Jackson Harper <jackson@ximian.com>
32022 * ThemeWin32Classic.cs: Remove some old debug code that was
32023 causing flicker with the new double buffering code.
32025 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
32027 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32028 behave like combobox and comboboxlist (still not sure if this is
32031 2005-04-28 Jackson Harper <jackson@ximian.com>
32033 * ThemeWin32Classic.cs: Don't fill the middle of progress
32034 bars. This fills areas outside of the clip bounds that don't need
32037 2005-04-28 Jackson Harper <jackson@ximian.com>
32039 * Control.cs: Don't expose functionality to touch the image buffers.
32041 * ListView.cs: We do not need to (and no longer can) manipulate
32042 the image buffers directly. All of this is handled by Control.
32044 2005-04-28 Peter Bartok <pbartok@novell.com>
32046 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32047 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32048 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32050 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32053 - Adjust control's height for non-simple comboboxes (bug fix)
32055 * MenuAPI.cs: remove unused var
32056 * ScrollBar.cs: remove unsed var
32058 * ListBox.cs: unselect items when clearing
32060 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32062 * ListControl.cs: honors OnPositionChanged and default Selected Item
32063 * ListBox.cs: unselect items when clearing
32065 2005-04-27 Jackson Harper <jackson@ximian.com>
32067 * X11Keyboard.cs: Initialize a default keyboard and give a warning
32068 if a "correct" keyboard is not found. This will make us not crash,
32069 but might give some users bad keyboard layouts...seems to be the
32070 same thing rewind does.
32072 2005-04-27 Jackson Harper <jackson@ximian.com>
32074 * BindingManagerBase.cs: Attach the current/position changed
32075 handlers to their respective events.
32077 2005-04-27 Jackson Harper <jackson@ximian.com>
32079 * Control.cs: Make sure that the first WM_PAINT does a full draw,
32081 * ThemeWin32Classic.cs: Don't fill the background for picture
32082 boxes. This could overright user drawing.
32083 * ComboBox.cs: Just fill the clipping rect not the entire client
32084 rect when drawing the background. This prevents pieces of the
32085 image buffer from getting overwritten and is theoretically faster.
32087 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
32089 * ComboBox.cs: Databinding support fixes, fire missing events
32090 * ListControl.cs: implement missing methods and properties, fixes
32091 * ThemeWin32Classic.cs: Databiding support on Drawing
32092 * CheckedListBox.cs: Databinding support fixes, fire missing events
32093 * ListBox.cs: Databinding support fixes, fire missing events
32095 2005-04-25 Peter Bartok <pbartok@novell.com>
32097 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32099 2005-04-25 Jackson Harper <jackson@ximian.com>
32101 * TreeView.cs: Use the horizontal scrollbars height not width when
32102 determining how much of the client area is available.
32104 2005-04-25 Jackson Harper <jackson@ximian.com>
32106 * Control.cs: Double buffering is handled differently now. As per
32107 the spec, the extra buffer is created in the WM_PAINT message and
32108 passed down to the control's drawing code.
32116 * PropertyGridView.cs:
32128 * DateTimePicker.cs:
32130 * TreeView.cs: Update to new double buffering system.
32131 * MonthCalendar.cs: Uncomment block, as Capture is now
32132 working. Update to new double buffering
32133 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32134 * PaintEventArgs.cs: New internal method allows us to set the
32135 graphics object. This is used for double buffering.
32136 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32137 rectangle. The internal paint_area var has been removed from
32138 StatusBar. The clipping rect should be used instead.
32139 * Theme.cs: Give the PictureBox drawing method a clipping rect.
32140 * TabPage.cs: The RefreshTabs method was removed, so just call the
32141 tab controls Refresh method now.
32142 * TabControl.cs: Update to new double buffering. Make sure the
32143 handle is created before sizing the tab pages, otherwise we will
32144 get stuck in a loop.
32146 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
32148 * LinkLabel.cs: Fix typo, bug #74719; patch
32149 from Borja Sanchez Zamorano
32151 2005-04-22 Jackson Harper <jackson@ximian.com>
32153 * TreeNode.cs: Implement Handle stuff.
32154 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32156 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
32158 * DataGridTextBoxColumn.cs: call base constructors, fixes
32159 * GridColumnStylesCollection.cs: missing events, methods, and functionality
32160 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32161 * DataGridTableStyle.cs: implements create default column styles
32162 * DataGridBoolColumn.cs: which types can handle
32163 * DataGrid.cs: missing methods, fixes, new functionality
32164 * DataGridColumnStyle.cs: fixes
32166 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
32167 * FolderBrowserDialog.cs:
32168 - Use a thread to fill the TreeView
32169 - Adjusted some sizes
32171 2005-04-19 Peter Bartok <pbartok@novell.com>
32173 * LinkLabel.cs: (Re-)create the pieces when setting the Text
32174 property. Fixes #74360.
32176 2005-04-19 Jackson Harper <jackson@ximian.com>
32178 * XEventQueue.cs: Lock when getting the lockqueue size.
32179 * PictureBox.cs: Call base OnPaint
32181 2005-04-19 Peter Bartok <pbartok@novell.com>
32183 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32184 messages were no longer being processed (this broke BeginInvoke)
32187 2005-04-18 Jackson Harper <jackson@ximian.com>
32189 * TreeView.cs: buglet that caused node images to get drawn
32190 regardless of whether or not they were in the clipping rectangle.
32192 2005-04-18 Jackson Harper <jackson@ximian.com>
32194 * CurrencyManager.cs: There are four rules for GetItemProperties:
32195 - If the type is an array use the element type of the array
32196 - If the type is a typed list, use the type
32197 - If the list contains an Item property that is not an object, use
32199 - use the first element of the list if there are any elements in
32202 2005-04-17 Jackson Harper <jackson@ximian.oom>
32204 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32205 click. This handles offsets for scrolling properly and reduces
32206 memory. Also fixed GetNode to not offset now that TopNode works
32208 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32210 2005-04-17 Jackson Harper <jackson@ximian.com>
32212 * CursorConverter.cs: Initial implementation.
32214 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32216 * ListControl.cs: work towards complex data binding support on ListControl
32217 * CurrencyManager.cs: work towards complex data binding support on ListControl
32218 * ListBox.cs: work towards complex data binding support on ListControl
32221 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32223 * GridTableStylesCollection.cs: fixes name and constructor
32224 * DataGridTableStyle.cs: fixes
32225 * DataGridBoolColumn.cs: fixes names and constructors
32226 * DataGrid.cs: define methods and properties. Some init implementations
32227 * DataGridCell.cs: define methods and properties. Some init implementations
32228 * GridTablesFactory.cs: Define methods and properties
32230 2005-04-15 Geoff Norton <gnorton@customerdna.com>
32232 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
32233 graphics port changes. We still want the coordinates in global screen
32236 2005-04-14 Jackson Harper <jackson@ximian.com>
32238 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32239 check plus minus or checkbox clicks unless those features are enabled.
32241 2005-04-14 Jackson Harper <jackson@ximian.com>
32243 * TreeView.cs: Add methods for setting the top and bottom visible
32244 nodes. TreeNode::EnsureVisible uses these methods.
32245 * TreeNode.cs: Implement EnsureVisible
32247 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
32249 * Form.cs: Pospone menu assignation if the window has not been created yet
32250 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32253 2005-04-12 Jackson Harper <jackson@ximian.com>
32255 * TreeView.cs: Set the TopNode properly when scrolling
32256 occurs. This has the added benifit of reducing the amount of
32257 walking that needs to be done when drawing. Also removed an old
32259 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32261 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
32263 * Timer.cs: fixes interval setting when the timer is already enabled
32265 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
32267 * FolderBrowserDialog.cs: First approach
32269 2005-04-09 Peter Bartok <pbartok@novell.com>
32271 * FolderBrowserDialog: Added
32273 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
32275 * LinkLabel.cs: move drawing code into the theme
32276 * ThemeWin32Classic.cs: drawing code and painting background bugfix
32277 * Theme.cs: define DrawLinkLabel method
32279 2005-04-05 Jackson Harper <jackson@ximian.com>
32281 * BindingContext.cs: Use weak references so these bad actors don't
32282 stay alive longer then they need to.
32284 2005-04-05 Jackson Harper <jackson@ximian.com>
32286 * ListControl.cs: Basic implementation of complex databinding.
32288 * ListBox.cs: Add calls to ListControl databinding methods.
32290 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
32293 - Don't change PopupButtonState to Normal when the
32294 PopupButton gets pressed several times.
32295 - Renamed ButtonPanel to PopupButtonPanel
32297 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
32299 * ColorDialog.cs: Use cached objects instead of creating them
32300 * LinkLabel.cs: Use cached objects instead of creating them
32301 * Splitter.cs: Use cached objects instead of creating them
32302 * FontDialog.cs: Use cached objects instead of creating them
32303 * PropertyGridView.cs: Use cached objects instead of creating them
32304 * MessageBox.cs: Use cached objects instead of creating them
32305 * FileDialog.cs: Use cached objects instead of creating them
32306 * ThemeWin32Classic.cs: Use cached objects instead of creating them
32307 * TreeView.cs: Use cached objects instead of creating them
32309 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
32311 * Control.cs: use Equals to compare the font since no == op
32312 * ScrollBar.cs: use Equals to compare the font since no == op
32314 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
32316 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32318 2005-04-01 Jackson Harper <jackson@ximian.com>
32320 * Binding.cs: Implement IsBinding.
32321 * BindingManagerBase.cs:
32322 * PropertyManager.cs:
32323 * CurrencyManager.cs: Add IsSuspended property.
32325 2005-04-01 Jackson Harper <jackson@ximian.com>
32327 * Binding.cs: Had some IsAssignableFrom calls backwards.
32329 2005-04-01 Jackson Harper <jackson@ximian.com>
32331 * Binding.cs: Handle null data members when pulling data.
32332 * PropertyManager.cs: Handle the data member being a property that
32335 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32337 * DataGridTextBoxColumn.cs: fixes signature
32338 * DataGrid.cs: calls right constructor
32340 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32342 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32343 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32344 * GridTableStylesCollection.cs: implements GridTableStylesCollection
32345 * DataGridTableStyle.cs: implements DataGridTableStyle
32346 * DataGridBoolColumn.cs: implements DataGridBoolColumn
32347 * DataGridTextBox.cs: implements DataGridTextBox
32348 * DataGridColumnStyle.cs: implements DataGridColumnStyle
32350 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
32352 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32354 2005-03-29 Peter Bartok <pbartok@novell.com>
32357 - Properly implemented CompanyName property
32358 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32359 returns a path that includes CompanyName, ProductName and
32360 Version (fixes bug #70330)
32362 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
32364 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32367 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32369 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32371 - Added ReadOnly CheckBox
32372 - Further refactoring: moved some code from Open-/SaveFileDialog
32375 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32377 * OpenFileDialog.cs: Fixed CheckFileExists
32379 Moved FileView and DirComboBox outside FileDialog class.
32380 They can now be used outside FileDialog
32382 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32384 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32385 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32387 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32389 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32390 - Added missing CreatePrompt property in SaveDialog
32391 - Overall SaveDialog handling should be better now
32392 - Added non standard ShowHiddenFiles property
32393 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32394 - Added InitialDirectory and RestoreDirectory support
32396 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
32398 * FileDialog.cs: Made dirComboBox usable
32400 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
32402 * FileDialog.cs: Added Filter support (case sensitiv)
32404 2005-03-24 Jackson Harper <jackson@ximian.com>
32406 * TabControl.cs: Need a couple more pixels for the lines.
32408 2005-03-23 Jackson Harper <jackson@ximian.com>
32410 * TabControl.cs: Give the tab page focus when it is selected.
32412 2005-03-23 Jackson Harper <jackson@ximian.com>
32414 * TabControl.cs: Account for the drawing of tabs borders when
32415 invalidating. If the slider was clicked dont do click detection on
32418 2005-03-23 Jackson Harper <jackson@ximian.com>
32420 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32422 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
32424 * CategoryGridEntry.cs: Added
32425 * GridItem.cs: Added helper properties
32426 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32427 * GridEntry.cs: Updated code for collection
32428 * PropertyGrid.cs: Cleaned up some formatting
32429 * PropertyGridView.cs: Added drop down functionality for enums.
32430 * GridItemCollection.cs: Added enumerator logic
32431 * PropertyGridEntry.cs: Added
32433 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32436 - Removed unnecessary commented code
32437 - Fixed handling for entering the filename manually in the combobox
32439 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32441 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32443 2005-03-18 Peter Bartok <pbartok@novell.com>
32445 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32446 them being touching the border
32448 2005-03-18 Peter Bartok <pbartok@novell.com>
32450 * TextControl.cs: Quick hack to center text better
32452 2005-03-18 Peter Bartok <pbartok@novell.com>
32455 - Don't throw NotImplemented exceptions, just print a notice once
32456 instead (requested by Miguel). This makes running existing SWF
32459 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32460 - Added context menu trigger on right click
32461 * Panel.cs: Trigger invalidate on resize
32463 - Removed old double-buffer drawing
32464 - Added ResizeRedraw style to force proper update of statusbar
32466 - Removed debug output
32467 * ThemeWin32Classic.cs:
32468 - Fixed drawing of status bar, now draws Text property if there
32469 are no defined panels
32471 2005-03-18 Jackson Harper <jackson@ximian.com>
32473 * ImageList.cs: When the image stream is set pull all the images
32475 * ImageListStreamer.cs: Implement reading image list streams.
32477 2005-03-18 Peter Bartok <pbartok@novell.com>
32479 * ThemeWin32Classic.cs (DrawPictureBox):
32480 - Fixed calculations for centered drawing
32481 - Fixed drawing for normal mode, not scaling the image on normal
32483 2005-03-18 Peter Bartok <pbartok@novell.com>
32485 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32488 - Made Open/Save button the accept button for FileDialog
32489 - Tied the cancel button to the IButtonControl cancel button
32490 - Save/Open now properly builds the pathname
32491 - Now handles user-entered text
32492 - Preventing crash on right-click if no item is selected
32493 - Fixed Text property, now uses contents of textbox
32494 - Fixed SelectedText property, now just returns the text part that
32495 is selected in the text box
32497 2005-03-18 Jackson Harper <jackson@ximian.com>
32499 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32500 rect, make sure to de-adjust the interior rect after drawing the
32503 2005-03-18 Peter Bartok <pbartok@novell.com>
32505 * MenuAPI.cs: Remove menu *before* executing selected action to
32506 prevent the menu from 'hanging around'
32508 2005-03-17 Geoff Norton <gnorton@customerdna.com>
32510 * XplatUIOSX.cs: Implemented WorkingArea property
32512 2005-03-17 Peter Bartok <pbartok@novell.com>
32514 * XplatUIX11.cs: Fixed menu coord calculations
32515 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32516 for calculating offsets
32518 2005-03-17 Peter Bartok <pbartok@novell.com>
32520 * Hwnd.cs: Do not consider menu presence for default client
32521 rectangle location/size
32522 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32523 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32524 translation functions
32525 * FileDialog.cs: Fixed (what I presume is a) typo
32527 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
32529 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32530 X access (avoids X-Async errors)
32532 2005-03-16 Jackson Harper <jackson@ximian.com>
32534 * TabControl.cs: Raise the SelectedIndexChanged event.
32536 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
32538 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32539 - Removed vertical ToolBar and replaced it with a custom panel
32540 (desktop and home button already work)
32541 - Added Help button (some controls get resized or relocated then)
32542 - Draw correct text depending on Open or Save.
32543 - Fixed some typos...
32545 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
32548 - Only change Maximum and Minimum when need it (bug fix)
32550 2005-03-15 Peter Bartok <pbartok@novell.com>
32552 * Form.cs: Use Handle for icon, to trigger creation if
32553 the window does not yet exist
32555 - CanSelect: Slight performance improvement
32556 - Focus(): Preventing possible recursion
32557 - Invalidate(): Removed ControlStyle based clear flag setting
32558 - WM_PAINT: fixed logic for calling OnPaintBackground
32559 - WM_ERASEBKGND: Fixed logic, added call to new driver method
32560 EraseWindowBackground if the control doesn't paint background
32562 - Moved EraseWindowBackground() method to internal methods
32563 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32564 is sent via SendMessage on BeginPaint call on Win32
32566 - Added EraseWindowBackground() method
32567 - No longer sends WM_ERASEBKGND on .Expose, but on call to
32568 PaintEventStart, which more closely matches Win32 behaviour
32569 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32570 - Fixed SetFocus() to properly deal with client and whole windows
32571 * Hwnd.cs: Added ErasePending property
32572 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32573 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32575 2005-03-12 Geoff Norton <gnorton@customerdna.com>
32578 - Fix hard loop when timers exist.
32579 - Fix bugs with middle and right click for 3 button mice.
32581 2005-03-11 Peter Bartok <pbartok@novell.com>
32584 - get_WorkingArea: Need to call X directly, GetWindowPos only
32585 returns cached data now
32586 - Added sanity check to GetWindowPos hwnd usage
32588 2005-03-11 Jackson Harper <jackson@ximian.com>
32590 * BindingManagerBase.cs: This method isn't used anymore as
32591 PullData now updates the data in the control.
32593 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
32595 * Form.cs: fixes menu drawing on X11
32596 * MenuAPI.cs: fixes menu drawing on X11
32598 2005-03-11 Peter Bartok <pbartok@novell.com>
32600 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32601 from Jonathan Gilbert; should fix bug #73606
32602 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32603 in Screen coordinates. Thanks, Jordi.
32604 * Form.cs: Added missing attribute
32606 2005-03-11 Peter Bartok <pbartok@novell.com>
32609 - Rudimentary Mdi support
32610 - Removed outdated FormParent code
32611 - Implemented lots of missing properties and methods, still missing
32612 transparency support
32613 - Added missing attributes
32614 - Implemented support for MaximumBounds
32615 - Added firing of various events
32616 * XplatUI.cs: Added SetIcon() method
32617 * XplatUIDriver.cs: Added SetIcon() abstract
32618 * XplatUIOSX.cs: Stubbed out SetIcon() method
32620 - Implemented SetIcon() support
32621 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32622 - Switched to unix line endings
32624 - Made POINT internal so for can access it as part of MINMAX
32625 - Implemented SetIcon() support
32626 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32627 native Mdi support again, might have to go managed)
32628 * Control.cs: Now fires the StyleChanged event
32629 * MdiClient.cs: Added; still mostly empty
32631 2005-03-10 Peter Bartok <pbartok@novell.com>
32633 * SaveFileDialog.cs: Added emtpy file
32635 2005-03-08 Peter Bartok <pbartok@novell.com>
32637 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32638 in turn triggers OnCreateContro) when creating a handle for the
32640 * TextControl.cs: Fixed endless loop in certain cases when
32641 replacing the current selection
32643 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
32646 - Honors NewValue changes in Scroll events allowing apps to change it
32647 - Adds First and Last Scroll events
32648 - Fixes Thumb events
32650 2005-03-07 Peter Bartok <pbartok@novell.com>
32652 * Hwnd.cs: Added DefaultClientRectangle property
32653 * XplatUI.cs: Now using the X11 driver Where() method, which provides
32654 more detailed debug information
32656 - Fixed size-change feedback loop, where we would pull an old size
32657 off the queue and mistakenly change our window's size to an
32659 - Now compressing ConfigureNotify events, to reduce looping and
32661 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32664 2005-03-07 Jackson Harper <jackson@ximian.com>
32666 * Binding.cs: Push data pushes from data -> property. Check if the
32667 property is readonly when attempting to set it.
32669 2005-03-07 Jackson Harper <jackson@ximian.com>
32671 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
32672 instead of IsSubclassOf. Pulling data now sets the value on the
32674 * PropertyManager.cs:
32675 * CurrencyManager.cs: Just need to pull data when updating now,
32676 because PullData will set the value on the control.
32678 2005-03-04 Jackson Harper <jackson@ximian.com>
32680 * Binding.cs: Implement data type parsing and converting on pulled
32681 data. TODO: Are there more ways the data can be converted?
32683 2005-03-04 Jackson Harper <jackson@ximian.com>
32685 * Binding.cs: Support <Property>IsNull checks. Also bind to the
32686 controls Validating method so we can repull the data when the
32687 control loses focus.
32689 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
32692 - Fixes null string format
32695 - Adds enum type checks
32696 - Fixes redrawing and recalc need after changing some properties
32697 - Fixes on focus_item set after the event
32698 - Fixes adding columns after the control has been created
32700 * ThemeWin32Classic.cs:
32701 - Fixes CheckBox focus rectangle
32702 - Fixes ColumnHeader drawing
32705 2005-03-03 Jackson Harper <jackson@ximian.com>
32707 * Binding.cs: Bind to <Property>Changed events so we can detect
32708 when properties are changed and update the data.
32710 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
32713 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
32714 - Fixes ImageList constructor with ImageList container
32715 - Fixes image scaling (wrong parameters at DrawImage)
32717 2005-02-02 Jackson Harper <jackson@ximian.com>
32719 * Binding.cs: Make property searches case-insensitive. Eliminate
32720 some duplicated code.
32722 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
32725 - Handle focus event
32726 - Fix scrollbar events
32727 - Discard highlighted item if remove it
32728 - Fixes SelectedItem with strings
32730 2005-03-01 Peter Bartok <pbartok@novell.com>
32733 - Fixed Visible property, now follows (once again) parent chain
32734 to return false if any control in the chain is visible=false
32735 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
32736 - Fixed several places where is_visible instead of Visible was used
32737 - Implemented FIXME related to focus selection when setting focused
32738 control to be invisible
32740 * XplatUIWin32.cs: Now using proper method to find out if window is
32741 visible. Thanks to Jordi for pointing it out
32743 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
32745 * ComboBox.cs: show/hide scrollbar instead of creating it
32747 2005-02-27 Jackson Harper <jackson@ximian.com>
32749 * CurrencyManager.cs: Add PositionChanged stuff.
32751 2005-02-27 Peter Bartok <pbartok@novell.com>
32753 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
32754 * XplatUIOSX.cs: Added GetMenuOrigin() stub
32755 * XplatUIWin32.cs: Implemented GetMenuOrigin()
32757 - Implemented GetMenuDC()
32758 - Implemented GetMenuOrigin()
32759 - Implemented ReleaseMenuDC()
32760 - Implemented generation of WM_NCPAINT message
32761 - Implemented generation and handling of WM_NCCALCSIZE message
32762 * Form.cs: Added debug helper message for Jordi's menu work
32764 - Modified ClientRect property; added setter, fixed getter to handle
32765 setting of ClientRect
32766 - Added MenuOrigin property
32768 2005-02-26 Peter Bartok <pbartok@novell.com>
32771 - Destroys the caret if a window that's being destroyed contains it
32772 - Ignores expose events coming from the X11 queue for windows that
32773 already are destroyed
32774 - Now uses the proper variable for handling DestroyNotify, before we
32775 marked the wrong window as destroyed
32776 - Improved/added some debug output
32778 2005-02-26 Peter Bartok <pbartok@novell.com>
32780 * X11Keyboard.cs: Fixes to work on 64bit systems
32782 2005-02-26 Peter Bartok <pbartok@novell.com>
32785 - Now calling OnHandleDestroyed from DestroyHandle()
32786 instead of Dispose()
32787 - Removed bogus call to controls.Remove() from DestroyHandle()
32789 2005-02-26 Peter Bartok <pbartok@novell.com>
32791 * Control.cs: Properly destroy child windows when our handle is
32794 2005-02-25 Peter Bartok <pbartok@novell.com>
32797 - Added 'DriverDebug' define to allow tracing XplatUI API calls
32798 - Alphabetized Static Methods and Subclasses
32801 - Added XException class to allow custom handling of X11 exceptions
32802 - Created custom X11 error handler, tied into XException class
32803 - Added support for MONO_XEXCEPTIONS env var to allow the user
32804 to either throw an exception on X errors or continue running
32805 after displaying the error
32806 - Added handling of DestroyNotify message
32807 - Added handler for CreateNotify message (still disabled)
32808 - Improved (tried to at least) Where method to provide file and lineno
32810 - Added XErrorHandler delegate
32811 - Added XRequest enumeration (to suppor translation of errors)
32813 2005-02-25 Jackson Harper <jackson@ximian.com>
32815 * PropertyManager.cs: Implement editing features
32816 * CurrencyManager.cs:
32817 * Binding.cs: First attempt at UpdateIsBinding
32818 * BindingManagerBase.cs: Call UpdateIsBinding before
32819 pushing/pulling data.
32821 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
32823 * MenuAPI.cs: Respect disabled items
32824 * ThemeWin32Classic.cs
32825 - Caches ImageAttributes creation for DrawImageDisabled
32826 - Fixes vertical menu line drawing
32827 - Draws disabled arrows in disable menu items
32829 2005-02-24 Peter Bartok <pbartok@novell.com>
32832 - Added UserData property to allow associating arbitrary objects
32834 - Fixed leak; now removing Hwnd references from static windows array
32836 - Fixed Graphics leak in PaintEventEnd
32837 - Removed usage of HandleData, switched over to Hwnd class
32838 * HandleData.cs: Removed, obsoleted by Hwnd.cs
32840 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
32842 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
32843 * ScrollBar.cs: Fixes bug
32844 * TrackBar.cs: removes death code, clipping, mimize refreshes,
32845 keyboard navigation enhancements
32847 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
32849 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
32850 * GroupBox.cs: Add control styles
32851 * Label.cs: Add control styles
32852 * UpDownBase.cs: Add control styles
32853 * ListBox.cs: Add control styles
32854 * XplatUIWin32.cs: Fixes wrong parameter order
32857 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
32859 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
32861 2005-02-23 Jackson Harper <jackson@ximian.com>
32863 * PropertyManager.cs: Implement property binding. This doesn't
32864 seem to work yet though as (I think) there are some bugs in
32865 System.ComponentModel.PropertyDescriptor.
32866 * BindingContext.cs: Use new PropertyManager constructor.
32868 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
32870 * ProgressBar.cs: use clip region in ProgressBar
32871 * ThemeWin32Classic.cs: use clip region in ProgressBar
32873 2004-02-22 Jackson Harper <jackson@ximian.com>
32875 * BindingsCollection.cs: Remove some debug code.
32877 2005-02-22 Jackson Harper <jackson@ximian.com>
32879 * BindingContext.cs:
32880 * ControlBindingsCollection.cs:
32881 * CurrencyManager.cs:
32883 * BindingManagerBase.cs: Initial implementation
32884 * BindingsCollection.cs: Add an internal contains method that the
32885 BindingManagerBase uses to ensure bindings aren't added twice to
32887 * PropertyManager.cs: Stubbed out.
32889 * ContainerControl.cs: Hook up databinding
32891 2005-02-22 Geoff Norton <gnorton@customerdna.com>
32894 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
32895 Fixed Invalidate/Update chain.
32896 Fixed tons of other minor bugs (this is almost a complete rewrite).
32898 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
32900 * ComboBox.cs: do subcontrol creation when the control is created
32902 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32904 * Label.cs: fixes image drawing (image and imagelist)
32905 * ThemeWin32Classic.cs: cache brushes
32907 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32909 * Form.cs: Move menu drawing code to Theme class
32910 * ComboBox.cs: Move ComboBox drawing code to Theme class
32911 * MenuItem.cs: Move menu drawing code to Theme class
32912 * MenuAPI.cs: Move menu drawing code to Theme class
32913 * ThemeWin32Classic.cs: New methods
32914 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
32915 * ListBox.cs: Move Listbox drawing code to Theme class
32916 * Theme.cs: New methods
32918 2005-02-20 Peter Bartok <pbartok@novell.com>
32921 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
32922 only process mnemonics on those)
32923 - Fixed event sequence for key handling; first calling
32924 ProcessKeyEventArgs now
32926 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
32927 for processing non-character keys
32928 - Fixed WM_CHAR to generate proper event sequence before processing
32929 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
32932 2005-02-19 Peter Bartok <pbartok@novell.com>
32934 * UserControl.cs: Added TextChanged event; added attributes
32935 * SizeGrip.cs: Implemented resizing and optional display of grip
32936 * Form.cs: Fixed attribute
32937 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32938 Changed meaning of ScrollWindow bool argument; instead of the
32939 clear attribute (which will be true usually anyway), it gives the
32940 option of moving child controls as well.
32942 - Changed to match new ScrollWindow argument
32943 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
32944 now handles the implicit parent window a WM puts around us
32945 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
32947 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
32948 * TreeView.cs: Adjusted to new ScrollWindow arguments
32950 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32952 * Form.cs: Menu integration with non-client area
32953 * MenuItem.cs: Menu integration with non-client area
32954 * MenuAPI.cs: Menu integration with non-client area
32956 2005-02-18 Peter Bartok <pbartok@novell.com>
32958 * MethodInvoker.cs: Added
32959 * MdiLayout.cs: Added
32960 * SendKeys.cs: Started implementation
32961 * ErrorIconAlignment.cs: Added
32963 2005-02-18 Peter Bartok <pbartok@novell.com>
32965 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
32966 * Form.cs: Added handling for Menu-related Non-client messages
32968 2005-02-17 Peter Bartok <pbartok@novell.com>
32970 * UpDownBase.cs: Fixed typo, compilation errors
32971 * DomainUpDown.cs: Fixed attribute value
32973 2005-02-16 Miguel de Icaza <miguel@novell.com>
32975 * UpDownBase.cs: Attach entry events.
32977 Add ForeColor property, Focused, InterceptArrowKeys (interception
32978 does not work yet).
32980 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
32983 - Redraw non client are on Setmenu
32984 - Calc proper menu starting point
32986 2005-02-17 Peter Bartok <pbartok@novell.com>
32988 * Application.cs: Fixed message_filter check
32990 2005-02-17 Peter Bartok <pbartok@novell.com>
32992 * Application.cs: Now calls registered message filters
32993 * DockStyle.cs: Fixed attribute
32994 * Form.cs: Fixed attribute
32995 * Menu.cs: Fixed attribute
32996 * ToolTip.cs: Fixed attribute
32997 * TreeNode.cs: Added missing attributes and arranged in regions
32998 * PropertyGrid.cs: Fixed signatures
32999 * TreeNodeCollection.cs: Added attributes
33000 * Splitter.cs: Added missing attributes; arranged into regions
33001 * TabPage.cs: Added missing attributes; arranged into regions
33002 * TextBoxBase.cs: Added missing attributes
33003 * TextBox.cs: Added missing attributes
33004 * ArrangeDirection.cs: Added missing attributes
33005 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33006 * ToolBarButton.cs: Fixed attributes
33007 * AnchorStyles.cs: Fixed attribute
33008 * TrackBar.cs: Fixed attributes
33009 * TabControl.cs: Added missing attributes and arranged into regions
33010 * ToolBar.cs: Fixed attribute
33011 * StatusBar.cs: Fixed signature, organized into regions and added
33013 * StatusBarPanel.cs: Fixed attributes
33014 * ContentsResizedEventArgs.cs: Implemented
33015 * ContentsResizedEventHandler.cs: Implemented
33016 * DateBoldEventArgs.cs: Implemented
33017 * DateBoldEventHandler.cs: Implemented
33018 * UpDownEventArgs.cs: Implemented
33019 * UpDownEventHandler.cs: Implemented
33021 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
33023 * Form.cs: first Menu NC refactoring
33024 * MenuAPI.cs: first Menu NC refactoring
33026 2005-02-16 Peter Bartok <pbartok@novell.com>
33028 * ImeMode.cs: Added missing attributes
33029 * Menu.cs: Fixed attribute
33030 * GroupBox.cs: Fixed attribute
33031 * Label.cs: Fixed attribute
33032 * ColorDialog.cs (RunDialog): Removed TODO attribute
33033 * ComboBox.cs: Fixed attributes
33034 * ListControl.cs: Added missing attributes
33035 * PropertyGrid.cs: Fixed attributes
33036 * Control.cs: Fixed attributes
33037 * ListViewItem.cs: Added TypeConverter attribute
33038 * NotifyIcon.cs: Fixed attributes
33039 * ListView.cs: Fixed attributes
33040 * ButtonBase.cs: Fixed attribute
33041 * ImageList.cs: Added missing attributes
33042 * ContainerControl.cs: Fixed signature
33043 * CheckedListBox.cs: Fixed attribute; added missing attributes
33044 * Panel.cs: Fixed attributes
33045 * PropertyTabChangedEventArgs.cs: Added missing attribute
33046 * PropertyValueChangedEventArgs.cs: Added missing attribute
33047 * Binding.cs: Fixed attribute
33048 * ListViewItemConverter: Implemented ListViewSubItemConverter class
33049 * ListBox.cs: Fixed attribute; added missing attributes;
33050 * ScrollableControl.cs: Added missing attributes
33051 * PictureBox.cs: Added missing attributes; implemented missing property
33052 * DateTimePicker.cs: Added missing attributes
33053 * Theme.cs (ToolWindowCaptionHeight): Fixed type
33054 * MonthCalendar.cs: Fixed attributes
33055 * StatusBarPanel.cs: Added missing attributes
33056 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33058 2005-02-16 Peter Bartok <pbartok@novell.com>
33060 * TextBoxBase.cs: The previous method to enforce height yet remember
33061 the requested high was less than ideal, this is an attempt to do
33063 * Control.cs: Added comment about possible problem
33064 * Copyright: Updated format
33065 * GridItemType.cs: Fixed swapped values
33067 2005-02-15 Jackson Harper <jackson@ximian.com>
33069 * BaseCollection.cs: Use property so we never access an
33070 uninitialized list. Also initialize the list in the property.
33072 2005-02-15 Peter Bartok <pbartok@novell.com>
33074 * GroupBox.cs (ProcessMnemonic): Implemented
33075 * Label.cs (ProcessMnemonic): Implemented
33076 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33079 2005-02-15 Peter Bartok <pbartok@novell.com>
33081 * RadioButton.cs (ProcessMnemonic): Implemented
33082 * CheckBox.cs (ProcessMnemonic): Implemented
33084 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33086 - Added internal method to allow calling ProcessMnemonic from other
33088 * ContainerControl.cs:
33089 - Started support for handling validation chain handling
33090 - Implemented ProcessMnemonic support
33091 - Added Select() call to Active, to make sure the active control
33093 * Form.cs: Setting toplevel flag for Forms (this was lost in the
33094 FormParent rewrite)
33095 * ThemeWin32Classic.cs:
33096 - DrawCheckBox(): Fixed stringformat to show hotkeys
33097 - DrawRadioButton(): Fixed stringformat to show hotkeys
33098 * CommonDialog.cs: Removed WndProc override, not needed
33100 2005-02-14 Peter Bartok <pbartok@novell.com>
33102 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33103 missed those in the rewrite
33105 2005-02-14 Miguel de Icaza <miguel@novell.com>
33107 * NumericUpDown.cs (Increment, ToString): Add.
33108 (DecimalPlaces): implement.
33112 * UpDownBase.cs: Add the designer attributes.
33114 2005-02-13 Peter Bartok <pbartok@novell.com>
33116 * Panel.cs: Removed border_style, now in Control
33117 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33118 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33120 2005-02-13 Peter Bartok <pbartok@novell.com>
33122 * MouseButtons.cs: Added missing attributes
33123 * XplatUIStructs.cs: Added enumeration for title styles
33124 * LeftRightAlignment.cs: Added missing attributes
33125 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33126 it compatible with Graphics.FromHwnd()
33127 * SelectedGridItemChangedEventArgs.cs: Fixed property type
33128 * Keys.cs: Added missing attributes
33129 * SelectionRange.cs: Added missing attributes
33130 * SelectionRangeConverter.cs: Added
33132 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33133 ReleaseMenuDC methods
33134 - Renamed ReleaseWindow to UngrabWindow
33135 - Added proper startup notice to allow version identification
33137 - Added missing attributes
33138 - Removed FormParent concept
33139 * Label.cs: Removed border_style field, now in Control
33140 * RadioButton.cs: Now properly selects RadioButton when focus is
33142 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33144 - Added missing attributes
33145 - Added borderstyle handling
33146 - Removed FormParent concept support
33147 - Fixed calls to XplatUI to match changed APIs
33148 - Fixed bug that would case us to use disposed Graphics objects
33149 - Removed unneeded internal methods
33150 - PerformLayout(): Fixed to handle DockStyle.Fill properly
33151 - SelectNextControl(): Fixed to properly check common parents
33152 * TextBoxBase.cs: Removed border_style field (now in Control)
33154 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33155 fixed calculations for form size
33156 - Added support for localized strings and icons
33157 - Improved form size calculations, added border
33158 * ListView.cs: Removed border_style field (now in Control)
33159 * X11Structs.cs: Moved several structs from X11 driver here
33160 * X11Keyboard.cs: Changed debug message
33161 * Application.cs: Removed FormParent concept support
33163 - Resetting end_modal flag
33164 - Removed FormParent concept support
33165 * NativeWindow.cs: Removed FormParent concept support
33166 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33167 Client area and Non-Client whole window to allow support for WM_NC
33169 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33170 prevent using it until it supports Hwnd as per Geoff Norton's request
33171 * ToolBar.cs: Fixed drawing, was not doing proper drawing
33172 * PictureBox.cs: Removed border_style field, now in Control
33173 * XplatUIWin32.cs: Added new driver methods
33175 2005-02-12 Peter Bartok <pbartok@novell.com>
33177 * OpacityConverter.cs: Implemented
33178 * Hwnd.cs: Internal class to support drivers that need to emulate
33179 client area/non-client area window behaviour
33181 2005-02-11 Peter Bartok <pbartok@novell.com>
33183 * KeysConverter.cs: Implemented
33185 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
33187 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33188 * LinkLabel: Added missing attributes
33189 * MainMenu.cs: fixes ToString
33190 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33191 * ListBox.cs: fixes event position
33192 * TrackBar.cs: adds missing attributes and events
33194 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
33196 * MenuItem.cs: Use SystemInformation and bug fixes
33197 * MenuAPI.cs: Use SystemInformation and bug fixes
33199 2005-02-09 Jackson Harper <jackson@ximian.com>
33201 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33202 their keystate otherwise things like VK_MENU get stuck "on".
33204 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
33206 * ListBox.cs: Fixes AddRange bug
33208 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
33211 - Add missing attributes
33212 - Add missing method
33214 * CheckedListBox.cs: Added missing attributes
33215 - Add missing attributes
33216 - Remove extra method
33218 * ComboBox.cs: Added missing attributes
33219 * VScrollBar.cs: Added missing attributes
33220 * ScrollBar.cs: Added missing attributes
33221 * ListBox.cs: Fixes signature, add missing consts
33222 * LinkArea.cs: Added missing attributes
33225 2005-02-08 Peter Bartok <pbartok@novell.com>
33227 * Menu.cs: Added missing attributes
33228 * MainMenu.cs: Added missing attributes
33229 * GroupBox.cs: Added missing attributes
33230 * Label.cs: Added missing attributes
33231 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33233 - Added Instance and Options properties
33234 - Added missing attributes
33235 * Cursor.cs: Made Serializable
33236 * NotifyIcon: Added missing attributes
33237 * MenuItem.cs: Added missing attributes
33238 * TextBoxBase.cs: Implemented AppendText() and Select() methods
33239 * Panel.cs: Added Missing attributes
33240 * MonthCalendar.cs: Fixed CreateParams
33242 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33246 - Fixes issues with links
33247 - Adds the class attributes
33249 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33252 - Fixes button when no items available in dropdown
33253 - Fixes repainting problems
33254 - Adds the class attributes
33256 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33258 * XplatUIOSX.cs: Detect the menu bar and title bar height from
33259 the current theme. Cache these on startup.
33261 2005-02-07 Jackson Harper <jackson@ximian.com>
33263 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33264 the scrollbar buttons when they are depressed.
33266 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33268 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33269 Get the display size from the main displayid. We currently dont
33270 support multiple display configurations.
33272 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33274 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33276 2005-02-07 Miguel de Icaza <miguel@novell.com>
33278 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33280 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
33282 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33284 2005-02-04 Jackson Harper <jackson@ximian.com>
33286 * ThemeWin32Classic.cs: Respect the clipping rect when
33287 drawing. Only fill the intersection of clips and rects so there
33288 isn't a lot of large fills.
33289 * ScrollBar.cs: Pass the correct clipping rect to the theme
33290 engine. Remove some debug code.
33292 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
33294 * DateTimePicker.cs:
33295 - Fixed crash on DateTime.Parse, use Constructor instead
33297 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33301 - Owner draw support (MeasureItem and DrawItem)
33303 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33306 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33307 - Fixes MenuItems.Add range
33309 - MergeMenu and Clone and CloneMenu functions
33311 2005-02-03 Jackson Harper <jackson@ximian.com>
33313 * ScrollBar.cs: Make abstract
33314 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33317 2005-02-03 Jackson Harper <jackson@ximian.com>
33319 * ScrollBar.cs: First part of my scrollbar fixups. This removes
33320 all the unneeded refreshes and uses invalidates with properly
33323 2005-02-03 Peter Bartok <pbartok@novell.com>
33325 * ComponentModel.cs: Added
33326 * IDataGridEditingService.cs: Added
33327 * Timer.cs: Added missing attributes
33328 * ToolTip.cs: Added missing attributes
33330 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
33332 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33334 2005-02-03 Peter Bartok <pbartok@novell.com>
33336 * ListBox.cs: Added missing attributes
33338 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
33341 - Fixes font height after font change
33342 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33344 2005-02-02 Peter Bartok <pbartok@novell.com>
33346 * HandleData.cs: Introduced static methods to allow class
33347 to be more self-contained and track it's own HandleData objects
33348 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33349 HandleData to use new static methods
33351 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
33354 - Fixes default size and PreferredHeight
33356 - ObjectCollection.Insert implementation
33362 - ObjectCollection.Insert implementation
33363 - No selection after clean
33366 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33368 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33370 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
33373 - Caches ItemHeight calculation for OwnerDrawVariable
33374 - Handles dropdown properly
33375 - Fixes several minor bugs
33377 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33380 - Fixes 71946 and 71950
33381 - Fixes changing Multicolumn on the fly
33382 - Fixes keyboard navigation on Multicolumn listboxes
33384 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33386 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33387 crash reporter log.
33389 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33391 * XplatUIOSX.cs: Allow applications to actually exit.
33393 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33395 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
33396 their parent at creation time rather than lazily later. Fixes a major
33397 regression we were experiencing.
33399 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33401 * ThemeWin32Classic.cs: more date time picker painting fixes
33402 * DateTimePicker.cs: more monthcalendar drop down fixes
33403 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33405 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33408 - When moving the thumb going outside the control should stop the moving
33409 - Adds the firing of missing events
33410 - Fixes no button show if Size is not specified
33411 - End / Home keys for keyboard navigation
33413 2005-01-30 Peter Bartok <pbartok@novell.com>
33415 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33416 sanity check to prevent theoretical loop
33417 * XplatUIWin32.cs (SetVisible): Removed debug output
33418 * XplatUIX11.cs (SystrayChange): Added sanity check
33419 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33420 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33421 behaviour, valid until the X11 client window rewrite is done
33422 * TextBox.cs (ctor): Setting proper default foreground and background
33425 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
33427 * Theme: Added DrawDateTimePicker to interface
33428 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33429 * DateTimePicker.cs: Created (still needs keys and painting code)
33430 * DateTimePickerFormat.cs: added
33431 * MonthCalendar.cs: fixed CreateParams for popup window mode
33433 2005-01-29 Peter Bartok <pbartok@novell.com>
33435 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33436 this should also the calculations for ligher/darker
33437 * Theme.cs: Fixed defaults for ScrollBar widths/heights
33439 2005-01-29 Peter Bartok <pbartok@novell.com>
33441 * ArrangeDirection.cs: Added
33442 * ArrangeStartingPositon.cs: Added
33443 * SystemInformation.cs: Implemented
33444 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33445 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33446 used by SystemInformation class
33447 * X11Strucs.cs: Added XSizeHints structure
33449 - Fixed CreateParams to make sure the menu window is always visible
33450 - TrackPopupMenu: Added check to make sure we don't draw the
33453 2005-01-29 Peter Bartok <pbartok@novell.com>
33455 * HandleData.cs: Added method for altering invalid area
33456 * TextBoxBase.cs: Implemented TextLength
33458 2005-01-28 Peter Bartok <pbartok@novell.com>
33460 * XplatUIX11.cs: Improvement over last patch, not sending
33461 the WM_PAINT directly anymore, instead we scroll any pending
33462 exposed areas and let the system pick out the WM_PAINT later
33464 2005-01-28 Peter Bartok <pbartok@novell.com>
33466 * SWF.csproj: Deleted, no longer used. Instead,
33467 Managed.Windows.Forms/SWF.csproj should be used
33468 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33469 directly, to avoid a potential race condition with the next
33472 2005-01-28 Peter Bartok <pbartok@novell.com>
33474 * XplatUI.cs: Made class internal
33476 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
33478 * CheckedListBox.cs:
33481 - Missing methods and events
33483 2005-01-27 Peter Bartok <pbartok@novell.com>
33485 * Application.cs (Run): Don't use form if we don't have one
33487 2005-01-27 Peter Bartok <pbartok@novell.com>
33489 * TextBoxBase.cs (get_Lines): Fixed index off by one error
33491 2005-01-27 Peter Bartok <pbartok@novell.com>
33493 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33494 * GridItem.cs: Added; Patch by Jonathan S. Chambers
33495 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33496 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33497 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33498 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33499 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33500 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33501 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33502 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33503 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33504 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33506 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33509 - Draw focus on Simple Combobox
33510 - Fixes drawing issues
33513 2005-01-27 Peter Bartok <pbartok@novell.com>
33516 - Place window in default location, instead of hardcoded 0/0
33517 - Send initial LocationChanged event
33519 - UpdateBounds after creation to find out where the WM placed us
33520 - Make sure that if the ParentForm changes location the Form
33522 * XplatUIX11.cs: XGetGeometry will not return the coords relative
33523 to the root, but to whatever the WM placed around us.
33524 Translate to root coordinates before returning toplevel
33526 * XplatUIWin32.cs: Removed debug output
33527 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33528 flag to GetWindowPos, to allow translation of coordinates on X11
33530 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33532 * ListBox.cs: connect LostFocus Event
33534 2005-01-27 Peter Bartok <pbartok@novell.com>
33536 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33537 XplatUIX11.cs: Extended the Systray API
33538 * Form.cs: Removed debug output
33539 * Application.cs: Fixed focus assignment, always need to call
33540 XplatUI.Activate() since Form.Activate() has rules that may
33542 * NotifyIcon.cs: Should be complete now
33543 * ToolTip.cs: Worked around possible timer bug
33545 2005-01-27 Jackson Harper <jackson@ximian.com>
33548 - Only invalidate the effected tabs when the
33549 selected index changes. This reduces drawing and gets rid of some
33551 - Only refresh if the tabs need to be shifted, otherwise only
33552 invalidate the slider button.
33553 - On windows the tabs are not filled to right if the slider is
33556 2005-01-27 Jackson Harper <jackson@ximian.com>
33558 * TabControl.cs: Only refresh on mouseup if we are showing the
33559 slider. Also only invalidate the button whose state has changed.
33561 2005-01-26 Peter Bartok <pbartok@novell.com>
33563 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33564 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33565 and SystrayRemove() methods
33566 * XplatUIOSX.cs: Stubbed Systray methods
33568 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33570 - Fixed broken XChangeProperty calls (marshalling messed up things)
33571 * X11Structs.cs: Added enums and structs required for Size hinting
33572 * NotifyIcon.cs: Added & implemented
33574 2005-01-26 Jackson Harper <jackson@ximian.com>
33576 * TabControl.cs: Space vertically layed out tabs properly.
33578 2005-01-26 Peter Bartok <pbartok@novell.com>
33580 * Form.cs (CreateClientParams): Always set the location to 0,0
33581 since we're a child window.
33583 * Control.cs (SetVisibleCore): Always explicitly setting the location
33584 of a toplevel window, apparently X11 doesn't like to move windows
33585 while they're not mapped.
33587 2005-01-26 Jackson Harper <jackson@ximian.com>
33589 * TabControl.cs: Implement FillToRight size mode with vertically
33592 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33594 * ControlPaint.cs, ThemeWin32Classic.cs
33595 - Fixes DrawFocusRectangle
33597 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33600 - MenuBar tracking only starts when item is first clicked
33601 - Fixes menu hidding for multiple subitems
33602 - Unselect item in MenuBar when item Executed
33605 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
33608 - IsInputKey for ListBox
33611 - Shift and Control item selection
33612 - Implement SelectionMode.MultiExtended
33613 - Fixes RightToLeft
33615 - IsInputKey implemented
33616 - Do not generate OnTextChangedEdit on internal txt changes
33618 2005-01-23 Peter Bartok <pbartok@novell.com>
33620 * AccessibleObject.cs: Partially implemented Select()
33621 * MonthCalendar.cs: Added missing attributes and events
33622 * Form.cs: Fixed CreateParams behaviour, now controls derived from
33623 form can properly override CreateParams.
33624 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33625 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33626 Control performs Invalidate & Update
33627 * NativeWindow (CreateHandle): Added special handling for Form
33628 and Form.FormParent classes to allow overriding of From.CreateParams
33630 - ControlNativeWindow: Renamed 'control' variable to more intuitive
33632 - ControlNativeWindow: Added Owner property
33633 - Removed usage of Refresh() on property changes, changed into
33634 Invalidate(), we need to wait until the queue is processed for
33635 updates, direct calls might cause problems if not all vars for
33636 Paint are initialized
33637 - Added call to UpdateStyles() when creating the window, to set any
33638 styles that CreateWindow might have ignored.
33639 - Added support for Form CreateParent overrides to UpdateStyles()
33640 * MessageBox.cs: Removed no longer needed FormParent override stuff,
33641 CreateParams are now properly overridable
33642 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33643 CreateParams are now properly overridable
33645 2005-01-23 Miguel de Icaza <miguel@ximian.com>
33647 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33650 Capture LostFocus and OnTextBoxChanged. The later introduces a
33651 recursive invocation that I have not figured out yet.
33653 Reset the timer when not using (it was accumulating).
33656 (OnTextBoxChanged): Set UserEdit to true here to track whether the
33657 user has made changes that require validation.
33659 Reset changing to avoid loops.
33661 2005-01-22 Miguel de Icaza <miguel@ximian.com>
33663 * NumericUpDown.cs: Display value at startup.
33665 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33668 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33669 filled in. Added some basic parsing of text.
33671 Still missing the OnXXX method overrides, and figuring out the
33672 events that must be emitted.
33674 * UpDownBase.cs: Handle UserEdit on the Text property.
33676 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
33679 - Fixes IntegralHeight
33682 2005-01-21 Jackson Harper <jackson@ximian.com>
33684 * TabControl.cs: Set the SelectedIndex property when SelectedTab
33685 is set so that the page visibility is updated and the tabs are
33688 2005-01-21 Jackson Harper <jackson@ximian.com>
33690 * TabControl.cs: Use cliping rectangle for blitting. Give the
33691 theme the clipping rect so we can do clipping while
33692 drawing. Remove some debug code.
33694 2005-01-21 Jackson Harper <jackson@ximian.com>
33696 * TabPage.cs: Add a new method so tab pages can force the tab
33697 control to recalculate the tab page sizes.
33698 * TabControl.cs: UpdateOwner needs to make the tab control recalc
33701 2005-01-20 Jackson Harper <jackson@ximian.com>
33703 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
33705 2005-01-20 Jackson Harper <jackson@ximian.com>
33707 * TreeView.cs: Set the bounds for nodes properly. They were
33708 getting screwed up when checkboxes were not enabled, but images
33711 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
33714 - Owner draw support
33717 2005-01-20 Jackson Harper <jackson@ximian.com>
33719 * XplatUIStructs.cs: More misc keys
33720 * X11Keyboard.cs: Ignore some control keys.
33722 2005-01-20 Jackson Harper <jackson@ximian.com>
33724 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
33725 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
33727 2005-01-19 Peter Bartok <pbartok@novell.com>
33729 * Control.cs: Un-selecting the control when it is loosing focus
33731 2005-01-19 Jackson Harper <jackson@ximian.com>
33733 * TreeView.cs: Hook up to the text controls leave event so we can
33734 end editing when the users clicks outside the text box.
33736 2005-01-19 Jackson Harper <jackson@ximian.com>
33738 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
33739 get set in the conversion array.
33741 2005-01-19 Peter Bartok <pbartok@novell.com>
33743 * Application.cs (ModalRun): Added a call to CreateControl to ensure
33744 focus is properly set
33746 - Added missing attributes
33747 - removed styles, those are already set in the base class
33749 - Added missing attributes
33750 - Added clip window styles
33751 * CheckBox.cs: Added missing attributes
33753 - FormParentWindow.CreateParams: Added required clip styles
33754 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
33755 also filters modifier keys
33757 - Added assignment of Accept and Cancel button to enable Enter
33758 and Esc keys in MessageBox dialogs
33759 - FormParentWindow.CreateParams: Added required clip styles
33760 * RadioButton.cs: Added missing attributes
33761 * TextControl.cs: No longer draws selection if control does not
33764 - Now draws simple rectangle around test area to make it obvious
33765 there's a control. This is a hack until we properly support borders
33766 - A few simple fixes to support selections better, now erases selected
33767 text when typing, and resets selection when using movement keys
33769 2005-01-19 Miguel de Icaza <miguel@ximian.com>
33771 * UpDownBase.cs: Added some new properties.
33773 * DomainUpDown.cs: Implement a lot to get my test working.
33775 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33777 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
33779 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33781 * OSXStructs (WindowAttributes): Fixed csc complaints
33783 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33786 OSXStructs.cs: Initial refactor to move enums and consts into
33787 OSXStructs and use them in the driver for greater readability.
33789 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33791 * XplatUIOSX.cs: Initial support for Standard Cursors.
33792 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
33794 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
33796 * ComboBox.cs: ability to change style when the ctrl is already
33797 created, missing methods and events, bug fixes, signature fixes
33799 2005-01-19 Peter Bartok <pbartok@novell.com>
33801 * Cursors.cs (ctor): Added ctor to fix signature
33803 2005-01-18 Peter Bartok <pbartok@novell.com>
33805 * Button.cs: Implemented DoubleClick event
33807 - Fixed keyboard handling to behave like MS, where the press of
33808 Spacebar is equivalent to a mousedown, and the key release is
33809 equivalent to mouseup. Now a spacebar push will give the same
33810 visual feedback like a mouse click.
33811 - Added missing attributes
33812 - Added ImeModeChanged event
33813 - Added support for generating DoubleClick event for derived classes
33815 - Implemented DoubleClick event
33816 - Added missing attributes
33817 * CommonDialog.cs: Added missing attribute
33818 * ContextMenu.cs: Added missing attributes
33820 - AutoChecked buttons do not allow to be unselected when clicked
33821 (otherwise we might end up with no selected buttons in a group)
33822 - Added missing attributes
33823 - Implemented DoubleClickEvent
33824 * ThreadExceptionDialog.cs: Enabled TextBox code
33826 2005-01-18 Peter Bartok <pbartok@novell.com>
33828 * Form.cs: Removed debug output
33829 * Button.cs: Added support for DoubleClick method
33831 2005-01-18 Peter Bartok <pbartok@novell.com>
33834 - Added method to parent window that allows triggering size
33835 calculations when a menu is added/removed
33836 - set_Menu: Cleaned up mess from early days of Form and Control,
33837 now properly triggers a recalc when a menu is added/removed
33838 - Added case to select form itself as focused form if no child
33840 - Added PerformLayout call when showing dialog, to ensure properly
33843 - Select(): Made internal so Form can access it
33844 - Focus(): Only call Xplat layer if required (avoids loop), and sets
33846 * Application.cs (Run): Removed hack and calls PerformLayout instead
33847 to trigger calculation when Form becomes visible
33849 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
33851 * ComboBox.cs: fixes for ownerdraw
33853 2005-01-18 Peter Bartok <pbartok@novell.com>
33856 - Sentinel is no longer static, each Document gets it's own, this
33857 avoids locking or alternatively overwrite problems when more
33858 than one text control is used simultaneously.
33859 - Switched to use Hilight and HilightText brushes for text selection
33861 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
33863 2005-01-18 Peter Bartok <pbartok@novell.com>
33866 - Hooked up the following events:
33874 o SystemColorsChanged
33875 o ParentFontChanged
33877 - Removed debug output
33878 - Added a call to the current theme's ResetDefaults when a color change
33880 * Form.cs: Now setting the proper ImeMode
33881 * Theme.cs: Defined a method to force recreation of cached resources
33882 and rereading of system defaults (ResetDefaults())
33883 * ThemeWin32Classic.cs: Added ResetDefaults() stub
33885 2005-01-17 Peter Bartok <pbartok@novell.com>
33887 * Control.cs: Added missing attributes
33889 2005-01-17 Jackson Harper <jackson@ximian.com>
33891 * TreeNode.cs: Implement editing. Add missing properties selected
33893 * TreeView.cs: Implement node editing. Also some fixes to use
33894 Invalidate (invalid area) instead of Refresh when selecting.
33896 2005-01-17 Peter Bartok <pbartok@novell.com>
33899 - Implemented InvokeGotFocus() method
33900 - Implemented InvokeLostFocus() method
33901 - Implemented InvokePaint() method
33902 - Implemented InvokePaintBackground() method
33903 - Implemented InvokeClick() method
33904 - Implemented FindForm() method
33905 - Implemented RectangleToClient() method
33906 - Implemented ClientToRectangle() method
33907 - Implemented ResetBackColor() method
33908 - Implemented ResetCursor() method
33909 - Implemented ResetFont() method
33910 - Implemented ResteForeColor() method
33911 - Implemented ResetImeMode() method
33912 - Implemented ResetLeftToRight() method
33913 - Implemented ResetText() method
33914 - Implemented Scale() methods
33915 - Implemented ScaleCore() method
33916 - Implemented Update() method
33917 - Removed unused variables
33918 - Stubbed AccessibilityNotifyClients and
33919 ControlAccessibleObject.NotifyClients() methods (dunno what to do
33921 - Now setting proper default for RightToLeft property
33922 - Fixed bug in SetClientSizeCore that would cause windows to get
33924 - Now sending Click/DoubleClick events
33925 - Now selecting controls when left mouse button is clicked on
33927 * AccessibleEvents.cs: Added
33928 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
33929 * XplatUIOSX.cs: Stubbed UpdateWindow() method
33930 * XplatUIWin32.cs: Implemented UpdateWindow() method
33931 * XplatUIX11.cs: Implemented UpdateWindow() method
33932 * Form.cs: Removed stray semicolon causing CS0162 warning
33933 * ThemeWin32Classic.cs: Fixed unused variable warnings
33934 * ScrollableControl.cs: Now calls base method for ScaleCore
33935 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
33936 style to avoid interference with internal click handler (which is
33937 different than standard Control click handling)
33939 - Now unchecks all sibling radio buttons when control is
33940 selected (Fixes #68756)
33941 - Removed internal tabstop variable, using the one inherited from
33944 2005-01-17 Jackson Harper <jackson@ximian.com>
33946 * NavigateEventArgs.cs: Fix base type.
33947 * LinkLabel.cs: Sig fix
33949 2005-01-17 Jackson Harper <jackson@ximian.com>
33951 * TreeView.cs: Only invalidate the effected nodes bounds when
33954 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
33956 * XplatUIWin32.cs: fixes Win32 marshaling
33957 * XplatUIX11.cs: fixes method signature
33959 2005-01-17 Peter Bartok <pbartok@novell.com>
33961 * XplatUIX11.cs: Clean up resources when we no longer need them
33963 2005-01-17 Peter Bartok <pbartok@novell.com>
33965 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
33966 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
33967 and DestroyCursor() methods.
33968 * Cursor.cs: Partially implemented, now supports standard cursors;
33969 still contains some debug code
33970 * Cursors.cs: Implemented class
33972 - WndProc(): Added handling of WM_SETCURSOR message, setting the
33974 - Implemented Cursor property
33975 - Replaced break; with return; more straightforwar and possibly
33977 - Now properly setting the result for WM_HELP
33978 * X11Structs.cs: Added CursorFontShape enum
33979 * XplatUIStructs.cs:
33980 - Added StdCursor enum (to support DefineStdCursor() method)
33981 - Added HitTest enum (to support sending WM_SETCURSOR message)
33983 - Now sends the WM_SETCURSOR message
33984 - Implemented new cursor methods
33985 * XplatUIOSX.cs: Stubbed new cursor methods
33987 - Implemented new cursor methods
33988 - Added GetSystemMetrics function and associated enumeration
33990 2005-01-15 Peter Bartok <pbartok@novell.com>
33993 - WndProc(): Now handles EnableNotifyMessage
33994 - SelectNextControl(): Fixed bug where if no child or sibling
33995 controls exist we looped endlessly
33997 2005-01-14 Jackson Harper <jackson@ximian.com>
33999 * TreeView.cs: Recalculate the tab pages when a new one is added
34000 so that the proper bounding rects are created.
34002 2005-01-14 Jackson Harper <jackson@ximian.com>
34004 * TreeView.cs: Draw a gray box instead of a grip in the lower
34005 right hand corner when there are both horizontal and vertical
34008 2005-01-14 Jackson Harper <jackson@ximian.com>
34010 * Control.cs: When erasing backgrounds use FromHwnd instead of
34011 FromHdc when there is a NULL wparam. This occurs on the X driver.
34012 * XplatUIX11.cs: Set the wparam to NULL.
34014 2005-01-13 Jackson Harper <jackson@ximian.com>
34016 * PictureBox.cs: Implement missing methods (except ToString, need
34017 to test that on windows) and events. When visibility is changed we
34018 need to redraw the image because the buffers are killed. When size
34019 is changed refresh if the sizemode needs it.
34021 2005-01-13 Peter Bartok <pbartok@novell.com>
34023 * Control.cs (SelectNextControl): Was using wrong method to select
34026 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34028 * ComboBox.cs: fixes dropstyle
34030 2005-01-13 Peter Bartok <pbartok@novell.com>
34033 - Implemented Select() override
34034 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34035 - Now sets keyboard focus on startup
34036 * Control.cs (SelectNextControl): Now properly handles directed=true
34038 - WndProc: Now passes tab key on to base if AcceptTabChar=false
34039 - Added (really bad) focus rectangle (mostly for testing)
34040 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34041 to enforce redraw on focus changes
34042 * ContainerControl.cs:
34043 - Fixed detection of Shift-Tab key presses
34044 - Fixed traversal with arrow keys
34045 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34046 gonna keep this or if it's complete yet
34048 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34050 * ComboBox.cs: missing properties, fixes
34052 2005-01-13 Peter Bartok <pbartok@novell.com>
34054 * Panel.cs (ctor): Setting Selectable window style to off
34055 * Splitter.cs (ctor): Setting Selectable window style to off
34056 * GroupBox.cs (ctor): Setting Selectable window style to off
34057 * Label.cs (ctor): Setting Selectable window style to off
34059 2005-01-12 Miguel de Icaza <miguel@ximian.com>
34061 * UpDownBase.cs (InitTimer): If the timer has been already
34062 created, enable it.
34064 Use a TextBox instead of a Label.
34066 2005-01-12 Jackson Harper <jackson@ximian.com>
34068 * TreeView.cs: Refresh the tree after sorting the nodes. Always
34069 draw the connecting node lines (when ShowLines is true).
34070 * TreeNode.cs: The nodes index can now be updated. This is used
34071 when a node collection is sorted.
34072 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34073 insert or an existing unsorted node collection can be sorted.
34075 2005-01-12 Peter Bartok <pbartok@novell.com>
34077 * ContainerControl.cs: Implemented ProcessDialogKeys()
34079 2005-01-12 Peter Bartok <pbartok@novell.com>
34082 - Implemented SelectNextControl() method
34083 - Several focus related bug fixes
34084 - Fixed Docking calculations to match MS documentation and
34087 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
34089 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34092 2005-01-12 Peter Bartok <pbartok@novell.com>
34095 - Fixed broken Contains() method
34096 - Implemented GetNextControl() method. Finally. This is the pre-
34097 requisite for focus handling.
34099 2005-01-12 Peter Bartok <pbartok@novell.com>
34101 * OSXStrucs.cs: Added
34103 2005-01-12 Peter Bartok <pbartok@novell.com>
34106 - Removed PeekMessageFlags
34107 - Implemented SetWindowStyle() method
34108 * XplatUIStructs.cs: Added PeekMessageFlags
34109 * X11Structs: Added missing border_width field to XWindowChanges struct
34111 - PeekMessage: Now throws exception if flags which are not yet
34112 supported are passed
34113 - Implemented SetWindowStyle() method
34114 - Fixed SetZOrder to handle AfterHwnd properly
34115 * XplatUI.cs: Added SetWindowStyle() method
34116 * XplatUIDriver.cs: Added SetWindowStyle() abstract
34118 - Implemented UpdateStyles() method
34119 - Implemented UpdateZOrder() method
34120 * XplatUIOSX.cs: Added SetWindowStyle() stub
34122 2005-01-12 Geoff Norton <gnorton@customerdna.com>
34124 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34128 2005-01-11 Jackson Harper <jackson@ximian.com>
34130 * TreeView.cs: Still need to draw lines to siblings even if out of
34131 the current node is out of the clip.
34133 2005-01-11 Jackson Harper <jackson@ximian.com>
34135 * TreeView.cs: When setting the hbar/vbar/grip position use
34136 SetBounds so that perform layout is only called once. Also suspend
34137 and resume layout so layout is only done once for all controls.
34138 - Removed some debug fluff
34139 * SizeGrip.cs: Call base implmentation in overriding methods.
34140 - When visibility is changed the drawing buffers are killed so we
34143 2005-01-11 Jackson Harper <jackson@ximian.com>
34145 * TreeView.cs: Calculate the open node count while drawing. This
34146 saves us an entire tree traversal for every paint operation. Use
34147 a member var for the open node count so less vars are passed around.
34149 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
34151 * MonthCalendar.cs:
34152 - fixed selection to use mousemove, not mouse polling on timer
34153 * ThemeWin32Classic.cs
34154 - removed redundant unused variable "no_more_content"
34156 2005-01-11 Peter Bartok <pbartok@novell.com>
34158 * XplatUIX11.cs (DoEvents): Needs to return when no more events
34159 are pending, so it now calls PeekMessage instead of GetMessage;
34160 implemented a incomplete version of PeekMessage
34162 2005-01-11 Peter Bartok <pbartok@novell.com>
34164 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34166 * TextBoxBase.cs: Added sending of TextChanged event
34168 2005-01-10 Jackson Harper <jackson@ximian.com>
34170 * TreeView.cs: Try not to draw outside the clipping rectangle on
34173 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
34175 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34177 2005-01-10 Jackson Harper <jackson@ximian.com>
34180 - Implement fast scrolling. Now only the newly
34181 exposed nodes are drawn and the old image is moved using the
34182 XplatUI::ScrollWindow method.
34183 - Factor in height of nodes when calculating whether or not the
34184 node is in the clipping rect.
34186 2005-01-10 Jackson Harper <jackson@ximian.com>
34188 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34190 2005-01-10 Peter Bartok <pbartok@novell.com>
34192 * Application.cs: Added temporary hack to resolve all our resize
34193 required issues on startup. This will get fixed properly at
34194 some point in the future
34196 2005-01-10 Jackson Harper <jackson@ximian.com>
34198 * SizeGrip.cs: New internal class that is used as a sizing
34199 grip control...hence the name.
34201 2005-01-10 Peter Bartok <pbartok@novell.com>
34203 * Control.cs: Implemented proper TabIndex handling, now assigning
34204 a tabindex when a control is added to a container
34205 * GroupBox.cs (ctor): Now sets the Container style bit, required
34206 for Control.GetNextControl()
34208 2005-01-09 Jackson Harper <jackson@ximian.com>
34210 * TextBoxBase.cs: Clear window when scrolling (fixes build).
34212 2005-01-09 Peter Bartok <pbartok@novell.com>
34214 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34215 XplatUIX11.cs: Added ability to control ScrollWindow expose and
34216 an overload for ScrollWindow to allow only scrolling a rectangle
34218 2005-01-09 Peter Bartok <pbartok@novell.com>
34221 - Implemented SetDesktopBounds method
34222 - Implemented SetDesktopLocation method
34224 2005-01-08 Jackson Harper <jackson@ximian.com>
34226 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34227 the node count has changed, this removes to VScroll::Refresh calls
34230 2005-01-08 Geoff Norton <gnorton@customerdna.com>
34232 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34234 2005-01-07 Jackson Harper <jackson@ximian.com>
34236 * TreeNode.cs: Just update the single node when it is
34237 checked. Don't refresh after toggling, the Expand/Collapse already
34239 * TreeView.cs: Respect clipping a little more when drawing. Try
34240 not to redraw things that don't need to be redrawn. Just hide the
34241 scrollbars when they are no longer needed instead of removing
34242 them, so they don't have to be created again and again.
34244 2005-01-07 Geoff Norton <gnorton@customerdna.com>
34246 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
34247 coordinates to window space to place the caret properly, FIXED.
34248 Implement GetWindowState & SetWindowState
34250 2005-01-06 Peter Bartok <pbartok@novell.com>
34253 - Implemented ClientSize property
34254 - Implemented DesktopBounds property
34255 - Implemented DesktopLocation property
34256 - Implemented IsRestrictedWindow property
34257 - Implemented Size property
34258 - Implemented TopLevel property
34259 - Implemented FormWindowState property
34261 - Implemented GetTopLevel() method
34262 - Implemented SetTopLevel() method
34263 * X11Structs.cs (Atom):
34264 - Added AnyPropertyType definition
34265 - Added MapState definiton and updated XWindowAttribute struct
34266 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34267 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34268 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34270 - Implemented GetWindowState() and SetWindowState() methods
34271 - Fixed Win32GetWindowLong return type
34273 - Introduced central function for sending NET_WM messages
34274 - Implemented GetWindowState() and SetWindowState() methods
34275 * TextBoxBase.cs (set_Lines):
34276 - Now uses Foreground color for text added via Text property (Duh!)
34277 - Added code to remember programmatically requested size (fixes
34278 behaviour when Multiline is set after Size)
34279 - Added AutoSize logic
34281 2005-01-06 Jackson Harper <jackson@ximian.com>
34283 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34285 2005-01-06 Jackson Harper <jackson@ximian.com>
34287 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34288 set to less then 0.
34290 2005-01-06 Jackson Harper <jackson@ximian.com>
34292 * ScrollableControl.cs: Lazy init the scrollbars.
34294 2005-01-06 Jackson Harper <jackson@ximian.com>
34296 * Theme.cs: Speed up getting pens and solid brushes, by using
34297 their ARGB as a hash instead of tostring and not calling Contains.
34299 2005-01-06 Peter Bartok <pbartok@novell.com>
34302 - Implemented OnActivated and OnDeactivate event trigger
34303 - Implemented Activate() method
34304 - Fixed ShowDialog() to activate the form that was active before
34305 the dialog was shown
34307 - Added global active_window var that tracks the currently active
34309 - Now always grabs Property changes from the root window to always
34310 catch changes on the active window property
34311 - Added code to PropertyNotify handler to send Active/Inactive
34312 messages when state changes. This puts X11 and Win32 en par on
34313 WM_ACTIVATE notifications (except for double notifications when
34314 the user clicks away from our modal window to another one of our
34317 2005-01-05 Jackson Harper <jackson@ximian.com>
34319 * ImageList.cs: Implment ctor
34321 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34323 * XplatUIOSX.cs: Implement Activate/SetTopmost
34325 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34327 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34329 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34331 * XplatUIOSX.cs: Implement GetActive/SetFocus.
34333 2005-01-05 Peter Bartok <pbartok@novell.com>
34335 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34336 XplatUIOSX.cs: Added GetActive method to return the currently
34337 active window for the application (or null, if none is active)
34339 - Implemented ActiveForm
34340 - Commented out owner assignment for modal dialogs (causes problems
34341 on Win32, since the owner will be disabled)
34342 - Reworked some Active/Focus handling (still incomplete)
34343 * CommonDialog.cs: Commented out owner assignment for modal dialogs
34344 (causes problems on Win32, since the owner will be disabled)
34345 * IWin32Window: Added ComVisible attribute
34347 2005-01-05 Peter Bartok <pbartok@novell.com>
34349 * ToolTip.cs (WndProc): Enable setting focus now that we have the
34350 required XplatUI functions.
34352 2005-01-05 Peter Bartok <pbartok@novell.com>
34354 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34355 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34356 to implement focus and activation handling; still incomplete and
34359 2005-01-04 Peter Bartok <pbartok@novell.com>
34361 * TextBoxBase.cs: Changed access level for Document property to
34362 match switch to internal for TextControl
34364 2005-01-04 Peter Bartok <pbartok@novell.com>
34366 * AccessibleObject: Added ComVisible attribute
34368 2005-01-04 Jackson Harper <jackson@ximian.com>
34370 * X11Keyboard.cs: Remove unneeded var.
34372 2005-01-04 Jackson Harper <jackson@ximian.com>
34374 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34376 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34377 ClientMessage. This makes apps exit cleanly (more often).
34379 2005-01-04 Jackson Harper <jackson@ximian.com>
34381 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34382 handling focus, return correct colors and fonts,
34383 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34384 handle selection, horizontal scrolling, and mouse interaction.
34386 2005-01-04 Peter Bartok <pbartok@novell.com>
34388 * ICommandExecutor.cs: Added
34389 * IDataGridColumnStyleEditingNotificationService.cs: Added
34390 * IFeatureSupport.cs: Added
34391 * IFileReaderService.cs: Added
34392 * IDataObject.cs: Added ComVisible attribute
34393 * AmbientProperties.cs: Added
34394 * BaseCollection.cs: Added missing attributes
34395 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34396 * BaseCollection.cs: Added missing attributes
34397 * Binding.cs: Added TypeConverter attribute
34398 * BindingContext.cs: Added DefaultEvent attribute
34399 * BindingsCollection.cs: Added DefaultEvent attribute
34400 * Button.cs: Added DefaultValue attribute
34401 * DragEventArgs.cs: Added ComVisible attribute
34402 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34403 * KeyEventArgs.cs: Added ComVisible attribute
34404 * KeyPressEventArgs.cs: Added ComVisible attribute
34405 * MouseEventArgs.cs: Added ComVisible attribute
34406 * NavigateEventArgs.cs: Added
34407 * NavigateEventHandler.cs: Added
34408 * FeatureSupport.cs: Added
34409 * OSFeature.cs: Added
34410 * Theme.cs: Added abstract Version property to support OSFeature
34411 * ThemeWin32Classic.cs: Added Version property to
34412 support OSFeature.Themes
34413 * ProgressBar.cs: Removed OnPaintBackground override, not required since
34414 the proper styles to avoid background drawing are set, also doesn't
34416 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34417 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34418 * ScrollEventArgs.cs: Added ComVisible attribute
34419 * SplitterEventArgs.cs: Added ComVisible attribute
34420 * AccessibleSelection.cs: Added Flags attribute
34421 * Appearance.cs: Added ComVisible attribute
34422 * Border3DSide.cs: Added ComVisible attribute
34423 * Border3DStyle.cs: Added ComVisible attribute
34424 * BorderStyle.cs: Added ComVisible attribute
34425 * DragAction.cs: Added ComVisible attribute
34426 * ErrorBlinkStyle.cs: Added
34427 * ScrollEventType.cs: Added ComVisible attribute
34428 * AnchorStyles.cs: Added Editor attribute
34429 * DockStyle.cs: Added Editor attribute
34430 * HorizontalAlignment.cs: Added ComVisible attribute
34431 * HelpEventArgs.cs: Added ComVisible attribute
34432 * PaintEventArgs.cs: Added IDisposable
34434 2005-01-04 Peter Bartok <pbartok@novell.com>
34436 * TextControl.cs: Switched Line, LineTag and Document classes to
34439 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34441 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34442 Simple mode, fixes, IntegralHeight, etc.
34444 2005-01-04 Peter Bartok <pbartok@novell.com>
34446 * TextBoxBase.cs: Using proper font variable now
34448 2005-01-04 Peter Bartok <pbartok@novell.com>
34450 * Form.cs (ShowDialog): Set parent to owner, if provided
34451 * GroupBox.cs: Removed unused vars
34453 - Added GetHashCode() for Document and LineTag classes
34454 - Removed unused variables
34455 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34456 to allow translation between continuous char position and line/pos
34457 * CheckBox.cs: Removed vars that are provided by base class
34458 * RadioButton.cs: Removed vars that are provided by base class, added
34459 new keyword where required
34460 * LinkLabel.cs: Added new keyword where required
34461 * Control.cs (WndProc): Removed unused variable
34463 - Finished SelectionLength property
34464 - Implemented SelectionStart property
34465 - Implemented Text property
34466 - Removed unused vars
34467 * MessageBox.cs: Added new keyword where required
34468 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34470 * MenuAPI.cs: Added new keyword where required
34471 * ButtonBase.cs: Removed vars that are provided by base class, added
34472 new keyword where required
34473 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34474 argument to double, to allow compiling with csc 2.0 (Atsushi ran
34476 * Application.cs (Run): Now triggers the ThreadExit event
34477 * CommonDialog.cs: Added new keyword where required; now properly sets
34478 parent (owner) for dialog
34479 * XplatUIX11.cs: Commented out unused vars
34480 * StatusBar.cs: Fixed signature for Text property
34481 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34483 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34485 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34486 TrackBar.cs, MonthCalendar.cs: remove unused vars
34488 2005-01-03 Jackson Harper <jackson@ximian.com>
34490 * ThemeWin32Classic.cs:
34491 * X11Keyboard.cs: Remove unused vars.
34493 2005-01-03 Peter Bartok <pbartok@novell.com>
34496 - set_Text: Tied into TextControl
34497 - set_TextAlignment: Tied into TextControl
34499 - Added alignment properties and implemented alignment handling
34500 and drawing (still has a bug, not generating proper expose events)
34501 - Added new Line() constructor to allow passing the line alignment
34502 - Fixed selection setting, properly handling end<start now
34503 - Added aligment considerations to RecalculateDocument()
34505 - Now properly enforces control height for single line controls
34506 - Added support for CharacterCasing
34507 - Added IsInputKey override
34508 - Fixed Keys.Enter logic
34509 - Added SetBoundsCore override
34510 - Fixed mouse selection handling
34512 2005-01-03 Jackson Harper <jackson@ximian.com>
34515 - Collapse and uncheck all nodes when CheckBoxes is disabled.
34516 - Checkboxes are always aligned to the bottom of the node,
34517 regardless of item height.
34518 - Use the node bounds to draw the text so we can center it when
34519 the item height is greater then the font height.
34520 - Node::Bounds are only the text part of the node.
34521 * TreeNode.cs: New method to combine collapsing and unchecking all
34524 2005-01-02 Jackson Harper <jackson@ximian.com>
34526 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34527 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34528 tree when a check is changed. TODO: Only refresh the checked node.
34530 2004-12-30 Jackson Harper <jackson@ximian.com>
34532 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34533 * TreeNode.cs: When collapsing make sure to never collapse the
34536 2004-12-29 Jackson Harper <jackson@ximian.com>
34538 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34540 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
34542 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34544 2004-12-28 Peter Bartok <pbartok@novell.com>
34546 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34549 2004-12-28 Peter Bartok <pbartok@novell.com>
34551 * Control.cs (WndProc): Added WM_HELP handler, now generates
34552 HelpRequested event
34553 * Form.cs: Added HelpButton property and required support code
34554 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34556 2004-12-28 Peter Bartok <pbartok@novell.com>
34559 - Made DialogForm.owner variable internal
34560 - Added check to ensure owner form is set before setting
34561 owner properties in CreateParams
34563 2004-12-28 Geoff Norton <gnorton@customerdna.com>
34565 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
34566 swizzling. Implement ClientToScreen and ScreenToClient. Implement
34567 GetCursorPos. Fix major visibility issues. Rework the windowing
34568 system to support borderless/titleless windows (implements menus).
34569 Fix GetWindowPos. Implement initial background color support for
34572 2004-12-28 Peter Bartok <pbartok@novell.com>
34574 * Form.cs (get_CreateParams): Make sure we have an owner before using
34575 the owner variable. Implement proper default if no owner exists
34577 2004-12-28 Peter Bartok <pbartok@novell.com>
34579 * In preparation for making Managed.Windows.Forms the default build target
34580 for System.Windows.Forms, the following stubbed files were added.
34581 Dialogs are currently being implemented by contributors and are only
34582 short-term place holders.
34583 * ColorDialog.cs: Initial check-in (minmal stub)
34584 * DataGrid.cs: Initial check-in (minimal stub)
34585 * DataGridLineStyle.cs: Initial check-in (minimal stub)
34586 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34587 * DataGridTableStyle.cs: Initial check-in (minimal stub)
34588 * FontDialog.cs: Initial check-in (minimal stub)
34589 * FileDialog.cs: Initial check-in (minimal stub)
34590 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34591 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34592 * OpenFileDialog: Initial check-in (minimal stub)
34593 * IComponentEditorPageSite.cs: Initial check-in
34594 * Splitter.cs: Initial check-in (for Jackson)
34595 * SplitterEventArgs.cs: Initial check-in (for Jackson)
34596 * SplitterEventHandler.cs: Initial check-in (for Jackson)
34597 * TextBox.cs: Initial check-in; still needs some wiring to
34598 TextControl backend
34599 * Form.cs: Implemented ControlBox property
34600 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34601 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34602 * TextControl.cs: Added selection functionality; added todo header
34604 - Implemented Lines property
34605 - Implemented TextHeight property
34606 - Implemented SelectedText property
34607 - Implemented SelectionLength property
34608 - Implemented SelectAll method
34609 - Implemented ToString method
34610 - Removed and cleaned up some debug code
34611 - Implemented (still buggy) mouse text selection
34613 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
34615 * ComboBox.cs: Complete DropDownList implementation, fixes.
34617 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
34619 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34620 * ComboBoxStyle.cs: ComboBoxStyle enum
34621 * ComboBox.cs: Initial work on ComboBox control
34623 2004-12-21 Peter Bartok <pbartok@novell.com>
34625 * Control.cs (ctor, CreateParams): Moved setting of is_visible
34626 forward so that anything that creates a window gets the default,
34627 also no longer uses Visible property in CreateParams to avoid
34628 walking up the parent chain and possibly get the wrong visible
34629 status. Fixed IsVisible to no longer walk up to the parent.
34631 2004-12-21 Peter Bartok <pbartok@novell.com>
34633 * Form.cs (ShowDialog): Unset modality for the proper window
34635 2004-12-20 Peter Bartok <pbartok@novell.com>
34637 * CommonDialog.cs: Initial check-in
34639 2004-12-20 Peter Bartok <pbartok@novell.com>
34641 * Control.cs (Visible): Now uses the parent window instead of the
34642 client area window for the property
34645 - ShowDialog(): Now uses the proper window for modality
34646 - The default visibility state for the form parent is now false. This
34647 will prevent the user from seeing all the changes to the form and
34648 its controls before the application hits Application.Run()
34649 - Removed some stale commented out code
34652 - Added FindWindow() method to have a method to check for existence
34654 - Added ability to override default exception handling (for example
34655 when debugging with VS.Net; to do this the ExternalExceptionHandler
34657 - Removed some useless debug output
34660 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34661 not working as expected
34662 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34663 property to allow switching back to the modal window if focus is
34664 given to another one of our windows (Application Modal)
34665 - Now only sets override_redirect if we create a window
34667 - Moved EventMask selection before mapping of newly created window
34668 so we can catch the map event as well
34669 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
34670 - Added various Atom related DllImports
34671 - Implemented Exit() method
34672 - .ctor() : No longer shows window if WS_VISIBLE is not defined
34673 in the CreateParams
34675 * MessageBox.cs: Now properly deals with the FormParent window by
34676 providing an override the FormParent CreateParams property to
34677 set as POPUP instead of OVERLAPPED window.
34679 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34681 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
34682 Minor code cleanup.
34684 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34686 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
34688 2004-12-18 Peter Bartok <pbartok@novell.com>
34690 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
34691 implementing SetModal() method
34693 2004-12-18 Peter Bartok <pbartok@novell.com>
34695 * X11Structs.cs (XGCValues): Fixed type of function element
34696 * XplatUI.cs: Added ScrollWindow() method
34697 * XplatUIDriver.cs: Added ScrollWindow() abstract
34698 * XplatUIWin32.cs: Implemented ScrollWindow() method
34699 * XplatUIX11.cs: Implemented ScrollWindow() method
34700 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
34702 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34704 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
34705 Some more keyboard support (INCOMPLETE)
34707 2004-12-17 Peter Bartok <pbartok@novell.com>
34710 - Added color attribute to line tags.
34711 - Added color argument to all functions dealing with tags
34712 - Added color argument support to various functions
34713 - Fixed miss-calculation of baseline/shift in certain circumstances
34715 * TextBoxBase.cs: Added new color option to test code
34717 2004-12-17 Jackson Harper <jackson@ximian.com>
34720 * MonthCalendar.cs: Signature fixes
34722 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34724 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
34725 keyboard event moved it. Create a new graphics context for each paint resolves this
34727 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34729 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
34730 Make caret exist and go blink blink. Initial keyboard support.
34731 Fix exception handler, Add Invalidate support. Change way RefreshWindow
34734 2004-12-17 Jackson Harper <jackson@ximian.com>
34736 * XplatUIStructs.cs: Updated set of virtual keycodes.
34737 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
34739 2004-12-17 Jackson Harper <jackson@ximian.com>
34741 * XplatUIX11.cs: Prune old keyboard code.
34743 2004-12-17 Jackson Harper <jackson@ximian.com>
34745 * XplatUIX11.cs: When generating mouse wparams get the modifier
34746 keys from the ModifierKeys property.
34748 2004-12-17 Jackson Harper <jackson@ximian.com>
34750 * X11Keyboard.cs: Send up/down input when generating
34751 messages. Remove some unused vars.
34753 2004-12-17 Jackson Harper <jackson@ximian.com>
34756 * TreeView.cs: get rid of warnings.
34758 2004-12-17 Jackson Harper <jackson@ximian.com>
34760 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
34762 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
34764 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
34765 CheckedListBox.cs: Implementation
34767 2004-12-17 Peter Bartok <pbartok@novell.com>
34769 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
34771 2004-12-16 Peter Bartok <pbartok@novell.com>
34774 - InsertCharAtCaret(): Fixed start pos fixup
34775 - CaretLine_get: No longer derives the line from the tag, the tag
34776 could be stale if lines in the document have been added or deleted
34777 - RebalanceAfterDelete(): Fixed bug in balancing code
34778 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
34779 - Line.Streamline(): Now can also elminate leading empty tags
34780 - DumpTree(): Added a few more tests and prevented exception on
34782 - Added Debug section for Combining lines
34783 - Delete(): Now copies all remaining properties of a line
34786 - Left mousebutton now sets the caret (and middle button still acts
34787 as formatting tester, which must go away soon)
34788 - Added Debug section for Deleting/Combining lines
34789 - Fixed calculations for UpdateView after Combining lines
34791 2004-12-16 Peter Bartok <pbartok@novell.com>
34793 * TextControl.cs: Now properly aligns text on a baseline, using the
34794 new XplatUI.GetFontMetrics() method. Simplified several calculations
34795 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
34798 2004-12-16 Peter Bartok <pbartok@novell.com>
34800 * XplatUI.cs: Added GetFontMetrics() method
34801 * XplatUIDriver.cs: Added GetFontMetrics() abstract
34802 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
34803 into libgdiplus, our private GetFontMetrics function
34804 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
34805 * XplatUIWin32.cs: Implemented GetFontMetrics() method
34807 2004-12-16 Jackson Harper <jackson@ximain.com>
34809 * XplatUIStruct.cs: Add enum for dead keys
34810 * X11Keyboard.cs: Map and unmap dead keys.
34812 2004-12-16 Jackson Harper <jackson@ximian.com>
34814 * X11Keyboard.cs: Detect and use the num lock mask.
34816 2004-12-16 Peter Bartok <pbartok@novell.com>
34818 * Control.cs (CreateGraphics): Added check to make sure the
34819 handle of the window exists before calling Graphics.FromHwnd()
34821 2004-12-16 Peter Bartok <pbartok@novell.com>
34823 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
34824 contains a lot of code that's not supposed to be there for the
34825 real thing, but required for developing/testing the textbox
34828 2004-12-16 Peter Bartok <pbartok@novell.com>
34831 - Fixed Streamline method
34832 - Added FindTag method to Line
34833 - Added DumpTree method for debugging
34834 - Added DecrementLines() method for deleting lines
34835 - Fixed UpdateView to update the cursor to end-of-line on single-line
34837 - Added PositionCaret() method
34838 - Fixed MoveCaret(LineDown) to move into the last line, too
34839 - Added InsertChar overload
34840 - Fixed InsertChar tag offset calculations
34841 - Added DeleteChar() method
34842 - Added Combine() method for folding lines
34843 - Fixed Delete() method, no longer allocates wasted Line object and
34844 now copies all properties when swapping nodes
34845 - Delete() method now updates document line counter
34847 2004-12-15 Jackson Harper <jackson@ximian.com>
34849 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
34850 * X11Keyboard.cs: Expose the currently selected modifier keys
34851 through a property.
34853 2004-12-15 Peter Bartok <pbartok@novell.com>
34855 * TextControl.cs: Initial check-in. Still incomplete
34857 2004-12-15 Jackson Harper <jackson@ximian.com>
34860 * TreeView.cs: Fix build on csc (second time today ;-))
34862 2004-12-15 Jackson Harper <jackson@ximian.com>
34864 * TreeView.cs: Store the treenodes plus/minus box bounds when it
34865 is calculated and use this for click testing.
34866 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
34868 2004-12-15 Jackson Harper <jackson@ximian.com>
34870 * TreeView.cs: Pass the nodes image index to the image list when
34871 drawing that image.
34873 2004-12-15 Jackson Harper <jackson@ximian.com>
34875 * X11Keyboard.cs: Set messages hwnd.
34876 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
34877 post_message calls.
34879 2004-12-15 Jackson Harper <jackson@ximian.com>
34881 * X11Keyboard.cs: Fix to compile with csc.
34883 2004-12-15 Jackson Harper <jackson@ximian.com>
34885 * X11Structs.cs: Add key mask values
34886 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
34887 * X11Keyboard.cs: New file - Extrapolates and interpolates key
34888 down/up foo into WM_CHAR foo
34889 * KeyboardLayouts.cs: Common keyboard layouts
34890 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
34891 post messages into the main queue.
34893 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
34895 * Button.cs: implement ProcessMnemonic
34896 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
34898 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
34899 * ButtonBase.cs: Show HotkeyPrefix (not the &)
34901 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
34903 * MonthCalendar.cs: Implemented click-hold for next/previous month
34906 2004-12-11 Peter Bartok <pbartok@novell.com>
34909 - Added XKeyboardState (moved from XplatUIX11.cs)
34910 - Added XCreateGC related enums and structures
34911 - Added GXFunction for XSetFunction
34913 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
34915 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
34916 CaretVisible() calls
34918 * ToolTip.cs: Added code to prevent stealing focus from app windows
34920 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
34921 DestroyCaret, SetCaretPos and CaretVisible)
34924 - Added implementation for caret functions
34925 - Moved hover variables into a struct, to make it a bit easier
34926 on the eyes and to debug
34927 - Removed XKeyboardState (moved to XplatUIX11.cs)
34928 - Moved Keyboard properties into the properties region
34930 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
34931 call to get a graphics context for our control
34933 * XplatUIOSX.cs: Added empty overrides for the new caret functions
34935 * TreeView.cs: Fixed bug. No matter what color was set it would always
34936 return SystemColors.Window
34938 * XplatUIWin32.cs: Implemented caret overrides
34940 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
34942 * ListBox.cs: fire events, implement missing methods and properties,
34945 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
34947 * MonthCalendar.cs: invalidation bug fixing
34948 * ThemeWin32Classic.cs: paint fixing
34950 2004-12-09 Geoff Norton <gnorton@customerdna.com>
34952 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
34953 prepare the CGContextRef there now.
34955 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
34957 * MonthCalendar.cs:
34958 - optimisationL only invalidate areas that have changed
34959 * ThemeWin32Classic.cs:
34960 - only paint parts that intersect with clip_area
34962 2004-12-09 Peter Bartok <pbartok@novell.com>
34964 * Application.cs: Undid changes from r37004 which cause problems
34967 2004-12-09 Ravindra <rkumar@novell.com>
34969 * ToolBar.cs: Added support for displaying ContextMenu
34970 attached to a button on ToolBar.
34971 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
34974 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
34976 * Label.cs: autosize works in text change and removes unnecessary
34979 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
34981 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34984 2004-12-08 Geoff Norton <gnorton@customerdna.com>
34986 * XplatUIOSX.cs: Added mouse move/click/grab support
34987 Remove some debugging WriteLines not needed anymore.
34988 Add window resizing/positioning.
34989 Fix visibility on reparenting.
34991 2004-12-08 Peter Bartok <pbartok@novell.com>
34993 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
34995 2004-12-07 Geoff Norton <gnorton@customerdna.com>
34997 * XplatUIOSX.cs: Initial checkin
34998 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35000 2004-12-03 Ravindra <rkumar@novell.com>
35002 * ListView.cs: Added some keybindings and fixed scrolling.
35003 ScrollBars listen to ValueChanged event instead of Scroll
35004 Event. This would let us take care of all changes being
35005 done in the scrollbars' values programmatically or manually.
35006 * ListView.cs (CanMultiselect): Added a check for shift key.
35007 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35008 * ListViewItem.cs (Clone): Fixed. We need to make a copy
35009 of ListViewSubItemCollection as well.
35011 2004-12-06 Peter Bartok <pbartok@novell.com>
35013 * Control.cs (Parent): Added check and exception to prevent
35016 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
35018 * ListBox.cs: implemented clipping, selection single and multiple,
35021 2004-12-03 Ravindra <rkumar@novell.com>
35023 * ListView.cs (ListView_KeyDown):
35024 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35025 when CTRL key is pressed.
35026 * ListViewItem.cs (Selected): Fixed setting the property.
35028 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35030 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35032 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35033 MinimizeBox, ShowInTaskbar, TopMost properties.
35035 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35036 will be implemented).
35038 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35040 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35042 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35045 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35047 * TreeView.cs: BackColor is Colors.Window.
35049 2004-12-01 Jackson Harper <jackson@ximian.com>
35051 * TreeView.cs: When resizing the tree if the user is making it
35052 smaller we don't get expose events, so we need to handle adding
35053 the horizontal scrollbar in the size changed handler as well as
35054 the expose handler.
35056 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
35058 * DrawItemState.cs: fixes wrong enum values
35060 2004-12-01 Jackson Harper <jackson@ximian.com>
35062 * TreeView.cs: Resize the hbar as well as the vbar on resize.
35064 2004-12-01 Jackson Harper <jackson@ximian.com>
35066 * NodeLabelEditEventArgs.cs:
35067 * NodeLabelEditEventHandler.cs:
35068 * OpenTreeNodeEnumerator.cs:
35070 * TreeNodeCollection.cs:
35072 * TreeViewAction.cs:
35073 * TreeViewCancelEventArgs.cs:
35074 * TreeViewCancelEventHandler.cs:
35075 * TreeViewEventArgs.cs:
35076 * TreeViewEventHandler.cs: Initial implementation.
35078 2004-12-01 Ravindra <rkumar@novell.com>
35080 * ListView.cs (CalculateListView): Fixed scrolling related
35081 calculations. Also, removed some debug statements from other
35083 * ListViewItem.cs: Changed access to 'selected' instance variable
35084 from private to internal.
35085 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35087 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
35089 * ThemeWin32Classic.cs: remove cache of brush and pens for
35090 specific controls and use the global system, fixes scrollbutton
35091 bugs (for small sizes, disabled, etc)
35093 * ScrollBar.cs: does not show the thumb for very small controls
35094 (as MS) and allow smaller buttons that the regular size
35096 2004-12-01 Miguel de Icaza <miguel@ximian.com>
35098 * UpDownBase.cs: Add abstract methods for the interface.
35099 Add new virtual methods (need to be hooked up to TextEntry when it
35101 Add override methods for most features.
35102 Computes the size, forces the height of the text entry.
35104 * NumericUpDown.cs: Put here the current testing code.
35106 * Set eol-style property on all files that do not have mixed line
35107 endings, to minimize the future problems. There are still a few
35108 files with mixed endings, and someone should choose whether they
35109 want to move it or not.
35111 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
35113 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35116 2004-11-30 Ravindra <rkumar@novell.com>
35118 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35119 drawing and replaced use of SystemColors by theme colors.
35120 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35121 * ListView.cs (ListViewItemCollection.Add): Throw exception when
35122 same ListViewItem is being added more than once.
35124 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
35126 * MonthCalendar.cs:
35127 - ControlStyles love to make the control not flicker
35129 2004-11-30 Peter Bartok <pbartok@novell.com>
35131 * CharacterCasing.cs: Added
35133 2004-11-29 Peter Bartok <pbartok@novell.com>
35135 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35136 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35137 I am removing these files as they conflict with already completed
35138 work. While it is fantastic to get contributions to MWF, I
35139 respectfully ask that everyone please coordinate their contributions
35140 through mono-winforms-list or #mono-winforms at this time. We're
35141 explicitly avoiding stubbing and don't want controls that don't have
35142 their basic functionality implemented in svn. Please also see
35143 http://www.mono-project.com/contributing/winforms.html
35146 2004-11-29 Marek Safar <marek.safar@seznam.cz>
35148 * Application.cs (ModalRun): Don't hang after exit.
35150 * Theme.cs: New TreeViewDefaultSize property.
35152 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35153 with less hardcoded SystemColors constant.
35154 Implemented TreeViewDefaultSize.
35156 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35157 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35160 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
35162 * MonthCalendar.cs:
35163 - Fix NextMonthDate and PrevMonthDate click moving calendar
35165 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35167 * MonthCalendar.cs:
35168 - Fix usage of ScrollChange Property when scrolling months
35170 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
35172 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35173 - Fixes menu destroying
35174 - Support adding and removing items on already created menus
35176 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35178 * MonthCalendar.cs:
35179 - Re-worked all bolded dates handling to match win32
35180 * ThemeWin32Classic.cs:
35181 - Fixed rendering with bolded dates
35183 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
35185 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35186 - Horizontal scroolbar
35191 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
35193 * MonthCalendar.cs:
35194 - Fix Usage of MaxSelectionCount from SelectionRange
35195 - Fixed Shift + Cursor Selection
35196 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35197 - Fixed normal cursor selection to be compat with win32
35198 - Fixed Shift + Mouse Click selection
35200 2004-11-24 Peter Bartok <pbartok@novell.com>
35202 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35203 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35205 - CreatedKeyBoardMsg now updates keystate with Alt key
35206 - Added workaround for timer crash to CheckTimers, Jackson will
35207 develop a proper fix and check in later
35208 - Implemented DispatchMessage
35209 - Removed calling the native window proc from GetMessage (call
35210 now moved to DispatchMessage)
35212 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35213 the keydata (Fixes bug #69831)
35216 - (DispatchMessage): Switched to return IntPtr
35217 - Added DllImport for SetFocus
35219 2004-11-24 Ravindra <rkumar@novell.com>
35221 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35222 background drawing.
35223 * ListViewItem.cs: Fixed various properties, calculations
35224 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35225 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35226 and some internal properties. Fixed MouseDown handler and Paint
35229 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35231 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35233 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35235 * ContainerControl.cs: correct accidental check in of local changes
35237 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35239 * ThemeWin32Classic.cs:
35240 - Fixed Drawing Last month in grid (sometimes not showing)
35241 * MonthCalendar.cs:
35242 - Fixed title width calculation bug (makeing title small)
35244 2004-11-23 Peter Bartok <pbartok@novell.com>
35247 - Added generation of WM_MOUSEHOVER event
35248 - Added missing assignment of async_method atom
35249 - Fixed WM_ERASEBKGND; now only redraws the exposed area
35251 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35253 * ThemeWin32Classic.cs:
35254 - Fixed Drawing of today circle when showtodaycircle not set
35255 - fixed drawing of first and last month in the grid (gay dates)
35256 * MonthCalendar.cs:
35257 - Fixed Drawing of today circle
35258 - Fixed drawing of grady dates
35259 - Fixed HitTest for today link when ShowToday set to false
35260 - Fixed DefaultSize to obey ShowToday
35262 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35264 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35265 * System.Windows.Forms/Theme.cs
35266 * MonthCalendar.cs: added for MonthCalendar
35267 * SelectionRange.cs: added for MonthCalendar
35268 * Day.cs: added for MonthCalendar: added for MonthCalendar
35269 * DateRangeEventArgs.cs: added for MonthCalendar
35270 * DateRangeEventHandler.cs: added for MonthCalendar
35272 2004-11-22 Ravindra <rkumar@novell.com>
35274 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35277 2004-11-22 Miguel de Icaza <miguel@ximian.com>
35279 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35282 * NumericUpDown.cs: Added new implementation.
35283 * UpDownBase.cs: Added new implementation.
35285 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35288 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35291 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35294 2004-11-21 Miguel de Icaza <miguel@ximian.com>
35296 * Timer.cs (Dispose): Should call the base dispose when
35299 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35301 * ScrollBar.cs: updates thumb position when max, min or increment
35304 2004-11-21 Ravindra <rkumar@novell.com>
35306 * ListView.cs: Implemented item selection, activation and
35307 column header style. Fixed properties to do a redraw, if
35308 required. Added support for MouseHover, DoubleClick, KeyDown
35309 and KeyUp event handling and some minor fixes.
35310 * ListViewItem.cs: Fixed constructor.
35311 * ThemeWin32Classic.cs: Improved drawing for ListView.
35313 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35315 * ThemeWin32Classic.cs: initial listbox drawing code
35316 * DrawMode.cs: new enumerator
35317 * ListControl.cs: stubbed class
35318 * ListBox.cs: initial implementation
35319 * Theme.cs: new methods definitions
35320 * SelectionMode.cs: new enumerator
35322 2004-11-17 Peter Bartok <pbartok@novell.com>
35324 * XplatUIWin32.cs: Added double-click events to the class style
35325 * Control.cs (WndProc):
35326 - Added handling of click-count to MouseDown/ MouseUp events.
35327 - Added handling of middle and right mouse buttons
35328 - Removed old debug code
35330 2004-11-17 Jackson Harper <jackson@ximian.com>
35332 * XplatUIX11.cs: Use the new Mono.Unix namespace.
35334 2004-11-17 Ravindra <rkumar@novell.com>
35336 * ListView.cs: Added event handling for MouseMove/Up/Down.
35337 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35338 * ThemeWin32Classic.cs: We need to clear the graphics context and
35339 draw column header in a proper state.
35342 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
35344 * Menu.cs: fixes signature
35346 2004-11-16 Peter Bartok <pbartok@novell.com>
35348 * XplatUIX11.cs (GetMessage): Implemented generation of
35349 double click mouse messages
35351 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
35353 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35356 2004-11-11 Peter Bartok <pbartok@novell.com>
35358 * HandleData.cs: Added Visible property
35359 * XplatUIX11.cs (IsVisible): Now uses Visible property from
35361 * XplatUIX11.cs: Removed old debug leftovers
35362 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35363 * Control.cs (WndProc): Removed old debug leftovers,
35364 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35365 needed WM_SIZE handling
35367 2004-11-11 Jackson Harper <jackson@ximian.com>
35369 * OwnerDrawPropertyBag.cs:
35370 * TreeViewImageIndexConverter.cs: Initial implementation
35372 2004-11-10 Jackson Harper <jackson@ximian.com>
35374 * ThemeWin32Classic.cs:
35375 * TabControl.cs: instead of moving tabs by the slider pos just
35376 start drawing at the tab that is offset by the slider. This way
35377 scrolling always moves by exactly one tab.
35379 2004-11-10 Jackson Harper <jackson@ximian.com>
35381 * TabControl.cs: You can only scroll left when the slider has
35382 already ben moved right.
35384 2004-11-10 Jackson Harper <jackson@ximian.com>
35386 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35389 2004-11-10 Jackson Harper <jackson@ximian.com>
35391 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35394 2004-11-09 Jackson Harper <jackson@ximian.com>
35396 * TabControl.cs (CalcXPos): New helper method so we can determine
35397 the proper place to start drawing vertical tabs.
35398 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35400 2004-11-09 Jackson Harper <jackson@ximian.com>
35402 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35403 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35404 and Bottom, left and right are illegal values for this and
35405 multiline is enabled when the alignment is set to left or right.
35406 (DrawTab): Each alignment block should draw the text itself now
35407 because Left requires special love. Also add rendering for Left
35410 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
35412 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35413 does not destroy the windows, removes debugging messages
35415 2004-11-09 jba <jba-mono@optusnet.com.au>
35417 * ThemeWin32Classic.cs
35418 (DrawButtonBase): Fix verticle text rect clipping in windows
35419 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35420 rendering and incorrect text rect clipping
35421 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35422 rendering and incorrect text rect clipping
35424 2004-11-08 Jackson Harper <jackson@ximian.com>
35426 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35427 bottom when they are bottom aligned so the bottoms of the tabs get
35429 * TabControl.cs (DropRow): Move rows up instead of down when the
35430 tab control is bottom aligned.
35432 2004-11-08 13:59 pbartok
35435 - Added handling for various window styles
35436 - Added handling for popup windows
35437 - Added SetTopmost handling
35439 2004-11-08 13:55 pbartok
35442 - Added argument to SetTopmost method
35443 - Fixed broken ClientToScreen function
35445 2004-11-08 13:53 pbartok
35447 * XplatUIStructs.cs:
35448 - Added missing WS_EX styles
35450 2004-11-08 13:53 pbartok
35452 * XplatUI.cs, XplatUIDriver.cs:
35453 - Added argument to SetTopmost
35455 2004-11-08 13:52 pbartok
35458 - Added XSetWindowAttributes structure
35459 - Improved XWindowAttributes structure
35460 - Added SetWindowValuemask enum
35461 - Added window creation arguments enum
35462 - Added gravity enum
35463 - Added Motif hints structure
35464 - Added various Motif flags and enums
35465 - Added PropertyMode enum for property functions
35467 2004-11-08 13:50 pbartok
35470 - Fixed arguments for updated SetTopmost method
35472 2004-11-08 13:49 pbartok
35475 - Fixed arguments for updated SetTopmost function
35476 - Fixed usage of PointToClient
35478 2004-11-08 13:44 pbartok
35481 - Added Clipping of children and siblings
35483 2004-11-08 13:41 pbartok
35486 - Removed SetMenuBarWindow call. We do this in Form.cs
35488 2004-11-08 13:40 jackson
35490 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35491 scrolling jimmi in the correct location with bottom aligned tabs
35493 2004-11-08 13:36 pbartok
35495 * ContainerControl.cs:
35496 - Implemented BindingContext
35497 - Implemented ParentForm
35499 2004-11-08 12:46 jackson
35501 * TabControl.cs: Put bottom rendered tabs in the right location
35503 2004-11-08 07:15 jordi
35505 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35508 2004-11-05 17:30 jackson
35510 * TabControl.cs: When selected tabs are expanded make sure they
35511 don't go beyond the edges of the tab control
35513 2004-11-05 14:57 jackson
35515 * TabControl.cs: Reset show_slider so if the control is resized to
35516 a size where it is no longer needed it's not displayed anymore
35518 2004-11-05 13:16 jackson
35520 * TabControl.cs: Make tab pages non visible when added to the
35523 2004-11-05 12:42 jackson
35525 * TabControl.cs: Implement SizeMode.FillToRight
35527 2004-11-05 12:16 jackson
35529 * Control.cs: Do not call CreateHandle if the handle is already
35532 2004-11-05 11:46 jackson
35534 * TabControl.cs: Remove superflous call to CalcTabRows
35536 2004-11-05 09:07 jackson
35538 * XplatUIX11.cs: Update for Mono.Posix changes
35540 2004-11-05 07:00 ravindra
35542 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35545 2004-11-04 22:47 jba
35547 * ThemeWin32Classic.cs:
35548 - Fix Button rendering for FlatStyle = Flat or Popup
35549 - Fix RadioButton and CheckBox rendering when Appearance = Button
35550 (normal and flatstyle).
35551 - Correct outer rectangle color when drawing focus rectangle
35552 - Adjust button bounds to be 1 px smaller when focused
35553 - Make button not draw sunken 3d border when pushed (windows compat)
35554 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35555 - Offset the text in RadioButton and Checkbox when being rendered as
35557 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35559 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35560 - Fixed disabled text rendering for normally rendered radiobuttons
35562 2004-11-04 10:26 jackson
35564 * TabControl.cs: Recalculate tab rows when resizing
35566 2004-11-04 07:47 jordi
35568 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35569 collection completion, drawing issues, missing features
35571 2004-11-04 05:03 ravindra
35574 - We need to recalculate the Thumb area when
35575 LargeChange/maximum/minimum values are changed.
35576 - We set the 'pos' in UpdatePos() method to minimum, if it's less
35577 than minimum. This is required to handle the case if large_change is
35578 more than max, and use LargeChange property instead of large_change
35580 - We return max+1 when large_change is more than max, like MS does.
35582 2004-11-04 04:29 ravindra
35584 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35585 - Changed default value signatures (prefixed all with ListView).
35586 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35588 - Fixed calculations for ListViewItem and implemented Clone()
35591 2004-11-04 04:26 ravindra
35593 * Theme.cs, ThemeWin32Classic.cs:
35594 - Changed default ListView values signatures (prefixed all with
35596 - Fixed default size values for VScrollBar and HScrollBar.
35597 - Fixed DrawListViewItem method.
35599 2004-11-04 04:05 ravindra
35601 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35603 2004-11-04 04:04 ravindra
35605 * ImageList.cs: Implemented the missing overload for Draw method.
35607 2004-11-03 19:29 jackson
35609 * TabControl.cs: Handle dropping rows on selection properly
35611 2004-11-03 11:59 jackson
35613 * TabControl.cs: remove debug code
35615 2004-11-03 11:52 jackson
35617 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35618 the scrolly widgerywoo
35620 2004-11-02 13:52 jackson
35622 * TabControl.cs: Resize the tab pages and tabs when the tab control
35625 2004-11-02 13:40 jackson
35627 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35628 selected tab to the bottom
35630 2004-11-02 13:39 jackson
35632 * TabPage.cs: Store the tab pages row
35634 2004-11-02 12:33 jordi
35636 * MenuItem.cs: fixes handle creation
35638 2004-11-02 11:42 jackson
35640 * TabControl.cs: signature fix
35642 2004-11-02 08:56 jackson
35644 * TabControl.cs: Calculate whether the tab is on an edge properly.
35645 Remove top secret debugging code
35647 2004-11-01 19:57 jackson
35649 * TabControl.cs: Add click handling, and proper sizing
35651 2004-11-01 19:47 jackson
35653 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35656 2004-11-01 19:39 jackson
35658 * TabPage.cs: add internal property to store the bounds of a tab
35661 2004-10-30 04:23 ravindra
35663 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35666 2004-10-30 04:21 ravindra
35668 * ListView.cs, ListViewItem.cs: Added support for scrolling and
35669 fixed calculations.
35671 2004-10-30 03:06 pbartok
35674 - Removed extension of DllImported libs
35676 2004-10-29 09:55 jordi
35678 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
35679 navigation, itemcollection completion, menu fixes
35681 2004-10-27 22:58 pbartok
35684 - Now throws a nice error message when no X display could be opened
35686 2004-10-26 13:51 jordi
35688 * ListView.cs: removes warning
35690 2004-10-26 03:55 ravindra
35692 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
35693 ThemeWin32Classic.cs: Some formatting for my last checkins.
35695 2004-10-26 03:36 ravindra
35697 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
35698 control and default values.
35700 2004-10-26 03:35 ravindra
35702 * Theme.cs: Added some default values for ListView control.
35704 2004-10-26 03:33 ravindra
35706 * ToolBar.cs: ToolBar should use the user specified button size, if
35707 there is any. Added a size_specified flag for the same.
35709 2004-10-26 03:33 ravindra
35711 * ColumnHeader.cs: Added some internal members and calculations for
35714 2004-10-26 03:32 ravindra
35716 * ListViewItem.cs: Calculations for ListViewItem.
35718 2004-10-26 03:31 ravindra
35720 * ListView.cs: Added some internal members and calculations for
35723 2004-10-22 13:31 jordi
35725 * MenuAPI.cs: speedup menus drawing
35727 2004-10-22 13:16 jackson
35729 * XplatUIX11.cs: Make sure to update exposed regions when adding an
35732 2004-10-22 11:49 jackson
35736 2004-10-22 11:41 jackson
35738 * Control.cs: Check to see if the window should have its background
35739 repainted by X when drawing.
35741 2004-10-22 11:31 jackson
35743 * XplatUIX11.cs: When invalidating areas only use XClearArea if
35744 clear is true, this way we do not get flicker from X repainting the
35747 2004-10-22 11:28 jackson
35749 * XEventQueue.cs: Queue properly
35751 2004-10-21 09:38 jackson
35753 * XEventQueue.cs: Fix access modifier
35755 2004-10-21 09:36 jackson
35757 * XEventQueue.cs: Don't loose messages
35759 2004-10-21 09:22 jackson
35761 * XEventQueue.cs: Don't loose messages
35763 2004-10-20 04:15 jordi
35765 * BootMode.cs: enum need it by SystemInfo
35767 2004-10-19 21:58 pbartok
35770 - Small sanity check
35772 2004-10-19 21:56 pbartok
35775 - Added private FormParentWindow class which acts as the container
35776 for our form and as the non-client area where menus are drawn
35777 - Added/Moved required tie-ins to Jordi's menus
35778 - Fixed/Implemented the FormStartPosition functionality
35780 2004-10-19 21:52 pbartok
35783 - Removed unneeded locals
35784 - Added code to all size and location properties to understand and
35785 deal with the parent container of Form
35787 2004-10-19 21:33 pbartok
35790 - Fixed to deal with new Form subclasses for menus
35792 2004-10-19 17:48 jackson
35794 * XEventQueue.cs: commit correct version of file
35796 2004-10-19 16:50 jackson
35798 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
35800 2004-10-19 16:15 jordi
35802 * MenuAPI.cs: MenuBarCalcSize returns the height
35804 2004-10-19 08:31 pbartok
35807 - Added missing call to PreProcessMessage before calling OnXXXKey
35810 2004-10-19 00:04 ravindra
35812 * ToolTip.cs: Fixed constructor.
35814 2004-10-18 09:31 jordi
35816 * MenuAPI.cs: menuitems in menubars do not have shortcuts
35818 2004-10-18 09:26 jordi
35820 * MenuItem.cs: fixes MenuItem class signature
35822 2004-10-18 08:56 jordi
35824 * MenuAPI.cs: prevents windows from showing in the taskbar
35826 2004-10-18 00:28 ravindra
35828 * ToolTip.cs: Suppressed a warning message.
35830 2004-10-18 00:27 ravindra
35832 * Control.cs: Default value of visible property must be true.
35834 2004-10-17 23:19 pbartok
35837 - Complete implementation
35839 2004-10-17 23:19 pbartok
35842 - Added EnableWindow method
35843 - Added SetModal stub
35844 - Added generation of WM_ACTIVATE message (still needs testing)
35845 - Added SetTopMost stub
35846 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
35848 2004-10-17 23:17 pbartok
35851 - Removed VirtualKeys to XplatUIStructs
35852 - Implemented SetTopMost method
35853 - Implemented EnableWindow method
35854 - Bugfix in ScreenToClient()
35855 - Bugfixes in ClientToScreen()
35857 2004-10-17 22:51 pbartok
35859 * XplatUIStructs.cs:
35860 - Added WS_EX styles to WindowStyles enumeration
35862 2004-10-17 22:50 pbartok
35864 * XplatUI.cs, XplatUIDriver.cs:
35865 - Added method for enabling/disabling windows
35866 - Added method for setting window modality
35867 - Added method for setting topmost window
35869 2004-10-17 22:49 pbartok
35871 * ThemeWin32Classic.cs:
35872 - Added ToolTip drawing code
35874 2004-10-17 22:49 pbartok
35877 - Added ToolTip abstracts
35879 2004-10-17 22:47 pbartok
35882 - Fixed Form.ControlCollection to handle owner relations
35883 - Added Owner/OwnedForms handling
35884 - Implemented Z-Ordering for owned forms
35885 - Removed unneeded private overload of ShowDialog
35886 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
35888 - Fixed Close(), had wrong default
35889 - Added firing of OnLoad event
35890 - Added some commented out debug code for Ownership handling
35892 2004-10-17 22:16 pbartok
35895 - Fixed/implemented flat list of controls
35897 2004-10-17 22:14 pbartok
35900 - Added code to simulate modal dialogs on Win32
35902 2004-10-17 16:11 jordi
35904 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
35907 2004-10-17 13:39 jordi
35909 * MenuAPI.cs: menu drawing fixes
35911 2004-10-15 09:10 ravindra
35913 * StructFormat.cs: General Enum.
35915 2004-10-15 09:09 ravindra
35917 * SizeGripStyle.cs: Enum for Form.
35919 2004-10-15 09:08 ravindra
35921 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
35922 in Theme for ListView.
35924 2004-10-15 09:06 ravindra
35926 * ColumnHeader.cs: Flushing some formatting changes.
35928 2004-10-15 09:05 ravindra
35930 * ListViewItem.cs: Implemented GetBounds method and fixed coding
35933 2004-10-15 09:03 ravindra
35935 * ListView.cs: Implemented Paint method and fixed coding style.
35937 2004-10-15 07:34 jordi
35939 * MenuAPI.cs: fix for X11
35941 2004-10-15 07:32 ravindra
35943 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
35944 - Renamed Paint() method to Draw() for clarity. Also, moved
35945 DrawImage() to OnPaint().
35947 2004-10-15 07:25 ravindra
35949 * CheckBox.cs, RadioButton.cs:
35950 - Removed Redraw (), we get it from ButtonBase.
35951 - Implemented Paint (), to do class specific painting.
35953 2004-10-15 07:16 ravindra
35956 - Redraw () is not virtual now.
35957 - Added an internal virtual method Paint (), so that
35958 derived classes can do their painting on their own.
35959 - Modified OnPaint () to call Paint ().
35961 2004-10-15 06:43 jordi
35963 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
35964 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
35966 2004-10-15 00:30 ravindra
35969 - MessageBox on windows does not have min/max buttons.
35970 This change in CreateParams fixes this on Windows. We
35971 still need to implement this windowstyle behavior in
35974 2004-10-14 05:14 ravindra
35977 - Changed Redraw () to do a Refresh () always.
35978 - Fixed the MouseMove event handling when mouse is pressed,
35979 ie drag event handling.
35980 - Replaced the usage of ToolBarButton.Pressed property to
35981 ToolBarButton.pressed internal variable.
35983 2004-10-14 05:10 ravindra
35985 * ToolBarButton.cs:
35986 - Added an internal member 'inside' to handle mouse move
35987 with mouse pressed ie mouse drag event.
35988 - Changed 'Pressed' property to return true only when
35989 'inside' and 'pressed' are both true.
35990 - Some coding style love.
35992 2004-10-14 00:17 ravindra
35994 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
35997 2004-10-14 00:15 ravindra
35999 * ButtonBase.cs: Redraw () related improvements.
36001 2004-10-14 00:14 ravindra
36003 * MessageBox.cs: Moved InitFormSize () out of Paint method and
36004 removed unnecessary calls to Button.Show () method.
36006 2004-10-13 17:50 pbartok
36010 - Removed destroying of window until we solve the problem of X
36011 destroying the window before us on shutdown
36013 2004-10-13 16:32 pbartok
36016 - Now Redraws on MouseUp for FlatStyle Flat and Popup
36018 2004-10-13 14:18 pbartok
36021 - Added code to destroy the X window
36023 2004-10-13 14:18 pbartok
36026 - Added code to destroy a window
36028 2004-10-13 14:12 pbartok
36031 - Added the Redraw on Resize that got dropped in the last rev
36033 2004-10-13 09:06 pbartok
36035 * ThemeWin32Classic.cs:
36036 - Path from John BouAntoun:
36037 * Fix check rendering (centre correctly for normal style, offset
36038 correctly for FlatStyle).
36039 * Fix border color usage (use backcolor) for FlatStyle.Popup
36040 * Use checkbox.Capture instead of checkbox.is_pressed when
36041 rendering flatstyle states.
36043 2004-10-12 21:48 pbartok
36045 * ThemeWin32Classic.cs:
36046 - Removed all occurences of SystemColors and replaced them with the
36047 matching theme color
36049 2004-10-12 21:41 pbartok
36051 * ThemeWin32Classic.cs:
36052 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36053 him using the function for flatstyle drawing
36054 - Changed functions to use the new version of CPDrawBorder3D
36056 2004-10-12 21:15 pbartok
36059 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36060 match MS documentation. They need to return defined colors if the
36061 passed color matches the configured control color. Thanks to John
36062 BouAntoun for pointing this out.
36064 2004-10-12 20:57 pbartok
36067 - Fix from John BouAntoun: Raise ForeColorChanged event when text
36070 2004-10-12 20:46 pbartok
36073 - Fix from John BouAntoun: Now properly sets the Appearance property
36075 2004-10-12 20:45 pbartok
36077 * ThemeWin32Classic.cs:
36078 - Fixes from John BouAntoun: now handles forecolors and backcolors
36079 for flatstyle rendered controls much better; It also fixes normal
36080 checkbox rendering when pushed or disabled.
36082 2004-10-08 02:50 jordi
36084 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36087 2004-10-07 08:56 jordi
36089 * ThemeWin32Classic.cs: Removes deletion of cached brushes
36091 2004-10-06 03:59 jordi
36093 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36094 XplatUIWin32.cs: removes warnings from compilation
36096 2004-10-05 12:23 jackson
36098 * RadioButton.cs: Fix ctor
36100 2004-10-05 11:10 pbartok
36103 - Partial implementation by Benjamin Dasnois
36105 2004-10-05 10:15 jackson
36107 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36110 2004-10-05 03:07 ravindra
36113 - Removed a private method, Draw ().
36114 - Fixed the ButtonDropDown event handling.
36115 - Fixed MouseMove event handling.
36117 2004-10-05 03:04 ravindra
36119 * ThemeWin32Classic.cs:
36120 - Added DrawListView method and ListViewDefaultSize property.
36121 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36122 - Changed DOS style CRLF to Unix format (dos2unix).
36124 2004-10-05 03:03 ravindra
36127 - Added DrawListView method and ListViewDefaultSize property.
36129 2004-10-05 02:42 ravindra
36131 * ToolBarButton.cs: Added an internal member dd_pressed to handle
36132 clicks on DropDown arrow.
36134 2004-10-04 22:56 jackson
36136 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36137 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36138 Control handle the buffers, derived classes should not have to
36139 CreateBuffers themselves.
36141 2004-10-04 21:20 jackson
36143 * StatusBar.cs: The control handles resizing the buffers now.
36145 2004-10-04 21:18 jackson
36147 * Control.cs: When resizing the buffers should be invalidated. This
36148 should be handled in Control not in derived classes.
36150 2004-10-04 14:45 jackson
36154 2004-10-04 02:14 pbartok
36156 * LeftRightAlignment.cs:
36159 2004-10-04 01:09 jordi
36161 * ThemeWin32Classic.cs: fixes right button position causing right
36162 button not showing on horizontal scrollbars
36164 2004-10-02 13:12 pbartok
36167 - Simplified the Invalidate method by using an X call instead of
36168 generating the expose ourselves
36169 - Added an expose when the window background is changed
36170 - Implemented ClientToScreen method
36172 2004-10-02 13:08 pbartok
36175 - Added Win32EnableWindow method (test for implementing modal
36177 - Added ClientToScreen method and imports
36179 2004-10-02 13:07 pbartok
36181 * XplatUI.cs, XplatUIDriver.cs:
36182 - Added ClientToScreen coordinate translation method
36184 2004-10-02 13:06 pbartok
36186 * KeyPressEventArgs.cs:
36187 - Fixed access level for constructor
36189 2004-10-02 13:06 pbartok
36192 - Changed access level for the window_collection hash table
36194 2004-10-02 13:05 pbartok
36197 - Added KeyPreview property
36198 - Added Menu property (still incomplete, pending Jordi's menu work)
36199 - Implemented ProcessCmdKey
36200 - Implemented ProcessDialogKey
36201 - Implemented ProcessKeyPreview
36203 2004-10-02 13:02 pbartok
36206 - Added private method to get the Control object from the window
36208 - Implemented ContextMenu property
36209 - Implemented PointToScreen
36210 - Implemented PreProcessMessage
36211 - Implemented IsInputChar
36212 - Implemented IsInputKey
36213 - Implemented ProcessCmdKey
36214 - Completed ProcessKeyEventArgs
36215 - Fixed message loop to call the proper chain of functions on key
36217 - Implemented ProcessDialogChar
36218 - Implemented ProcessDialogKey
36219 - Implemented ProcessKeyMessage
36220 - Implemented ProcessKeyPreview
36221 - Added RaiseDragEvent stub (MS internal method)
36222 - Added RaiseKeyEvent stub (MS internal method)
36223 - Added RaiseMouseEvent stub (MS Internal method)
36224 - Added RaisePaintEvent stub (MS Internal method)
36225 - Added ResetMouseEventArgs stub (MS Internal method)
36226 - Implemented RtlTranslateAlignment
36227 - Implemented RtlTranslateContent
36228 - Implemented RtlTranslateHorizontal
36229 - Implemented RtlTranslateLeftRight
36230 - Added generation of KeyPress event
36232 2004-10-02 05:57 ravindra
36234 * ListViewItem.cs: Added attributes.
36236 2004-10-02 05:32 ravindra
36238 * ListView.cs: Added attributes.
36240 2004-10-01 11:53 jackson
36242 * Form.cs: Implement the Close method so work on MessageBox can
36245 2004-09-30 14:06 pbartok
36250 2004-09-30 11:34 jackson
36252 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36254 2004-09-30 07:26 ravindra
36256 * ListViewItemConverter.cs: Converter for ListViewItem.
36258 2004-09-30 07:26 ravindra
36260 * SortOrder.cs: Enum for ListView control.
36262 2004-09-30 07:25 ravindra
36264 * ColumnHeader.cs: Supporting class for ListView control.
36266 2004-09-30 07:24 ravindra
36268 * ListView.cs, ListViewItem.cs: Initial implementation.
36270 2004-09-30 07:20 ravindra
36272 * ItemActivation.cs: Enum for ListView Control.
36274 2004-09-29 20:29 pbartok
36277 - Added lookup of pixel value for background color; tries to get a
36278 color 'close' to the requested color, it avoids having to create a
36279 colormap. Depending on the display this could mean the used color
36280 is slightly off the desired color. Might have to change it to a more
36281 resource intensive colormap approach, but it will work as a
36282 workaround to avoid red screens.
36284 2004-09-29 14:27 jackson
36286 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36288 2004-09-28 12:44 pbartok
36290 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36291 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36292 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36293 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36294 TrackBar.cs, VScrollBar.cs:
36295 - Streamlined Theme interfaces:
36296 * Each DrawXXX method for a control now is passed the object for
36297 the control to be drawn in order to allow accessing any state the
36298 theme might require
36300 * ControlPaint methods for the theme now have a CP prefix to avoid
36301 name clashes with the Draw methods for controls
36303 * Every control now retrieves it's DefaultSize from the current
36306 2004-09-28 12:17 jackson
36308 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36311 2004-09-24 14:57 jackson
36313 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36314 Gives us a nice little performance boost.
36316 2004-09-24 12:02 jackson
36318 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36319 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36320 Control and supporting classes. Initial checkin
36322 2004-09-23 13:08 jackson
36324 * Form.cs: Temp build fixage
36326 2004-09-23 01:39 ravindra
36328 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36329 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36330 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36331 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36332 EventHandlers needed by ListView Control.
36334 2004-09-22 14:12 pbartok
36336 * ScrollableControl.cs:
36337 - Implemented DockPadding property
36338 - Implemented AutoScroll property
36339 - Implemented AutoScrollMargin property
36340 - Implemented AutoScrollMinSize property
36341 - Implemented AutoScrollPosition property
36342 - Implemented DisplayRectangle property (still incomplete)
36343 - Implemented CreateParams property
36344 - Implemented HScroll property
36345 - Implemented VScroll property
36346 - Implemented OnVisibleChanged property
36348 2004-09-22 14:09 pbartok
36351 - Added Form.ControllCollection class
36352 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36353 RemoveOwnedForm (still incomplete, missing on-top and common
36354 minimize/maximize behaviour)
36355 - Added StartPosition property (still incomplete, does not use when
36357 - Added ShowDialog() methods (still incomplete, missing forcing the
36360 2004-09-22 14:05 pbartok
36363 - Added message loop for modal dialogs
36365 2004-09-22 14:02 pbartok
36368 - Fixed wrong types for events
36370 2004-09-22 14:00 pbartok
36372 * Shortcut.cs, FormWindowState.cs:
36373 - Fixed wrong values
36375 2004-09-22 12:01 jackson
36377 * Control.cs: Text is never null
36379 2004-09-20 22:14 pbartok
36382 - Fixed accessibility level for Idle handler
36384 2004-09-20 18:54 jackson
36386 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36387 XplatUIX11.cs: New message loop that uses poll so we don't get a
36390 2004-09-17 10:43 pbartok
36393 - Fixed behaviour of arrow buttons. Now properly behaves like
36394 Buttons (and like Microsoft's scrollbar arrow buttons)
36396 2004-09-17 10:14 pbartok
36399 - Added missing release of keyboard/mouse capture
36401 2004-09-17 06:18 jordi
36403 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36404 Theme.cs: Very early menu support
36406 2004-09-16 17:45 pbartok
36409 - Fixed sending a window to the front
36410 - Added overload for SetWindowPos to avoid casting
36412 2004-09-16 17:44 pbartok
36415 - Added SendToBack and BringToFront methods
36417 2004-09-16 07:00 ravindra
36419 * Copyright: Added Novell URL.
36421 2004-09-16 07:00 ravindra
36423 * ToolBar.cs: Invalidate should be done before redrawing.
36425 2004-09-15 21:19 ravindra
36427 * ColumnHeaderStyle.cs: Enum for ListView Control.
36429 2004-09-15 21:18 ravindra
36431 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36434 2004-09-13 18:26 jackson
36436 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36439 2004-09-13 18:13 jackson
36441 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36442 a second thread and post messages into the main threads message
36443 queue. This makes timing much more consistent. Both win2K and XP
36444 have a minimum timer value of 15 milliseconds, so we now do this
36447 2004-09-13 15:18 pbartok
36449 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36451 - Added Z-Ordering methods
36453 2004-09-13 10:56 pbartok
36456 - Fixed #region names
36457 - Moved properties and methods into their proper #regions
36459 2004-09-13 10:51 pbartok
36462 - Added Accept and CancelButton properties
36463 - Added ProcessDialogKey() method
36465 2004-09-13 08:18 pbartok
36467 * IWindowTarget.cs:
36470 2004-09-10 21:50 pbartok
36473 - Added DoDragDrop() [incomplete]
36474 - Properly implemented 'Visible' handling
36475 - Added SetVisibleCore()
36476 - Implemented FindChildAtPoint()
36477 - Implemented GetContainerControl()
36478 - Implemented Hide()
36480 2004-09-10 19:28 pbartok
36483 - Moved methods into their appropriate #regions
36484 - Reordered methods within regions alphabetically
36486 2004-09-10 18:57 pbartok
36488 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36489 - Added method to retrieve text from window
36491 2004-09-10 18:56 pbartok
36494 - Moved some internal functions into the internal region
36495 - Implemented FontHeight
36496 - Implemented RenderRightToLeft
36497 - Implemented ResizeRedraw
36498 - Implemented ShowFocusCues
36499 - Implemented ShowKeyboardCues
36500 - Implemented FromChildHandle
36501 - Implemented FromHandle
36502 - Implemented IsMnemonic
36503 - Implemented ReflectMessage
36504 - All public and protected Static Methods are now complete
36506 2004-09-10 16:54 pbartok
36509 - Implemented remaining missing public instance properties
36510 - Alphabetized some out of order properties
36512 2004-09-10 05:51 ravindra
36514 * PictureBox.cs: Added a check for null image.
36516 2004-09-10 00:59 jordi
36518 * GroupBox.cs: remove cvs tag
36520 2004-09-09 05:25 ravindra
36522 * ToolBar.cs: Make redraw accessible from ToolBarButton.
36524 2004-09-09 05:23 ravindra
36526 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36529 2004-09-09 02:28 pbartok
36531 * ThemeWin32Classic.cs:
36532 - Improve disabled string look
36534 2004-09-09 01:15 jordi
36536 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36539 2004-09-08 23:56 ravindra
36541 * ItemBoundsPortion.cs: It's enum, not a class!
36543 2004-09-08 23:47 ravindra
36545 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36548 2004-09-08 21:13 ravindra
36550 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36553 2004-09-08 21:03 ravindra
36555 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36558 2004-09-08 21:01 ravindra
36560 * ScrollableControl.cs: Removed unreachable code.
36562 2004-09-08 06:45 jordi
36564 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36566 2004-09-08 01:00 jackson
36568 * XplatUIX11.cs: Only run the timers when updating the message
36569 queue. This effectively gives X messages a higher priority then
36570 timer messages. Timers still need love though
36572 2004-09-07 14:01 jackson
36574 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36575 this for us and the handle is no longer valid.
36577 2004-09-07 13:59 jackson
36579 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36580 loop that manages to not crash. TODO: Add poll and cleanup timers
36582 2004-09-07 11:12 jordi
36584 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36586 2004-09-07 03:40 jordi
36588 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36589 fixes, methods, multiple links
36591 2004-09-06 06:55 jordi
36593 * Control.cs: Caches ClientRectangle rectangle value
36595 2004-09-05 02:03 jordi
36597 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36600 2004-09-04 11:10 jordi
36602 * Label.cs: Refresh when font changed
36604 2004-09-02 16:24 pbartok
36607 - Added sanity check to creation of double buffer bitmap
36609 2004-09-02 16:24 pbartok
36612 - Fixed selection of text color
36613 - Fixed handling of resize event; now properly recreates double
36615 - Added missing assignment of TextAlignment
36616 - Added proper default for TextAlignment
36618 2004-09-02 14:26 pbartok
36621 - Added missing RadioButton.RadioButtonAccessibleObject class
36623 2004-09-02 14:26 pbartok
36626 - Added missing Control.ControlAccessibleObject class
36627 - Started to implement Select()ion mechanisms, still very incomplete
36629 2004-09-02 14:25 pbartok
36631 * AccessibleObject.cs:
36632 - Added missing methods
36634 2004-09-02 14:23 pbartok
36636 * AccessibleNavigation.cs, AccessibleSelection.cs:
36639 2004-09-02 10:32 jordi
36641 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36642 pool for pens, brushes, and hatchbruses
36644 2004-09-01 15:30 jackson
36646 * StatusBar.cs: Fix typo
36648 2004-09-01 14:44 pbartok
36653 2004-09-01 14:39 pbartok
36655 * Button.cs, RadioButton.cs:
36656 - Functional initial check-in
36658 2004-09-01 14:01 pbartok
36661 - Added missing default
36662 - Added missing region mark
36664 2004-09-01 09:10 jordi
36666 * Label.cs: fixes method signatures, new methods, events, fixes
36669 2004-09-01 07:19 jordi
36671 * Control.cs: Init string variables with an empty object
36673 2004-09-01 04:20 jordi
36675 * Control.cs: fires OnFontChanged event
36677 2004-08-31 20:07 pbartok
36680 - Enabled display of strings
36682 2004-08-31 20:05 pbartok
36685 - Added (partial) implementation of DialogResult; rest needs to be
36686 implemented when the modal loop code is done
36688 2004-08-31 19:55 pbartok
36691 - Fixed to match the removal of the needs_redraw concept
36693 2004-08-31 19:55 pbartok
36696 - Removed the rather odd split between 'needs redraw' and redrawing
36697 - Now handles the events that require regeneration (ambient
36698 properties and size)
36700 2004-08-31 19:41 pbartok
36703 - Added firing of BackColorChanged event
36704 - Added TopLevelControl property
36705 - Fixed handling of WM_ERASEBKGRND message
36707 2004-08-31 12:49 pbartok
36713 2004-08-31 12:48 pbartok
36716 - Finished (famous last words)
36718 2004-08-31 04:35 jordi
36720 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
36721 scrolling bugs, adds new methods
36723 2004-08-30 14:42 pbartok
36726 - Implemented CheckBox drawing code
36728 2004-08-30 14:42 pbartok
36731 - Made Redraw() and CheckRedraw() virtual
36732 - Improved mouse up/down/move logic to properly track buttons
36734 2004-08-30 09:44 pbartok
36737 - Updated to fix broken build. Not complete yet.
36739 2004-08-30 09:28 pbartok
36744 2004-08-30 09:17 pbartok
36749 2004-08-27 16:12 ravindra
36751 * ToolBarButton.cs: Added TypeConverter attribute.
36753 2004-08-27 16:07 ravindra
36755 * ImageIndexConverter.cs: Implemented.
36757 2004-08-27 14:17 pbartok
36760 - Removed unneeded stack vars
36761 - First attempt to fix sizing issues when layout is suspended
36763 2004-08-25 15:35 jordi
36765 * ScrollBar.cs: more fixes to scrollbar
36767 2004-08-25 14:04 ravindra
36769 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
36770 Added the missing divider code and grip for ToolBar Control.
36772 2004-08-25 13:20 pbartok
36775 - Control now properly passes the ambient background color to child
36778 2004-08-25 13:20 jordi
36780 * ScrollBar.cs: small bug fix regarding bar position
36782 2004-08-25 12:33 pbartok
36785 - Now only calls SetTimer or KillTimer if the enabled state has
36788 2004-08-25 12:33 pbartok
36791 - Fixed timer handling, now seems to work
36792 - Improved error message for window creation
36794 2004-08-25 12:32 pbartok
36797 - Fixed generation of MouseUp message
36799 2004-08-25 12:29 jordi
36801 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
36802 and fixes for progressbar
36804 2004-08-24 18:43 ravindra
36806 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
36807 in ToolBar control.
36809 2004-08-24 17:15 pbartok
36813 - Added missing events
36816 2004-08-24 17:14 pbartok
36818 * StatusBar.cs, PictureBox.cs:
36819 - Now uses Control's CreateParams
36821 2004-08-24 16:36 pbartok
36824 - Fixed background color handling
36825 - Fixed sending of enter/leave events on a grab
36827 2004-08-24 16:35 pbartok
36830 - Refined definitions for CrossingEvent
36832 2004-08-24 12:37 jordi
36834 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
36835 formmating, methods signature, and adds missing events
36837 2004-08-24 12:24 jordi
36839 * Control.cs: fire OnEnabledChanged event
36841 2004-08-24 11:17 pbartok
36844 - Implemented SetTimer() and KillTimer()
36846 2004-08-24 11:16 pbartok
36849 - Now uses Remove instead of Add to kill the timer
36851 2004-08-24 10:16 jackson
36853 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
36854 picture boxes in the theme now. Draw picture box borders and obey
36857 2004-08-24 05:49 jackson
36859 * Timer.cs: Remove top secret debugging code
36861 2004-08-24 05:34 jackson
36863 * PictureBox.cs: Temp hack to make picture boxes draw their full
36866 2004-08-24 05:29 jackson
36868 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36869 XplatUIX11.cs: Move timers to the driver level. On X they are
36870 queued by the driver and checked on idle.
36872 2004-08-24 01:07 jackson
36874 * XplatUIX11.cs: Use a queue for async messages instead of passing
36875 them as ClientMessages since that was totally broken. Also simply
36876 check for events and return an idle message if none are found. This
36877 gives us an idle handler, and prevents deadlocking when no messages
36880 2004-08-23 18:19 ravindra
36882 * XplatUIWin32.cs: Removed the unwanted destructor.
36884 2004-08-23 17:27 pbartok
36887 - Finishing touches. Works now, just needs some optimizations.
36889 2004-08-23 16:53 jordi
36891 * ScrollBar.cs: small fix
36893 2004-08-23 16:45 pbartok
36896 - Removed debug output
36899 2004-08-23 16:43 jordi
36901 * ScrollBar.cs: [no log message]
36903 2004-08-23 16:10 pbartok
36906 - Fixed handling of WM_CLOSE message
36907 - Removed debug output
36909 2004-08-23 16:09 pbartok
36912 - Added handling of Idle event
36913 - Added handling of form closing
36914 - Fixed reporting of MessageLoop property
36915 - Removed some unneeded code, should provide a bit of a speedup
36917 2004-08-23 15:22 pbartok
36920 - Added InitLayout() method
36921 - Added code to properly perform layout when Anchor or Dock property
36923 - Changed 'interpretation' of ResumeLayout. MS seems to have a
36924 LAMESPEC, tried to do it in a way that makes sense
36926 2004-08-23 14:10 jordi
36928 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
36929 properties and methods
36931 2004-08-23 13:55 pbartok
36934 - Properly fixed Jordi's last fix
36935 - Now uses Cursor's Position property instead of calling XplatUI
36938 2004-08-23 13:44 jordi
36940 * PaintEventHandler.cs: Adding missing attribute
36942 2004-08-23 13:39 pbartok
36945 - Implemented Position property
36947 2004-08-23 13:39 pbartok
36949 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36950 - Added method to move mouse cursor
36952 2004-08-23 13:39 pbartok
36955 - Fixed setting of background color
36956 - Added method to move mouse cursor
36958 2004-08-23 13:16 jordi
36960 * Control.cs: avoids null exception
36962 2004-08-22 17:46 jackson
36964 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
36967 2004-08-22 17:40 jackson
36969 * XplatUIX11.cs: Add some missing locks
36971 2004-08-22 15:10 pbartok
36973 * Control.cs, Form.cs:
36974 - Removed OverlappedWindow style from Control, instead it's default
36976 - Made form windows OverlappedWindow by default
36978 2004-08-22 13:34 jackson
36980 * ScrollBar.cs: Update the position through the Value property so
36981 the OnValueChanged event is raised.
36983 2004-08-22 12:04 pbartok
36986 - Added Cursor.cs and UserControl.cs
36988 2004-08-22 12:03 pbartok
36991 - Started implementation, not usable yet
36993 2004-08-22 12:00 pbartok
36996 - Implemented UserControl (complete)
36998 2004-08-21 19:20 ravindra
37000 * ToolBar.cs: Correcting the formatting mess of VS.NET.
37002 2004-08-21 18:49 ravindra
37004 * ToolBar.cs: Probably this completes the missing attributes in
37007 2004-08-21 18:03 ravindra
37009 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37010 Fixed toolbar control signatures.
37012 2004-08-21 16:32 pbartok
37017 2004-08-21 16:30 pbartok
37022 2004-08-21 16:19 pbartok
37024 * Control.cs, Label.cs:
37027 2004-08-21 15:57 pbartok
37030 - Added loads of debug output for development
37031 - Fixed typo in method name
37033 2004-08-21 15:52 pbartok
37035 * ToolBarButtonClickEventArgs.cs:
37036 - Added missing base class
37038 2004-08-21 14:53 pbartok
37041 - Updated to match new GrabWindow signature
37043 2004-08-21 14:51 pbartok
37045 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37046 - Added method to get default display size
37048 2004-08-21 14:23 pbartok
37050 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37051 - Added method to query current grab state
37052 - Added argument to allow confining a grab to a window
37054 2004-08-21 14:22 pbartok
37057 - Added [Flags] attribute so that modifiers can be used in bitwise
37060 2004-08-21 14:21 pbartok
37062 * TrackBar.cs, ScrollBar.cs:
37063 - Replaced direct XplatUI calls with their Control counterpart
37065 2004-08-21 13:32 pbartok
37068 - Implemented Created property
37070 2004-08-21 13:28 pbartok
37073 - Implemented ContainsFocus
37075 2004-08-21 13:26 pbartok
37078 - Implemented CausesValidation
37080 2004-08-21 13:21 pbartok
37083 - Implemented CanFocus
37084 - Implemented CanSelect
37085 - Implemented Capture
37087 2004-08-21 12:35 pbartok
37090 - Fixed bug with Async message handling
37091 - Implemented getting the ModifierKeys
37093 2004-08-21 12:32 jackson
37095 * AsyncMethodResult.cs: Make sure we have the mutex before we
37096 release it. Fixes BeginInvoke on windows
37098 2004-08-21 11:31 pbartok
37100 * XplatUIWin32.cs, XplatUIX11.cs:
37101 - Drivers now return proper mouse state
37103 2004-08-21 10:54 jackson
37105 * Control.cs: Implement EndInvoke
37107 2004-08-21 10:48 jackson
37109 * Timer.cs: Remove unneeded finalizer
37111 2004-08-20 19:52 ravindra
37113 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37114 in mouse event handling in the ToolBar control.
37116 2004-08-20 19:50 ravindra
37118 * ImageList.cs: Changed draw method to use the arguments passed in
37121 2004-08-20 18:58 pbartok
37123 * XplatUIStructs.cs:
37124 - Added private message for async communication
37126 2004-08-20 17:38 ravindra
37128 * Control.cs: Made RightToLeft property virtual and removed a
37131 2004-08-20 14:39 jordi
37133 * ThemeGtk.cs: use style_attach
37135 2004-08-20 14:39 pbartok
37138 - Added jackson's Async code from X11 to Win32
37140 2004-08-20 14:09 pbartok
37143 - Added all new files
37145 2004-08-20 14:09 pbartok
37148 - Added call to set window background color
37150 2004-08-20 14:03 pbartok
37152 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37153 - Added method for setting the window background
37155 2004-08-20 14:02 pbartok
37158 - Added method for setting the background color
37159 - Added handling for erasing the window background
37161 2004-08-20 13:45 jordi
37163 * TrackBar.cs: fixes timer, new properties and methods
37165 2004-08-20 13:34 jackson
37167 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37170 2004-08-20 13:22 jackson
37172 * Timer.cs: Timer Tick events are now handed through Controls Async
37173 mechanism so the callbacks are executed in the same thread as X
37175 2004-08-20 13:19 jackson
37177 * XplatUIDriver.cs: Expose functionality to send async messages
37180 2004-08-20 13:18 jackson
37182 * Control.cs: Implement Begininvoke
37184 2004-08-20 13:14 jackson
37186 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37187 messages through the driver
37189 2004-08-20 13:12 jackson
37191 * XplatUIX11.cs: Lock before all X operations. Also added Async
37192 method functionality through XSendEvent
37194 2004-08-20 13:11 jackson
37196 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37197 This will screw up on 64 bit systems)
37199 2004-08-20 13:10 jackson
37201 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37202 Async messages through X/Win32
37204 2004-08-19 19:39 pbartok
37207 - Updated code to match new HandleData.DeviceContext type
37209 2004-08-19 19:38 pbartok
37212 - Made DeviceContext a generic object to allow usage from various
37214 - Added support for queueing Windows messages
37216 2004-08-19 19:37 pbartok
37219 - Added generation of MouseEnter, MouseLeave and MouseHover events
37220 - Added cleanup on EndPaint
37222 2004-08-19 19:17 pbartok
37225 - Added handling of WM_MOUSEHOVER
37226 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37229 2004-08-19 18:55 jordi
37231 * ThemeGtk.cs: fixes button order
37233 2004-08-19 18:12 jordi
37235 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37237 2004-08-19 17:09 pbartok
37240 - Added Right property
37241 - Added RightToLeft property
37243 2004-08-19 16:27 jordi
37245 * ThemeGtk.cs: experimental GTK theme support
37247 2004-08-19 16:26 jordi
37249 * ITheme.cs, Theme.cs: move themes from an interface to a class
37251 2004-08-19 16:25 jordi
37253 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37256 2004-08-19 16:04 pbartok
37259 - Added colormap basics
37260 - Added a way to re-initialize with a different display handle
37261 - Fixed setting of the window background color
37262 - Added various X11 imports related to colors and colormaps
37264 2004-08-19 15:51 pbartok
37267 - Removed packing hints (Paolo suggested this a while back)
37268 - fixed colormap type
37269 - Added default Atom types
37270 - Added Screen and color structs and enums
37272 2004-08-19 15:39 pbartok
37275 - Added missing Draw() method
37276 - Added missing RecreateHandle event
37278 2004-08-19 15:30 pbartok
37281 - Added handling of WM_CLOSE
37283 2004-08-18 13:16 jordi
37285 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37288 2004-08-18 09:56 jordi
37290 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37292 2004-08-17 15:31 ravindra
37294 * SWF.csproj: Updated project.
37296 2004-08-17 15:25 pbartok
37299 - Drawing improvement; don't call UpdateBounds if we are not visible
37300 (or have been minimized)
37302 2004-08-17 15:24 pbartok
37305 - Finished IsVisible
37306 - Added Win32GetWindowPlacement
37308 2004-08-17 15:08 jackson
37310 * Panel.cs: Initial checkin of the Panel
37312 2004-08-17 14:25 pbartok
37315 - Fixed broken handling of default window sizes
37317 2004-08-17 13:29 jackson
37319 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37320 has a large startup time.
37322 2004-08-17 10:25 jackson
37324 * HandleData.cs: union areas properly
37326 2004-08-17 10:12 jackson
37328 * HandleData.cs: union areas properly
37330 2004-08-16 20:00 ravindra
37332 * ToolBar.cs, ToolBarButton.cs: Added attributes.
37334 2004-08-16 18:48 ravindra
37336 * ToolBar.cs: Added attributes.
37338 2004-08-16 17:17 ravindra
37340 * SWF.csproj: Updated project.
37342 2004-08-16 17:16 jackson
37344 * XplatUIX11.cs: Check for more expose events before sending a
37345 WM_PAINT so they can all be grouped together. This makes dragging a
37346 window across another window redraw in a sane way.
37348 2004-08-16 15:47 pbartok
37351 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37352 support OnMouseEnter/Leave()
37353 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37356 2004-08-16 15:46 pbartok
37358 * XplatUIStructs.cs, XplatUIX11.cs:
37359 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37360 OnMouseEnter/Leave()
37362 2004-08-16 15:34 jackson
37364 * XplatUIX11.cs: Group multiple expose events in HandleData, make
37365 sure messages get the message field set to WM_NULL if they are not
37368 2004-08-16 15:24 jackson
37370 * HandleData.cs: HandleData is used for storing message information
37373 2004-08-15 17:23 ravindra
37375 * ColorDepth.cs: Added attribute.
37377 2004-08-15 17:23 ravindra
37379 * SWF.csproj: Updated project for ToolBar Control.
37381 2004-08-15 17:20 ravindra
37383 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37384 control and also dos2unix format.
37386 2004-08-15 17:13 ravindra
37388 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37389 ToolBarButtonClickEventArgs.cs,
37390 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37391 ToolBarTextAlign.cs: First Implementation of ToolBar control.
37393 2004-08-15 15:31 pbartok
37396 - First (mostly) working version
37398 2004-08-13 16:15 pbartok
37401 - Fixed Anchor default
37403 2004-08-13 15:43 pbartok
37406 - Changed GetCursorPos signature
37408 2004-08-13 15:42 pbartok
37410 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37411 - Changed signature for GetCursorPos
37413 2004-08-13 15:25 pbartok
37417 - Fixed resizing/exposure handling
37419 2004-08-13 15:22 jordi
37421 * ThemeWin32Classic.cs: removes redundant code and fixes issues
37424 2004-08-13 14:55 jordi
37426 * TrackBar.cs: change from wndproc to events
37428 2004-08-13 13:00 jordi
37430 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37431 XplatUIX11.cs: implements PointToClient (ScreenToClient)
37433 2004-08-13 12:53 pbartok
37436 - Changed GetWindowPos to also provide client area size
37437 - Fixed broken prototypes for several win32 functions
37439 2004-08-13 12:53 pbartok
37441 * XplatUI.cs, XplatUIDriver.cs:
37442 - Changed GetWindowPos to also provide client area size
37444 2004-08-13 12:52 pbartok
37447 - Added generation of WM_POSCHANGED
37448 - Changed GetWindowPos to also provide client area size
37450 2004-08-13 12:52 pbartok
37453 - Added Dispose() and destructor
37454 - Fixed resizing and bounds calculation
37456 - Added memory savings for invisible windows
37458 2004-08-13 12:46 jordi
37460 * TrackBar.cs: adds timer and grap window
37462 2004-08-13 10:25 jackson
37464 * Timer.cs: SWF Timer
37466 2004-08-12 16:59 pbartok
37468 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37469 - Implemented method to get current mouse position
37471 2004-08-12 14:29 jordi
37473 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37474 enhancement, fix mouse problems, highli thumb, etc
37476 2004-08-12 13:31 pbartok
37479 - Fixed Anchoring bugs
37481 2004-08-12 13:01 jackson
37483 * StatusBar.cs: Don't forget things
37485 2004-08-12 12:54 jackson
37487 * ThemeWin32Classic.cs: Handle owner draw status bars
37489 2004-08-12 12:54 jackson
37491 * StatusBar.cs: Implement missing properties, events, and methods.
37492 Handle mouse clicking
37494 2004-08-12 10:19 jackson
37496 * StatusBarPanelClickEventArgs.cs,
37497 StatusBarPanelClickEventHandler.cs: Classes for handling status
37498 bar panel click events
37500 2004-08-12 10:10 jackson
37502 * Control.cs: Add missing properties
37504 2004-08-12 09:46 pbartok
37506 * BindingsManagerBase.cs:
37507 - Name changed to BindingManagerBase.cs
37509 2004-08-12 09:25 jordi
37511 * ScrollableControl.cs: calls ctrlbase instead of exeception
37513 2004-08-11 16:28 pbartok
37515 * InputLanguageChangingEventArgs.cs:
37516 - Never check in before compiling. Fixes the last check-in
37518 2004-08-11 16:26 pbartok
37520 * InputLanguageChangingEventArgs.cs:
37521 - More signature fixes
37523 2004-08-11 16:20 pbartok
37525 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37526 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37527 ImageListStreamer.cs, InputLanguage.cs,
37528 InputLanguageChangedEventArgs.cs,
37529 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37530 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37531 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37532 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37535 2004-08-11 16:16 pbartok
37539 - Added .Net 1.1 method
37541 2004-08-11 15:25 pbartok
37544 - Fixed BindingManagerBase.cs filename
37546 2004-08-11 15:22 pbartok
37548 * BindingManagerBase.cs:
37549 - Was checked in with wrong filename
37551 2004-08-11 14:50 pbartok
37556 2004-08-11 13:41 jordi
37558 * XplatUIWin32.cs: Fixes ClientRect
37560 2004-08-11 13:19 pbartok
37562 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37564 - We had SetWindowPos and MoveWindow to set window positions and
37565 size, removed MoveWindow. We have GetWindowPos, so it made sense to
37566 keep SetWindowPos as matching counterpart
37567 - Added some X11 sanity checking
37569 2004-08-11 12:59 pbartok
37572 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37573 (It seems that SetBounds is just a front for SetBoundsCore and
37574 SetBoundsCore updates the underlying window system and
37575 UpdateBounds is responsible for updating the variables associated
37576 with the Control and sending the events)
37577 - Major cleanup of Size handling; we now have two sizes, client_size
37578 and bounds. Bounds defines the window with decorations, client_size
37581 2004-08-11 12:55 pbartok
37583 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37584 - Added method to calculate difference between decorated window and
37587 2004-08-11 12:54 pbartok
37590 - Forcing redraw on resize
37592 2004-08-11 11:43 pbartok
37595 - Removed disposing of the actual images when the list is disposed
37597 2004-08-11 09:13 pbartok
37600 - Now properly reparents windows
37602 2004-08-11 08:37 pbartok
37607 2004-08-11 07:47 pbartok
37610 - Rewrote the collection stuff. Might not be as fast now, not
37611 keeping the number of children around and accessible directly, but
37612 it's more straightforward
37614 2004-08-11 07:44 pbartok
37616 * AccessibleObject.cs:
37617 - Fixed to match ControlCollection rewrite
37619 2004-08-11 07:43 pbartok
37622 - Added missing creation of the collection list
37624 2004-08-10 20:08 jackson
37626 * StatusBar.cs: Get the paint message from WndProc
37628 2004-08-10 19:31 jackson
37630 * ThemeWin32Classic.cs: Create Brushes as little as possible
37632 2004-08-10 19:20 jackson
37634 * UICues.cs: Add Flags attribute
37636 2004-08-10 19:19 jackson
37638 * StatusBarPanel.cs: Signature cleanup
37640 2004-08-10 19:10 jackson
37642 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37643 Initial implementation of status bar item drawing
37645 2004-08-10 17:27 jordi
37647 * TrackBar.cs: add missing methods, properties, and restructure to
37650 2004-08-10 16:24 jackson
37652 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37653 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37656 2004-08-10 13:21 jordi
37658 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37659 enhancements and standarize on win colors defaults
37661 2004-08-10 12:52 jackson
37663 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37664 ThemeWin32Classic.cs: Implement DrawItem functionality
37666 2004-08-10 12:47 jordi
37668 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37670 2004-08-10 12:32 jordi
37672 * Control.cs: throw ontextchange event
37674 2004-08-10 11:43 pbartok
37677 - Added more to the still unfinished Dock/Anchor layout code
37679 2004-08-10 11:39 pbartok
37681 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37682 - Added GetWindowPos method
37684 2004-08-10 11:36 pbartok
37687 - Implemented several methods
37689 2004-08-10 09:47 jackson
37691 * TrackBar.cs: Allow control to handle buffering
37693 2004-08-10 09:41 jackson
37695 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
37697 2004-08-10 09:24 jackson
37699 * Label.cs, LinkLabel.cs: Let Control handle buffering.
37701 2004-08-10 09:09 jackson
37703 * StatusBar.cs: Let Control handle all the buffering.
37705 2004-08-10 09:08 jackson
37707 * Control.cs: Control will now handle the buffering code, so each
37708 control does not have to implement this.
37710 2004-08-10 08:34 jackson
37712 * XplatUIDriver.cs: Use default colors from the theme
37714 2004-08-09 17:12 pbartok
37717 - Fixed several bugs Ravindra pointed out
37719 2004-08-09 16:11 pbartok
37722 - Added incomplete dock layout code
37723 - Added support for mouse wheel
37725 2004-08-09 16:09 pbartok
37728 - Added handling for middle and right mousebutton
37729 - Added handling for mouse wheel
37730 - Added handling for key state and mouse state and position
37731 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
37734 2004-08-09 15:40 jackson
37736 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
37737 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
37740 2004-08-09 15:37 jackson
37742 * StatusBar.cs: Initial implementation of StatusBar
37744 2004-08-09 15:36 jackson
37746 * ITheme.cs: Add support for drawing status bar and getting status
37749 2004-08-09 15:35 pbartok
37754 2004-08-09 15:34 jackson
37756 * ThemeWin32Classic.cs: Add support for drawing status bar and get
37757 status bar item sizes
37759 2004-08-09 15:21 jackson
37761 * ThemeWin32Classic.cs: Use known colors for default control
37764 2004-08-09 15:12 jackson
37766 * ThemeWin32Classic.cs: Make the default font static, it is static
37767 in control so this doesn't change functionality and creating fonts
37770 2004-08-09 14:56 pbartok
37773 - Added GrabMode enum
37775 2004-08-09 14:55 pbartok
37777 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37778 - Removed Run method, was only required for initial development
37780 2004-08-09 14:51 pbartok
37782 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37783 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
37786 2004-08-09 13:48 pbartok
37789 - Fixed default sizing for child windows
37791 2004-08-09 12:56 pbartok
37794 - Added generation of WM_DESTROY message
37795 - Added handling of window manager induced shutdown
37797 2004-08-09 11:31 jackson
37799 * ThemeWin32Classic.cs: New names for control properties
37801 2004-08-09 11:25 jackson
37803 * Control.cs: Use new color names
37805 2004-08-09 11:02 jackson
37807 * XplatUI.cs: Get default window properties from the theme
37809 2004-08-09 11:01 jackson
37811 * ITheme.cs: The theme engine now controls default window
37814 2004-08-09 11:00 jackson
37816 * ThemeWin32Classic.cs: Add default window color properties
37818 2004-08-09 10:17 jackson
37820 * ThemeWin32Classic.cs: Use correct default back color
37822 2004-08-09 10:05 jackson
37824 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
37827 2004-08-09 09:56 jackson
37829 * XplatUI.cs: Remove defaults, these are handled by the theme now.
37831 2004-08-09 09:54 jackson
37833 * Control.cs: Get default properties from the theme.
37835 2004-08-09 09:53 jackson
37837 * ITheme.cs: Themes now handle default control properties
37839 2004-08-09 09:53 jackson
37841 * ThemeWin32Classic.cs: Themes now handle default control
37842 properties so coloring will be consistent
37844 2004-08-08 16:54 jordi
37846 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
37848 2004-08-08 15:08 jordi
37850 * XplatUIX11.cs: fixes keyboard crash
37852 2004-08-08 13:47 jordi
37854 * Label.cs: add cvs header info
37856 2004-08-08 12:09 jackson
37858 * ThemeWin32Classic.cs: Add pen_buttonface
37860 2004-08-08 11:52 jordi
37862 * Label.cs, LinkLabel.cs: [no log message]
37864 2004-08-08 11:34 jordi
37866 * ThemeWin32Classic.cs: Use Windows Standard Colours
37868 2004-08-07 17:32 jordi
37870 * TrackBar.cs: throw exceptions of invalid enums values
37872 2004-08-07 17:31 jordi
37874 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
37877 2004-08-07 16:56 jackson
37879 * HorizontalAlignment.cs: Initial checkin
37881 2004-08-07 13:16 jordi
37883 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
37886 2004-08-07 13:05 jordi
37888 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
37889 GetSysColor defines
37891 2004-08-06 18:01 pbartok
37893 * ThemeWin32Classic.cs:
37894 - Fixed some rounding issues with float/int
37896 2004-08-06 18:00 jackson
37898 * DockStyle.cs, AnchorStyles.cs:
37900 Add flags and serializable attributes.
37902 2004-08-06 17:46 pbartok
37905 - Implemented GetParent
37907 2004-08-06 17:18 pbartok
37910 - Fixed some rounding issues with float/int
37912 2004-08-06 17:17 pbartok
37914 * X11Structs.cs, XplatUIX11.cs:
37915 - Fixed Refresh and Invalidate
37917 2004-08-06 15:30 pbartok
37919 * Control.cs, X11Structs.cs, XplatUIX11.cs:
37920 - Fixed recursive loop when resizing
37921 - Improved/fixed redrawing on expose messages
37923 2004-08-06 09:53 jordi
37925 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
37926 keyboard navigation
37928 2004-08-06 08:02 pbartok
37930 * X11Structs.cs, XplatUIX11.cs:
37931 - Fixed reparenting
37932 - Fixed window border creation
37934 2004-08-05 15:38 pbartok
37937 - Attempted fix for reparenting problems
37939 2004-08-04 15:14 pbartok
37942 - Fixed Invalidation bug (calculated wrong client area)
37943 - Added ClientSize setter
37945 2004-08-04 15:13 pbartok
37948 - Added AutoScale properties
37950 2004-08-04 15:13 pbartok
37953 - Added latest files
37955 2004-08-04 14:11 pbartok
37957 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37959 - Added Invalidate handling
37961 2004-08-03 17:09 jordi
37963 * XplatUIDriver.cs: fixes spelling mistake
37965 2004-07-27 09:53 jordi
37967 * TrackBar.cs: fixes trackbar events, def classname, methods
37970 2004-07-27 09:29 jordi
37972 * ScrollBar.cs: fixes scrollbar events
37974 2004-07-27 04:38 jordi
37976 * Control.cs: changes to be able to run winforms samples
37978 2004-07-26 11:42 jordi
37980 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
37981 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
37983 2004-07-26 05:41 jordi
37985 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
37986 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
37989 2004-07-22 09:22 jordi
37991 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
37992 check link overlapping, implement events, and fixes
37994 2004-07-21 10:28 jordi
37996 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
37998 2004-07-21 10:19 jordi
38000 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38001 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38002 LinkLabelLinkClickedEventArgs.cs,
38003 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38004 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38007 2004-07-19 13:09 jordi
38009 * Control.cs, Label.cs: label control re-written: added missing
38010 functionlity, events, and properties
38012 2004-07-19 10:49 jordi
38014 * Control.cs: fixes SetBounds logic
38016 2004-07-19 01:29 jordi
38018 * Control.cs: Call RefreshWindow only if the window has created
38020 2004-07-15 14:05 pbartok
38022 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38023 - Implemented ImageList and ImageList.ImageCollection classes
38024 - Added ColorDepth enumeration
38025 - Updated SWF VS.Net project
38027 2004-07-15 11:06 jordi
38029 * XplatUIStructs.cs: added MsgButons enum
38031 2004-07-15 11:03 jordi
38033 * Control.cs: added basic mouse handeling events
38035 2004-07-15 03:38 jordi
38037 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38038 Vertical TrackBar control implementation
38040 2004-07-13 09:33 jordi
38042 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38044 2004-07-13 09:31 jordi
38046 * Control.cs, Form.cs: commit: new properties and fixes form size
38049 2004-07-09 14:13 miguel
38051 * ProgressBar.cs: Spelling
38053 2004-07-09 11:25 pbartok
38056 - Removed usage of Rectangle for drawing. Miguel pointed out it's
38059 2004-07-09 11:17 miguel
38061 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
38063 * ProgressBar.cs: Fixed spelling for `block'
38065 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38068 Avoid using the += on rect.X, that exposed a bug in the compiler.
38070 2004-07-08 23:21 pbartok
38072 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38073 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38074 BaseCollection.cs, Binding.cs, BindingContext.cs,
38075 BindingMemberInfo.cs, BindingsCollection.cs,
38076 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38077 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38078 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38079 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38080 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38081 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38082 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38083 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38084 FrameStyle.cs, GiveFeedbackEventArgs.cs,
38085 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38086 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38087 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38088 InputLanguageChangedEventArgs.cs,
38089 InputLanguageChangedEventHandler.cs,
38090 InputLanguageChangingEventArgs.cs,
38091 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38092 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38093 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38094 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38095 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38096 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38097 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38098 QueryAccessibilityHelpEventArgs.cs,
38099 QueryAccessibilityHelpEventHandler.cs,
38100 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38101 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38102 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38103 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38104 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38105 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38106 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38107 XplatUIX11.cs, lang.cs: