1 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * RichTextBox.cs: When saving the contents as a plain text, don't add
4 a new line for every Line structure, since the data in Document
5 already contains the new line characters. This avoids duplicated new
6 lines using the Save methods.
9 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
11 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
12 framework. Fixes bug #457678.
14 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
16 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
17 where datasource is null.
18 [Fixes exception reported in bug 441240]
20 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
22 * DataGridView.cs: EndEdit validation fixes.
24 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
26 * DataGridView.cs: This is the cool patch that adds support for
27 actually updating the data in the databinding backend after editing.
28 With bonus firing and handling the DataError event.
30 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
32 * Line.cs: When calculating the text tags's Shift value, store it as
33 pixels instead of points. This way we can actually handle different
34 fonts in the same RichTextBox, as well as the right size of the caret.
35 Fixes part of #351938.
37 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
39 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
40 casted to CheckState causing InvalidCastExceptions.
42 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
44 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
45 to not depend on the item being clicked.
47 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
49 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
50 longer throws a NotImplementedException.
52 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
54 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
55 IDataGridViewEditingControl for editing.
57 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
59 * DataGridViewComboBoxCell.cs: Implement data binding support.
61 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
63 * DataGridView.cs: Use the CurrencyManager to update the data source
64 binding position instead of casting the data sourcde to BindingSource.
65 This enables position updating for other type of data sources.
67 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
69 * ComboBox.cs: Update the SelectedIndex before updating the Text
70 in OnDisplayMemberChanged.
72 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
74 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
77 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
79 * DataGridView.cs: Sorting fixes:
80 - Be strict when sorting is enabled.
81 - If there is a data source delegate the sorting request.
83 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
85 * Binding.cs: When converting the data also try with the destination
86 type typeconverter. This indirectly adds support for Nullable types
87 in our databinding layer.
89 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
91 * DataGridView.cs: When cell editing is finished focus back the
92 DataGridView. Fixes keyboard navigation post-editing.
94 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
96 * DataGridView.cs: Fix the cell editing by delaying the currentCell
97 setting to after EndEdit is called for the old cell.
99 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
101 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
103 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
105 * XplatUIX11.cs: Send WM_HELP only to the focused window.
107 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
109 * CurrencyManager.cs: Fix exceptions when resetting the data source
110 for the same time (e.g. in ComboBox):
111 - Do not set the list position if we are still transferring data
112 - When resetting the list firstly push the data then update the
114 * Binding.cs: Check BindingManager.Position == -1 instead of
115 BindingManager.Current == null in order to avoid unexpected
118 2008-12-05 Brad Taylor <brad@getcoded.net>
120 * MonthCalendar.cs: Add UIA specific events so that we can know when
121 the selection changes, and when MaxSelectedCount changes.
123 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
125 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
128 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
130 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
131 to the control being drawn for the first time by:
132 - Implement DisplayedRowsCount to not rely on the control being
133 already painted. Also added support for the partial row flag.
134 - Fix scrolling to take into account partial rows and scroll to
138 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
140 * DataGridView.cs: Do not reset the CurrentCell when the handle is
141 created if the user has already set it.
143 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
145 * DataGridView.cs: Fix CurrentCell to actually select the cell.
147 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
149 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
150 text and then let the underneath users of IDataObject interpret and
154 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
156 * DataGridView.cs: Fix my previous commit to actually update what it
159 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
161 * DataGridView.cs: Ensure that when a row is removed the all the
162 current row/column/cell get updated. Fixes multiple exceptions.
164 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
166 * DataGridView.cs: Fix scrolling to the current cell when key navigation
170 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
172 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
173 * DataGridViewCell.cs: Set the cell as selected prior to setting the
175 [Fixes issue 1 in bug #443560]
177 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
179 * DataGridView.cs: Invalidate after the current row/column seletion
183 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
185 * DataGridView.cs: Refresh the data if the data list is reset, etc.
187 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
189 * DataGridView.cs: Handle datasource state changes:
190 - IBindingList - list changes
191 - BindingSource - list changed and datasource changes
193 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
195 * DataGridView.cs: Select the first cell when databound.
196 Visually select when CurrentCell is set.
198 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
200 * DataGridView.cs: Set the current cell before raising CellClick.
202 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
204 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
205 CellLeave events as this is already done in SetCurrentCellAddressCore.
207 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
209 * DataGridView.cs: Set the minimum size for the columns to be the
210 width of their header, so that the columns don't get squashed
213 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
215 * DataGridView.cs: After the data is bound PerformLayout, so that
216 the columns get autosized.
218 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
220 * DataGridView.cs: Move all currentCell setting code into
221 one central place - SetCurrentCellAddressCore. That way the
222 current cell is properly updated when programatically set.
223 Fire RowEnter/Leave events.
225 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
227 * DataGridView.cs: Update the CurrencyManager.Position, so that
228 when a BindingSource is used BindingSource.Current will be correct.
230 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
232 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
233 - No caption text is drawn because Color.Empty is used.
234 - Fix top and height off by 1.
236 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
238 * DataGridViewRow.cs: Implement DataBoundItem.
240 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
242 * BindingSource.cs: Return null for Current if there is no data present.
244 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
246 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
247 menus using the arrow keys. Also when handling the left arrow key, don't
248 assign the current menu to the parent one, if the parent is null.
251 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
253 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
256 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
259 * ScrollableControl.cs: Simplify the code to manually set the size of
260 the thum area, avoiding duplication of code, and also preserving the
261 right value for different code paths - this can happen when size
262 changes are made to the scrollbar after setting LargeChange, Maximum
263 or related properties for the ScrollBar.
265 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
267 * ScrollableControl.cs: When scrolling, don't invalidate the entire
268 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
269 what .Net does: copy the visible area, and only invalidate the part of
270 the area that wasn't visible before scrolling.
273 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
275 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
276 can clear ourselves when it is raised, we don't have a newrowindex
277 if we don't have any columns.
278 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
279 re-index after each delete so the NewRow will have the correct index.
282 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
284 * Form.cs: Don't change min/max size if it is empty.
287 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
290 * ScrollableControl.cs: When the manual thumb size is used, the
291 maximum allowed value should depend on that thumb size, instead of
292 LargeChange (using the maximum - LargeChange + 1 value). But
293 LargeChange should be used normally when incrementing/decrementing.
294 Fixes the remaining part of #441546.
296 2008-11-23 Andreia Gaita <avidigal@novell.com>
298 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
299 until an about:blank has been loaded (according to spec). Fix
300 ScrollbarsEnabled to set when a document is loaded (since we use js
301 for it). Fix url so it reflects the current loading document and not
302 the previous one. Send StatusChanged events.
304 2008-11-23 Andreia Gaita <avidigal@novell.com>
306 * Application.cs: If a message comes in for an embedded control
307 (like webbrowser) when we're capturing the keyboard, release the
308 capture and continue.
311 2008-11-22 Andreia Gaita <avidigal@novell.com>
313 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
315 2008-11-21 Andreia Gaita <avidigal@novell.com>
317 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
319 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
322 * ScrollableControl.cs: Set manually the thumb size for the
323 ScrollableControl scrollbars, so any further changes to the underneath
324 scrollbars respect the original size.
325 Fixes part of #441546.
327 2008-11-21 Geoff Norton <gnorton@novell.com>
329 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
330 PlatformID.MacOSX now exists.
332 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
334 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
335 Having something internal abstract isn't very nice for people who want
336 to inherit from this class.
338 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
340 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
341 invalid value. Just return null for the Image, and use the ImageList's
342 ImageSize for calculations.
344 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
346 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
347 through DroppedDown so the proper events get called and state gets reset.
350 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
352 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
353 the collection is modified.
355 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
357 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
358 aren't always correct, and fixing them for every case is not worth the
359 negligible benefit they provide.
362 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
364 * DataGridView.cs: We should never add actual cells to the RowTemplate.
365 Internally, use RowTemplateFull to give us a new row with cells.
366 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
367 * DataGridViewRowCollection.cs: Use RowTemplateFull.
369 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
371 * XplatUIX11.cs: Forms without borders should be able to change its
372 size - specially they should be able to be maximized, adding the
373 respective MotifFunctions.Resize bit when setting window properties as
374 well as *not* marking the Hwnd as size fixed.
377 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
379 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
383 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
385 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
386 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
387 AutoSizeColumnModeChanged.
390 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
392 * DataGridViewRowCollection.cs: Guard against the user deleting the
393 NewRow. Add an internal delete so we can still delete it.
394 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
397 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
399 * TextControl.cs: Add some order of operation to our math so
400 we don't end up with a negative height for our invalidate rect.
403 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
405 * Control.cs: When our enabled changes, notify our implicit children
406 controls as well as our regular controls.
409 2008-11-08 Andreia Gaita <shana@jitted.com>
411 * HtmlElement.cs: Small code cleanup
413 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
415 * BindingNavigator.cs: MoveFirstItem should be enabled only if
416 position is larger than 0, not only different than 0. Also Position
417 and Count items should be enabled if the BindingSource is non null and
421 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
423 * TabControl.cs: Don't raise SelectedIndexChanged until we have
424 actually modified the tab collection, so TabCount will be correct.
427 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
429 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
430 NonSerialized to fix serialization of ListViewItem.
432 2008-11-04 Mike Gorse <mgorse@novell.com>
434 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
435 focus change, and always call in SetFocusedItem.
436 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
438 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
440 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
441 mode. Based on a patch by John Mortlock.
444 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
446 * ListView.cs: Use the UsingGroups property where needed, instead of
447 duplicating the check in other places.
449 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
451 * ListView.cs: When calculating layout, refresh the count of items
452 belonging to the default item, insteas of doing it only one time. This
453 was already working fine for icon views, not not for details.
456 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
460 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
461 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
465 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
467 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
469 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
471 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
472 #441280, patch by Mike Gorse <mgorse@novell.com>.
474 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
476 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
477 if there is no scrollbar.
480 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
482 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
483 patch from Andy Hume that fixes many issues with ProgressBar.
486 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
488 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
491 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
495 * NumericUpDown.cs: Internal events added to UpDownBase:
496 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
499 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
501 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
503 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
506 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
507 Application.EnableVisualStyles hasn't been called.
508 Fixes part of #437933.
510 2008-10-31 Andreia Gaita <shana@jitted.com>
512 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
513 if the container is not focused already, we need to specifically set
514 focus to the first available control, or to the form itself if there
517 2008-10-31 Andreia Gaita <shana@jitted.com>
519 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
520 WM_ACTIVATE have been processed before returning, so it is guaranteed that
521 once it returns and the form is visible, it is actually on the screen on X11
523 * ContainerControl.cs: Only send focus to the control if the top container
524 is already focused. This is so that, when a form is first shown, all
525 the enter/leave events are done first before any focus stuff comes in.
526 If a control has no top container, there's an extra check on Control.Focus
527 to make sure it gets focused in this particular case.
529 * Control.cs: Force focus if the control is active but did not receive
530 focus after being set as active.
532 * MdiClient.cs: Dispose the form when closing
534 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
535 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
536 if the window is a top Form.
537 Reset all hwnd properties when the window has been destroyed so that
538 we don't land in any codepaths that might try to do something with it.
539 Added a bunch of debugging messages. If TRACE is defined, all X calls
540 are logged through DebugHelper. Set a few missing EntryPoint attributes.
542 2008-10-29 Mario Carrion <mcarrion@novell.com>
544 * ListViewItem.cs: Control enabled to support Accessibility:
545 - Internal events: UIATextChanged, UIASubItemTextChanged.
546 - Internal event UIATextChanged in ListViewSubItem that triggers
547 UIASubItemTextChanged.
548 * ListView.cs: Control enabled to support Accessibility:
549 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
550 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
551 - Internal event UIACollectionChanged in ColumnHeaderCollection.
552 - Internal event UIACollectionChanged in ListViewItemCollection.
553 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
554 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
555 - Internal methods: UIAGetHeaderBounds.
557 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
559 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
560 the event from the respective scrollbars.
563 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
565 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
566 textbox to know whether any navigation key will be handled or not. If
567 not, don't pass the message to the textbox, and use it here instead.
568 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
569 is more precise- than the previous AutoCompleteMatches one.
570 This should the keyboard navigation in ComboBox when using auto
573 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
575 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
578 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
580 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
581 overridden methods will get called.
582 * ToolStripItem.cs: Raise Click before MouseUp.
583 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
584 the item's location into account.
587 2008-10-24 Neville Gao <nevillegao@gmail.com>
589 * NumericUpDown.cs: Control enabled to support accessibility.
592 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
594 * TextBox.cs: Check that we actually have items no navigate, select
595 text when pressing enter, as well as handle direction keys only if
596 mode is different to Suggest or the suggest listbox is visible.
598 2008-10-23 Andreia Gaita <shana@jitted.com>
600 * WebBrowser.cs: Use the new ContentStream property to retrieve
601 a stream encoded from the document content
603 2008-10-23 Andreia Gaita <shana@jitted.com>
607 HtmlWindow.cs: Fix GetHashcode for null objects
609 2008-10-22 Andreia Gaita <shana@jitted.com>
613 HtmlWindow.cs: Fix equality operators (fixes #428173)
615 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
617 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
618 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
621 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
623 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
624 same item with the mouse as was already selected.
627 2008-10-21 Brad Taylor <brad@getcoded.net>
629 * TextControl.cs: Break out code to get the visible range into
630 GetVisibleLineIndexes to be used in UIA code.
634 * TextBoxBase.cs: Add comments indicating that the method or property
635 is used via reflection from UIA code.
637 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
639 * ListViewItem.cs: Match .net serialization.
640 Fixes remaining part of #417520.
642 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
644 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
646 2008-10-20 Mario Carrion <mcarrion@novell.com>
648 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
649 added: UIAToolTipRectangle.
651 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
653 * ListViewItem.cs: When deserializing enumerate over the data, instead
654 of accessing the data directly. This way we handle much better the
655 cases were we lack information.
658 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
660 * ListView.cs: When removing an item from a main ListView.Items
661 collection (and not a ListViewGroupCollection.Items one), remove it
662 also from the group, as .net does. Patch by Mario Carrion (mario at
666 2008-10-19 Andreia Gaita <avidigal@novell.com>
668 * Form.cs: Forms that get closed without a handle being created are
669 disposed in 2.0. Fixes failing FormTest.FormClose and
670 FormTest.FormClose2 on windows.
672 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
674 * ListView.cs: If both scrollbars are visible, the vertical one
675 shouldn't extend too far down.
678 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
680 * DataGridView.cs: Add the ability to resize columns and rows with
681 the mouse. Also support double-clicking to autoresize.
682 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
683 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
684 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
685 isn't shown on autoresize.
688 2008-10-17 Mario Carrion <mcarrion@novell.com>
690 * ComboBox.cs: Remove UIAListbox.
692 2008-10-17 Mario Carrion <mcarrion@novell.com>
694 * ComboBox.cs, ListBox.cs: Using added/removed item in
695 OnUIACollectionChangedEvent instead of index.
697 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
699 * ComboBox.cs: When we are sorting the items, if the item's type
700 doesn't support IComparer, use a default one that compares based
701 off the item's visible text.
704 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
706 * ColumnHeader.cs: Invalidate ListView.header_control when setting
708 * ThemeWin32Classic.cs: When drawing the column header, draw a image
709 for the column if available, and make the required adjustments to the
713 2008-10-17 Neville Gao <nevillegao@gmail.com>
715 * StatusBarPanel.cs: Control enabled to support accessibility.
718 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
720 * DataGridView.cs: When a user begins an edit in the 'new row',
721 make that a real row, and add a new 'new row'. If the user
722 cancels the edit, remove the new 'new row' and reset everything.
723 Also, ensure UserAddedRow and UserRemovedRow events are raised.
726 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
728 * TableLayoutSettings.cs: Fix NREs when deserializing and
729 panel is not yet set.
732 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
734 * DataGridView.cs: Invalidate after deleting a row.
736 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
738 * DataGridView.cs: Handle Enter and Escape keys.
739 - Move call to EndEdit to MoveCurrentCell.
740 - Remove call to EndEdit from navigation key routines.
741 - Fire CellLeave and CellEnter.
743 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
745 * DataGridViewCell.cs: Some fixes to the new cell border
748 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
750 * ThemeEngine.cs: Enable visualstyles rendering by default
751 (on platforms that support it).
753 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
755 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
756 MainForm.OnLoad has completed unless DoEvents is forced.
759 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
761 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
763 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
765 * Control.cs: Make our implementation of DrawToBitmap better
766 match WmPaint. [Fixes bug #435579]
768 2008-10-14 Andreia Gaita <avidigal@novell.com>
770 * WebBrowser.cs: Use DocumentElement as the document's root for the
771 whole content. Should fix DocumentText and DocumentStream problems.
773 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
775 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
776 these will get called in DGV.OnCollectionChanged. Make sure
777 OnCollectionChanged always gets called.
778 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
779 from every row. Call this in OnCollectionChanged.
782 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
784 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
785 textbox if auto complete is used, since we need to navigate over it.
786 And in this case don't pass this messages to the base impl. Also hide
787 the auto complete list box when displaying the drop down listbox.
788 * TextBox.cs: new internal members to expose some of the auto complete
789 functionality to combobox.
791 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
793 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
794 MainForm.OnLoad has completed.
797 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
799 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
800 Append support to this controls. We need it to apply new patches.
802 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
804 * Control.cs: When updating z order in child controls, send to back
805 the implicit controls. Also, do it explicitly, instead of making
806 GetAllControls return the implicit controls in a specific order, and
807 thus avoid depending on that, which could change in the future.
810 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
812 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
813 call to StartDrag, since we must fire DragDrop/DragLeave *before*
814 that, as .net does - instead of firing DragDrop/DragLeave *after* the
815 call to Control.DoDragDrop has completed. This is needed since at the
816 point of returning, we have sent related dnd ClientMessages, but we
817 need to wait for them to fire the wmf respective ones.
820 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
822 * LinkLabel.cs: Recreate link pieces when change Padding.
824 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
826 * LinkLabel.cs: Take Padding into account when recreate link pieces.
829 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
831 * Control.cs: Implement internal property PaddingClientRectangle, it will be
832 useful for drawing controls that must take care about Padding property.
834 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
836 * BindingSource.cs: Make item_type internal so we can access it in DGV.
837 * DataGridView.cs: Add support for autogenerating columns from a
840 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
842 * DataGridView.cs: Comment out an exception that is getting thrown
845 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
847 * DataGridView.cs: Always rebind to the datasource, as things may
848 have changed in it that we aren't capturing yet.
850 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
852 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
853 drawing mode. If we are top aligned, give ourselves some top padding.
855 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
857 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
858 events on the control under the mouse pointer, instead of firing them
859 on the window generating the dnd operation. To achieve this re-use the
860 code used to get the window under the pointer when getting MouseMove
864 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
866 * X11Dnd.cs: Don't check that that the window sending the dnd events
867 is the owner of the selection. Although Gtk+ sets it that way, it's
868 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
869 So, just as Gtk+ does, we set our window sending the dnd events as the
870 owner of the selection, but don't check it when receiving them. This
871 should fix interoperability with Qt/Kde.
874 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
876 * DataGridView.cs: Make sure we take the vertical scrollbar into
877 account when autosizing columns.
879 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
881 * DataGridView.cs: Handle sorting datetimes.
883 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
885 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
886 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
887 compilation warnings.
889 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
891 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
892 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
893 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
894 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
895 compilation warnings.
897 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
899 * DataGridView.cs, DataGridViewCell.cs,
900 DataGridViewCellValidatingEventArgs.cs,
901 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
902 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
903 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
905 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
907 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
908 Cleanup compilation warnings.
910 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
912 * XplatUIWin32.cs: Cleanup compilation warnings.
914 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
916 * PropertyGrid.cs: Cleanup compilation warnings.
918 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
920 * DataGridViewRow.cs: Only clear the row background if we
921 are going to paint a new background.
923 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
925 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
926 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
927 use PaintBorder instead.
929 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
931 * DataGridView.cs: When CellBorderStyle is set, update the
932 AdvancedCellBorderStyle to match.
934 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
936 * DataGridViewCell.cs: Add helper methods to convert Alignment
937 to TextFormatFlags and align rectangles.
938 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
939 * DataGridViewImageCell.cs: Use Alignment when painting the image.
941 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
943 * ToolTip.cs: Display tooltips only for controls on the active form.
946 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
948 * DataGridView.cs: Make OnCellValueNeeded internal.
949 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
950 user can supply their own value if they choose.
952 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
954 * DataGridViewColumnHeaderCell.cs: Create a new style object
955 so the DefaultCellStyle doesn't get changed.
957 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
959 * ToolStripItem.cs: Check to make sure the owner is actually
960 changing in InternalOwner before doing any work. Fixes some
963 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
965 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
966 * DataGridView.cs: Use a column header's inherited style instead
967 of just using the default.
969 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
971 * SplitContainer.cs: Raise SplitterMoved when the splitter is
974 2008-10-01 Mario Carrion <mcarrion@novell.com>
976 * ScrollBar.cs: Internal property added: UIAThumbPosition.
978 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
980 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
982 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
984 * ToolStripItem.cs: When the user sets Owner, we need to remove
985 it from its previous owner and then add it to the new owner's
986 item collection. Also, create InternalOwner, so we can set the owner
987 that doesn't do this new stuff.
988 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
990 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
992 * ToolStripItem.cs: When our parent changes, recalculate our text
993 size, since we may be getting our Font from our parent. When our
994 owner's Font changes, recalculate ourselves as we may be using
997 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
999 * MenuAPI.cs: Select the first option of a popup when opening the popup via
1000 return key. [Fixes bug #413792].
1002 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1004 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
1005 ambient properties. (Get their value from their parents if
1006 values haven't been set.)
1008 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1010 * ToolStripSystemRenderer.cs: Call overridden methods' bases
1011 after our logic, so users can do painting by handling the events.
1012 Currently, we draw over any user painting.
1014 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
1016 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
1017 after our logic, so users can do painting by handling the events.
1018 Currently, we draw over any user painting.
1020 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
1022 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
1024 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1026 * TreeNode.cs, TreeView.cs: Move logic that determines the node
1027 image to draw to TreeNode. Give Index/Keys put on the node
1028 precedence over the global one for the TreeView.
1030 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
1032 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
1034 2008-09-29 Mario Carrion <mcarrion@novell.com>
1036 * ListBox.cs: Index fixed.
1038 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1040 * TabControl.cs: When expanding the tab -because it's selected now-,
1041 using Right alignment, instead of adding some selected delta value to
1042 the X origin, substract it, so it gets a location adjacent to the panel,
1043 instead of be more separated.
1046 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
1048 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
1051 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1053 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
1054 as well as the other static fields, to avoid using their previous
1055 values my mistake when handling the dnd events. This should avoid
1056 handling any status event after the drop has been finalized/cancelled.
1058 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1060 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
1061 operation, instead of waiting until we get any movement - this will
1062 help us to have the data available in case no movement was detected
1063 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
1064 Finally add a windows.forms-only fallback to fire the mentioned events
1065 if no movement at all was detected, just like .net does.
1068 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
1070 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
1071 return early if the text is empty because the icon doesn't get
1072 drawn then. [Fixes bug #428113]
1074 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1076 * FileDialog.cs: Implement basic support for sorting by columns in
1077 Details view. Patch by Eric Petit.
1080 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1082 * ThemeWin32Classis.cs: When drawing gridlines take into account the
1083 case where ListView.ItemSize hasn't been computed, and provide a
1084 fallback as well. This prevents a division by 0.
1086 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1088 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
1089 correctly draw tooltip backgrounds.
1091 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1093 * ImageList.cs: Change CopyTo implementation to ensure clones are
1094 created of our images.
1097 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
1099 * Control.cs: When setting fonts, we need to ensure we change our
1100 reference to the new font object, even if it represents the same
1101 font as before. If we don't, the original font can get disposed
1102 and we will still try to use it.
1105 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1107 * FileDialog.cs: Take into account Tile view when selecting the view
1110 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1112 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
1113 the item bounds, since we can't iterate over them in virtual mode.
1114 Also fix wrong calculation of the gridlines when using scrolling.
1117 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1119 * XplatUIX11.cs: When handling EnterNotify events, take into account
1120 both the public and implicit controls when trying to detect the
1121 grab/ungrab process. This should fix ListView selection in Details
1124 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1126 * TreeView.cs: Redraw the whole node area when the selected node changes.
1127 Things like state images were not getting redrawn because the invalid
1128 rectangle was too small.
1131 2008-09-23 Mario Carrion <mcarrion@novell.com>
1133 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
1136 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1138 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
1141 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1143 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
1146 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
1148 * StatusBar.cs: Add tooltip support.
1151 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1153 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
1154 alignments of sub items in Details view. Patch by John Mortlock (johnm at
1155 hlaustralia.com.au).
1158 2008-09-23 Neville Gao <nevillegao@gmail.com>
1160 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
1163 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
1165 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
1168 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1170 * ListView.cs: Don't do anything when EnsureVisible is called inside a
1171 BeginUpdate/EndUpdate block.
1174 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1176 * ListViewItem.cs: The semantics for the public .ctor of
1177 ListViewSubItemCollection need us to already have a Text value for the
1178 item, which in our implementation have as available *after* adding the
1179 first sub item. So create an internal .ctor that satisfies our needs
1180 and let the public .ctor have the same semantics as .net.
1183 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1185 * ListControl.cs: Changes in Formatting related values should call
1186 RefreshItems, as .net does.
1188 * ListBox.cs: In the respective overrides of RefreshItems calculate
1189 layout as well as refreshing - again, this is what .net does.
1192 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1194 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
1195 since we are already doing that when we change the value of the
1196 scrollbar or force the call to ScrollWindow in the same method. This
1197 way we don't cause a Invalidate call for all the listbox bounds for
1198 methods calling UpdateTopItem with an already updated top item. This
1199 was happening specially calling EnsureVisible with already visible
1202 2008-09-18 Mike Gorse <mgorse@novell.com>
1204 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
1205 XplatUIStructs.cs: Added KeyFilter
1208 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1210 * RelatedPropertyManager.cs: The properties returned by
1211 GetItemProperties should be that ones of the *actual* object returned
1212 by the property, not the property type - this is very special when the
1213 property exposes a type, but the returned object actually is a child
1214 class and implements more functionality and properties.
1216 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1218 * Binding.cs: Don't look for the property in the data source if the
1219 passed string is empty.
1221 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1223 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
1224 fix unused variable warnings.
1226 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1228 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
1231 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
1234 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
1235 leads to the window manager overriding our border style and zorder.
1236 - Allow the activation of non-modal forms, which are children of a
1240 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1242 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
1243 ask the window manager to do the work instead of changing the property
1247 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1249 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
1250 AddNew to fix some navigation for empty datasets. [Fixes #323053]
1252 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1254 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
1255 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
1256 border and fixes some drawing issues when resize form.
1258 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
1260 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
1262 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
1265 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
1267 * TextBoxBase.cs: For standard textbox the scrollbars are always
1268 visible if Multiline is true.
1271 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1273 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
1276 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
1278 [Fixes most od DBNull and HeadersVisible problems]
1281 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
1282 returns the value that we need.
1283 - Fixed FromPixelToColumn method that return zero for first column and for
1284 row header cell, now it returns -1 for row header cell.
1285 - Fixed HitTest to check row header cell in column header area, it now
1286 returns HitTestType.None. [Fixes #322864]
1287 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
1288 checks for RowHeadersVisible and other things.
1289 - If an exception occurs when setting CurrentCell and user type 'yes' in
1290 message dialog, invalidade current and new cell and set setting_current_cell
1291 to false to prevent future errors. [Partially fixes #323050]
1293 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
1294 value (SetColumnValueAtRow), it must be done by grid to properly show
1295 messages. [Fixes #323050]
1297 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
1298 better draw column and row header. Also dont draw anything when column
1299 headers is not visible.
1301 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1303 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
1306 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1308 * TreeView.cs: Don't start editing a node on right click, only
1311 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1313 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1314 disabled over a year ago.
1315 * Form.cs: Wrap calling Load in a try/catch because it can happen
1316 before the catch-all one in NativeWindow.
1319 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1321 * ToolStripDropDownMenu.cs: Calculate the connected area better
1322 to take into account when the drop down is not directly under the
1324 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1326 2008-09-16 Mario Carrion <mcarrion@novell.com>
1328 * ScrollBar.cs: New event added: UIAValueChanged, generated when
1329 LargeChange, SmallChange, Maximum or Minimum values are changed.
1332 2008-09-16 Mario Carrion <mcarrion@novell.com>
1334 * ErrorProvider.cs: Component enabled to support accessibility.
1335 * Application.cs: Updated to Initialize UIA in ErrorProvider.
1338 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1340 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1341 so we don't highlight on first focus.
1344 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1346 * TextControl.cs: Correctly calculate the height of the area we
1347 need to invalidate when we have started scrolling and viewport_y
1348 is used. [Fixes bug #387608]
1350 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1352 * TextControl.cs: When getting the SelectedText, don't add in
1353 NewLine characters, as they are already contained in the lines.
1356 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
1358 * TextBoxBase.cs: Replace the buggy Lines setter with one that
1359 simply concats the lines and send it to the Text setter.
1360 [Fixes issue #2 and #3 of 388115]
1362 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1364 * Binding.cs: The default value of DataSourceNullValue should be
1365 Convert.DBNull actually. Also, the NullValue should only be used *if*
1366 itself is not null, and use the null/Convert.DBNull value instead.
1368 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1370 * TextControl.cs: Add a method to convert a string newline to the
1372 * TextBoxBase.cs: When the user hits enter, insert a native newline.
1373 [Fixes part 1 of bug #388115]
1375 2008-09-15 Mario Carrion <mcarrion@novell.com>
1377 * ToolTip.cs: UnPopup event set to internal to match public API.
1379 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1381 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1382 have to remove the Ctrl in order for the focus moving code to kick in.
1385 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
1387 * CheckedListBox.cs: Return the real item index from Add. It may not be
1388 the last item if the list is sorted. The user can change the NewValue in
1389 the ItemCheck event, we need to use that value if so.
1390 * ListBox.cs: Return the real item index from a sorted Add.
1393 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
1395 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
1396 happen that the icons from the theme is missing or the particular size
1400 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1402 * Binding.cs: When assigning null or DBNull depending on value/ref type,
1403 use IsValueType instead to get the precise desired value.
1406 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1408 * TreeNodeCollection.cs: When adding a new node to an opened node,
1409 we have to invalidate everything below the parent node because
1410 every node scoots down and we have to repaint them.
1413 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1415 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1416 property into account when drawing.
1419 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1421 * ListBox.cs: When calling Items.Clear(), call
1422 SelectedIndexCollection.ClearCore instead of normal Clear method, to
1423 not fire any Selected*Changed event - this is done to match .net and
1424 don't have invalid values when changing the DataSourceProperty.
1427 2008-09-12 Mario Carrion <mcarrion@novell.com>
1429 * HelpProvider.cs: Control enabled to support accessibility.
1430 * Application.cs: Updated to Initialize UIA in HelpProvider.
1433 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1435 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1436 make the dialog TopMost as well.
1439 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1441 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1442 clipboard data better.
1445 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1447 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1448 TextChanged and SelectionChanged events fire in the same order as .Net.
1451 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1453 * DataGridView.cs: When sorting a column, if it only contains numbers,
1454 do a numeric sort instead of a string sort.
1457 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
1459 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1460 against NRE's when the settings have a null panel.
1461 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1465 2008-09-11 Mario Carrion <mcarrion@novell.com>
1467 * ToolTip.cs: Control enabled to support accessibility.
1468 * Application.cs: Updated to Initialize UIA in ToolTip.
1471 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1473 * Control.cs: Make the custom Enumerator internal to fix build.
1475 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1477 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1478 already in edit mode, begin edit mode. Generally edit mode isn't
1479 started until the second click, but CheckBoxes are special.
1481 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1483 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1484 since that can be set to anything. Always add them to the Control's
1485 parent. [Fixes bug #416058]
1487 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1489 * ListView.cs: Use a custom enumerator for ListViewItemCollection
1490 so items can be deleted in a foreach.
1493 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1495 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1496 Store the user set explicit height so that the row can be AutoSized
1497 and then when AutoSize is turned off, it can get its original size back.
1498 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
1499 duplicating the logic. When setting AutoSizeRowsMode to None, reset
1500 rows' heights back to their explicit values.
1503 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1505 * DateTimePicker.cs: When getting focus, select the checkbox if we are
1506 already showing it. Also, don't change its value when pressing space
1507 if the checkbox is not visible (ShowCheckBox as false). Finally, the
1508 checkbox should remain selected as long as Checked is false, and the
1509 other parts are disabled.
1512 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
1514 * MessageBox.cs: Handle shortcut keys to dialog buttons.
1517 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1519 * Binding.cs: When the value retrieved from the control property is
1520 null, don't return Convert.DBNull for Nullable instances, since they
1521 can *actually* get a null value.
1524 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1526 * Control.cs: Add an internal field to force doublebuffering regardless
1527 of what the public mechanisms are set to. This is because MS's native
1528 controls are doublebuffered even though their .Net bits are set to false.
1529 * ProgressBar.cs: Set force_double_buffer to true.
1532 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
1534 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1536 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1537 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1538 without EditingControls, paint background selection for types without
1539 EditingControls, reset the EditingCellValueChanged flag when the
1540 cell's value is committed.
1541 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1542 have EditingControls, remove a double call to a cell's OnContentClickInternal,
1543 don't do cell changing logic in OnMouseDown if the cell didn't change.
1546 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1548 * DateTimePicker.cs: Fix the edition of am/pm specifier.
1550 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
1552 * TextControl.cs: Add "&" to the list of valid characters in a URL.
1554 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1556 * DateTimePicker.cs: Before incrementing or decrementing any part in
1557 the textbox, end any current edit. Also when ending the current edit
1558 use the editing_part_index field instead of the current selected
1559 value, since they can be out of synch, and we really need to work on
1560 the *real* current edit part. Finally when PartData.Selected changes,
1561 always try to end any ongoing edit.
1562 This should fix some small errors handling mouse navigation and
1563 increase/decrease operations.
1565 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1567 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1568 respectively) should handled different, since the 12 hours format
1569 needs the value typed by the user to be adjusted depending on the
1570 a.m/p.m value, so it is preserved, and only changed when the value
1571 reaches the 12 value (when it changes from a.m to p.m).
1572 Fixes part of #416555.
1574 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1576 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1577 * ToolStripDropDownItem.cs: Don't fire events and such again if
1578 ShowDropDown is called on an already dropped down item.
1579 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1580 subitems, the user may add some in the DropDownOpening event.
1583 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1585 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1588 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
1590 * MdiClient.cs: When looking for menustrips on a child form to merge,
1591 look inside ToolStripContainers.
1594 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1596 * ErrorProvider.cs: Unbreak my previous commit.
1598 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
1600 * ErrorProvider.cs: Icon should always be 16x16.
1603 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1605 * GridEntry.cs: Invalidate the child items cache when the property
1608 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
1610 * GridEntry.cs, PropertyGridView.cs:
1611 - Update the ReadOnly detection and rendering to finally hopefully
1612 match the one of MSFT.
1613 - Niceify and move the debug CWLS.
1616 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1618 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1619 since we are already calling Invalidate for the entire control when
1620 needed - and call Redraw() when size changes, since we need to paint
1621 there by ourselved and not anymore from the mentioned method.
1622 This should improve the layout process. Also clean some not needed calls
1625 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1627 * MenuAPI.cs: Add a null check to the Alt-F4 code.
1630 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
1632 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1635 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
1637 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
1638 PropertyGridView.sc: Implement lazy/delayed propertygrid population
1639 on item expansion. Improves performance and fixes bug #417955.
1642 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
1644 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1647 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1649 * TextControl.cs: Add "_" to the list of valid characters in a URL.
1652 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1654 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
1658 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1660 * FontDialog.cs: When storing our font size from the starting font,
1661 use SizeInPoints instead of Size in case Size is a different unit
1665 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
1667 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1668 don't use it for anything else, check if a directory is highlighted.
1669 If it is, navigate into it.
1672 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1674 * Binding.cs: When acquiring a BindingManagerBase for the first time,
1675 check that the specified property actually exists in the data source,
1676 and throw an ArgumentException if that's not the case - this is only
1677 done for this scenario, since for later cases (such Position changes)
1678 we throw different exceptions (match .Net).
1680 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
1682 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
1683 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
1684 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
1685 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
1686 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
1687 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
1691 2008-09-03 Neville Gao <nevillegao@gmail.com>
1693 * StatusBar.cs: Control enabled to support accessibility.
1696 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1698 * Binding.cs: When connecting the event handler for the "Changed"
1699 event for the property, only do it for PropertyManager, and not for
1700 CurrencyManager - this is exactly what does .Net, totally ignoring any
1701 change in the property of the elements of a list.
1704 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
1706 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1707 to Windows when creating a window, as we fake MDI stuffs.
1710 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
1712 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
1713 change takes effect.
1715 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
1717 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
1720 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1722 * DataGridView.cs: Raise CellContentClick event.
1723 [Fixes part of bug #420351]
1725 2008-08-27 Mario Carrion <mcarrion@novell.com>
1727 * ScrollBar.cs: Control enabled to support accessibility.
1730 2008-08-27 Mario Carrion <mcarrion@novell.com>
1732 * ComboBox.cs: Control enabled to support accessibility.
1735 2008-08-27 Mario Carrion <mcarrion@novell.com>
1737 * ListBox.cs: Control enabled to support accessibility.
1740 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
1742 * ComboBox.cs: Don't suppress the TextChanged event when changing
1744 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
1748 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
1750 * ErrorProvider.cs: Fix a regression NRE when setting properties
1751 for a control before it has a parent.
1754 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1756 * Binding.cs: Use the BindingManagerBase.Current value to obtain
1757 connect the property "Changed" event, instead of using the data
1758 sources - this is useful when the property specifies actually a
1759 multiple objects path.
1760 Fixes part of #417973.
1762 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1764 * RelatedPropertyManager.cs: PropertyManager instances associated to a
1765 nested properties should return not the properties of the data source
1766 itself, but the properties of the type of a specific property in the
1767 data source - match .net.
1769 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
1771 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
1772 AddRange overloads into AddItems method, and added missing NULL check.
1773 Added extra argument check to RemoveAt for compatibility with MS.
1774 Modified IList implementation of Add, Contains, IndexOf and Remove to
1775 throw an ArgumentException if item is not an int. Modified IList.Insert
1776 to throw a NotSupportException instead of an Exception. Implemented
1778 (ObjectCollection): To avoid duplication, use AddItems method from
1779 AddRange overloads. On 1.0 profile, first perform NULL check on items
1782 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
1784 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
1787 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1789 * X11Keyboard.cs : comment out some Console.WriteLine().
1791 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
1793 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
1794 even if premises are not filled. Also XLookupString() was not
1795 receiving correct input, which blocked precise input handling
1798 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1800 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
1801 type of delegate, instead of EventHandler - this was causing a type
1802 cast exception in all apps handling this event.
1805 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
1807 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
1808 ShowDropDown to give the user a chance to dynamically add
1809 drop down items. [Step 1 of fixing bug #417877]
1811 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1813 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
1814 had any mouse motion since the call to StartDrag, to match the dnd
1816 Fixes part of #381876.
1818 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1820 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
1821 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
1822 Also, if we are actually moving into a different window after
1823 grabbing, generate a LeaveNotify event for the previous window, since
1824 we need to fire the leave events until the grab ends, not when
1825 actually moving outside of the control.
1827 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1829 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
1830 events only for client windows was wrong - we need to compare the
1831 client window against the window receiving the EnterNotify event, not
1832 against zero (since client window is never Zero, btw).
1833 This prevents having unnecessary handling of EnterNotify events for
1834 non-client windows when a gran begins.
1836 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1838 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
1839 MouseMove/MotionNotify events at all (which should only happen after
1840 MouseUp/ButtonRelease, as .Net does).
1841 This avoids firing an extra and unnecessary MouseMove event just after
1842 every MouseDown event.
1844 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1846 * LinkLabel.cs: Always clear any previous links when LinkArea
1847 is set. [Fixes bug #410709]
1849 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1851 * ToolStripProfessionalRenderer.cs: Revert last change.
1852 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
1853 for ToolStripDropDownBackground.
1855 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
1857 * ToolStripProfessionalRenderer.cs: Use Window color for the
1858 background of dropdowns to match .Net when the user is not
1859 using the default white. [Fixes bug #418108]
1861 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
1863 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
1864 it caused timer registration twice. Fixed bug #418107.
1866 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1868 [Correction: This is the actual change to X11Dnd issue, not the
1869 previous one, which was actually a different issue.]
1871 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
1872 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1873 when the pointer is actually in motion, but only when the pointer
1874 seems to stop (as .net does).
1875 Fixes part of #381876.
1878 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
1880 * ListBox.cs: Fix CopyTo implementation.
1883 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
1885 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
1886 drawing a ComboBox's background. Fixes bad disabled rendering when
1887 the control is not at 0,0.
1890 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
1892 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
1893 ComponentModel layer, which will properly prioritize the attributes.
1894 Avoids wrong prioritization of duplicate attributes when retrieving
1895 the converter and editor.
1898 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1900 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
1901 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1902 when the pointer is actually in motion, but only when the pointer
1903 seems to stop (as .net does).
1904 Fixes part of #381876.
1906 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
1908 * GridEntry.cs: Perform stricter check for the ParentEntry's
1909 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
1913 2008-08-14 Geoff Norton <gnorton@novell.com>
1915 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
1916 Fixes #396983. Properly fix ActiveWindow trackin and do not
1917 prematurely show POPUP windows.
1919 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1921 * XplatUIX11.cs: Handle the obscured regions while scrolling using
1922 GraphicsExpose event, processing it just after we copy the scrolled
1923 area. This ensures that the next calls to ScrollWindow will copy
1924 regions already updated, and the scrolling will be smooth. Also remove
1925 the code that was trying to detect the obscured regions, since we are
1926 not using it anymore (too slow).
1928 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1930 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
1931 MultiExtended mode, by separating some logic between the ctrl/shift
1932 handling. Also ignore any MouseMove events generated together with
1933 MouseDown events - we are only interested in the real motion event.
1934 Fixes part of #414963.
1936 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
1938 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
1939 is selected. [Fixes bug #414143]
1941 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
1943 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
1944 and not the parent one (the propertyowner). Fixes the behavior of
1945 GetConverter/GetEditor.
1948 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
1950 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
1951 [Fixes part of bug #415452]
1953 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
1955 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
1956 GridEntry, not the current.
1959 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
1961 * TextBoxBase.cs: De-internalize max_length field.
1962 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
1963 share the same logic.
1966 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1968 * ListBox.cs: Selection changes made in the MouseDown handler should
1969 use the *Core versions of selection in SelectedIndices collection,
1970 since the SelectedIndexChanged/SelectedValueChanged events are fired
1971 until we get a MouseUp event, and thus we need to separate the logic
1972 from the events, as done in the keyboard navigation. Also, fire those
1973 selection events from keyboard navigation in SelectionMode.None, even
1974 if we don't have a selection, as .Net does.
1976 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
1978 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
1979 last change introduced when an item is clicked but isn't on a toolstrip.
1981 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1983 * ListBindingHelper.cs: When looking for an object's properties, check
1984 if it implements ICustomTypeDescriptor, in which case we should
1985 resolve the propertu based on its GetProperties method, not in its
1986 actual properties. This is what .Net seems to do.
1987 Fixes a UsingWebBrowser problem during initialization.
1989 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1991 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
1992 sitting on a MenuStrip.
1994 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1996 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
1997 no children with the keyboard, we need to release the keyboard capture.
2000 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
2002 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
2003 no children with the keyboard, we need to release the keyboard capture.
2006 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2008 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
2009 the GTK+-based implementation of VisualStyles.
2010 * ThemeWin32Classic.cs: Exposed various layout values for use in the
2011 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
2012 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
2013 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
2014 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
2015 TrackBarHorizontalTrackHeight.
2017 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
2019 * TabControl.cs: Added hot style handling for the scroll buttons.
2020 right_slider_state, left_slider_state are now of type PushButtonState to
2021 allow for a hot state. Added tracking of the mouse button being held down
2022 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
2023 LeftScrollButtonArea.
2024 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
2025 TabControlGetRightScrollRect.
2027 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2029 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
2032 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2034 * Form.cs: Ensure that we reset the shown_raised flag after
2035 the form is closed, so that we raise the show events the next
2036 time the form is shown.
2039 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2041 * Form.cs: Ensure closing events are raised only once.
2044 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2046 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
2047 so that we can successfully generate the LParam in-place instead of
2048 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
2049 navigation for menus.
2051 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2053 * MenuAPI.cs: When montion don't set the keyboard navigation state to
2054 'navigating'. Fixes bug #411356.
2056 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2058 [Fixed remaining issues of #406773 (#1)]
2059 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
2061 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
2062 MainMenu (already done) and ContextMenu creation.
2064 * ContextMenu.cs: Create tracker on construction.
2066 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2068 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
2069 possible to instantiate MenuTracker without GrabControl.
2071 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2073 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
2075 * MainMenu.cs: Set GrabControl on SetForm using current form.
2077 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2079 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2081 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
2083 * MenuAPI.cs: Check if menu is activated before deactivate it in
2086 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
2088 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
2090 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
2091 - One style instance can only participate in a single style collection.
2092 - Styles can request their owner to layout whenever their properties
2094 [Fixes bugs #412583 and #412582]
2096 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
2098 * X11Keyboard.cs: Implement the generation of the LParam for
2099 all keyboard messages.
2102 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
2104 * ListBox.cs: Don't let the user set TopIndex so high that it
2105 scrolls up far enough to show empty items.
2108 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2110 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
2111 (I'm an idiot and forgot to commit the actual changes, as well as
2112 specify the right file, which is this one, not ListView.cs).
2114 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2116 * ListView.cs: Don't draw ListViewSubItem instances from
2117 DrawListViewItem - we need to reuse the main item's drawing for the
2118 first sub item in case owner draw is true, but wants the system to
2119 do the default draw for the first sub item, without incurring in a
2123 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
2125 * ToolStripButton.cs: Update Checked for CheckOnClick before
2126 raising the Click event. [Fixes bug #412505]
2128 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
2130 * Form.cs: Remove some seems leftover code for non-TopLevel's
2131 CreateParams, which is breaking ClientSize sizing, because it
2132 removes the border window styles.
2134 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
2136 * PropertyGrid.cs: Invalidate the View when the PropertyTab
2139 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
2141 * WebBrowser.cs: Removed debug output.
2143 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
2145 * FileDialog.cs: Apply patch from Ernesto to clean up some
2148 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2150 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
2151 that the change has an immediate effect.
2153 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2155 * ScrollableControl.cs: Update PerformLayout calls to include
2156 provide the name of the property that changed.
2158 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2160 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
2161 location. Fixes drawing of border and cell borders if scrollable.
2163 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2165 * ScrollableControl.cs: Perform layouting after the AutoScroll
2166 properties have changed, so that the changes have immediate
2170 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2172 * XplatUIX11.cs: Non Client area is actually Client such in the
2173 case of NotifyIcon, so double check WholeWindow == ClientWindow
2174 when adding an expose.
2175 [Fixes bugs #324237 and #357022]
2177 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2179 * TableLayoutPanel.cs: Invalidate after layouting, so that we
2180 repaint the cell borders.
2182 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
2184 * PropertyGridTextBox.cs: Stop filtering messages prior to our
2185 disposal to avoid unexpected ObjectDisposedExceptions.
2187 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
2189 * TableLayoutPanel.cs: Layout on Row/Column count change.
2191 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
2193 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
2195 * PictureBox.cs: When ImageLocation is set to null or an empty string,
2196 only set image to null if it was previously initialized from an url
2197 (or using ImageLocation). In ImageLocation, load specified image
2198 asynchronously if WaitOnLoad is false. Added support for local file
2199 paths to LoadAsync, and added missing argument check.
2201 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2203 * DateTimePicker.cs:
2204 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
2205 order to set the value as required (which means: when selection
2206 changes for a part being edited, and not before that if not needed).
2207 Also use an enum to describe which part are we using, and use the
2208 selection as a property in PartData, in order to notify the
2209 DateTimePicker owner that we need to end the current edit.
2212 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
2214 * PropertyGridTextBox.cs: Validation should be performed only if we
2215 are focused. We can lose focus for example if the Return key is used
2216 to set the entry and there is an error. When the message box is
2217 displayed we would have validate on click in the message box.
2219 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
2221 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
2222 in order to determine that we are expandable is wrong. There was a bug,
2223 now fixed, in TypeDescriptor that was causing the wrong converter to be
2224 returned which caused GetPropertiesSupported == false in most cases.
2227 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
2229 * ImageList.cs: Fix ICollection.CopyTo implementation for
2230 ImageListCollection. [Fixes bug #409169]
2232 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2234 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
2235 WorkingArea so that menus can appear on the second monitor
2236 when one has dual monitors.
2238 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2240 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
2243 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2245 * TextBox.cs: Implement navigation support for auto complete in
2246 TextBox, as well as refactor the code to show the auto complete window
2247 when receiving a WM_CHAR message, instead of TextChanged, since
2248 autocomplete itself should be able to set the Text a lot of times and
2249 finally only typing should show it, not changes from code.
2251 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2253 * TabControl.cs: When expanding the selected tab, don't adjust the
2254 width if alignment is Right, since it has a different offset than 0,
2255 as opposed to the other alignments.
2256 Fixes the selected tab not being painted at all with alignment = Right
2257 and using FillToRight size mode.
2259 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2261 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
2263 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2265 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
2266 values from the textbox to the boundary values. [Fixes bug #409026]
2268 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
2270 * TreeNodeCollection.cs: We were copying one too many elements when
2271 doing our array copy. Fixes a crash when RemoveAt is called.
2274 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2276 * TabControl.cs: When doing the layout and need to call FillRow -using
2277 FillToRight size mode-, use the overload receiving a bool param
2278 indicating whether we need to do a vertical or horizontal calculation.
2279 Fixes part of #399583.
2281 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2283 * TextBox.cs: When painting, use the value returned by
2284 GetLastVisibleItem instead of using the cached last_item field, since
2285 there could be a desynchronization between the layout and the
2286 painting. Fixes a AOOR exception in auto complete mode.
2288 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
2290 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
2291 NonClientAreaEnabled until our VisualStyles is modified to allow it.
2293 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
2295 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2297 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2299 * TextBox.cs: When focus is lost, if the auto complete listbox is
2302 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2304 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
2305 tracking size for tool windows.
2306 * Theme.cs, ThemeWin32Classic.cs : Extracted
2307 ManagedWindowSpacingAfterLastTitleButton.
2309 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2311 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2312 They are bit-rotted and have always been listed as "unsupported".
2314 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
2316 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2318 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
2320 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2322 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2324 * ListBox.cs: Make sure last_item_visible gets reset before we try
2325 to do a layout due to scrollbars appearing or disappearing.
2328 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2330 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2331 for different window themes. [Fixes bug #339140]
2333 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2335 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2336 in ManagedWindowBorderWidth.
2338 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2340 * InternalWindowManager.cs: Change MouseMove to take a point, so
2341 we can use the same point later on.
2342 * MdiWindowManager.cs: Store point sent to MouseMove so we can
2343 later reset to it. On Windows, the Cursor.Position had already
2344 changed by the time we were resetting to it.
2347 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2349 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2351 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2355 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
2357 * MdiWindowManager.cs: Double-clicking on the title bar should not
2358 maximize a MDI form if MaximizeBox = false.
2360 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2362 * ThemeVisualStyles.cs: Fixed a warning.
2364 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2366 * ThemeVisualStyles.cs: Fixed warnings and formatted.
2368 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2370 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2371 implementation produces a better result.
2373 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2375 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2378 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
2380 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2381 cannot be used from the ThemeEngine constructor.
2382 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2383 Application.VisualStylesEnabled because it does not work on X11.
2385 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
2387 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2388 that we did not always check for, as well as fixes to the IList
2389 implementations. [Fixes bug #402703]
2391 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2393 * IDeviceContext.cs: Added Dispose.
2395 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2397 * Control.cs: Added OnSizeInitializedOrChanged.
2398 * Form.cs: OnLoadInternal: Added a call to
2399 Control.OnSizeInitializedOrChanged.
2400 * InternalWindowManager.cs:
2401 * HandleTitleBarMouseMove: No longer invalidates the parent window.
2402 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2403 * TitleButton: Added Entered.
2404 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2405 * MdiWindowManager.cs:
2406 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2407 move over the maximized title buttons causes a change.
2408 * IsActive: Can now be called before the window is added to a MDI parent.
2409 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2410 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2411 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2412 * ThemeWin32Classic.cs:
2413 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2414 * DrawTitleButton takes a new form parameter.
2415 * Added ManagedWindowTitleButtonHasHotElementStyle,
2416 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2418 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
2420 * ThemeEngine.cs: ThemeVisualStyles is now selected if
2421 Application.EnableVisualStyles has been called, even if the current system
2422 configuration does not support rendering with Visual Styles.
2423 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2424 Styles should not be used.
2426 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
2428 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
2429 ComboBox in FormsTest.
2431 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
2433 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
2434 for fixed toolwindows.
2436 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
2438 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2440 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2442 * Control.cs: CreateControl just returns if the Control is diposed
2443 and doesn't throw ObjectDisposedException.
2446 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2448 * Control.cs: Do not create the control if the parent isn't created
2449 yet, e.g in the case of a parented form on which .Show is called.
2450 It will be created when the parent is made visible/created.
2453 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2455 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
2456 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2459 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2461 * Form.cs: When disposed set owner to null. Improves #402446.
2463 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2465 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
2466 use children's PreferredSize if in AutoSize mode and ExplicitBounds
2468 * Form.cs: Take the Padding into account for the PreferredSize.
2471 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2473 * TabControl.cs: Since we don't support more than one direction in
2474 TabControl rows alignment (this is, the row becomes the
2475 bottom row when selected), make Direction return always 1. This way
2476 the layout doesn't get confused about a bad calculation.
2479 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
2481 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
2482 so that the wparam is properly set.
2483 Fixes form moving in the test case in bug 402446.
2485 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
2487 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2488 the full tree instead of nothing. [Improves bug #406584]
2490 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2492 * ThemeWin32Classic.cs: Adjusted minimized window painting.
2494 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
2496 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2499 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
2501 * TreeView.cs: Add a null check when using CollapseAll on an
2502 empty tree. [Fixes bug #406449]
2504 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2506 * Form.cs: Make OnMenuComplete internal so we can call it.
2507 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2510 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2512 * TabControl.cs: Handle Up and Down keys when TabControl is in
2516 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2518 * TabControl.cs: Invalidate when we remove a tab. Guard against
2519 an AOORE when trying to remove a tabpage that is not owned by the
2523 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2525 * ScrollBar.cs: Change the LargeChange calculation to be correct.
2526 Ensure we are using LargeChange instead of large_change so we our
2527 calculations are correct.
2530 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
2532 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2533 we need to ensure the ColumnCount/RowCount gets set.
2536 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2538 * ListBox.cs: When handling item navigation, if selection mode is
2539 None, call EnsureVisible, since scrolling is normally handled by
2540 selection, that we are not calling in this case.
2543 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2545 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2546 a null check to our focus walking code. [Fixes bug #394332]
2548 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
2550 * ComboBox.cs: Case missed in bug 379596 "Support item
2551 navigation by entering text": On _close_ drop-down select
2552 the first item matching the text in the textbox. [Fixes bug #397265]
2554 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
2556 * DataGridView.cs: Fix a crash when sorting by column headers,
2557 mentioned in bug #404841. Remove some dead switch cases.
2559 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2562 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2563 uses the AutoComplete support in the internal TextBox. Also TextBox
2564 can store a reference to ComboBox, in case AutoCompleteSource is set
2565 to ListItems (this is, ComboBox's items, and we don't want to pass an
2566 additional collection).
2568 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2570 * ListViewItem.cs: Restore the initial value of bounds rect to
2571 Rectangle.Empty, and is this value for Layout detection in virtual
2572 mode. Fixes the tests.
2574 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
2576 * XPlatUI.cs: Remove references to "new" X11 backend.
2578 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2580 * Control.cs: Add an internal virtual OnDragDropEnd method
2581 to allow controls such as ListBox, which depend on a sequence
2582 of MouseDown+Move+End events, to handle the lack of a MouseUp
2583 when a DnD operation is started in MouseDown.
2584 * ListBox.cs: If a DnD operation is started in MouseDown we won't
2585 get a MouseUp, so reset our state whenever a DnD operation ends.
2587 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
2589 * PropertyGrid.cs: Clear the root griditem first thing when
2590 new object/s is/are selected. Fixes some rare cases where
2591 the View will get a paint request and won't know that the
2592 grid is in the process of repopulating.
2594 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2596 * XplatUIX11.cs, InternalWindowManager.cs:
2597 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
2598 doesn't automagically update the FormBorderStyle, so we must
2599 double check the CreateParams explicitly to determine if the
2600 window is a toolwindow.
2601 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
2602 instead of doing custom checks.
2604 Fixes toolwindows for the test case in bug #402446
2606 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2608 * Control.cs: Visibility of the control should be false
2609 when the handle is destroyed in WmDestroy and not immediately
2610 in Dispose(). This is effectively where the disposing process
2611 ends even though the control is marked as Disposed immediately
2612 after calling Dispose().
2615 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2617 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
2618 when the textbox gets focus.
2621 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
2623 * PropertyGridTextBox.cs, PropertyGridView.cs:
2624 - Alt + Down should show the drop down editor.
2625 - Focus the editor when showing it
2628 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
2630 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2631 that are not the first panel.
2632 * StatusBar.cs: Ensure that the X coordinate of panels is always
2633 stored. Fix IList implementation of StatusBarPanelCollection to
2634 call the regular methods.
2635 [Fixes bug #403599, #402165]
2637 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
2639 * ThemeWin32Classic.cs: Fix position calculation for centered
2640 text on status bar panels. [Fixes bug #402165]
2642 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2644 * Splitter.cs: Fix Splitter to:
2645 - Work for arbitrary splitter size
2646 - Handle MinSize and MinExtra properly
2647 - Get rid of absolute positioning during drag and use relative
2648 - Multiple other fixes
2651 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
2653 * Cursor.cs: Show shouldn't hide the cursor.
2655 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2657 * ListViewItem.cs: When invalidating, add some extra space to bounds,
2658 since focus rectangle and selection can add some space and need to
2659 take into account those small offsets - specially in Details view.
2660 * ListView.cs: Instead of invalidate using item Bounds directly, call
2661 item.Invalidate, to have the code centralized.
2662 Fixes focused/selection garbage when selecting and deselecting items
2665 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2667 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2668 mode we can check whether we have to force a Layout or not, and can
2669 cache based on this, instead of avoiding caching all the the time. Do
2670 this check in GetBounds and TextBounds.
2671 Fixes selection in Details view.
2673 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2675 * ListView.cs: Make HeaderControl internal, thus the theme engine can
2676 get its *real* height instead of trying to infere it.
2677 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2678 get the position of them, since it's in general a bad idea in general,
2679 and because we can't do that in virtual mode. Instead get the first
2680 visible item as well as item height, and draw them.
2683 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
2685 * ToolStripSplitButton.cs: We can't add in extra width if
2686 the button is not AutoSize. [Fixes bug #401279]
2688 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
2690 * PaddingConverter.cs:
2691 - Implement conversion to InstanceDescriptor
2692 - Handle "All" in CreateInstance by using the supplied
2693 ITypeDescriptorContext.
2694 [Fixes bugs #396076 and #396078]
2696 Patch by Andy Hume <andyhume32@yahoo.co.uk>
2697 Code contributed under MIT/X11 license.
2699 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
2701 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
2703 Add Category attributes.
2704 Code is contributed under the MIT/X11 license.
2706 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
2709 - Fix a NRE when unparenting a form.
2710 - Do not recreate or destroy a parented form when
2713 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2715 * TextBox.cs: Implement basic support for AutComplete with custom
2718 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
2720 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
2721 DropDownButtonBounds should be from the origin of the button, not the
2722 ToolStrip. [Fixes bug #401279]
2724 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
2726 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
2727 running gtk_init_check. This prevents GAIL from loading
2728 unnecessarily, which was breaking UIA support. Initial fix for bug
2730 * Application.cs: Add UIA support to Winforms. New static constructor
2731 uses reflection to initialize UIAutomationWinforms assembly. Added
2732 PreRun event so UIA can initialize before the mainloop starts, and
2733 FormAdded event so UIA can provide a11y support for new Forms in an
2736 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
2738 * DataGridView.cs: When binding to a dataset, subscribe to table
2739 and column change events. Unsubscribe to these when we clear bindings.
2742 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
2744 [DataGrid drawing refactory]
2746 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
2748 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
2749 must be handle by Theme, now it call DataGridPaintColumnHeader.
2751 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
2752 test cases must be also fixed because it checks for wrong size.
2754 * ThemeWin32Classic.cs:
2755 - Draw the bottom line of grid caption.
2756 - Prevent to draw caption text when it is empty.
2757 - Use CPDrawBorder3D for 3D efects to simplify code.
2758 - Uses 3D (when not flat) to paint corner shared between row and column
2760 - Fix header drawing issues on win32, now borders are drawing.
2761 - Fix column header paint issues to mimic win32.
2762 - Adjust header drawing for last column, like first one it must be draw
2764 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
2766 - DataGridPaintColumnHeader created to draw column headers, it also
2767 paint stuff right on Win32.
2768 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
2772 - DataGridPaintRowHeaderStar method added.
2773 - DataGridPaintColumnHeader method added.
2775 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
2777 * Control.cs: Don't reset to Dock style layout if DockStyle is
2778 set to none. [Fixes bug #399316]
2780 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
2782 * Win32DnD.cs: Fix the check for control not equal null.
2783 Fixes bug #341420 and #381886.
2785 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2787 * DataGridViewRowCollection.cs: Update the indexes of rows after
2788 one has been removed.
2789 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
2790 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
2791 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
2792 rows for the Rows collection, or deleting rows from the bound DataSet.
2794 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
2796 * DataGridView.cs: Listen to a DataSet's changed event even
2797 when autogeneratecolumns is false. Refactor the changed event's
2798 add row code to use the same as the existing add row code.
2801 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2803 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
2804 much any time the caret moves and there is text, not just when
2805 the selection changes as one would think.
2806 * RichTextBox.cs: Override RaiseSelectionChanged and fire
2810 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2812 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
2813 instead of trying to duplicate the code.
2814 * ListBox.cs: Make method internal so we can send keyboard events.
2817 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2819 * TextBoxBase.cs: When pasting and checking the max length,
2820 subtract the selected text length (the text we will be replacing) from
2821 the document length.
2822 * TextControl.cs: Ensure every character insertion is reflected in
2823 charcount, so max length will work properly.
2826 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2828 * ListBox.cs: Ensure scrollbars are updated when a single
2829 column listbox with an already set top-index is created.
2832 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
2834 * FontDialog.cs: Typing in the font/style textboxes should search
2835 the list boxes case-insensitively. [Fixes bug #398343]
2837 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
2839 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
2840 widths of icon and buttons instead of hard coded values.
2842 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2844 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
2845 as well as generating a SelectedIndexChanged event, just like .Net does
2849 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2851 * ListBox.cs: When navigating items visually, use FocusedItem as the
2852 reference point instead of SelectedIndex, since even in
2853 SelectionMode.None we need to support navigation, and in that case we
2854 just can't use SelectedIndex.
2855 Fixes part of #398345.
2857 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
2859 * Control.cs: Make a SetBoundsInternal that avoids the new
2861 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
2862 SetBoundsInternal instead of SetBoundsCoreInternal.
2864 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
2866 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
2867 SetBounds for the scrollbars.
2869 2008-06-10 Andreia Gaita <avidigal@novell.com>
2871 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
2872 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
2873 OnMouseMove, OnMouseOver, OnMouseUp
2874 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
2875 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
2876 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
2877 to the WebControl object to pass to new collection objects
2878 * HtmlHistory.cs: Implement support for individual window histories.
2879 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
2880 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
2881 GotFocus, LostFocus, OnLoad, OnUnload
2882 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
2884 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
2885 security level changes and context menu event support.
2887 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2889 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
2890 as happens with Esc, patch my Andy Hume.
2893 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2895 * MdiWindowManager.cs: DrawMaximizedButtons now uses
2896 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
2897 * Theme.cs: Made MenuButtonSize platform dependent. Added
2898 ManagedWindowButtonSize.
2899 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
2900 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
2902 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2904 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
2905 Added support for rendering with VisualStyles.
2907 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2909 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2910 support for rendering the border with VisualStyles.
2912 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2914 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
2915 the icon is not shown.
2916 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
2919 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
2921 * InternalWindowManager.cs: Draw minimized windows even if they don't have
2924 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
2926 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
2928 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
2930 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
2933 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2935 * ComboBox.cs: When snaping height -because of IntegralHeight set to
2936 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
2937 if the requested height leaves the listbox area with *less* than the
2938 required are to see one item. We were setting it to PreferredHeight
2939 even for values matching the height for a single item.
2942 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
2944 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
2946 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
2948 * DataGridViewCell.cs: Use property instead of field.
2950 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2952 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
2955 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2957 * Theme.cs: Added #region around the managed window code. Made the managed
2958 window methods abstract.
2959 * ThemeWin32Classic.cs: Added #region around the managed window code.
2961 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2963 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
2965 * ThemeWin32Classic.cs: Removed HasBorders checks in
2966 DrawManagedWindowDecorations.
2968 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2970 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2971 Extracted ManagedWindowGetTitleBarIconArea.
2973 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2975 * DataGridViewCellStyle.cs: Don't clone the font.
2977 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2979 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
2981 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2983 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
2984 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
2987 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2989 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
2990 Use Format/FormatProvider before trying converters.
2991 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
2992 are 'set'. Change constructor to not use ApplyStyle since it wants
2993 everything applied. Clone the Font.
2994 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
2995 ApplyStyle the rest.
2997 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2999 * ListView.cs: We need to calculate the scrollbars even if the handle
3000 hasn't been created - this is needed when methods using scrollbars
3001 info, such EnsureVisible, are called before control has been created.
3004 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
3006 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
3007 only if the elements are defined.
3009 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3011 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
3012 section. Also, when setting bounds, snap height as well as save the
3013 requested height if Dock has any value affecting the height: Left,
3014 Right and Bottom - important if using IntegralHeight as true.
3016 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3018 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
3019 passed to SetBounds to reflect the new adjusted height (Integral-wise),
3020 instead of doing that only in our SetBoundsCore override, since the
3021 bounds cached can be the same as saved one and we could not get the
3025 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3027 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
3028 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
3029 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
3030 ToolWindowCaptionButtonSize.
3031 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
3033 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3035 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
3037 * Theme.cs: Made DoubleClickTime plaform dependent.
3039 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3041 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
3042 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3043 ToolWindowCaptionHeight.
3045 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3047 * InternalWindowManager.cs: The adjustment to ensure positive client area
3048 sizes is now platform dependent (disabled on Windows).
3049 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
3050 RequiresPositiveClientAreaSize.
3052 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3054 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
3056 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3058 * InternalWindowManager.cs: Changed IconicSize to use
3059 SystemInformation.MinimizedWindowSize.
3060 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
3061 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
3063 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3065 * ComboBox.cs: If the combobox is anchored both on top and bottom,
3066 adjust height if IntegralHeight is true when calling SetBoundsCore (as
3067 likely the height was modified even if Height wasn't specified in
3068 BoundsSpecified parameter).
3069 Fixes part of #396297.
3071 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
3073 * InternalWindowsManager.cs: Changed minimum window size while resizing to
3074 SystemInformation.MinWindowTrackSize.
3075 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
3076 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
3078 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3080 * MenuItem.cs: Fixed Dispose.
3082 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
3084 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
3085 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
3086 EnteredHeaderCell, PressedHeaderCell: Added.
3087 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
3088 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
3089 theme a chance to override default painting.
3090 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
3091 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
3092 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
3093 ListView and DataGridView header rendering.
3095 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3097 * RichTextBox.cs: GetPositionFromCharIndex should return the
3098 visual position of the character relative to the viewport.
3099 [Fixes part of bug #396664]
3101 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
3103 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
3104 and not just for the existance of an UITypeEditor. In some cases
3105 there is an editor associated just to do PaintValue, but which
3106 doesn't actually support editing.
3109 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3111 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
3112 if needed, instead of 0 - this should help us in the corner case where
3113 we have more than one item but we are only partially showing 1 item.
3114 Fixes part of #374713.
3116 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3118 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
3119 control, return immediately if the any parent control's handle hasn't
3120 been created or isn't visible, as well as avoiding creating the parent
3121 Form if the handle hasn't been previously created.
3124 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3126 * TableLayoutPanel.cs: Use border sizes when calculating the
3127 panel's preferred size. [Fixes part of bug #396433]
3129 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3131 * SplitContainer.cs:
3132 - Fix SplitterDistance to update only if needed.
3133 - Make it force min and max validation.
3134 - Handle properly mouse moves outside the resizeable area.
3137 2008-06-02 Andreia Gaita <avidigal@novell.com>
3139 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
3140 (which also suppresses all popup dialogs). Throw NotSupported
3141 exceptions for activex getters/setters.
3142 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
3143 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
3144 StatusText, Version, GoSearch
3145 * HtmlDocument.cs: Add DocType support
3147 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
3149 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
3152 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
3154 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
3156 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
3158 * TableLayoutPanel.cs: When calculating preferred size, use the
3159 actual number of columns and rows, not what the user set them to.
3162 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
3164 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
3167 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3169 * XplatUIX11.cs: When detecting areas obscured in a control by other
3170 toplevel windows while scrolling, return if the control hasn't a
3174 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3176 * XplatUIX11.cs: Properly detect the visible area of a control being
3177 scrolled (obscured by other winforms controls and any X toplevel
3178 windows), to mark as invalid the requested area to be scrolled that
3179 isn't visible and thus can't be copied.
3182 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3184 * ListBox.cs: Compute the precise amount to vertically scroll when
3185 using DrawMode.OwnerDrawVariable.
3186 Patch by jkeymer (j.keymer@gmx.net).
3188 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3190 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
3191 to avoid setting an invalid value for the verticall scrollbar
3192 when navigating items. And, duh, also remove my silly debug messages
3193 from previous commits.
3196 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3198 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
3199 make it MS compatible.
3201 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
3203 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
3204 - Allow the editing of entries even if their parent is read-only.
3205 - Do not render expandable properties read-only.
3206 - Refactor expansion checks form PropertyGrid into PropertyGrid.
3208 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
3210 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
3211 support for the hover style.
3213 2008-05-29 Andreia Gaita <avidigal@novell.com>
3215 * ContainerControl.cs: Check for null dead-end when traversing the tree
3218 [Fixes #394332, patch by Ernesto Carrea]
3220 2008-05-29 Geoff Norton <gnorton@novell.com>
3222 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
3223 constant that it is. Fixes #393981
3225 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3227 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
3228 that the user probably doesn't want to set this.
3230 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
3232 * ThemeWin32Classic.cs: Don't let the text size be bigger than
3233 the control size for CheckBox/RadioBox.
3234 [Fixes part of bug #394645]
3236 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3238 * PropertyGrid.cs: Update the state of the sorting buttons in
3239 the toolbar if PropertySort is set programatically.
3241 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3243 * GridItemCollection.cs: Add multiple items with conflicting names
3244 support and also preserve name ordering.
3247 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
3249 * GridItemCollection.cs: Revert my multiple items with same
3252 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3254 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
3256 Fixes part of #393908.
3258 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
3260 * ToolStripDrowDown.cs: When using the Show () methods that have a
3261 Control parameter, set the menu owner to that Control.
3264 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
3266 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
3269 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3271 * GridItemCollection.cs: Refactor to support multiple items with the
3275 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
3277 * Control.cs: The 2.0 check for illegal cross thread calls in
3278 Control.Handle were throwing an exception when we were getting
3279 the Handle in order to invoke correctly. Created a private
3280 version that does not contain this check.
3283 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3285 * PropertyGrid.cs: Respect DefaultTabType.
3287 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3289 * ListView.cs: SPACE selects an item.
3292 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
3294 * ListView.cs: Reset the search string whenever the items are
3298 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3300 * ListControl.cs: For the first added item PositionChanged is fired
3301 _before_ ItemChanged, which leave us in a temporary invalid state - so
3302 we need to set the selected index from ItemChanged handler *if* we
3303 know that the first item has just been added *and* the items have been
3304 actually added to the ListControl.
3307 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3309 * TabControl.cs: Only clicks with the left button should be
3313 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3317 * TextBox.cs: Expose an internal method in TextBox to restore the
3318 original context menu, and call it from ComboBox to re-use it in the
3319 combobox containing the file name in FileDialog.cs.
3320 Fixes part of #393775.
3322 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3324 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3327 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
3329 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3332 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3334 * ComboBox.cs: Minor correction to previous patch: PageDown should
3335 also *try* to move by one item if the computed offset is negative,
3336 just like the PageUp case.
3338 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3340 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3341 should be done for at least 1 item, and not stay at the same item.
3342 Fixes part of #374713.
3344 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
3346 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3347 directories. [Fixes bug #393931]
3349 2008-05-22 Andreia Gaita <avidigal@novell.com>
3351 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3352 Don't fire events until the initial about:blank page has finished
3353 loading. Clean up events.
3355 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3357 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3358 FocusIn() too. This should fix the issue on switching
3361 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
3363 * X11Keyboard.cs : set XIM font size to somewhat reasonable
3364 number (ideally the input textbox size, but that could be
3367 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
3369 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3370 the ToolStripItem's TextChanged. [Fixes bug #393597]
3372 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3374 * TabControl.cs: When invalidating in SelectedIndex and we need to
3375 inflate to take into account the border of the tabs, make sure that
3376 the invalidated rect doesn't overflow the control bounds, since that
3377 would avoid updating at all.
3379 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3381 * TabControl.cs: Don't substract scroller width from the row width,
3382 since we need to take into account the total width of the control when
3383 calculating the position of the tabs. This avoids showing scroller
3384 when it is actually not needed.
3385 Fixes part of #322325.
3387 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3389 * ThemeVisualStyles.cs: Added support for TextBoxBase.
3391 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3393 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3394 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3396 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3398 * DataGridView.cs: Only paint the top left header cell if there
3401 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3403 * DataGridView.cs: When binding to a BindingSource, get the underlying
3404 list to bind to. [Fixes bug #345483]
3406 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
3408 * DataGridView.cs: Do not bind to collection properties.
3411 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3413 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3415 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3417 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3420 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3422 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3424 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3426 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3429 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3431 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3433 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3435 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3438 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3440 * TabControl.cs: Extended to handle the hot style.
3442 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
3444 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3445 Extended UpDownBase code to handle hot and disabled styles.
3447 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3449 * DataGridView.cs: Handle databinding to generic list type things.
3452 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3454 * DataGridViewCellCollection.cs: Add a method to find the cell
3455 with the given DataPropertyName.
3456 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3457 * DataGridViewColumnCollection.cs: Add a method to clear all
3458 autogenerated columns.
3459 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3463 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3465 * DataGridView.cs: Don't try to update the RowTemplate with
3466 a null CellTemplate.
3468 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3470 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3471 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3472 * DataGridView.cs: Lots of fixes/enhancements to databinding to
3475 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
3477 * Control.cs: Remove invalidating implicit child controls when
3478 control is invalidated. It was causing too many redraws on
3479 controls with implicit scrollbars.
3480 * ListView.cs: Listen to the Invalidated event and invalidate
3483 2008-05-20 Andreia Gaita <avidigal@novell.com>
3485 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3486 * HtmlDocument.cs: Check for nulls
3488 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3490 * Control.cs: In ControlCollection.RemoveInternal, remove the
3491 internal control before calling PerformLayout and OnControlRemoved,
3492 which was leaving us in an invalid state and causing a X error (bad
3493 match). Observe that Remove () call has the same order.
3494 Fixes an X error changing ComboBoxStyle.DropDownStyle.
3496 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3498 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3499 being fired if ControlStyles.UserPaint style is activated.
3502 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3504 * GridEntry.cs: Don't be so strict when setting the value -
3505 do not check if what we set is what we get.
3508 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3510 * XplatUIX11.cs: If there are no timers timeout should be 0
3513 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3515 * Control.cs: As a followup to invalidating implicit children when
3516 a control is invalidated, only invalidate them if they are in the
3519 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3521 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3523 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3525 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3527 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3529 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3530 * XplatUIWin32.cs: Made Win32DeleteObject public.
3532 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
3534 * GridEntry.cs: Determine HasDefaultValue more strictly by using
3535 PropertyDescriptor.ShouldSerializeValue.
3538 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3540 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3541 in the classic theme.
3543 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3545 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3547 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3548 ScrollBarHasPressedThumbStyle.
3550 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3552 * TextRenderer.cs: Included some methods in the 1.1 profile.
3554 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
3556 * Control.cs: When we make a control visible, it may have been
3557 previously visible and while it wasn't visible, the z-order of
3558 things may have been shuffled, so the control needs to have its
3559 z-order updated just in case. [Fixes bug #391518]
3561 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3563 * ThemeVisualStyles.cs: Added support for GroupBox.
3565 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
3567 * GroupBoxRenderer.cs: Included in the 1.1 profile.
3569 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
3571 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3572 bug #389996; XSelectInput() behaved as mouse handler robber,
3573 so remove extra call to it.
3575 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3577 * Control.cs: Simplify ControlCollection.Contains method.
3579 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3581 * DataGridViewRow.cs: Implement GetPreferredSize.
3583 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3585 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
3587 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
3589 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3590 painting and edit control fixes.
3592 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3594 * DataGridView.cs, DataGridViewCell.cs: Work around some external
3595 checks to make sure we are in an actual row/col for top left header cell.
3596 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3598 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3600 * Control.cs: Use long instead of int when handling WParam from
3601 mousewheel scrolling. Int was overflowing on Win64.
3603 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3605 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3606 flow panel without scrolling first, and then calculate the
3607 scrolling based on the new layout. [Fixes bug #390149]
3609 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
3611 * ListBox.cs: Invalidate after scrolling up when selected index
3612 changes. [Fixes bug #390151]
3614 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3616 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3617 set, default height to 150. I tried first with DefaultSize, but this
3618 is not generating a SetBoundsCore call before handle creation time, so
3619 we can take it into account. This is just what .net does.
3621 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3623 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3624 as it broke some stuff. Calberto is filing a bug for eno to
3627 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3629 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3630 to 0 is the current value is -1, and if style is not Simple, just
3631 return, like .net does.
3632 Fixes part of #374713.
3634 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
3636 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3637 progress bar stuffs, use doubles instead of ints to prevent
3638 overflow. [Fixes bug #389798]
3640 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3642 * XplatUIX11.cs, X11Keyboard.cs :
3643 Significant refactoring on XIM support. Now IM engine UI
3644 should show up, at mostly-correct preedit position.
3645 - Eliminated use of FocusWindow, as it is never mapped
3646 and hence blocks correct preedit position. XIC is now
3647 created per window, and it must be destroyed too when
3648 the window is destroyed.
3649 - WM_QUIT messages should not be filtered even when hwnd
3650 is zombie. Filtering it could cause endless loop.
3651 - Preedit position must move only when the window is alive.
3652 - Make it IDisposable and make sure to release XIM/XICs.
3654 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
3656 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3657 XplatUIX11.cs, XplatUIWin32.cs :
3658 fix for bug #325033 and #387693;
3659 - WM_QUIT should not be sent when no running application
3661 - SetTimer/KillTimer (especially on win32) should be
3662 invoked for the window that the timer is/will_be attached.
3663 - There could be unattached timers to a window when it's
3664 started. For those timers, hold pending timers and when
3665 a window is mapped, attach them to it.
3666 - WaitForHwndMessage() could run into loop when
3667 WM_SHOWWINDOW is handled before this method is called.
3668 So, strictly check wm_showwindow state.
3669 - Tick handler should not be invoked while one Tick handler
3670 call is still running (introduced Busy state).
3672 2008-05-13 Andreia Gaita <avidigal@novell.com>
3674 * WebBrowserBase.cs: Override Internal alternative methods for
3675 SetBoundsCore and OnResize instead of the protected ones.
3676 * Control.cs: Move SetBoundsCore and OnResize implementations to
3677 SetBoundsCoreInternal and OnResizeInternal, so they can be
3678 overriden internally (WebBrowserBase needs to catch them but can't
3679 override the protected methods without api compat problems)
3681 2008-05-13 Andreia Gaita <avidigal@novell.com>
3683 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3685 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3688 * ListView.cs: Remove debug messages.
3690 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3692 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3693 area is empty. Also calculate scrollbars in Simple mode based in area
3694 height and total number of items, not in MaxDropDownItems.
3695 Fixes part of #371991.
3697 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3699 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
3701 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3703 * BindingSource.cs: GetListSortDescription is not public.
3705 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3707 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3709 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3711 * HtmlElement.cs: Fix parameter names to match MS.
3712 * HtmlWindowCollection.cs: Should not be sealed.
3714 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3716 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
3717 button, because the thumb button will not get drawn if the scrollbar
3718 is disabled. [Fixes bug #389262]
3720 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3722 * ListBox.cs: Handle End key for multi-column listboxen.
3725 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3727 * ListBox.cs: Fix algorithm to determine which column our item is in.
3730 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3732 * ListBox.cs: Invalidate when the listbox is resized.
3735 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3737 * ListBox.cs: There is always at least one row in the ListBox (if
3738 we are doing these calculations.) [Fixes bug #389253]
3740 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
3742 * ListBox.cs: There is always at least one column in the ListBox.
3745 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3747 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
3748 ensure in Simple mode that the height is exactly the requested one.
3749 Also add the ComboBoxListControl to the controls collection in Simple
3750 mode even if handle hasn't been created.
3751 Fixes part of #371991.
3753 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3755 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
3756 our ComboBox owner instead of giving it back to the previous control (
3757 as done in other controls). Also remove the empty override of Select
3758 method, since we want to be selected *and* give focus to our owner.
3759 This should let the user do keys-navigation in Simple mode.
3761 2008-05-10 Geoff Norton <gnorton@novell.com>
3763 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
3764 problems with rapid scrolling of treeviews. Fixes #381084
3766 2008-05-10 Geoff Norton <gnorton@novell.com>
3768 * XplatUICarbon.cs: Deactivate the active window before
3769 activating the desired window. Completes fixing #386504
3771 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3773 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
3774 SmallChange to the item size width plus the padding, to match .net.
3776 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3778 * FileDialog.cs: Apply the custom filter typed by the user in the file
3779 name combobox as much as possible while navigating in the file dialog.
3782 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3784 * Binding.cs: Actually use NullValue if the retrieved value of
3785 data source is null or DBNull. Makes a test pass.
3787 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
3789 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
3790 * MimeIcon.cs: Provide a way to get icons from resources.
3792 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3794 * Binding.cs: When the value retrieved from the control to be assigned
3795 to the data source is null, actually use the 2.0 DataSourceNullValue
3796 value. Make pass a data binding test.
3798 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3800 * Control.cs: We need to invalidate implicit children even when
3801 invalidate is called with invalidatechildren = false. (Implicit
3802 children are really part of the parent.)
3803 * ListView.cs: Double-buffer internal child controls for less
3805 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
3806 owner ListView subitems for greatly increased performance.
3809 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
3811 * FileDialog.cs: When the user types a wildcard character in the
3812 filename combobox, update the contents of the folder using the text as
3814 Fixes part of #385261.
3816 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3818 * ListBox.cs: Various fixes for MultiColumn listboxen.
3821 2008-05-08 Andreia Gaita <avidigal@novell.com>
3823 * HtmlElement.cs: Implement Style property
3825 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
3827 * ListBox.cs: Respect checkboxes when measuring item size.
3828 * ThemeWin32Classis.cs: When drawing list items, don't draw
3829 text outside of the item's bounds to prevent overlapping.
3830 (.Net actually overlaps, but that's just silly.)
3833 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
3835 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
3836 Gert Driesen. Fixes bug #324830.
3838 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
3840 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
3843 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3845 * BindingSource.cs: When calling IsSynchronized, return the value of
3846 the related IList list.
3848 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3850 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
3853 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
3855 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
3856 navigation to scroll the grid if the current cell is not visible.
3858 2008-05-07 Andreia Gaita <avidigal@novell.com>
3860 * HtmlElement.cs: Implement TabIndex
3862 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
3864 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
3865 properties, even when there are no items.
3868 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
3870 * NativeWindow.cs: Add support for multiple handles per window.
3871 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
3872 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
3873 directly - use FromHandle instead.
3876 2008-05-07 Andreia Gaita <avidigal@novell.com>
3878 * HtmlElement.cs: Implement InnerHTML setter
3880 2008-05-07 Andreia Gaita <avidigal@novell.com>
3882 * HtmlDocument.cs: Implement Focused
3884 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3886 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
3887 methods, as well as add messages to the exceptions.
3889 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3891 * BindingSource.cs: Setting DataSource should only reset DataMember if
3892 the previous value was null (make pass a not working test).
3894 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3896 * BindingSource.cs: When EndInit call is postponed and is called until
3897 DataSource.EndInit is called, remove the handler for data source.
3899 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3901 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
3903 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3905 * ToolStripManager.cs: Store references to toolstrips as
3906 weak references so they do not prevent forms from getting collected.
3909 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3911 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
3912 on .Net. So do the same thing in WndProc.
3914 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3916 * TrackBar.cs: Commit patch from Andy Hume that corrects
3917 the clickable areas to better match .Net.
3920 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3922 * TrackBar.cs: Commit patch from Andy Hume that adds the
3923 ResizeRedraw control flag so the track bar repaints itself
3924 when it is resized. [Fixes bug #387072]
3926 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
3928 * TrackBar.cs: Commit patch from Andy Hume that adds better
3929 support for keyboard navigation when the TrackBar is vertical.
3932 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3934 * BindingSource.cs: Implement ISupportInitializeNotification support.
3936 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
3938 * ThemeVisualStyles.cs: Added support for ToolBar.
3940 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
3942 * ToolBar.cs: Made the Vertical property internal.
3944 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3946 * ThemeVisualStyles.cs: Added support for TrackBar.
3948 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3950 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
3951 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
3952 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
3953 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
3954 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
3955 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
3957 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3959 * ThemeVisualStyles.cs: Added support for UpDownBase.
3961 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3963 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
3964 Extracted Theme.UpDownBaseDrawButton.
3966 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
3968 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
3969 removed from the static toolstrips collection in ToolStripManager
3970 when they are disposed. Provides a workaround for bug #386483.
3972 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
3974 * GridEntry.cs: Read-only properties with Editor with
3975 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
3978 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
3980 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
3981 the menu key and there are no items on the menu.
3984 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
3986 * Control.cs: Avoid calling ToString on a string.
3987 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
3988 * GroupBox.cs: In FlatStyle property throw, not just create, the
3989 exception. Avoid calling ToString on a string.
3990 * ProgressBar.cs: Avoid calling ToString on a string.
3991 * ScrollBar.cs: Avoid calling ToString on a string.
3992 [All issues were found using Gendarme]
3994 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
3996 * NotifyIcon.cs: Prevent click events to be trigger after double click
3997 events. Fixes remaining issues of bug #324832.
3999 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
4001 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
4002 to mimic win32 behavior. Partially fixes bug #324832.
4004 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4006 * BindingSource.cs: Implement Find methods.
4008 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4010 * BindingSource.cs: Implement Sort, ApplySort overloads, and
4013 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4015 * ListBindingHelper.cs: When calling GetListItemProperties and the
4016 passed object is ITypedList, return the result of
4017 ITypedList.GetItemProperties instead.
4019 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4021 * LinkLabel.cs: Set default value of name on constructor of Link class
4022 only for 2.0 profile.
4024 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4026 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
4027 Fixes remaining issues of bug #346154.
4029 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4031 * LinkLabel.cs: Set a default value for name on internal contructor of
4032 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
4034 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
4036 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
4037 and refer all instances to owner.links. Partially fixes #346154.
4039 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4041 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
4042 length equal zero. Also called CreateLinkPieces in constructor. It fixes
4043 the LinkLabel test 'TestLinkArea'.
4045 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4047 * Form.cs: Remove menu before close form to prevent form to be not gaced.
4050 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4052 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
4055 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4057 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
4060 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4062 * MenuAPI.cs: Remove unused ProcessCmdKey method.
4064 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4066 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
4069 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4071 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
4074 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
4076 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
4077 sometimes we open a conext menu on mouse down of some controls and the mouse
4078 up is dispatched to menu and dont need to. It fix remaining issues of
4079 #363711 and other problems related to menu mouse click events.
4081 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4083 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
4084 some var names to better fit changes, now we have month_menu and today_menu
4085 vars. Fixes bug #363711.
4087 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4089 * MonthCalendar.cs: Handle every right mouse click to open context menu,
4090 right now the default month menu but it will be change to have "Go to today"
4093 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4095 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
4097 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
4099 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
4101 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4103 * ThemeVisualStyles.cs: Added support for TreeView.
4105 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4107 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
4108 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
4110 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4112 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
4114 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4116 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
4117 Implement 2.0 SP1 stuffs.
4119 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4121 * FileDialog.cs: Implement 2.0 SP1 stuffs.
4123 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4125 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
4126 Implement CanEnableIme property. (2.0 SP1)
4128 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4130 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
4133 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4135 * Control.cs: Provide an internal way for a control to override
4136 the setting of Height.
4137 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
4138 set height using new method.
4140 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4142 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
4144 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4146 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4147 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
4149 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4151 * ThemeVisualStyles.cs: Added support for StatusBar.
4153 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4155 * DataObject.cs: Add the other IDataObject interface.
4157 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
4159 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
4160 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
4162 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4164 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
4165 * ListView.cs: Hide non-public API.
4166 * MaskedTextBox.cs: Remove extra attribute.
4168 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
4170 * DataGridViewImageCell.cs: Use formatted value instead of value
4171 to calculate preferred size.
4173 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4175 * ListBox.cs: Move some initialization around so that selected_indices
4176 is not accessed before it is created.
4178 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4180 * InputLanguageCollection.cs: Implement the collection better.
4183 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4185 * ToolStripDropDownItem.cs: Get the correct event object for
4186 DropDownItemClicked.
4187 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
4190 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
4192 * DataGridViewRowCollection.cs: We don't currently support shared
4193 rows. Should fix test failures caused by previous commit.
4195 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4197 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
4198 datagridview gets set. Only paint cells in visible columns.
4199 * DataGridViewCell.cs: Draw border after cell content.
4200 * DataGridView.cs: Invalidate after setting some properties. Only
4201 use visible columns. Fit hit test bug with areas in the col/row header
4202 area but not in a row or col. Implement UpdateCell/Row methods.
4204 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4206 * DataGridViewElement.cs: Don't throw NIEX.
4207 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
4208 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
4209 * DataGridViewCheckBoxColumn.cs: Implement ToString.
4210 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
4211 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
4212 if the user filled in the formatting Value, use it.
4214 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
4216 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
4219 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4221 * BindingSource.cs: Some corrections to Filter property, as well as
4222 setting it for our list when resetting it.
4224 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
4226 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
4227 than the maximum. Fixes reopened bug #384182.
4229 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4231 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
4232 Fixes remaining issues of #367490.
4234 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4236 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
4237 SystemInformation.WorkingArea to get max_screen value.
4239 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4241 * BindingSource.cs: Implement Filter and RemoveFilter.
4243 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4245 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
4247 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4249 * X11Dnd.cs: When trying to convert data and we know we started the
4250 dnd loop, don't try to use the cached data if the loop is not running,
4251 which means that the data has been resetted.
4254 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4256 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
4259 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4261 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
4262 it to drawn off screen edge. Fixes bug #367490.
4264 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4266 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
4267 menu position to have only one assignment of Location var.
4269 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
4271 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
4272 for this patch. Fixes bug #384115.
4274 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4276 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
4277 the same. If LargeChange is zero, set a minimum size for the scroll
4278 thumb grip. [Fixes bug #384182]
4280 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4282 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
4285 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
4287 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
4289 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4291 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
4292 patch from Ernesto).
4294 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4296 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
4298 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4300 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
4302 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4304 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
4306 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
4308 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
4310 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
4312 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4314 2008-04-27 Andreia Gaita <avidigal@novell.com>
4316 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4317 supposed to return a reference to an mshtml interface, which we
4319 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4320 reference to an mshtml interface, which we don't support). Code
4322 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4323 DomDocument getter (it's supposed to return a reference to an
4324 mshtml interface, which we don't support). Code formatting cleanup.
4326 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4328 * ListView.cs: Ouch, forgot to commit.
4330 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4333 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4335 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4337 * ListView.cs: When calculating box selection for virtual mode, don't
4338 look for intersection with item's text, but item bounds, since that
4339 would mean read ListViewItem's text for _every_ item, and that's
4340 something we just can't do in virtual mode (items are only requested
4343 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
4345 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4346 partial support for managed windows (based on the patch from Ernesto).
4348 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4350 * ListView.cs: When doing a key search use FindItemWithText method
4351 instead of doing the search by ourselves, this way we avoid
4352 duplicating the code and also we handle the special case for virtual
4353 mode. To achieve that make our private overload of FindItemWithText
4354 internal and also have a 'roundtrip' parameter.
4356 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4358 * ListView.cs: When doing the layout don't request the
4359 ListViewItem instance if we are in virtual mode (since we can't request it
4360 until the item is actully drawn).
4362 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4364 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
4367 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4369 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
4370 the patch from Ernesto).
4372 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4374 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4375 * ThemeVisualStyles.cs: Added.
4377 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4379 * IDeviceContext.cs: Added a missing using.
4381 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4383 * ButtonBase.cs: Made IsDefault protected internal.
4384 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4386 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4388 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4389 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4390 RadioButtonRenderer.cs: Included in the 1.1 profile.
4391 * IDeviceContext.cs: Added.
4392 * TextRenderer.cs: Included a member in the 1.1 profile.
4394 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
4396 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4398 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4400 * ErrorProvider.cs: Make the error icons come after the control
4401 they refer to. It isn't the way the MS does it, but its better
4402 than what we were doing. See bug #368587.
4404 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4406 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4407 from Eric Albright that lazy loads the input language as ensures
4408 everything gets properly initialized. Fixes bug #373871.
4410 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
4412 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4413 implicit mnemonics. [Fixes bug #383000]
4415 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4417 * X11Dnd.cs: When canceling the operation, automatically restore the
4418 default cursor - normally the default cursor is restored when the
4419 mouse buttons are released, but we should be able to restore it even
4420 if the buttons are still pressed (for example, when pressing ESC to
4424 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4426 * X11Dnd.cs: When starting a new drad and drop operation, set control
4427 field to null, just as the other fields, to avoid calling any
4428 operation on a previous control. Also, when calling DndLeave on a
4429 control, set it to null, thus we don't fire that event multiple times
4433 2008-04-23 Geoff Norton <gnorton@novell.com>
4435 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4436 the whole_window object. Fixes #377084.
4438 2008-04-23 Andreia Gaita <avidigal@novell.com>
4440 * HtmlElement.cs: Implement RaiseEvent (event injection into the
4443 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
4445 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4447 2008-04-23 Andreia Gaita <avidigal@novell.com>
4449 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4452 2008-04-23 Andreia Gaita <avidigal@novell.com>
4454 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4457 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4459 * X11Dnd.cs: When the drop was cancelled, or could just not be
4460 performed, return DragDropEffect.None always (match .net).
4462 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4464 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4466 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4468 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4470 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
4472 * DataGridView.cs: Add support for error icon tool tips.
4473 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4474 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4476 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
4478 * X11Structs.cs: Add mouse button masks enum.
4479 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
4480 WM_EXITSIZEMOVE only once at the beginning and at the end of the
4481 form resize/move operation instead of for each step of it.
4482 [Fixes bug #346529 for the x11 backend]
4484 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4486 * DataGridView*: Implement support for drawing error icons.
4488 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4490 * TreeView.cs: Make vbar and hbar internal.
4491 * TreeNode.cs: If collapsing the node removes one of the TreeView's
4492 scrollbars, invalidate the whole thing.
4495 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4497 * TreeView.cs: Calling Sort() sets Sorted = true.
4498 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4499 if the nodes need to be sorted.
4502 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
4504 * Form.cs: Fire SizeChanged for both when the form is minimized and
4506 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
4507 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4509 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
4511 * ComboBox.cs: If the combobox is disabled, draw a disabled
4512 background before painting anything else.
4515 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4517 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4518 forget to send a Leave event to the target window - just as .net does
4519 when cancelling dnd operations.
4521 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4523 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4524 soon as possible - this happens when we send the drop message to the
4525 target window. This way we avoid firing any DragOver _after_ drop finished.
4528 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4530 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4531 * Form.cs: Handle form minimization as a special state, where size doesn't
4532 change, but we have to fire SizeChanged.
4533 [Fixes bug #325122 for the win32 and x11 backends]
4535 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4537 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
4538 if the handle is disabled.
4541 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4543 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
4544 for forms with FormBorderStyle.None.
4547 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
4549 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
4551 [Fixes bug #346529 for the X11 backend]
4553 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4556 - Send a mouse Enter message after say dragging the mouse with a
4557 button down and then release it in another client.
4558 - Reset the cursor to prevent X11 from remembering it and setting it
4559 before the control gets WM_SETCURSOR.
4560 - Qeueue a mouse move after a mouse enter like win32.
4563 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4565 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
4566 It's sent when the form gets moved, resized, closed.
4567 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4568 [Fixes bug #359193 for X11]
4570 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4572 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
4575 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
4577 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
4578 group. Fixes the 1.1 build.
4580 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4582 * ListView.cs: Use display indexes for selection in Details view, as
4583 well as do the proper layout based on display indexes for that view
4586 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4588 * ListView.cs: Focused item information is now stored as a display
4589 index, and display indexes are used all over the place for selection,
4590 instead of ListViewItem.Index values, which doesn't give us enough
4591 information to modify the selection in groups mode, and was broken.
4593 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
4595 * Control.cs: Do not fire MouseDown if validation of the control has
4597 * Form.cs: Validate the form before closing.
4598 [Fixes bugs #330501 and #353310]
4600 2008-04-18 Andreia Gaita <avidigal@novell.com>
4602 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4603 CreateWebBrowserSiteBase implementations
4604 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4605 Style and TabIndex setters
4607 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4609 * ListViewGroup.cs: When returning the actual item count, return the
4610 proper count for default group.
4613 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4616 * ListViewGroup.cs: When calculating groups layout, get the actual
4617 number of items per group, since groups added to the group BUT not
4618 added to the ListView are just ignored, and can cause some nasty
4619 exceptions because of the lack of synchronization. Also for
4620 ListViewGroup don't use lazy initialization for items, since we
4621 the common scenario is to use it always - and it helps us to refactor
4622 and clean the .ctor overloads.
4624 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4626 * ListView.cs: When adding an item to a ListViewItemCollection
4627 belonging to a group (ListViewGroup.Items), don't generate a redraw if
4628 the added item hasn't beeen previously added to the ListView instance
4629 refered by the group, since it will be ignored. This should avoid some
4630 really nasty flickering.
4632 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4634 * ListView.cs: When accessing an item in a specific display
4635 position, use the helper method GetItemAtDisplayIndex, instead of
4636 direct access to the reordered_items_indices array. When doing layout
4637 for groups set the correct Items index for the display position (since
4638 in groups mode items don't have the same position as in Items
4640 * ListViewGroup.cs: Add a field to store the starting item number,
4641 which is later used when calculating the layout.
4645 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
4647 * Application.cs: Fixed ProductVersion to fallback to the assembly
4648 version. Fixes regression for bug #325413.
4650 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4652 * ListView.cs: New helper method to retrieve an item in a _specific
4653 display_ position (the items can be displayed in a different order
4654 than one of Items collection).
4655 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4656 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4657 specific display position (again remember that items can be sorted
4658 different than Items).
4660 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4662 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4663 list and update it when the collection changes. We were recreating
4664 this several times per row paint and for every pixel the mouse moved
4666 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4669 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4671 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4672 list to use generics.
4673 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4674 and remove unneccessay casts.
4676 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
4678 * DataGridViewBand.cs: Add internal way to set displayed variable.
4679 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4680 * DataGridView.cs: Make sure we always keep track of Displayed
4681 rows and columns, and only draw things that are displayed.
4683 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
4685 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4686 whether the key events are filtered or not. Introduced
4687 PreFilter() process for this purpose. This fixes atokx3/iiimx
4690 2008-04-16 Andreia Gaita <avidigal@novell.com>
4692 * HtmlHistory.cs: Implement Length property
4694 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
4696 * DataGridView.cs: Call EndEdit when a sort is performed so we take
4697 away the edit textbox. Refactor to reuse column sort code.
4699 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
4701 * MenuAPI.cs: Remove the code that save and restore capture status of
4702 grab_control, this fixes some Menu and Context menu bugs but maybe it can
4703 cause some others, I cant figure the possible problems of this patch but
4704 right now remove the code looks to be better than keep it. This patch fixes
4705 bugs #357638, #378721 and #379570.
4707 2008-04-12 Andreia Gaita <avidigal@novell.com>
4709 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4710 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
4711 add missing properties and event handlers.
4713 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
4715 * ListBox.cs: Make sure the LargeChange we are setting is at least
4716 zero, to prevent an IOORE. [Fixes bug #379531]
4718 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
4720 * ComboBox.cs: Support item navigation by entering text. Firstly,
4721 in DropDownList mode, for each key-press select the next item
4722 starting with that letter.
4723 For other modes, when no item selected, on arrow-up/-down and open
4724 drop-down select the first item matching the text in the textbox.
4726 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
4728 * X11Keyboard.cs : Control.FromHandle() could return null
4729 in MoveCurrentCaretPos().
4731 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4733 * ListView.cs: When changing the size in VirtualMode, also Reset the
4735 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
4736 changing selection info for VirtualMode.
4739 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4741 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
4742 view, don't use LineLimit for the first item - use NoWrap *always*
4743 instead, since ListView.LabelWrap is not used for this view.
4746 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4748 * Binding.cs: Call UpdateIsBinding when setting control - probably
4749 Binding is already usable and we don't need to wait to check the
4750 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
4751 Created, just like 2.0 does.
4752 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
4754 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4756 * Binding.cs: Just realized we don't need to have a handler for
4757 BindingContextChanged, since this info should be now consumed directly
4758 in the BindingManagerBase. And also, the manager.IsBindingSuspended
4759 state info is checked directly, instead of caching it.
4761 * CurrencyManager.cs: IsSuspended should return always false if Count
4764 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4766 * Binding.cs: When calling PushData, return if manager.Count == 0,
4767 since we just don't have data to be read. Also, when setting the
4768 Control for binding, hook up some events to refresh the IsBinding
4769 state when BindingContext change or control gets created; use
4770 Control.IsHandleCreated instead of Control.Created check to set
4771 IsBinding state - we *actually* need to modify IsBinding when control
4772 is created, but we don't have any Created event, only HandleCreated.
4773 Fixes part of #349364.
4775 2008-04-11 Geoff Norton <gnorton@novell.com>
4777 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
4778 warping a null Caret.
4780 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4782 * DataGridView.cs: Implement row/column autosizing methods. Implement
4784 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
4785 * DataGridViewRowCollection.cs: Add an internal sorting method.
4787 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4789 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
4790 value in ListView drawing code.
4792 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
4794 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
4795 is clicked. Respect the user setting Cancel in FileOk.
4797 2008-04-11 Geoff Norton <gnorton@novell.com>
4799 * ListView.cs: Avoid setting and resetting control Width/Heights and
4800 calculate the final value and set it once. Prevents a feedback loop
4803 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4805 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
4808 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
4810 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
4811 Add some on-the-spot code, but it seems we don't need it.
4813 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4815 * Form.cs: Add method for DataGridView to trigger focus cues
4816 even when it handles the tab keypress.
4818 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
4820 * DataGridView.cs: More keyboard handling, tab, esc.
4821 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
4822 when at the beginning or end of the text in the text box.
4824 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4826 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
4828 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4830 * DataGridView.cs: Some fixups for showing and adding the edit control.
4831 * DataGridViewButtonColumn.cs: Implement ToString.
4832 * DataGridViewCell.cs: Size and position the control simultaneously.
4833 * DataGridViewTextBoxCell.cs: Use base to position control.
4835 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4837 * DataGridViewCell.cs: Fix up some formatting and painting code.
4838 * DataGridViewImageCell.cs: Implement some NIEX methods.
4840 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4842 * ToolStripItemCollection.cs: What moving an item from one owner
4843 to another, remove from source owner before adding to destination.
4846 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
4848 * PictureBox.cs: Call Load when ImageLocation is set.
4851 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
4853 * X11Keyboard.cs, XplatUIX11.cs :
4854 Implement over-the-spot mode (with some odd offsets).
4855 - set preedit position when caret is set.
4856 - Wrap XMoveResizeWindow() to move preedit position.
4858 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4860 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
4863 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4865 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
4866 and ScanTableIndex public, it fix compilations errors when compiling
4867 WinForms to generate keyboard layout resources.
4869 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
4871 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
4872 different element count than scan table. It prevents some errors in non
4875 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
4877 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
4879 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
4881 * DataGridView.cs: Call OnContentClick.
4882 * DataGridViewCell.cs: Do a null check on ValueType instead
4884 * DataGridViewCheckBoxCell.cs: Implement.
4886 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
4888 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
4890 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
4892 * X11Keyboard.cs : Check XGetIMValues() return value in
4893 case it does not return input styles in some environment.
4895 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
4897 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
4899 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4901 * BindingContext.cs: Stub UpdateBinding method.
4903 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
4905 * X11Structs.cs : added couple of structs for XIM support.
4907 Release XIM in case it failed to create XIC.
4908 Use consts for XNblah string.
4909 Add support for IM style customization and XIC creation
4910 for preedit-position and preedit-callback.
4911 Right now use MONO_WINFORMS_XIM_STYLE environment variable
4912 (list of: over-the-spot | on-the-spot | root). Only root
4915 (redoing r99172 with fix.)
4917 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
4919 * TreeView.cs: Center the checkbox a little better.
4921 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
4923 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
4924 Apply very nice patch from Ernesto Carrea that simplifies our
4925 scrollbar drawing. [From bug #376146]
4927 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
4929 * TreeView.cs: Correct the location of the root node checkbox when
4930 ShowRootLines = false. Don't draw the root lines for the root node
4931 when ShowRootLines = false. [Fixes bug #377535]
4933 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
4935 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
4937 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
4939 * MaskedTextBox.cs: Added missing attribute. Code formatting.
4940 * PageSetupDialog.cs: Added missing attribute. Code formatting.
4941 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
4942 * ImeMode.cs: Added missing field.
4943 * HtmlWindow.cs: Code formatting. Fixed line endings.
4944 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
4946 * HtmlHistory.cs: Code formatting. Fixed line endings.
4947 * HtmlDocument.cs: Code formatting. Fixed line endings.
4948 * ToolStripPanel.cs: Added missing IList implementation.
4949 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
4951 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
4953 * BindingContext.cs: Changed argument names to fix corcompare errors.
4954 * DataGridView.cs: Removed extra explicit interface implementation
4955 of IDropTarget. Code formatting.
4956 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
4957 * ComboBox.cs: Changed argument names to fix corcompare errors.
4958 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
4960 * GridColumnStylesCollection.cs: Changed argument names to fix
4961 corcompare errors. Removed extra tabs.
4962 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
4964 * Control.cs: Changed argument names to fix corcompare errors. Code
4965 formatting. Removed extra explicit IList implementation.
4966 * TextBox.cs: Changed argument names to fix corcompare errors. Code
4967 formatting. Use string.Empty instead of "".
4968 * GridItemCollection.cs: Changed argument names to fix corcompare
4969 errors. Code formatting.
4970 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
4971 corcompare errors. Code formatting.
4972 * ImageList.cs: Changed argument names to fix corcompare errors.
4973 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
4974 * DataGridViewRowCollection.cs: Changed argument names to fix
4975 corcompare errors. Code formatting.
4976 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
4977 * DataGridViewSelectedCellCollection.cs: Changed argument names to
4978 fix corcompare errors. Code formatting.
4979 * DataGridViewComboBoxCell.cs: Changed argument names to fix
4980 corcompare errors. Code formatting.
4981 * LinkLabel.cs: Changed argument names to fix corcompare errors.
4982 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
4984 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
4986 * BindingSource.cs: Changed argument names to fix corcompare errors.
4987 Removed extra explicit interface implementations.
4988 * DataGridViewSelectedRowCollection.cs: Changed argument names to
4989 fix corcompare errors. Code formatting.
4990 * ToolStripItemCollection.cs: Removed extra explicit interface
4991 implementation of IList.ReadOnly.
4992 * DataGridViewColumnCollection.cs: Changed argument names to fix
4993 corcompare errors. Code formatting.
4994 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
4995 * ListView.cs: Changed argument names to fix corcompare errors.
4996 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
4998 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
5000 * ListBindingHelper.cs: Changed argument names to fix corcompare
5002 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
5003 fix corcompare errors. Code formatting.
5004 * ToolStripPanel.cs: Removed extra explicit implementation of
5005 IDropTarget interface.
5006 * ListBox.cs: Changed argument names to fix corcompare errors. Code
5007 formatting. Removed extra tabs and spaces.
5008 * DataGridViewCellCollection.cs: Changed argument names to fix
5010 * Help.cs: Changed argument names to fix corcompare errors. Code
5012 * TabControl.cs: Changed argument names to fix corcompare errors.
5013 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
5015 * TableLayoutSettings.cs: Changed argument names to fix corcompare
5018 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5020 * ListBindingHelper.cs: When returning properties, only return those
5021 that are browsable. Also, don't do a linear search of the properties,
5022 but use the indexer of the PropertyDescriptorCollection class.
5024 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5026 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
5027 Dictionary containing the related (child) currency managers. Also,
5028 when setting DataSource, add datasource to our List if it is not a list.
5030 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5032 * PropertyGridTextBox.cs: Fix background color of the buttons.
5033 * PropertyGridView.cs: Make the entry less jumpy.
5035 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5037 * PropertyGrid.cs: Fix unused variable warnings.
5039 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
5041 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
5042 double-click. It expanded it once in the mouse down and then
5043 again in the double-click handler.
5045 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5047 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
5048 TypeConverter and UITypeEditors.
5050 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
5052 * Control.cs: Visibility should be set synchronously,
5053 so we must also redraw once it is and not rely on layouting or
5054 other code to repaint.
5057 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
5059 * DataGridViewCell.cs: Respect DataGridView.GridColor.
5061 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5063 * Control.cs: Invalidate when the alpha channel is less than 255,
5064 not only when control is transparent.
5066 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5068 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
5069 Implement some painting convenience methods that threw NIEX.
5071 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
5073 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
5074 * DataGridViewLinkCell.cs: Implement.
5076 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5078 * GridEntry.cs: Report the conversion exception error description.
5081 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
5083 * PropertyGridView.cs: Do not scroll to item on resize.
5086 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5088 * BindingContext.cs: When retrieving a BindingManagerBase, if the
5089 dataSource parameter is ICurrencyManagerProvider, then return
5090 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
5091 instead of creating a new one.
5093 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5095 * BindingSource.cs: Implement support for Type instances as
5098 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5100 * DataGridView.cs: Minor cleanups and call CellMouseUp.
5101 * DataGridViewCell.cs: Make some painting routines internally virtual.
5102 * DataGridViewButtonCell.cs: Implement.
5104 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
5106 * Control.cs: We always need to invalidate our children with
5107 transparent backgrounds when we are invalidated.
5110 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5112 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
5113 and CancelCurrentEdit on CurrencyManager respectively. Implement
5114 support for ICancelAddNew too.
5116 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5118 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
5119 call EndNew/CancelNew if list is ICancelAddNew.
5121 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5123 * DataGridView.cs: Guard against an exception while painting
5124 if there are no rows.
5126 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
5128 * DataGridView.cs: Implement a bunch of keyboard commands.
5130 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
5132 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
5133 isn't set, don't call OnPaint. [Fixes bug #375300]
5135 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5137 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
5138 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
5139 hookup the remaining events related to CurrencyManager, and fire
5140 OnListChanged also for the Clear () method.
5142 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5144 * BindingSource.cs: Use Current and Position implementations in
5145 CurrencyManager instead of using our own routines, since we need
5146 to be in synch with it. Count should NEVER return a -1 value, and
5147 also report ListChanged events for both simple IList data
5148 sources (manually) as well for IBindingList ones (by hooking up an
5149 event handler for it).
5151 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5153 * BindingSource.cs: Make one .ctor call the another, to avoid
5154 duplicate code. Add the CurrencyManager property, and also for AddNew
5155 throw the proper exceptions and show better error messages.
5157 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5159 * ComboBox.cs: Only adjust selectedindex if Handle has been
5160 created. Fixes failing test.
5162 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5164 * ComboBox.cs: Adjust selectedindex if we insert a new item
5165 above the current selectedindex in a sorted ComboBox.
5168 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5170 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
5173 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
5175 * DataGridViewTextBoxCell.cs: Implement stuffs.
5177 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5179 * TreeView.cs: Create the scrollbars even earlier to be
5180 double dog certain they are created before they are accessed.
5182 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5184 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
5186 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5188 * ScrollBar.cs: Create an internal safe Value setter so we
5189 won't crash if we try to set a value outside the min and max.
5190 * TextBoxBase.cs: Use safe value setter to guard against a
5191 potential NRE that is being reported by Reflector.
5193 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5195 * TreeView.cs: Create the scrollbars earlier in the constructor
5196 to attempt to guard against an NRE in SetTop in Reflector.
5198 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
5200 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
5201 DataGridViewRowCollection.cs: Do not scroll column and row headers,
5202 show messagebox on data format error, use column display index
5203 correctly, make sure HitTest supports new layout stuff,
5204 make sure scrollbars support new layout stuff.
5206 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5208 * XplatUIX11.cs : Patch by Doug Rintoul.
5209 For some IM engines, keypress events need to delay call
5210 to XPending() and XNextEvent() in the loop so that it
5211 does not mess the orders in XIM commit callback.
5212 Some KeyRelease events such as shift keys need to be
5213 processed both in the IM engine and winforms driver
5214 itself since winforms holds its own state check.
5216 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
5218 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
5220 * X11Keyboard.cs, XplatUIX11.cs :
5221 add primitive support for XIM input support (preedit-
5222 nothing and status-nothing). It requires precise event
5223 capturing (XSelectInput/"filterEvents") and different
5224 call to XFilterEvent against root window.
5225 Get composed string and send dummy WM_IME_COMPOSITION.
5226 Free XIM and XIC instances in finalizer.
5228 (This first patch does not include suggested changes
5229 by Doug Rintoul. It will follow.)
5231 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5233 * DataGridView.cs: When binding to a property, if the property
5234 doesn't have a setter, set the column to readonly.
5237 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5239 * ComboBox.cs: Guard against NRE if an arrow key is hit while
5240 we aren't dropped down. Support Home/End in DropDownList mode.
5243 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
5245 * TreeNodeCollection.cs: Don't increment count until we've
5246 saved our index to return.
5249 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5251 * Label.cs: Add padding to the label's AutoSize calculation.
5254 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5256 * ListBindingHelper.cs: Actually implement GetListName method.
5258 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5260 * BindingSource.cs: Throw the propert expceptions for some methods, as
5261 well as detect the list item type for Add method if DataSource is null.
5263 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5265 * DataGridViewCell.cs: I don't know why I commented this out,
5266 putting it back for now.
5268 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5270 * DataGridViewCell.cs: Remove storage for owning column, just
5272 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
5273 * DataGridViewColumnHeaderCell.cs: If the header text has been
5274 explicitly set, return it.
5277 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
5279 * DataGridViewRowCollection.cs: Disable row sharing when
5280 using data binding. Its a great feature, but lets work on
5281 getting DGV usable first before we worry about optimizations.
5283 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5285 * BindingSource.cs: When resetting our internal list, compute list
5286 item type information to be used for indirect list access. Also
5287 implement/tune some properties and methods related to the list access
5289 * ListBindingHelper.cs: Add a stub for GetListName method, used from
5292 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5294 * DataGridView.cs: If RowCount is increased while ColumnCount
5295 is zero, add a column. [Fixes bug #331649]
5297 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5299 * DataGridViewRowCollection.cs: When adding new rows for
5300 databinding, make sure they are place before the add row.
5303 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5305 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
5306 instead of Index order.
5308 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5310 * DataGridView.cs: If columns are added by increasing ColumnCount,
5311 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5314 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5316 * DataGridView.cs: Turn off and on the "new row" when
5317 AllowUserToAddRows is toggled. When the handle is created,
5318 set current cell and selected cell/row/col.
5320 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
5322 * ComboBox.cs: When navigating the drop down by keyboard, we
5323 need to scroll the list box if our selection moves out of the
5324 currently shown items. [Fixes bug #371990]
5326 2008-03-24 Luke Page <luke.a.page@gmail.com>
5328 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5329 on the control. Also now handles unicode compatibility characters and
5330 stores the unicode compatibility length on the stack. Fixes Bugs
5331 #355198 and #366436.
5333 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5335 * BindingSource..cs: Take into account DataMember when re-creating the
5336 List property, and also create a specific kind of list as needed.
5338 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5340 * ListBindingHelper.cs: Add a new case for GetList () method - when we
5341 get an empty IEnumerable, try to detect whether the datamember is
5342 valid or not for that type, if true, return null, and throw exception
5345 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
5347 * ComboBox.cs: Alt-Down should drop down the list, Esc should
5348 retract it. [Fixes bug #371989]
5350 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5352 * PropertyGrid.cs: Initialize the sorting button as pushed.
5354 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
5357 - Visually select the PropertyTab.
5358 - Filter Properties by Attributes properly.
5360 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5362 * MenuItem.cs: Remove menu item from parent when disposed.
5365 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5367 * ToolBar.cs: Don't reset layout_type if Dock = None.
5369 2008-03-21 Andreia Gaita <avidigal@novell.com>
5371 * UserControl.cs: Select the first available control when we get focus.
5374 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5376 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5377 the content if we are in edit mode. [Fixes bug #343964]
5379 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
5381 * DataGridViewCell.cs: Fix border painting for column headers.
5383 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5385 * BindingSource.cs: When setting or resetting data source,
5386 use ListBindingHelper.GetList () method, since it will get the list in
5387 case datasource is IListSource.
5389 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5391 * DataGridViewCell.cs: Implement lots more stuffs.
5393 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5395 * PropertyGridView.cs, GridEntry.cs: Implement support for
5396 UITypeEditor.IsDropDownResizable.
5398 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
5400 * DataGridViewCell.cs: Remove unused variables, improve how
5401 several of the property getters work.
5402 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5403 get its size from the parent row/col.
5405 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5407 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
5408 user alters manually the PropertyTabs collection via the
5409 PropertyTabs property.
5411 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5413 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5414 new tests for them to be sure to be compatible with .net.
5416 2008-03-20 Andreia Gaita <avidigal@novell.com>
5418 * WebBrowserBase.cs: Fix attributes, add events
5419 * WebBrowser.cs: Fix Padding signature
5421 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
5423 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5425 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
5427 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5428 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5429 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5430 passes the new suite of tests for it.
5432 2008-03-18 Andreia Gaita <avidigal@novell.com>
5434 * WebBrowser.cs: Add missing attributes, missing Padding and
5435 DefaultSize properties, remove extraneous getters
5437 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5439 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5442 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5444 * ComboBox.cs: Move resetting the selected index to keypress
5445 instead of textchanged. Changing the text programmatically
5446 should not trigger resetting the selected index. Fixes test.
5448 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5450 * ComboBox.cs: When the user types into the textbox, reset
5451 the selected index to -1. [Fixes bug #371672]
5453 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
5455 * FileDialog.cs: Support Control-A for selecting everything
5456 in an OpenFileDialog. [Fixes bug #371564]
5458 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
5460 * DataGridView.cs: When row/column visible/height properties
5461 change, invalidate. Take the NIEX out of InvalidateRow/Column
5462 etc. We don't support them yet, but we can just invalidate
5463 everything until we do support them. (Added MonoTODO). Set
5464 proper control styles.
5465 * DataGridViewRow.cs: Don't call PaintHeader if row headers
5468 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5470 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5472 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5474 * DataGridViewRow.cs: Only paint the white background in
5475 cell bounds, the row bounds extends past the cells if the
5476 grid width isn't as wide as the DGV.
5478 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
5480 * DataGridView*: Completely revamp the drawing to match the
5481 public API. Our grids now look better, and call all the
5482 appropriate methods and event to allow users to override
5483 the painting and do their own.
5485 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5487 * ListBindingHelper.cs: Implement 2.0 GetList methods.
5489 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5491 * DataGridView.cs: Implement BorderStyle.
5493 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5495 * FileDialog.cs: Apply patch from Andy Hume: Any time we
5496 are comparing attributes, make sure we only look at the
5497 one we are interested. These calls were failing if there
5498 were more than one attribute.
5501 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
5503 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5505 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5507 * PageSetupDialog.cs: Stub EnableMetric.
5508 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5509 * PrintPreviewDialog.cs: Add ProcessDialogKey,
5512 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5514 * MonthCalendar.cs: Remove unused variable.
5516 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
5518 * DataGridView*.cs: corcompare stuffs.
5520 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5522 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5523 The savings aren't worth the extra code to fix the optimization.
5526 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5528 * ToolBar.cs: Always call base.Dock in the Dock override so that
5529 Control's layout_type gets reset correctly.
5532 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
5534 * X11Dnd.cs: End DnD operation also for the middle mouse button.
5536 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5538 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5539 at the same time we do explicit ones, because we have to give all
5540 other controls on the container a chance to handle explicit ones
5541 first. If no one has an explicit mnemonic, then we can let the
5542 MenuStrip have a shot at implicit mnemonics.
5543 * MenuStrip.cs: Create an implicit mnemonic function.
5544 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5545 mnemonics for MenuStrips.
5548 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
5550 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5551 DataGridColumnStyle.cs: corcompare stuffs.
5553 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5555 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5556 Details - This is needed after we added the bits to use any available
5557 column also for List and SmallIcon view.
5559 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5561 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5562 at the proper place, not only when changing SelectedIndex and changing
5563 the selection using keys/mouse, as .net does.
5565 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5567 * ControlBindingsCollection.cs: Implement last 2.0
5568 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5569 in the new 2.0 Add methods.
5571 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5573 * ListBox.cs: When calling SelectedIndexCollection.Clear,
5574 return if no items are previously selected - this is done to avoid
5575 firing OnSelectedIndexChanged without need to do so. Also,
5576 when creating handle ensure that the focused item is visible (as
5579 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5581 * ListBox.cs: Rewrote/refactored most of selection code. We require
5582 the following things in selection: a) keep selection sorted (both
5583 indices and items), b) SelectedIndices automatically detect the
5584 selection mode, c) SelectedIndex should be the first selected item
5585 index, d) Need to Focus/adjust scroll bar when selecting a new item,
5586 not only for SelectedIndex, which is specially important in Multi*
5587 selection modes. To achieve this we are moving the selection core to
5588 SelectedIndexCollection and make depend all selection modifications on
5592 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5594 * ToolStrip.cs: Enable implicit mnemonics for drop down
5595 menu strips. [Fixes part of bug #367692]
5597 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5599 corcompare - fix parameter names [stragglers].
5600 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5601 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5604 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5606 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5607 was a mnemonic pressed as well as Alt. Also, if nothing handles a
5608 mnemonic, let the ToolStripManager have it even if it doesn't
5609 have a matching mnemonic.
5612 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5614 corcompare - fix warning about implicit implementation
5615 * ToolStrip.cs: Add IToolStripData interface.
5616 * IToolStripData.cs: Add.
5618 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
5620 corcompare - fix warning about implicit implementation
5621 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5624 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5626 corcompare - fix parameter names [N-Z].
5627 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5628 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5629 PropertyManager.cs, RichTextBox.cs,
5630 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5631 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5632 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5633 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5634 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5635 ToolStripContentPanel.cs, ToolStripDropDown.cs,
5636 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5637 ToolStripPanel.cs, ToolStripSeparator.cs,
5638 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5639 UICuesEventHandler.cs, UpDownBase.cs.
5641 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5643 corcompare - fix parameter names [G-M].
5644 GridColumnStylesCollection.cs, GridItemCollection.cs,
5645 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5646 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5647 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5648 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5649 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5651 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
5653 corcompare - fix parameter names [A-F].
5654 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5655 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5656 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5657 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5658 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5659 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5660 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5662 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5664 * GridEntry.cs: Do not convert not only if the types match,
5665 but also if the property type is assigneable from the value's
5669 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
5671 * PropertyGridView.cs:
5672 - Subscribe to the listbox only once and not everytime.
5673 - Update the textbox even if SetValue fails.
5674 - Close the listbox before calling TrySetValue just in case.
5677 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
5679 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5681 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5683 * ListView.cs: Implement support for custom column width based on
5684 Columns collection (we were previously using this collection only
5688 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5690 * ListViewItem.cs: For Tile view, always set bounds for the first
5691 subitem (which is the main one), and also don't let Width be larger
5692 than ListView.TileSize.Width. Improve code readibility also.
5693 * ThemeWin32Classic.cs: When painting the ListViewItem instances
5694 in Tile view, _always_ use the NoWrap flag.
5697 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
5699 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
5701 * GridEntry.cs: For MS compitability make all child properties
5702 readonly if the parent is readonly. Ugh.
5703 [Fixes bug #365945 and #365944]
5705 2008-02-29 Andreia Gaita <avidigal@novell.com>
5707 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5708 relative to the history
5710 2008-02-29 Andreia Gaita <avidigal@novell.com>
5712 * HtmlElement.cs: More handlers for mouse and key events
5714 2008-02-28 Andreia Gaita <avidigal@novell.com>
5716 * WebBrowserBase.cs: MouseClick sig changed.
5717 * HtmlHistory.cs: Implement history navigation
5718 * HtmlElement.cs: Add event handlers, and connect them.
5720 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
5723 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
5724 so that DisplayNameAttribute doesn't get ignored.
5725 - Check for ParenthesizeNameAttribute and parenthesize the Label.
5726 - Add support for PasswordPropertyTextAttribute
5727 * PropertyGridView.cs: Check if an entry is a password.
5728 [Fixes bugs #365589, #365586, #365588]
5730 2008-02-28 Andreia Gaita <avidigal@novell.com>
5732 * PropertyGridView.cs: Revert the message filtering change, as we
5733 need it to block after all. Remove block parameter, unnecessary.
5735 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
5737 * UserControl.cs: Better implementation of GetPreferredSize.
5738 First step to fixing bug #361441.
5740 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5742 * Binding.cs: Actually implement data binding support for
5743 classes implementing IBindableComponent.
5744 * ControlBindingsCollection.cs: Likewise.
5746 2008-02-26 Andreia Gaita <avidigal@novell.com>
5748 * PropertyGridView.cs: Use a message filter to check when to
5751 2008-02-26 Andreia Gaita <avidigal@novell.com>
5753 * Application.cs: Change the message_filters loop so a filter
5754 can be removed while looping.
5756 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
5758 * GridEntry.cs: Optimization in ToggleValue so that it caches
5760 * PropertyGridView.cs: An optimization so that the property isn't
5761 re-read twice for each StandardValue added to the drop-down menu.
5762 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
5766 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
5768 * Application.cs: Apply patch from Justin Cherniak to match
5769 MS better for ProductName, ProductVersion, and CompanyName.
5772 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5774 * Binding.cs: Actually implement 2.0 NullValue property. Also
5775 when changing the formatting related properties, only update the state
5776 if formatting_enabled is true (we don't mind otherwise).
5778 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
5780 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
5783 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5785 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
5786 of GetType on the current value as it uses reflection to
5787 determine the type. This fixes the case where the new value is
5790 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
5792 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
5795 2008-02-24 Luke Page <luke.a.page@gmail.com>
5797 * Line.cs, TextControl.cs: Implement offset x and y so that a
5798 document doesn't have to begin at (0,0) on the viewpoint.
5799 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
5800 bars and switches the text alignment (and therefore is now
5801 implemented for textbox). Fixes #321383.
5803 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5805 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
5806 properties. Also when changing FormattingEnabled update the control
5807 property -as .Net does-.
5809 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
5811 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
5812 * Binding.cs: Add stubs for the overloads of the Add method in
5815 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5817 * Binding.cs: PullData () returns a false value if we got an exception.
5818 Also when validating the control and we get an error, instead of
5819 setting the value of the previous one, cancel the event (tested in 1.1
5822 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
5824 * TreeView.cs: Make selected_node and highlighted_node internal.
5825 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
5826 to null when Nodes.Clear is called.
5829 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5831 * FontDialog.cs: Ensure that when the Font is set in code,
5832 all the gui pieces are updated accordingly.
5835 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5837 * TextRenderer.cs: Respect proposed size for MeasureString.
5838 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
5839 autosize, use a proposed width to force wrapping for long text.
5842 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5844 * TreeView.cs: Factor in checkboxes = false and state images in
5845 to HitTest. [Fixes bug #363360]
5847 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5849 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
5850 when drawing the selected range.
5853 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
5855 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
5856 ResizeRedraw control styles.
5859 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5861 * TreeView.cs: StateImages are basically custom checkboxes, so
5862 factor their size the same as real checkboxes when determining
5866 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5868 * MessageBox.cs: Make the message box wider if the form caption
5869 is longer than the text in the form.
5872 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
5874 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
5876 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5878 * TreeNode.cs: Guard against an NRE when the parent's
5879 StateImageList hasn't been set.
5882 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5884 * SplitContainer.cs: Add SupportsTransparentBackColor and
5885 OptimizedDoubleBuffering control styles.
5888 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5890 * Application.cs: For the app data paths and the registry key paths,
5891 ensure they are created before returning them to the user.
5894 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5896 * Application.cs: Guard against an NRE in CompanyName and
5899 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
5901 * Application.cs: For CompanyName, ProductName, and ProductVersion,
5902 make sure we handle all three cases correctly: attribute is present,
5903 attribute is present but is an empty string, and attribute is not
5906 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
5908 * PropertyGridView.cs:
5909 - Fix a NRE that caused a test failure
5910 - Another performance improvement - cache the standard values
5913 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
5915 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
5918 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
5920 * PropertyGridView.cs: Fix a big performance bug.
5922 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
5924 * SelectionRange.cs: Apply patch from Andy Hume to make
5925 constructor behavior more accurate. [Fixes bug #362117]
5927 2008-02-19 Andreia Gaita <avidigal@novell.com>
5929 * Control.cs: Added a new flag is_disposing to track if the
5930 window is currently in the process of being disposed of.
5931 This is used so that, when firing visibility changes triggered
5932 by unparenting controls during Dispose, the control doesn't
5935 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
5937 * ComboBox.cs: Set height to preferred height when the handle
5938 is created. [Fixes bug #360862]
5940 2008-02-18 Andreia Gaita <avidigal@novell.com>
5942 * XplatUIX11.cs: Create FosterParent with border width at 0.
5943 With the previous value of 4, everytime a control got reparented
5944 from parent = null, it's location would be shifted right and
5945 down by 4, since these coordinates would be offset by the
5946 FosterParent's border width.
5948 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
5950 * Control.cs: During diposing firstly remove ourselfes from
5951 the parent and *then* destroy our handle, because removing
5952 ourselfes from the parent controls collection causes
5953 VisibilityChange, etc events, which require a handle and end
5954 up recreating the control.
5956 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
5958 * GridEntry.cs: Set expanded state before notifying that the
5959 expansion has taken place.
5960 * PropertyGridView.cs:
5961 - Set the propertygridtextbox text to the selected
5962 StandardValue before proceeding to setting it.
5963 - Scrolling bugfixes.
5965 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5968 - Fix ValueText to not return null.
5969 - Fix conversion error reporting to actually happen.
5970 * PropertyGridView.cs: Set entry only if the text has changed.
5973 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5976 - Fix handling of a null current value.
5977 - Swallow editor exceptions.
5980 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5982 * PropertyGrid.cs: Clear current items first thing before
5983 repopulating subitems.
5985 - Handle null StandardValuesCollection.
5986 - Mark as not editable if there is no PropertyDescriptor and
5987 if the Converter cannot convert from string.
5988 [Part of fix for bugs #360666 and #358332]
5990 2008-02-15 Luke Page <luke.a.page@gmail.com>
5991 * MaskedTextBox.cs: Now skips non editable characters after a
5992 character has been entered and we are progressing to the next
5993 position in the MaskedTextBox.
5995 2008-02-15 Luke Page <luke.a.page@gmail.com>
5996 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
5997 that it changes the selection rather than just repositioning the
5998 cursor. Fixes Bug #360873.
6000 2008-02-15 Luke Page <luke.a.page@gmail.com>
6001 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
6002 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
6003 correctly. See #359330
6005 2008-02-15 Andreia Gaita <avidigal@novell.com>
6007 * XplatUIX11.cs: If the handle is null when posting a message, use the
6008 current thread queue to post instead. Fixes #332409
6010 * SendKeys.cs: Slight optimization
6012 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
6014 * PropertyGrid.cs, PropertyGridView.cs:
6015 Fix multiple scrolling and sizing issues.
6018 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6020 * PropertyGridView.cs: Ensure that drop down editors are shown
6021 in the WorkingArea of the screen.
6024 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
6026 * GridEntry.cs: Fail silently when UITypeEditor is missing.
6029 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6031 * Binding.cs: Implement 2.0 DataSourceNullValue property.
6033 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6035 * PropertyGridView.cs:
6036 - Clear the controls in the drop down form after it is hidden.
6037 - Fix Width sizing of the dropdown editors to match MSFT.
6039 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6041 * PropertyGridView.cs:
6042 - Fix height for drawing the grid entry
6043 text value, so that it clips multiline text properly.
6044 - Fix unfocusing to match MSFT.
6046 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
6048 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
6049 Fixes a bug where on repopulation after value changed items become
6052 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6054 * Binding.cs: For the 2.0 profile, look for a
6055 'PropertyChanged' event in the target control, and add checks for
6056 DataSourceUpdateMode property to change -or not- the data source
6057 from validation/control property change.
6059 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
6061 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
6062 not compare struct with null in 2.0).
6064 2008-02-10 Luke Page <luke.a.page@gmail.com>
6066 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
6067 updates the provider and if not using a provider, uses the internal document
6068 class implementation of password char. Also when showing text, uses display string
6069 from the provider, instead of the actual text.
6071 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6073 * Binding.cs: Ooooops, forgot to take into account the data_source
6074 and binding_member_info null case (it was breaking the Binding tests).
6076 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6078 * Binding.cs: Implement support for data source changes exposed by
6079 'PropertyNameChanged' events, and update the control property as
6082 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6084 * Binding.cs: Implement 2.0 WriteValue method.
6086 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6088 Commit patch from James Purcell for better AutoScale implementation:
6090 * ScaleControl should call GetScaledBounds with the control's total size rather
6091 than client size. GetScaledBounds should handle ignoring the borders in its
6092 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
6093 (for the most part they just call the base code now since that is fixed).
6094 * Added ScaleChildrenInternal to allow controls to disable scaling of children
6095 without having to override ScaleChildren (since none of .NET's controls do).
6096 This is required for most controls in Mono that have scrollbars to prevent the
6097 scrollbars from being moved/resized.
6098 * Nested ContainerControls can have a different scale mode than their parent.
6099 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
6100 designer produce different results both of which look incorrect).
6101 * Default AutoScaleMode for ContainerControl should be Inherit.
6102 * Simplified workaround for ComboBox scaling issue.
6103 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
6104 1.0 style auto scaling should scale the whole control's size instead of
6105 ignoring the borders (except for Form) and the rounding is done differently to
6106 preserve control alignment.
6107 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
6109 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
6110 * CurrentAutoScaleDimensions should round the estimated character width instead
6112 * ListBox's GetScaledBounds should always use the height it was set to instead
6113 of the height that was passed in. This prevents rounding errors from
6114 accumulating quickly with IntegralHeight.
6117 2008-02-08 Andreia Gaita <avidigal@novell.com>
6119 * Form.cs: Add a null check (darn it).
6121 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6123 * MdiClient.cs: Make sure the requesting form actually owns the
6124 control menu items before removing them. Also, use
6125 Suspend/ResumeLayout when adding or removing items so we only
6129 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
6131 * Control.cs: Guard against an NRE in ShowFocusCues.
6134 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6136 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
6137 property, as well as stubbing DataSourceUpdateMode.
6139 2008-02-08 Andreia Gaita <avidigal@novell.com>
6141 * Form.cs: When closing forms, get focus back to the active control of the
6142 active form. [Fixes #341314, corner case]
6144 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6146 * MdiClient.cs: After we move the scrollbars, invalidate the NC
6147 area, so any old scrollbar artifacts are cleaned up.
6150 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6152 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
6153 for our menus, display that control box menu instead of the 1.1
6156 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6158 * MdiControlStrip.cs: Add property to access the mdi form tied to
6160 * MdiClient.cs: Be smarter about removing and adding toolstripitems
6161 to the implicitly merged menu. Every time we clicked the form, items
6162 were getting removed and the re-added, causing the form to jump around
6163 as the menu resized.
6165 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6167 * MdiClient.cs: Make sure the NormalBounds always gets set. It
6168 was being reset by the implicit menu merge for menustrips.
6171 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6173 * Form.cs: Don't do the previous change when WindowState = Normal,
6174 or it messes up where the window is placed. Fixes test failure.
6176 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
6178 * Form.cs: When becoming visible, if we are an MDI child, call
6179 SetWindowState with a dummy old_state so that changes will actually
6181 [Fixes the 2nd part of bug #325473]
6183 2008-02-07 Andreia Gaita <avidigal@novell.com>
6185 * Control.cs: Reset properties to their pre parent-change values in case
6186 the new parent == null (in which case we're basically removing the control,
6187 and don't want any events fired due to fake property changes)
6190 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
6192 * PropertyGridView.cs:
6193 - Refactor SetValue to allow setting the value
6194 when a custom editor is used, but the entry is not editable.
6195 - Remove the custom editor control on CloseDropDown.
6198 2008-02-06 Andreia Gaita <avidigal@novell.com>
6200 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
6201 reflection only on 1.1, this property is public on system.drawing on 2.0.
6204 2008-02-06 Andreia Gaita <avidigal@novell.com>
6206 * WebBrowser.cs: Do a normal page refresh by default.
6208 2008-02-05 Andreia Gaita <avidigal@novell.com>
6210 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
6211 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
6212 platforms. Fixes #359036
6214 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
6215 platform-specific flags.
6217 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6219 * Binding.cs: Add 2.0 BindableComponent property - just return control
6222 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
6224 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
6225 Jonathan for this patch. Fixes #358442.
6227 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
6229 * Form.cs: If we change the active MDI child form, let the others
6230 know they need to repaint their title bar so it will appear inactive.
6231 [Fixes part 1 of bug #325473]
6233 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
6235 * PropertyGridView.cs: Do not trucate custom editors' width
6236 and align them to the left.
6237 [Fixes #358353 and #358349]
6239 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6241 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
6242 Also fix the arguments passed to CollectionChangeEventArgs in the
6245 2008-02-04 Geoff Norton <gnorton@novell.com>
6247 * Hwnd.cs: The conversion to Quartz coordinates happens in
6248 System.Drawing. Removing this translation from here.
6250 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6252 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
6253 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
6254 GridItemCollection.cs:
6255 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
6257 2008-02-04 Geoff Norton <gnorton@novell.com>
6259 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
6260 SYSKEYUP if any other key has been pressed in the mean time.
6263 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6265 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
6266 when the item in current position is different than 0. Also, save the
6267 item index in the beginning of the operation, instead of getting the
6268 index of the item when the event is actually performed. Lastly clean
6269 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
6273 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6275 * Form.cs: Alt-Minus for MDI children system menu should work
6276 with both the minus keys on the keyboard.
6279 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6281 * Control.cs: Don't invalidate on region change. The WM should
6282 take care of this automagically. Keeps us out of an infinite
6283 paint loop if someone changes the Region in the OnPaint.
6286 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
6288 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
6290 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6292 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
6293 down the MonthCalendar only on F4, not Alt+F4.
6294 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
6297 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6299 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
6300 if its part of a DateTimePicker, else, use the back color.
6303 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
6305 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
6308 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6310 * CurrencyManager.cs: When we get a ListChanged event from our source,
6311 always fire our own ListChanged event, as .Net does.
6313 2008-02-03 Luke Page <luke.a.page@gmail.com>
6315 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6318 2008-02-03 Luke Page <luke.a.page@gmail.com>
6320 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6321 property. Removed if for richtext property that was always true.
6322 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6324 2008-02-03 Luke Page <luke.a.page@gmail.com>
6326 * TextBoxBase.cs - commited patch from James Purcell that
6327 correctly sets the FixedHeight control style when the MultiLine
6328 property is changed on a TextBox control. Fixes bug 358229.
6330 2008-02-02 Luke Page <luke.a.page@gmail.com>
6332 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6333 Fixes bug 351938 - caret is positioned correctly when drawn
6334 and when calculating textual position of caret, no longer
6335 has a NRE in certain situations.
6337 2008-02-01 Geoff Norton <gnorton@novell.com>
6339 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6340 get that region removed from the paint event.
6341 * XplatUICarbon.cs: Remove the window mapping after disposing of
6342 window. Prevents a crash with handle reuse. Optimize exposes
6343 only onto visible windows (rare; but possible).
6345 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6347 * UpDownBase.cs: Make sure the internal textbox calls the base's
6348 OnMouseDown and OnMouseUp so the textbox will function correctly.
6349 There were notes saying it doesn't chain up, but its an internal
6350 class, so our implementation may differ.
6353 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6355 * ListBox.cs: Fix a logic error and don't process MouseDown
6356 for mouse buttons other than Left.
6358 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6360 * Control.cs: Remove HeightInternal.
6361 * ListBox.cs: Commit patch from James Purcell that correctly
6362 calculates heights for ListBoxen.
6365 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6367 * Label.cs: Apply patch from James Purcell that corrects the
6368 signature of the AutoSize property.
6371 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
6373 * ListBox.cs: Don't throw [Mouse]Click events for buttons
6374 other than the left mouse button.
6376 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
6378 * Control.cs: Remove my awesome optimization as it caused some
6379 regressions with control ordering. :(
6382 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
6384 * PropertyGridView.cs: Fix a NRE on double click when there is no
6387 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6389 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6391 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
6393 * ListBox.cs: Call MouseClick and MouseDoubleClick.
6396 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6398 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6399 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6400 instead of Hwnd.bmp_g.
6402 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6404 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6405 Use the Hwnd one instead.
6407 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6409 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6411 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6413 * Form.cs: corcompare for RestoreBounds.
6415 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6417 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6419 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
6421 * Form.cs: Handle Alt-Minus for MDI children forms.
6422 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6423 Add mnemonics to the control menu.
6426 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6428 * Binding.cs: Initial implementation bits of FormattingEnabled
6429 property and BindingComplete event (2.0).
6430 * BindingCompleteEventArgs.cs: Internal methods for setting error text
6433 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6435 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6436 table.Location. [Fixes bug #354672]
6438 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
6440 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6441 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
6443 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6445 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6446 of doing all the re-bound work, just invalidate and call SetControlText
6447 to set the updated text of selected item to our textbox.
6450 2008-01-28 Andreia Gaita <avidigal@novell.com>
6452 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
6453 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6454 missing properties and methods. Add Load, Unload, Error, GotFocus,
6455 LostFocus, Resize, Scroll events (only load and unload are connected)
6457 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
6459 * AccessibleObject.cs: Modified argument names to match MS.
6460 * Button.cs: Modified argument names to match MS.
6461 * BindingContext.cs: Modified argument names to match MS.
6462 * BindingMemberInfo.cs: Modified argument names to match MS.
6463 * ButtonBase.cs: Modified argument names to match MS.
6464 * ComboBox.cs: Modified argument names to match MS.
6465 * Control.cs: Modified argument names to match MS.
6466 * CheckedListBox.cs: Modified argument names to match MS.
6467 * CommonDialog.cs: Modified argument names to match MS.
6468 * DataGrid.cs: Modified argument names to match MS.
6469 * CursorConverter.cs: Modified argument names to match MS.
6470 * ControlPaint.cs: Modified argument names to match MS.
6471 * CheckBox.cs: Modified argument names to match MS.
6472 * ControlBindingsCollection.cs: Modified argument names to match MS.
6473 * BindingSource.cs: Modified argument names to match MS.
6474 * DataFormats.cs: Modified argument names to match MS.
6475 * ContainerControl.cs: Modified argument names to match MS.
6476 * CurrencyManager.cs: Modified argument names to match MS.
6477 * Application.cs: Modified argument names to match MS.
6478 * ContextMenuStrip.cs: Modified argument names to match MS.
6479 * ContextMenu.cs: Modified argument names to match MS.
6480 * BindingManagerBase.cs: Modified argument names to match MS.
6481 * WindowsFormsSection.cs: Fixed line ending.
6483 2008-01-27 Andreia Gaita <avidigal@novell.com>
6485 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6486 detecting that the dropdown toolwindow is hidden. EndLoop outside the
6489 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
6491 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6492 MS. Code formatting.
6494 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6496 * Binding.cs: Don't avoid the Format event if the control
6497 property type is object. Also, if the value retrieved by
6498 the data source is null _and_ the control proeprty type
6499 is object, return Convert.DBNull (match .Net).
6500 Fixes part of #324286.
6502 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6504 * ListControl.cs: Since we are getting two BinginContextChanged events
6505 for the same binding context instance (when the control is added to
6506 form, and when the form is actually shown), take it into account only the
6507 first time for a given binding context instance.
6508 Fixes part of #324286.
6510 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6512 * PropertryGridView.cs: Ops.
6514 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
6516 * PropertyGridView.cs: Close dropdown form if the owner form is
6520 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
6522 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
6523 RootGridEntry.cs, CategoryGridEntry.cs:
6524 PropertyGrid rewrite.
6525 - Rewrite all of the control logic in PropertyGrid.
6526 - Rewrite all of the ComponentModel logic in GridEntry.
6527 - Rewrite all UI work in PropertyGridView.
6528 - Many bugfixes, etc.
6530 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
6532 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6533 when all contained controls are autosize or dock-fill. Also take into
6534 account when the total percentage of column/row sizes is not 100%.
6537 2008-01-24 Andreia Gaita <avidigal@novell.com>
6540 - Save a reference to the IDocument in the instance and
6541 use that one instead of going to WebHost.Document; the document that the
6542 WebHost returns might not be the right one (in case of frames).
6543 - Use the hashcode returned from the IDocument interface.
6544 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
6545 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
6546 LinkColor, Url, VisitedColor, Window
6549 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
6550 set_Attribute, NextSibling, Parent, TagName, AppendChild,
6551 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6552 SetAttribute, Equals, equality operators.
6553 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
6554 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
6556 * HtmlElementCollection.cs: Change implementation to use a generic
6557 collection. Implemented Enumerator and CopyTo
6559 * HtmlHistory.cs: Add constructor, no implementation yet.
6561 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6562 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
6563 Equals, equality operators.
6565 * HtmlWindowCollection.cs: Implemented.
6567 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6568 has been deprecated).
6570 * WebBrowserBase.cs: Use Completed event to track document loading
6571 (Navigated has been deprecated)
6573 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
6575 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
6576 level MenuItems do not respect tabs.
6579 2008-01-23 Geoff Norton <gnorton@novell.com>
6581 * XplatUICarbon.cs: Ensure that windows are created in their initial
6582 FormWindowState. Finished fixing Fullscreen windows on Carbon
6584 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6586 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6587 be used as grab_control. Also save status of capture before show ContextMenu
6588 and restore it after close.
6590 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6592 * Control.cs: Internal FindRootParent method added to return high control
6595 2008-01-23 Geoff Norton <gnorton@novell.com>
6597 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6598 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6599 it work again. Handle HITTEST events.
6601 2008-01-23 Geoff Norton <gnorton@novell.com>
6603 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
6604 a crash in certain cases. Support for fullscreen windows in certain cases.
6606 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
6608 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6611 2008-01-23 Geoff Norton <gnorton@novell.com>
6613 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6615 2008-01-23 Geoff Norton <gnorton@novell.com>
6617 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
6619 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6621 * SplitContainer.cs: Remove unused declarations.
6622 * Binding.cs: Remove unused declarations.
6624 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6626 * Form.cs: Remove unused declaration of 'active' in Activate method.
6627 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
6628 prevent compilation warnings.
6629 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6630 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6631 * Bindings.cs: Remove unused formatting_enabled declaration.
6632 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6634 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
6636 * PropertyGridView.cs: Remove usused 'ex' declaration.
6637 * DataGridView.cs: Remove unused declarations.
6639 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6641 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6643 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
6644 to Control class, it makes possible to grab menu to controls that can't
6645 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6646 WmMouseMove removed since it was used only to track menu events.
6649 - Moved all active_tracker stuff from Form.
6650 - ProcessActiveTracker added to prevent code duplicity, now mouse events
6651 can call this method instead of reimplement all necessary code handle for
6653 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6657 - Remove special handle to ToolStripOverflow, now we can grab menu to
6658 controls that can't reach Form using parent tree.
6659 - Change type of grab_control from Form to Control.
6661 2008-01-22 Geoff Norton <gnorton@novell.com>
6663 * TextBoxBase.cs: Split up the sizing of controls and placing of
6664 controls. Fixes a bug where scrollbars in Reflector could be sized
6665 wrong and have non-working thumbers.
6667 2008-01-23 Geoff Norton <gnorton@novell.com>
6669 * XplatUI.cs: Refactor environment variables to default support to the
6670 Carbon driver on the Mac.
6672 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
6674 * Label.cs: Uses new LabelPainter for drawing operations.
6675 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6676 * Theme.cs: DrawLabel and LabelDefaultSize removed.
6678 2008-01-22 Geoff Norton <gnorton@novell.com>
6680 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6682 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6684 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6685 through the normal flat button code and don't draw the checkbox glyph.
6686 * Theme.cs: Button->ButtonBase signature change.
6689 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6691 * LinkLabel.cs: Uses new class LinkLabelPainter.
6693 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
6695 * MessageBox.cs: Adjust right border space, we don't need to add
6696 "space_border*2" two times.
6698 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6700 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6701 becomes a wrapper around Padding.
6702 [Fixes a part of bug #354676]
6704 2008-01-22 Geoff Norton <gnorton@novell.com>
6706 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
6707 acquired. Also ensure the buffer is large enough to grab the header
6708 we need on linux boxes.
6710 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
6712 * Control.cs: Implement a custom enumerator so people can delete
6713 from the Controls collection while in a foreach.
6716 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6718 * PropertyGridView.cs: Fix focusing behavior:
6719 - Tab should focus the grid text box.
6720 - Clicking on the labels shouldn't focus the grid text box.
6722 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6724 * PropertyGridView.cs: IsValueTypeGridItem should return true
6727 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
6729 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
6730 - Renamed GridEntry.SelectedObjects to TargetObjects to better
6731 reflect the property name role.
6732 - PropertyGrid.GetTarget is not required as the target is known
6734 - Setting values will handle value types as a special case now and
6735 populate them up in the chain.
6738 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
6740 * Hwnd.cs: Create a public property for the Graphics we keep around.
6742 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6744 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
6745 when the current object selection changes.
6746 Fixes failing test SelectedObject_Null2.B5.
6748 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
6750 * PropertyGrid.cs: Process Browsable properties with
6751 DesignerSerializationVisibilityAttribute.Content as being expandable.
6752 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
6753 will not be expandable. We should be nested components-friendly now.
6755 2008-01-21 Andreia Gaita <avidigal@novell.com>
6757 * WebBrowserBase.cs: Check if control was loaded properly,
6758 don't bind if it wasn't.
6760 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
6761 GetElementFromPoint, equality operators, OpenNew, Write.
6762 Remove extra set_Body
6764 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6766 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
6767 that makes our AutoScale* stuff more tolerant to different orders
6768 of being set. [Fixes bug #354669]
6770 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6772 * PropertyGridView.cs, PropertyGridTextBox.cs:
6773 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
6774 [Fixes #339005 and #348209]
6776 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
6778 * PropertyGridView.cs: Hide the grid text box before adjusting it
6779 for the newly selected GridItem.
6782 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
6784 * Form.cs: Give MDI children the opportunity to cancel the parent form
6785 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
6786 properly for both the parent and child.
6787 * Application.cs: Signature of internal method changed, pass the previous
6791 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6793 * PropertyGridView.cs: Set the property value only if it has changed.
6796 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6798 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
6799 If the mouse hasn't actually moved, ignore these messages so the currently
6800 highlighted menuitem isn't reset to the one under the mouse.
6803 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
6805 * PropertyGridView.cs: When the property changes Invalidate the GridItem
6806 in order for the properties with UITypeEditor.GetPaintValueSupported == true
6807 to reflect the change visually.
6810 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
6812 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
6813 to 2.0 button drawing.
6814 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
6815 the button text is tall enough for one line. LineLimit says it will
6816 always draw at least one line, but it is a lie.
6819 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
6821 * XplatUIStructs.cs, X11Keyboard.cs :
6822 added some more VK_* keys to be handled.
6824 2008-01-16 Andreia Gaita <avidigal@novell.com>
6826 * Control.cs: Check if there is a container before setting or getting
6827 the validation flag.
6829 2008-01-16 Andreia Gaita <avidigal@novell.com>
6831 * ContainerControl.cs: Add flag to track if a control cancels validation,
6832 so we don't fire click events.
6835 - (HandleClick) Check if validation was cancelled before firing the click
6836 events (doubleclicks are fired, but not clicks)
6837 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
6838 ContainerControl.set_ActiveControl, but in the case of non-selectable
6839 controls, like a Label, activecontrol is not set.
6841 * ButtonBase.cs: Only fire clicks if validation passes.
6845 2008-01-16 Geoff Norton <gnorton@novell.com>
6847 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
6850 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
6852 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
6853 SelectedPath, just display the default dialog instead of crashing.
6856 2008-01-16 Geoff Norton <gnorton@novell.com>
6858 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
6859 AddExpose instead of trusting apples compositing manager which doesn't
6860 work for our use case. Remove some dead code causing warnings and
6861 redecorate some other code to prevent warnings.
6863 2008-01-16 Geoff Norton <gnorton@novell.com>
6865 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
6866 carbon signals us to redraw. Fixes another portion of the flickering bug
6868 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6870 * Form.cs: Prevent the MdiParent property to be set when value is the same
6871 as value already set. Fixes bug #328019.
6873 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6875 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
6876 it prevents NRE when closing mdi child windows. Fixes bug #325211.
6878 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6880 * InternalWindowManager.cs: Invalidade close button after mouse up when
6881 mdi form is prevented to close.
6883 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
6885 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
6886 thanks to Andy Hume. Fixes bug #325433.
6888 2008-01-16 Andreia Gaita <avidigal@novell.com>
6890 * LinkLabel.cs: Reset focused_index when resellecting the control.
6893 2008-01-15 Geoff Norton <gnorton@novell.com>
6895 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
6898 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
6900 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
6903 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
6905 * ContainerControl.cs: Setting AutoScaleMode to anything should set
6906 Form.AutoScale to false.
6907 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
6908 AutoScaleBaseSize should be changed on Font change unless it has been
6912 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
6914 * MenuAPI.cs: On instance of MenuTracker check if source control is
6915 ToolStripOverflow and use properly method to find form.
6918 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
6920 [Fixes bug #323241 Transparent toolbar support]
6922 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
6925 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
6926 defined in control style to mimic win32 behavior.
6928 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
6929 it will be transparent.
6931 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
6933 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
6934 CreateParams for ToolBar controls.
6936 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6938 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
6939 FixedToolWindow, SizeableToolWindow, or None for border styles have
6940 different minimum sizes than regular forms. Implemented to fix
6941 regression in PDN with toolbox being too wide.
6943 2008-01-14 Andreia Gaita <avidigal@novell.com>
6945 * HtmlElementCollection.cs: Implemented
6947 * HtmlElement.cs: Implemented:
6955 * HtmlDocument.cs: Implemented GetElementsByTagName.
6957 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6959 * Screen.cs: Stub BitsPerPixel to always return 32.
6961 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6963 * Form.cs: Implement RestoreBounds.
6965 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6967 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
6968 Sebastien and his fabulous magical problem-finding machine:
6969 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
6970 respect the value set.
6972 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
6974 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
6975 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
6977 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6979 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
6980 messages (to match .Net), we need to remove the capture ourselves.
6982 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
6984 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
6985 will process the message and close our window.
6988 2008-01-10 Geoff Norton <gnorton@novell.com>
6990 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
6991 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
6994 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6996 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
6999 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7001 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
7002 Linux doesn't care, having a minimum matches MS and keeps the window
7003 from becoming too small to use window decorations.
7006 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7008 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
7009 ShowFocusCues. Make focus rectangles fit the text instead of the whole
7010 control. [Fixes bug #325419]
7012 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
7014 * ComboBox.cs: Guard against an NRE if the user open a new form from a
7015 SelectedIndexChanged event. This closes the combobox dropdown, and we
7016 were trying to dispose it. [Fixes bug #352830]
7018 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7020 * Control.cs, Form.cs: Implement the necessary semantics for
7021 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
7022 to determine if a focus rectangle should be drawn.
7023 * PropertyGrid.cs: Fix property visibility to match override.
7024 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
7026 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
7028 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
7031 2008-01-09 Geoff Norton <gnorton@novell.com>
7033 * XplatUICarbon.cs: Scroll windows in the correct direction.
7035 2008-01-09 Geoff Norton <gnorton@novell.com>
7037 * XplatUICarbon.cs: Track all created utility windows so we can hide them
7038 when the app is deactivated or spaces is enabled.
7040 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7042 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
7043 extra separation pixel for the label rect origin if SmallImageList is
7044 null, and thus we don't need that separation between icon and label
7046 Patch by Ernesto Carrea.
7049 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
7051 * StatusStrip.cs: Invalidate after completing a layout. The base
7052 OnLayout does this, but we don't call the base.
7053 * ToolStripItem.cs: Revert the previous change to invalidate after
7055 [Fixes bug #351341 better.]
7057 2008-01-07 Geoff Norton <gnorton@novell.com>
7059 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
7060 not a notification to exit the application. Listen for WM_QUIT
7063 2008-01-07 Andreia Gaita <avidigal@novell.com>
7065 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
7067 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
7069 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
7070 so it can repaint at the correct location.
7073 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7075 * ListControl.cs: SelectedValue should return a null value if
7076 SelectedIndex is -1. Also, when setting it, it should throw an
7077 ArgumentNullException if the value is null, as well as taking
7078 into account the String.Empty value, instead of ignoring it (we have
7079 tests for that now).
7080 Fixes part of #324286.
7082 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
7084 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
7085 SelectionStart is updated after pressing enter. Fixes bug #351918.
7087 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7089 * TextControl.cs: Revert a piece r92316 that prevented the fix
7090 from working when there were multiple tags in the text box.
7093 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7095 * TextControl.cs: Apply patch from Luke Page that prevents an
7096 NRE when determining the beginning of a paragraph.
7099 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7101 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
7102 caret gets moved with clicking away from a selected block of
7103 text. Fixes bug #351885.
7105 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7107 * TextControl.cs: Apply patch from Luke Page that takes line
7108 alignment into account for mouse selection, so that center and
7109 right aligned text can be selected.
7112 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7114 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
7115 issues after loading an RTF file by using the correct line feeds.
7118 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
7120 * TextControl.cs: When deleting multiple line selections, we need
7121 to invalidate every line beginning at the first line of the selection.
7122 Patch from Luke Page fixes bug #351791.
7124 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7126 * ListControl.cs: When getting a CurrencyManager.PositionChanged
7127 event, don't set SelectedIndex if the number of items is 1. This is
7128 because, for the first item, PositionChanged is fired _before_
7129 ItemChanged (the place where we actually populate the items), and
7130 leave us in a temporary invalid state (since items collection is
7134 2008-01-04 Geoff Norton <gnorton@novell.com>
7136 * XplatUICarbon.cs: Create native toolwindows instead of
7137 the managed drawing ones.
7139 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7141 * LineTag.cs: If the line doesn't have any characters, return
7142 0 for GetCharIndex. Fixes an AOORE exception after certain
7143 caret movements. Fixes bug #351683. Patch by Luke Page.
7145 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7147 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
7148 is hit when there is selected text, only the selected text gets
7149 deleted, not the character in front of the selection as well.
7152 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7154 * ComboBox.cs: When the values are displayed, calculate the
7155 ComboListBox scrollbar's LargeChange based on the visible area's
7156 height and the actuall ItemHeight, instead of calculating it
7157 based on MaxDropItems value, since it's not used by our _current_
7161 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7163 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7164 Patch from Luke Page that fixes issues with font colors and styles
7165 not showing up in a readonly RichTextBox. Fixes bug #324354.
7167 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
7169 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
7170 from Luke Page. This one fixes bug #349926.
7172 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7174 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
7175 an item in the IBindingList source changes with
7176 ListChangedType.ItemAdded. Ignore for now firing the event for other
7177 changes, since we want to have tests for those cases as well.
7179 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7181 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
7184 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7186 * TextBoxTextRenderer.cs: Implement a cache for measuring each
7187 character. This is effective because the typical usage of a
7188 TextBox is with a limited amount of fonts and characters, and
7189 the current implementation of TextBox measures everything one
7190 character at a time. Another second or two speedup for bug #347238.
7192 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7194 * Control.cs: Rewrite the Font getter to only query the parent's
7195 Font property once instead of twice. Since this operation is
7196 recursive, the queries were growing exponentially as the control
7197 tree got deeper. Another second or two speedup for bug #347238.
7199 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
7201 * Control.cs: Avoid setting a parent (and more importantly, updating
7202 the zorder of all its children) if the parent is already correct in
7203 WmShowWindow. Decreases the startup time of the test case on bug
7204 #347238 from 35 seconds to 11 seconds.
7206 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7208 * X11Dnd.cs: When the dnd operation has started and we are
7209 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
7210 This is done to match .Net, which doesn't send those messages after
7211 dnd operation was completed/cancelled.
7214 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7216 * ToolStrip.cs: Previous change should be != null, not == null.
7219 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
7221 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
7222 user may have moved the mouse off the current item during the event.
7224 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7226 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
7227 calling GetItemAt for every MouseMove event by also taking into
7228 account whether any mouse button is pressed (probably dragging);
7229 if so, we can call GetItemAt, and if not, try to not call it
7230 (GetItemAt can be quite expensive when used with a large number of items).
7232 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7234 * ListView.cs: Implement -finally- support for dnd, by calling
7235 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
7237 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
7238 simple calculation of distances for all the items in the owner
7241 2007-12-21 Geoff Norton <gnorton@novell.com>
7243 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
7244 for windows that are originally created as invisible. Fixes missing
7245 main window in paint-mono.
7247 2007-12-21 Geoff Norton <gnorton@novell.com>
7249 * XplatUICarbon.cs: Register our D&D handler. Register our custom
7250 subclass handler for com.novell.mwfview subclassing HIView. Implement
7251 Pasteboard and Dnd methods.
7253 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7255 * ListBox.cs: When we got focus, give focus to first item if there
7256 wasn't any pervious focused item. Also update navigation to depend on
7257 SelectedIndex rather than FocusedItem, just as .Net does.
7260 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7262 * ListBox.cs: Both FindString and FindStringExact methods must do an
7263 case insensitive search, should allow the last valid index to be
7264 passed in the overload taking an initial index, and should also
7265 continue searching from the top back to the specified index when it
7268 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7270 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
7271 redraw issue, and allows RichTextBox to draw colored text even while
7272 disabled or readonly.
7274 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7276 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
7277 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
7278 and doesn't grey text in a disabled RichTextBox.
7280 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7282 * RichTextBox.cs: Apply patch from Luke Page that adds better support
7283 for many RTF commands: quad alignment, separate formatting for blocks
7284 inside groups, and ParDef support. Makes the test case from bug #324589
7287 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7289 * LineTag.cs: Fix an error in the new Draw method that caused
7290 a crash when rendering the document on bug #324589.
7292 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
7294 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
7295 TextControl.cs: Apply patch from Luke Page that adds support
7296 for URL links in RichTextBox.
7297 [Fixes enhancement #342516]
7299 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
7301 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
7302 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
7304 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7306 * ListBox.cs: When a key gets pressed, try to find a string
7307 if the key is a character or a digit.
7310 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7312 * TableLayoutPanel.cs: Remove some unused variables.
7314 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7316 * DateTimePicker.cs: Commit patch from Luke Page that ensures
7317 we don't end up at an invalid date when we click the up/down
7318 spinner to change the month or year. Fixes bug #348682.
7320 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
7322 * Application.cs: Calling Exit in 2.0 should chain to the
7323 Exit (CancelEventArgs) version so it can be cancelled.
7324 * Form.cs: Create a flag to allow raising the Closing
7325 events to be skipped. We raise them once in Application.Exit
7326 and don't want to raise them again when the Form is actually
7327 closed. [Fixes bug #349073]
7329 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
7331 * ToolStripDropDown.cs: Guard against an NRE when there
7332 hasn't been a mainform set in the application context.
7335 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7337 * ListBox.cs: When SetBoundsCore gets called, besides
7338 calling UpdateScrollBars, update the value of
7339 last_visible_index, since we could need to show more items
7340 than before, and we need to let the paint routines know that.
7343 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7345 * ListView.cs: Add DesignerSerializationVisibility attribute to
7346 InsertionMark property.
7347 * ListViewItem.cs: Add same attribute to Position property.
7349 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7351 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7354 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
7356 * ThemeWin32Classic.cs: Don't draw the background on a
7357 flat button if there is a background image.
7360 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7362 * ListBox.cs: If we remove the item currently selected,
7363 remove it not only from SelectedItems, but also
7364 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
7365 the items count decreased and focused_item has bigger value than that.
7367 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7369 * Control.cs: Perform our layout after we resize ourselves
7370 if we had to adjust our AutoSize. Missed commit for bug
7373 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
7375 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7376 we can provide an implementation of AutoSize.
7379 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7381 * ListBox.cs: Add the internal overload Sort (bool paint),
7382 to indicate whether we actually need a paint or we will
7383 call Refresh ourselves. This way we don't request a paint
7384 _before_ having an updated and valid layout.
7387 2007-12-12 Andreia Gaita <avidigal@novell.com>
7389 * XPlatUIX11.cs: Send paint messages when updating a systray icon
7390 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7391 properly invalidated.
7394 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7396 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7397 don't simply assign it to our internal group field, but instead
7398 use our Group property, which should do all the neccessary work
7399 required to support groups. Fixes an issue reported to me (mail) by a
7400 guy using this new feature.
7402 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
7404 * Control.cs: Use Scale instead of ScaleControl to ensure the
7405 whole hierarchy gets scaled.
7408 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7410 * DateTimePicker.cs: Don't set the internal MonthCalendar's
7411 Parent property. Doing this causes the control to be hosted by
7412 the Form instead of being a popup window.
7415 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7417 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7418 at an index higher than Count, just use Add instead of Insert.
7421 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
7423 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7424 DrawPictureBox, this is handled by Control.PaintBackground.
7427 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
7429 * MenuAPI.cs: When process menu keys return true by default only if menu is
7430 active. Fixes bug #342892.
7432 2007-12-09 Andreia Gaita <avidigal@novell.com>
7434 * Control.cs: check if windows are actually mapped before
7435 trying to zorder. Fixes #342509, #346955
7437 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7440 * ListViewInsertionMark.cs:
7441 * ThemeWin32Classic.cs: Implement the drawing side of the
7442 new 2.0 ListView.InsertionMark property.
7444 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
7446 * CurrencyManager.cs: Silence some debug spew.
7448 2007-12-07 Geoff Norton <gnorton@novell.com>
7450 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7451 masks for our children as well as siblings to avoid having to query
7452 Quartz for this information.
7453 * XplatUICarbon.cs: Implement a delegate based system to pass
7454 information to System.Drawing. Implement Async methods. Remove
7455 the hack for the resize thumb and imlpement a transparent Grow Box.
7456 Rework the messaging system to proplery create window's and messages,
7459 2007-12-06 Andreia Gaita <avidigal@novell.com>
7461 * X11Keyboard.cs: Use Xutf8LookupString to support international
7462 characters under alternate codepages. Patch from #340878
7464 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7466 * ListView.cs: When doing layout computations, set position in the
7467 ListView instances (we cache the position just as .Net does).
7468 * ListViewItem.cs: New internal setter method for Position. Also set
7469 position field as also available in 1.1, since we are going to use it
7470 now in the common case.
7472 2007-12-06 Andreia Gaita <avidigal@novell.com>
7474 * Control.cs: When removing controls, get the actual container
7475 to notify about active control changes. Fixes 341314.
7477 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7479 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7481 2007-12-05 Andreia Gaita <avidigal@novell.com>
7483 * Control.cs: When updating the zorder, ignore windows that are not
7484 mapped. Fixes #342509
7486 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7488 * ListViewItem.cs: Actually implement serialization on this class.
7490 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
7492 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7493 LinkCollection. Spaces to tabs, and removed extra tabs.
7495 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7497 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7498 tests to fail (hopefully).
7500 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7502 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7503 the image margin so custom renderers can correctly place it.
7505 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7507 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7508 so custom renderers can correctly place it.
7510 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
7512 * Application.cs: Let WM_CHAR messages flow through to controls
7513 hosted in Strips. [Fixes bug #343972]
7515 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7517 * ToolStripManager.cs: Guard against an NRE I ran into.
7519 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
7521 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
7522 a Link is manually added to the Links collection, we need to set
7523 its owner, so it can invalidate properly.
7526 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7528 * ListView.cs: When changing ListViewItem.Position (which calls
7529 ListView.ChangeItemLocation), invalidate not only the area
7530 corresponding to the main item, but also to the area occupied
7531 by the items being moved.
7533 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7535 * ListView.cs: When changing the position of a given item,
7536 don't use item bounds, but item areas (which includes the item spacing
7537 between them). Also, use first/last position if the requested
7538 position is outside bounds (as .Net does). Invalidate the previous and
7539 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7540 in a specific position, instead of directly accessing Items collection
7541 (this is done to get the right item - remember an Item can have a
7542 different position in the grid than in the Items collection).
7544 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7546 * MessageBox.cs: Calculate text area instead of just top left, this rect
7547 area will be used in DrawString. Fixes bug #343364.
7549 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7551 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7552 screen width. Partially fixes bug #343364.
7554 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
7556 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7557 code inside recalculate, it makes code more simple.
7559 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
7561 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7562 between update or add icon. Fixes bug #324344.
7564 2007-11-21 Andreia Gaita <avidigal@novell.com>
7566 * XPlatUIX11.cs: Do not treat tool windows as if they have no
7567 window manager, since that stretches the drawing area to include
7568 the window decorations, and they get hidden. Reverts r84444 and fixes
7569 #335849 and #342790 (mdi and pdn3 regression)
7571 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7573 * ListView.cs: When setting focused item, try to give focus to the
7574 previous one _only_ if the previous one remains valid.
7577 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
7579 * Application.cs: Revert r89650, as it broke a common case to fix
7580 an obscure case. Fixes bug #342606.
7582 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7584 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7586 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
7588 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
7589 alignment. [Fixes #324228]
7591 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7593 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7596 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
7598 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7599 it prevent problems when empty captions. [Fixes #342141]
7601 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
7603 * Label.cs: Use Size instead of None. Fixes bug #342077.
7605 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7607 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7609 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7611 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7612 but there isn't a MdiContainer.
7615 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
7617 * TextControl.cs: Don't recalculate document if the recalc_start and
7618 recalc_end hasn't changed.
7621 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
7623 * DataGridViewTextBoxCell.cs: Removed CWL.
7625 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7627 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7629 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7631 * TextControl.cs: Missed some code for bug 341534 to trigger a
7632 recalculation when the font changes.
7634 2007-11-16 Andreia Gaita <avidigal@novell.com>
7636 * Control.cs: When updating the zorder, check if the child to update is
7637 the same control that is set to always be on top (i.e., scrollbars), and
7638 just put it on top directly. Fixes BadMatch error on pdn3
7640 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7642 * ListView.cs: Throw the needed exceptions for FindNearestItem.
7644 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
7646 * Control.cs: Don't perform a new layout when a label changes its text,
7647 cause label handles its own autosizing.
7650 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7652 * ListView.cs: Implement 2.0 FindNearestItem methods.
7654 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7656 * ToolStripPanel.cs: Make Join at least add the control to the panel,
7657 even if the rest of what Join does isn't supported. Add some more
7658 support for vertical toolbars.
7659 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7660 [Fixes the application breaking parts of bug #341998]
7662 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7664 * ToolStripItem.cs: When determining if we have a check/image margin,
7665 we need to look at ShowCheckMargin as well as ShowImageMargin.
7667 2007-11-15 Geoff Norton <gnorton@novell.com>
7669 * XplatUIOSX.cs: Rename to...
7670 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7671 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
7673 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
7675 * KeysConverter.cs: The default values should be an array of Keys, not
7676 strings. Also, the array has more values for 2.0.
7679 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7681 * Application.cs: Change ExecutablePath to use
7682 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7685 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7687 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7688 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7689 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7690 be ignored. Create a new GetLineEnding that can specify which types of
7691 line endings to look for. On Insert, only create new lines for \n and \r\n.
7694 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
7696 * TextBoxBase.cs: As we loop through each line changing the font, tell
7697 the document that the line needs to be recalculated. Fixes bug #341534.
7699 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
7700 [Another round of refactoring]
7701 * Line.cs: Add DeleteCharacters.
7702 * LineTag.cs: Add Delete.
7703 * TextBoxBase.cs: Update to use new methods.
7704 * TextControl.cs: Refactor the Delete* methods.
7706 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
7708 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7709 the patch. [Fixes #324856]
7711 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7714 * ListViewItem.cs: Add an initial implementation of
7715 2.0 ListViewItem.Position getter.
7717 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7719 * ListView.cs: Add a reordered_items_indices array, to allow us
7720 to have a different sorting than that of Items (the sorting in Items
7721 could not match the actual sorting in screen). This is needed to
7722 implement a pair of 2.0 features.
7723 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
7724 actual position in the ListView grid, since it could have a position
7725 different than its Index (position in ListViewItemCollection).
7727 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7729 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
7730 not draw partial lines.
7731 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
7732 LineLimit flag from the base is preserved.
7733 Fixes the windows part of bug #338965.
7735 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
7737 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
7738 so that it can be canceled in KeyPress.
7741 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7743 * ListView.cs: In ItemControl, reset mouse-handling related
7744 fields even if we dont' have items (we still should reset them when
7745 we had items but then called Items.Clear). Partially based in a patch
7749 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
7751 * Application.cs: In ProductVersion first try AssemblyFileVersion
7752 before falling back to assembly version. Fixes bug #339787.
7754 2007-11-08 Andreia Gaita <avidigal@novell.com>
7756 * HtmlElement.cs: Implement InnerText setter.
7757 * WebBrowserBase.cs: Implement Navigated event support.
7758 Add flag to track when the browser "document" is ready to be retrieved.
7759 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
7760 Make sure browser document is ready before retrieving it.
7761 Clean up cached objects (document) when moving to a new page through
7762 any of the navigation methods.
7763 Use the new Mono.WebBrowser.INavigation interface to control navigation.
7764 Implement OnNavigated event.
7766 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
7768 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
7769 DrawLinkLabel, this is handled by OnPaintBackground.
7770 Fixes bug #339565, part II.
7772 2007-11-07 Andreia Gaita <avidigal@novell.com>
7774 * Control.cs: Revert r88915. Selecting text on a textbox depends on
7775 getting a Select call on click, so this call needs to be here for now.
7778 2007-11-07 Geoff Norton <gnorton@novell.com>
7780 * OSXStructs.cs: Add the kEventClassApplication constants.
7781 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
7782 application is deactivated otherwise Menu overlays linger on top of
7783 other application windows.
7785 2007-11-07 Geoff Norton <gnorton@novell.com>
7787 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
7788 dont support cursors yet anyways. This allows Reflector to run.
7790 2007-11-07 Geoff Norton <gnorton@novell.com>
7792 * XplatUIOSX.cs: Implement DragSize.
7794 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7796 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
7797 ItemControl, request the focus, as .Net does. This is needed after
7798 Control does not request focus anymore when it receives a
7801 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
7803 * Label.cs: Make DrawImage internal so it can be called from Theme code.
7804 Remove the DrawImage call from OnPaint.
7805 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
7806 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
7807 but before we draw the text for DrawLabel and DrawLinkLabel.
7810 2007-11-05 Andreia Gaita <avidigal@novell.com>
7812 * Control.cs: Remove select call on click. Fixes #325809
7814 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7816 * ListViewItem.cs: Add 2.0 Position property getter.
7818 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7820 * ListView.cs: Add 2.0 BackgroundImageTiled property.
7821 Also, to make it work properly, change item's BackColor and
7822 BackgroundImageLayout as needed.
7823 * ThemeWin32Classic.cs: Don't fill any background rectangle
7824 in ListView.ItemControl when drawing items; just let the Control
7825 base implementation fill it.
7827 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7829 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
7830 as well as adding a custom 'dummy' Converter, as .net does.
7832 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7834 * PropertyGridView.cs: When clicking drop-down button,
7835 select an index in the listbox only if our standard values collection
7836 has one or more items.
7838 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7840 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
7843 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
7845 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
7846 the value is not changed. This ensure a pushed button remains in that
7847 state when clicked again. When switching the value of PropertySort
7848 between Categorized and CategorizedAlphabetical, do not update the
7849 grid items and do not fire a PropertyChangedEvent. When clicking the
7850 sorting buttons, do not modify the PropertySort value when switching
7851 between Categorized and CategorizedAlphabetical but only update the
7854 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
7856 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
7858 * PropertyGrid.cs: Also put Categorized button in pushed state when
7859 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
7860 for help description label.
7862 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7864 * ListView.cs: When calculating the biggest item for a given column,
7865 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
7868 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
7870 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
7871 value for PropertySort on 1.0 profile. PropertySortChanged event
7872 should only be fired on 2.0 profile. Fixed NullReferenceException
7873 in UpdateSortLayout when PropertyGrid contains no items.
7875 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
7877 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
7880 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7882 * ListViewItem.cs: Implement 2.0 IndentCount property.
7884 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7886 * X11Dnd.cs: When sending status in a dnd operation, compare current
7887 effect with the 'allowed' field instead of 'drag_data.Allowed', since
7888 the later is only created when a Winforms application is both the
7889 source and the target, but not when we are the target only.
7890 Fixes part of #324251.
7892 2007-11-01 Geoff Norton <gnorton@novell.com>
7894 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
7896 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
7897 children out of the drawing view on mac.
7898 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
7899 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
7901 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
7903 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
7904 on the non-hosted-control part of it shouldn't do anything.
7905 Fixes part of bug #327498.
7907 2007-11-01 Andreia Gaita <avidigal@novell.com>
7909 * WebBrowserBase.cs: revert previous change, resize can be called anytime
7911 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
7913 * Application.cs: When a toolstrip has the keyboard input loop, let messages
7914 it does not use flow through to controls that are hosted in menus.
7915 Same with mouse clicks.
7916 * Form.cs: Don't close all menus on click if the click is on a
7917 control hosted in a menu.
7918 Fixes part of bug #327498, and part of bug #325969.
7920 2007-10-31 Andreia Gaita <avidigal@novell.com>
7922 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
7924 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
7926 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
7927 Addresses an issue raised in bug #336218.
7929 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
7931 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
7932 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
7934 2007-10-30 Andreia Gaita <avidigal@novell.com>
7936 * ContainerControl.cs: Check if the active control is a
7937 child of a removed control and update active_control accordingly.
7940 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7942 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
7943 or the MaxDate. Fixed bug #337693.
7945 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7947 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
7948 after calling SetWindowLong for a form, to force an immediate NC refresh.
7949 Fixes first part of bug #325150.
7951 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7953 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
7954 simple. Fixes the last part of bug #322668.
7956 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7958 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
7959 needs to be TopMost as well, or else the MessageBox is under the form.
7960 Patch by George fixes bug #325300.
7962 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7964 * X11Dnd.cs: When starting a new drag operation, reset the static
7965 'dropped' field to false (previously the implementation didn't reset
7966 it and got confused after the first drag).
7969 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7971 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
7972 items instead of re-creating them all. For this purpose we now cache
7973 both CategoryGridEntry items and the GridEntries for the main object's
7975 * GridItem.cs: Make SetParent method abstract.
7976 * GridEntry.cs: Override the SetParent method (already there, but now
7980 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7982 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
7983 depending on its depth (as .Net does). Update the needed values in
7984 MouseDown handler. Also draw the plus/minus rect after the label,
7985 so we don't draw on top of it.
7987 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
7989 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
7990 processed by forms or controls when menu is active. [Fixes #333548]
7992 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7994 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
7995 parent doesn't have focus. This was causing ToolStripTextBoxes to take
7996 focus on mouse over.
7998 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8000 * TextControl.cs: Code cleaning, simplifying.
8002 2007-10-24 Geoff Norton <gnorton@novell.com>
8004 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
8005 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
8007 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
8009 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
8010 the cap is maxvalue, not actually 0. [Fixes bug #336218]
8012 2007-10-24 Andreia Gaita <avidigal@novell.com>
8014 * SendKeys.cs: apply jpobst's patch to bug #332409
8016 2007-10-23 Andreia Gaita <avidigal@novell.com>
8018 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
8019 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
8022 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8024 * PropertyGridView.cs: If a property has an UIEditor available,
8025 make the drop-down/editor button available only if the property
8028 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8030 * PropertyGridView.cs: Don't make the grid item textbox
8031 editable when a drop-down control is available, but
8032 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
8033 true. The same bur the color of the grid item value's label.
8035 2007-10-22 Geoff Norton <gnorton@novell.com>
8037 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
8038 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
8039 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
8040 driver. Padd the bottom of all real windows so the resize thumb doesn't
8041 obscure scroll/status bars.
8043 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
8045 * WindowsFormsSection.cs: Implement.
8047 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8049 * MdiClient.cs: Maximize new active mdi child when a maximized child is
8050 closed see #325434 patch.
8052 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
8054 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
8057 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8059 * PropertyGridView.cs: When showing the textbox for a grid item,
8060 have two local variables to store the read-only and non-editable
8061 status of a grid item (we were previously using just one variable
8062 to do this, when actually they are slightly different).
8063 Fixes part of #325023.
8065 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8067 * PropertyGridView.cs: When showing a drop-down list, try to get the
8068 values using TypeConverter.ConvertTo (to convert to a string). Fixes
8071 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8073 * PropertyGrid.cs: When updating a property and populating sub grid
8074 items, remove the previous ones, and invalidate the specific area.
8075 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
8076 area behind a grid item.
8077 * GridItemCollection.cs: Add an internal Clear method, to allow us to
8078 clean the items if needed (specially for controls implementing
8079 ICustomTypeDescriptor and returning a variable number of properties).
8082 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
8084 * TextControl.cs: Clean up and document the Insert function.
8086 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8088 * TextControl.cs: Make sure we know our start point for updating the view
8089 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
8092 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8094 * ListView: Couple of corcompare fixes.
8096 2007-10-17 Geoff Norton <gnorton@novell.com>
8098 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
8099 the title caption of real window.
8101 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8103 * ErrorProvider.cs: Add the error provider's internal window to a
8104 containercontrol when the parent changes. [Fixes bug #329714]
8106 2007-10-17 Geoff Norton <gnorton@novell.com>
8108 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
8109 When we make a new window; restore the old active window - fixes dialogs.
8111 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8113 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
8114 when modifying a property, and if found then invalidate as
8116 Fixes part of #324865.
8118 2007-10-17 Geoff Norton <gnorton@novell.com>
8120 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
8121 highly experimental. Fixed coordinate translation. Fixed window locations.
8122 Initial support for clipping. Implemented NC areas and menus. Support for
8123 launching from command line from Will Johansson (wjohansson@atacomm.com).
8124 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
8125 wjohansson@atacomm.com)
8126 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
8127 Hwnds now track the existence of all of their children for Mac clipping.
8128 * XplatUI.cs: Re-enabled the native driver on the Mac.
8130 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
8132 * Line.cs: Move the InsertString function to here.
8133 * TextControl.cs: Cleanup some duplicate code, move some InsertString
8134 functionality to Line.
8136 2007-10-17 Geoff Norton <gnorton@novell.com>
8138 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
8140 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
8142 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
8143 always setting value to true.
8144 * Form.cs: When changing AcceptButton, notify new and original button.
8146 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
8148 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
8149 a custom control that implements IButtonControl instead of an actual
8150 button. [Fixes bug #334244]
8152 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8154 * Form.cs: Change SelectActiveControl to internal, we need to call it in
8157 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
8158 active control when activate a new mdi window.
8162 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
8164 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
8168 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8170 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
8171 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
8172 so we always recalculate the whole document instead of just the new part.
8175 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8177 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
8178 when the mouse was to the left of the first character in the line.
8180 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
8182 * TextBox.cs, TextBoxBase.cs: When setting the document's password
8183 character, use the property instead of the variable so that the
8184 UseSystemPasswordChar property is taken into account.
8187 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8189 * FolderBrowserDialog.cs: When a node is right clicked and the "New
8190 folder" contex menu appears, actually add the new folder to it, even
8191 if the node is not currently selected. Still use SelectedNode in case
8192 there wasn't found a node under the pointer.
8195 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8197 * ListViewItem.cs: When retrieving the focused state, the index check
8198 should be done only when ListView is in virtualmode, as it is an
8199 expensive check for normal mode.
8201 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8203 * ListViewItem.cs: Make the focus state information be stored
8204 in the ListView, not in the items. This is done to match the MS
8205 behaviour for items that are not yet part of a ListView control;
8206 besides that, since just one item can be focused at the same time,
8207 we save a little space in our items.
8208 Fixes part of #331643.
8210 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8212 * ComboBox.cs: When focus is lost, deselect the text. When setting
8213 text of control, select all text. Do not hide selection when control
8214 does not have focus. Fixes bug #333663.
8216 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8218 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
8219 instead of ArgumentException when SelectionLength is set to negative
8220 value. Added same check to SelectionStart. Code formatting.
8222 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
8224 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
8225 or SelectionStart. Code formatting.
8227 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8229 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
8230 indicating that there was not a previous drag-and-drop operation going
8232 Fixes part of #325071.
8234 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8236 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
8237 AllowedEffect, don't let the drop operation happen.
8240 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8242 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
8244 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8246 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
8249 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
8251 * Line.cs: Add a method that finds the tag that contains an x-coord.
8252 * LineTag.cs: Add a method that finds the character at an x-coord using
8253 a binary search, the old way was a linear search.
8254 * TextControl.cs: Change FindCursor to use the above new methods.
8256 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8258 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
8259 value different than AllowedEffect). This should be possible to
8260 indicate that dragging is not possible in some control/area.
8262 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
8264 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
8265 descent internally when font changes instead of outside code being responsible
8267 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
8268 instead of accessing internal variables.
8270 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
8272 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
8273 remove special treatment for ArrangeIcons since it is already arranged.
8275 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8277 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
8278 the Win32 backend uses Color.
8279 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8280 Refactor to store a Color instead of a Brush for Color.
8282 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8284 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
8285 away. I didn't realize I needed this when I refactored these earlier.
8287 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8289 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
8290 store a Color structure and use the ResPool for back color instead of
8291 holding onto brushes.
8293 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
8295 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
8298 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8300 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
8301 to recalculate its size. Fixes a part of bug #331052.
8303 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8305 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
8306 button. Fixes a part of bug #331052.
8308 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8310 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8312 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8316 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8318 * TextBoxTextRenderer.cs: Don't make this a static class, as static
8319 doesn't exist in 1.1. (Thanks jb!)
8321 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
8323 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8324 class to allow us to use different backends on different platforms.
8325 Linux uses the current [Draw|Measure]String backend. Windows uses
8326 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8327 of GDI+. This leads to better looking text and more accurate measurements
8328 on Windows, fixing many of the reported issues.
8329 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8331 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8333 * FolderBrowserDialog.cs: When running on Windows,
8334 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8335 since we must match both "C:" and "C:\" forms. A little hackish, but
8339 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8341 * ListView.cs: When calling EndEdit (after editing an item),
8342 create a new instance of LabelEditEventArgs to keep clean the fields
8343 in case we get a new call to BeginEdit; also do Application.DoEvents
8344 to have focus in synch. This is a fix similar to TreeView's #325244.
8346 2007-10-07 Andreia Gaita <avidigal@novell.com>
8348 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8349 * WebBrowserBase.cs: Added dialog support, calling the
8350 WebBrowserDialogs classes for each specific dialog type.
8352 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8354 * ListView.cs: When the last item is focused and is removed,
8355 move the focus to the previous item (in Items order). This is what MS
8359 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8361 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8362 instead of the opposite (RemoveAt call Remove). This is a better
8363 approach since we don't need to to a pair of traversals when using
8366 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8368 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8369 check that the node actually has nodes, and if not, move to the
8370 parent node instead.
8373 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8375 * TreeView.cs: Move the previous change to the general case (to
8376 call Application.DoEvents in cases where the method was called by
8379 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8381 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8382 call Application.DoEvents. This is neccessary when we get a call to
8383 BeginEdit from an AfterLabelEdit handler, because the focus always
8384 goes to the TreeView, even if we try to give it to our
8385 LabelEditTextBox. The call do Application.DoEvents seems to
8386 synchronize the focus, basically.
8389 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8391 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8392 should be false. This also removes some nasty recursive paths. Fixes
8395 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
8397 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8398 state to normal. Also resize window when cascading. Fixes #325433.
8400 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8402 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8403 DefaultForeColor, as drawing empty colored lines isn't very useful.
8404 [Fixes the not drawn lines part of bug #324358]
8406 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
8408 * TextControl.cs: Move Line and LineTag classes into separate files to
8409 make things easier to find.
8410 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8411 * RichTextBox.cs: Capitalize LineTag.Length property access.
8412 - This is purely an organizational/formatting change, no logic changed. -
8414 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8416 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8419 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8421 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8424 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8426 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8427 prevent calling of OnBackColorChanged. Fixes #325321.
8429 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
8431 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8432 because control can be disabled because owner is disabled.
8434 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8436 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8437 string.Empty, test failed from previous change.
8439 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
8441 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8442 is null, not String.Empty. See bug #323038.
8444 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
8446 * TextControl.cs: Change the margins to match MS a little better.
8447 Still not perfect for X11 due to some DrawString differences, but
8448 is still an improvement over the old stuff.
8449 Partially fixes #324467.
8451 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8453 * FolderBrowserDialog.cs: When using MyComputer as
8454 RootFolder, let absolute paths be considered as valid ones. Also, use
8455 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8456 for Windows compatibility.
8457 Partially fixes #325247.
8459 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8461 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8462 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8463 method, since it causes the dialog to not select folders directly
8464 under the root path (when setting SelectedPath property).
8466 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8468 * TreeNode.cs: When calling Expand/Collapse and need to call
8469 ExpandBelow/CollapseBelow respectively, take into account
8470 partially visible nodes (previously Expanding/Collapsing
8471 a partially visible node in the bottom was not updating its +- sign).
8473 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8475 * TreeView.cs: When calling Expand on a TreeNode, and we need to
8476 expand nodes below (ExpandBelow), scroll the entire Viewport
8477 area if the node is above it and not visible (instead of scrolling
8478 the area from node's Bottom, which applies only when the node is
8482 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8484 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8485 node in the bottom area (as .Net does). This is done to preserve the
8486 scroll position when ExpandAll is called before handle is created for
8487 the 1.1 profile (bottom area, as opposed to top area in 2.0).
8490 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8492 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
8493 bottom area if we are in fact not using the vertical scroll bar.
8496 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8498 * Control.cs: Comment out a double buffering optimization that doesn't
8499 take into account invalidates created in OnPaint, causing the control
8500 to never be redrawn. It would take quite a bit of work to work around
8501 this, but I left it commented with an explanation for later possible
8505 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
8507 * Control.cs: Ask parent to perform a layout if control is AutoSize and
8509 * RadioButton.cs: Implement GetPreferredSizeCore.
8512 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8514 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8517 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
8519 * Application.cs: Move the sync context stuff to Run instead of RunLoop
8520 so that it doesn't get uninstalled on modal forms.
8521 * Control.cs: Install a sync context when a control is created.
8522 * WindowsFormsSyncronizationContext.cs: Create a private static control
8523 to invoke on. This is easier than trying to find a created control we
8527 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
8529 * Application.cs: Install a WindowsFormsSynchronizationContext in the
8530 run loop, and uninstall it when done.
8531 * WindowsFormsSynchronizationContext.cs: Implement.
8532 [Fixes the common case in bug #327608]
8534 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
8536 * DataGridViewCellCollection.cs: Added argument checks for indexers.
8537 Use case-insensitive lookup of column name in indexer. Code
8540 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8542 * TreeNode.cs: When collapsing or expanding a node, check whether its
8543 change will affect the visible area (we were previously doing a
8544 IsVisible check, but that check is not enough since children nodes
8545 could be still visible). Fixes part of #325266.
8547 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8549 * TreeView.cs: Always select the first node when the TreeView gets
8550 focus if there is no currently selected node.
8553 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
8555 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8556 node being selected is null.
8557 [Patch from Yves Bastide fixes bug #326858]
8559 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8561 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8562 whether all the parent nodes are expanded.
8563 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8564 call RecalculateVisibleOrder if all previous nodes are expanded.
8565 Before that we were doing a IsVisible check, but sometimes the node
8566 is not in the visible area, but _should_already be ready, because of
8567 all previous nodes are expanded. Fixes #325259.
8569 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8571 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8572 portion of the item is clicked.
8574 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8576 * TextControl.cs: Do not tell the system to move the cursor if the
8577 textbox isn't focused. Fixes part of bug #322668.
8579 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8581 * ComboBox.cs: When there are no items, do not show the dropdown if
8582 the down arrow is clicked. Fixes part of bug #322668.
8584 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
8586 * ToolStripComboBox.cs: Manually set the size of this control in the
8587 constructor, as it doesn't seem to be the same as DefaultSize.
8588 Fixes a failing monobuild test.
8590 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8592 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8593 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
8595 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
8597 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8598 Desktop. This lets it work for people who have moved their desktops
8599 from the default location on windows. For people who have not, both
8600 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
8602 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8604 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8605 but when the base constructor sets this, the control is null. Set it
8606 again in the constructor. Fixes a failing monobuild test.
8608 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8610 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8612 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8615 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8617 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8618 will handle it themselves.
8619 * ToolStripItem.cs: When deciding what the text of a tooltip should
8620 be, use the Text property instead of the text field.
8621 * ToolStripTextBox.cs: Handle tooltips.
8622 [Fixes bugs #325417 and #325973]
8624 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8626 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8627 left click. Fixes the easy part of bug #325969.
8629 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
8631 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8632 bug #325406, but set a minimum for StatusStrip to 22 to keep
8633 bug #325390 fixed. I think this minimum would have been figured
8634 up automatically if the grip was actually a ToolStripItem, but it
8637 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8639 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8640 as this is apparently the actual value used by .Net. Also apply
8641 ItemPadding in Details view only, and decrease the general width padding,
8642 to have only the needed. This should fix #324340 in Windows too.
8644 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8646 * ListViewItem.cs: Don't Invalidate item if parent is inside
8647 a BeginUpdate/EndUpdate block. This prevents to have differences
8648 between the ListView and items state, as well as avoid some exceptions
8650 * ListView.cs: Make 'updating' field internal.
8652 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8654 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8655 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8656 size if appropriate.
8657 Fixes reopened bug #325414.
8659 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8661 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8662 * ToolStripItem.cs: Invalidate before and after our new autosize when
8664 Fixes reopened bug #325390.
8666 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8668 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8669 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
8672 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
8674 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
8676 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8678 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8679 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8682 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8684 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
8685 item to select when the ToolStrip is selected.
8686 * ToolStripControlHost: Realign the control when the bounds or visibility
8688 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8689 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8691 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8692 base.OnPaint. Was causing text not to be drawn.
8694 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
8696 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8698 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8700 * TreeView.cs: When creating the label edit text box,
8701 set is initially to Visible = false. This is done to
8702 prevent a confusion in the layout which makes it to lose
8703 focus when shown the first time. Fixes part of #82592.
8705 2007-09-13 Andreia Gaita <avidigal@novell.com>
8707 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8709 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8711 * ToolStrip.cs: Take Margin into account when calculating preferred
8712 size. Also, allow preferred size to get smaller than the explicit
8714 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
8715 First step towards fixing bug #82747.
8717 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8719 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
8720 full row select background over the plus/minus glyph. Also, turn
8721 off the focus rectangle for full row select since MS doesn't seem
8722 to ever paint it. [Fixes bug #81839]
8724 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8726 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
8727 This was causing keyboard opened dropdowns to lose focus.
8730 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8732 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
8733 ClientRectangle instead. [Fixes bug #82838]
8735 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
8737 * SplitContainer.cs: We can't reset Visible on every layout because
8738 someone may have set Visible = false explicitly on a SplitterPanel.
8739 Make sure when we switch orientation the SplitterDistance does not
8740 change. Fixes two failing tests.
8742 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8744 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
8745 TextRenderer, since the latter is only available in 2.0.
8747 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
8749 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
8750 * SplitContainer.cs: Implement FixedPanel layouting.
8752 2007-09-12 Andreia Gaita <avidigal@novell.com>
8754 * WebBrowserBase.cs: setup shutdown routine
8756 2007-09-12 Andreia Gaita <avidigal@novell.com>
8758 * Application.cs: Let keyboard events that are targetted
8759 to non-mwf windows hosted inside mwf (as in, webbrowser),
8760 propagate properly. Fixes keyboard handling on the webbrowser.
8762 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8764 * ListView.cs: When handling MouseUp event and we are
8765 highligting a node with the mouse right button, don't trigger
8766 Before/AfterSelecting event, since we are not actually selecting
8769 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8771 * TreeView.cs: When editing a node, modify the edit text box
8772 depending on the text length (as you are typing), like MS does.
8774 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8776 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
8777 Override GetPreferredSizeCore to perform calculations. Remove custom
8778 autosize logic. [Fixes bug #82739]
8780 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
8782 * TextBoxBase.cs: Modified should default to false.
8784 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8786 * Control.cs: Update the anchoring distances even when layout is supspended.
8787 Patch provided by George fixes bug #82805.
8789 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8791 * Control.cs: Provide a setter for ExplicitHeight.
8792 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
8793 remove the hacks in here for requested_height.
8796 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8798 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
8799 Maximum to lower that its current Value caused an ArgumentException by setting
8800 the Value to the new Maximum.
8802 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8804 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
8805 handle moves to the closest tick when it is being dragged.
8808 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
8810 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
8811 can't let them count as real items when calculating where to merge in the
8812 user's items. [Fixed bug #82786]
8814 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8816 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
8817 who want to add a menu item directly onto a toolstrip.
8818 [Fixes bug #82775, part II]
8820 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8822 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
8823 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
8824 don't set it to available.
8825 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
8826 [Fixes bug #82727, part II]
8828 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8830 * StatusStrip.cs: Change item placement to None if not visible.
8831 * ToolStripItem.cs: Invalidate when InternalVisible changes.
8832 These should have been committed to fix 82723, but I missed them.
8834 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
8836 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
8837 Click, and that it is only called once.
8838 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
8839 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
8843 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8845 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
8847 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
8848 instead of 8, just like above. Partially fixes #82734.
8850 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8852 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
8855 * ListView.cs: Remove extra space between rows in Details view (match
8857 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
8860 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
8862 * Application.cs: Modified ProductVersion to return value of
8863 AssemblyInformationVersion if available, and fallback to assembly
8864 version. Fixes bug #82746. Code formatting.
8865 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
8868 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8870 * Control.cs: When updating ZOrder for a child control,
8871 take into account the implicit ones (we need it in our controls
8872 using them). Fixes #82642.
8874 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
8876 * ToolStripItem.cs: Add support for animated images.
8879 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
8881 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
8882 visible. [Fixes bug #82727]
8884 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8886 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
8887 so we repaint using the new size. [Fixes bug #82723]
8889 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8891 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
8892 option. [Fixes bug #81779]
8894 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8896 * TreeView.cs: Override HandleClick because the StandardClick style is
8897 set to false. According to MSDN (and testing), the click events should
8898 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
8900 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8902 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
8903 the border will disappear. Fixes reopened #82653.
8905 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8907 * Control.cs: If the control is autosize, and its preferred size changes
8908 when it lays out its children, tell its parent so it can be re-layed out.
8909 Fixing some of the fallout from r85433.
8911 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8913 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
8914 and CheckBox share some code.
8916 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8918 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
8919 the TrackBar, not every mouse move. [Fixed bug #82718]
8921 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8923 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
8924 under 2.0 rendering. [Fixes bug #82657]
8926 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8928 * TreeView.cs: If we found a TreeNode to display a context menu, but
8929 it doesn't have one to show, let the TreeView display its menu
8930 instead. [Fixes bug #82680]
8932 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
8934 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
8935 OnPaintInternal instead. Give the internal TextBox a Border property
8936 so it can draw itself more correctly. [Fixes bug #82653]
8938 2007-09-06 Zoltan Varga <vargaz@gmail.com>
8940 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
8942 2007-09-05 Everaldo Canuto <everaldo@simios.org>
8944 * ComboBox.cs: Adjust combobox button state to reflect current state when
8945 back to enabled = true. Fixes first issue of #82654.
8947 2007-09-05 Everaldo Canuto <everaldo@simios.org>
8949 * Control.cs: Fix last patch regression, prevent forms to update zorder when
8950 setting visible property.
8952 2007-09-05 Everaldo Canuto <everaldo@simios.org>
8954 * Control.cs: Update zorder after control creation in SetVisibleCore, it
8955 fix zorder for controls initially created as non visible. Fixes #82667.
8957 2007-09-04 Everaldo Canuto <everaldo@simios.org>
8959 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
8960 mimic win32 look. Fixes #82656.
8962 2007-09-01 Zoltan Varga <vargaz@gmail.com>
8964 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
8965 Stubs for new net 3.5 classes.
8967 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8969 * ListViewItem.cs: In ListViewItemCollection operations calculate
8970 Layout for owner as well as invalidate it. Fixes part of #82642.
8972 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
8974 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
8975 when returning Enabled. [Fixes bug #82651]
8977 2007-08-30 Everaldo Canuto <everaldo@simios.org>
8979 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
8981 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8983 * ListView.cs: Put item padding info in a single place
8984 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
8986 * ThemeWin32Classic.cs:
8987 * Theme.cs: Likewise.
8989 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8991 * ListView.cs: When a ListViewSubItem instance is invalidated,
8992 invoke Invalidate on parent ListViewItem, not parent ListView.
8995 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8997 * ListView.cs, ListViewItem.cs: corcompare stuffs.
8999 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9001 * BindingMemberInfo.cs: Implement == and != operators.
9003 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
9005 * HtmlElementEventArgs.cs: Implement properties.
9007 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9009 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
9011 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9013 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
9014 Add (string,string,string) to implement the imagekey. It turns out, we
9015 use the requested imagekey whereas .Net does not. So I broke ours to match
9018 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9020 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
9022 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
9024 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
9026 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
9028 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
9029 up-to-date. Fixes bug #82618.
9031 2007-08-29 Everaldo Canuto <everaldo@simios.org>
9033 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
9034 reflect document changes. Fixes #82367.
9036 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9038 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
9039 as well as add new ones. This should make work the BackgroundImage
9040 property for ListView again.
9042 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9044 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
9045 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
9046 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
9048 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9050 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
9053 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9055 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
9056 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
9058 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
9060 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
9061 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
9063 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9065 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
9067 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
9069 * GridEntry.cs: Implement GetService.
9071 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
9073 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
9074 for label editting, make sure we focus back on the TreeView.
9077 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9079 * ListView.cs: Add some 2.0 overrides.
9081 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9083 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
9084 because getter dont returns right value before handle creation. Thanks
9085 to George. Fixes #82569.
9087 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9089 * Theme.cs: Revert last patch, it causes error under win32.
9091 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
9093 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
9094 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
9095 logical Desktop rather than the physical file system location. Fixes #82603.
9097 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
9099 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
9100 for the patch. Fixes #82568.
9102 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9104 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
9107 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9109 * ListViewInsertionMark.cs: New stubbed class.
9111 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9113 * FolderBrowserDialog.cs: When adding folder, immediately create the
9114 directory with temporary name and rename the directory when editing
9115 finishes. This matches MS. Ensure the node for the new folder is
9116 selected and LabelEdit is disabled, when editing is either finished
9119 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9121 * TreeView.cs: When editing label of node, ensure node is visible.
9123 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
9125 * PropertyGridView.cs: Set the value only if it has changed.
9127 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9129 * ListView.cs: Some more code refactoring to add support sorting
9130 with groups (now for Details view). Remove unused code also.
9132 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9134 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
9135 Not a big fan of reacting immediately to a field in an EventArg, but that's
9136 the way it's done. (This is part of the previous commit that got left out.)
9138 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
9140 * FolderBrowserDialog.cs: Removed need for separate description field.
9141 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
9142 has focus when dialog box is displayed again, regardless of what
9143 button was pressed the previous time. Set RootFolder and SelectedPath
9144 each time dialog box is displayed. This ensures the treeview is
9145 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
9146 when it does not have focus. Added support for more special folders.
9148 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9150 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
9151 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
9152 it resets the edit_args.
9153 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
9156 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
9158 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
9159 button to match MS. Provide more meaningful exception message for
9160 invalid RootFolder value. Use zero-length string when SelectedPath
9161 is set to null. Allow non-rooted paths in SelectedPath, but ignore
9162 them in FolderBrowserTreeView. Allow folders to be created in
9163 RootFolder. Fixes bug #82576.
9165 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9167 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
9168 since we need to take into account the group headers and the margin
9170 * ListViewGroup.cs: Add a rows field to store the number of rows per
9173 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9175 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
9176 Anyways, let's just follow the lead.
9178 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9180 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
9181 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
9182 controls in GetPreferredSizeCore.
9183 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
9186 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
9188 * PrintDialog.cs: Need to instantiate the form variable here too.
9190 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9192 * ListView.cs: Do some reorganization to support sorting in groups,
9193 by doing the layout sequentially in ListView.Items. Also add support
9194 for the Default Group, which should be available for items with no
9196 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
9197 for storing layout info also.
9198 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
9199 collection, as well as providing internal members to do a traversal
9200 including the default group (needed when doing layout/drawing).
9201 * ThemeWin32Classic.cs: When drawing group headers use internal
9202 ListViewGroupCollection members to take into account the default
9205 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
9207 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
9209 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9211 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
9212 been created. If handle is created, we want arror keys. If we are editing
9213 a node, we want things like enter, esc, home, end, page up, page down.
9214 Allows Esc to work for FolderBrowserDialog.
9216 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9218 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
9219 they close when ESC is pressed. Thanks Andy!
9221 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9223 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
9224 This way we can tell if this is a CommonDialog provided with mono, or one
9225 that is being implemented outside by a developer. If it is an external one,
9226 the developer is responsible for showing their own form. We were showing
9227 our blank form after the developer showed his.
9228 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
9229 PageSetupDialog.cs: Instantiate form variable in our constructor.
9232 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9234 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
9235 and always return true. [Fixes bug #81616]
9237 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
9239 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
9240 TextBox. [Fixes bug #82549]
9242 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
9244 * FileDialog.cs: When Save/Open is clicked and no filename is selected
9245 or entered then do not close the dialog. Fixes bug #82539. Removed
9248 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
9250 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
9251 code to this method. It is calling every time filter changes. This method
9252 will help to fix the bug #80887.
9254 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9256 * CheckBox.cs: Implement AutoSize calculation.
9258 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
9260 * CheckBox.cs: Use new 2.0 rendering for 2.0.
9261 * Theme.cs: Method declarations for 2.0 rendering path.
9262 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
9264 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9266 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
9268 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9270 * ListViewGroupCollection.cs: Implement AddRange the right way, to
9271 only call Redraw on the parent one time.
9273 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9275 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
9276 GetClipboardContent.
9277 * DataGridViewCell.cs: Implemented GetClipboardContent,
9278 GetEditedFormattedValue, GetFormattedValue.
9279 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
9281 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9283 * TableLayoutStyleCollection.cs: corcompare fix.
9285 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9287 * DataObject.cs: Implemented retrieval of convertible / not convertible
9290 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
9292 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
9293 ourselves. This ensures the entire old bounds are repainted, in case our new
9294 size is smaller. [Fixes bug #82518]
9296 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
9298 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
9299 flag to make fast handle of mouse events, without this the mouse move is
9300 handled in some manner, whether it is a mouse move or not. Fixes #81588.
9302 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9304 * ListView.cs: When doing layout calculations don't use a ref
9305 param to keep the current item; instead use its Index value (this
9306 is specially important when doing the layout with Groups
9307 and Items being sparse). Also don't take into account items added to
9308 the Group but not yet added to the main ListView.Items collection.
9310 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9312 * ListViewGroupCollection.cs: Forgot to mimic an issue
9313 in the indexer (don't assign the ListView owner for new values).
9315 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9317 * ListViewGroupCollection.cs: Make the string indexer use
9318 the int based indexer to re-use code, instead of duplicate the code.
9319 Also Redraw as needed and take into account null values.
9321 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9323 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9326 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
9328 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9329 when other buttons are clicked or navigated to.
9331 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9333 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9334 it's XplatUIX11 that attaches them.
9336 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9338 * DataGridView.cs: If a column has been added, recreate the editing row.
9341 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9343 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9344 of the tag to draw. Makes disappearing text show up again.
9346 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9348 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9349 Contents. Fixes #82487.
9351 2007-08-19 Andreia Gaita <avidigal@novell.com>
9353 * Added HtmlElement.cs, HtmlElementCollection.cs,
9354 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9356 2007-08-19 Andreia Gaita <avidigal@novell.com>
9358 * BindingSource.cs: Implement this, dispose and getenumerator.
9359 * DataGridViewRowCollection.cs: Move the InvalidOperationException
9360 out of AddInternal, throw it only on public Add calls. The
9361 UsingWebBrowser sample was blowing up with this when setting the
9362 DataSource after adding DataBindings, so it's likely that .net
9363 only throws this exception when Add is called directly.
9365 * ToolStripControlHost.cs: Return the hosted control's text
9366 property, and not the ToolStripItem one (it would always return
9369 * HtmlDocument.cs: Implement GetElementById and All
9370 * WebBrowser.cs: Remove exception on set_DocumentStream.
9372 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9374 * Form.cs: Fix the max and min value for opacity (0~1).
9376 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9379 * DataGridTableStyle.cs: Default header font is now null, on getter it
9380 returns datagrid font when is null. On setter permits null.
9383 - When ResetHeaderFont set header font to null.
9384 - On EndInit set grid_style.DataGrid.
9386 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9388 * TabControl.cs: Fix regression in default padding x.
9390 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9392 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9394 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
9396 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9397 not 2. Fixes #82229.
9399 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9401 * TabControl.cs: Fix tab size when image height is less than text height.
9402 Partially fixes #81837.
9404 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9406 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
9407 "alt + tab". It works only for Win32, for X11 theres no way to remove window
9408 from taskbar and keep it on "alt_tab". Fixes #81722.
9410 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9412 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9413 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
9414 Fixes #80877 and #79418.
9416 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9418 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
9419 between position and one of the screen borders. Fixes #82349.
9421 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9423 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9424 the MessageBox in the taskbar. Fixes #82457.
9426 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
9428 * MessageBox.cs: Fix form size when icon is set and text height is bigger
9429 than icon. Fixes #82468.
9431 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9433 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9434 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9435 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9436 Refactored HandleNCCalcSize somewhat to avoid code duplication.
9437 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9438 FormBorderStyle to decide if we're calculating a new size from the
9439 client size or not. CreateParams: Don't fake tool windows, only the X11
9440 backend manages toolwindows manually.
9442 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9444 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9445 ObjectDisposedException.
9447 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9449 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
9450 in OnLoad should not have any effect. [Fixes bug #82470]
9452 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9454 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9455 paint for controls that create their own ToolTipWindow instead of
9456 going through ToolTip.
9458 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9460 * ToolTip.cs: Make Hide internal instead of public to match MS API.
9462 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9464 * ListViewGroupCollection.cs: Use generic List instead of an
9465 ArrayList, since this collection is 2.0 only.
9467 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
9469 * ToolTip.cs (Hide): Made public to make the build work (should
9470 this not be public?).
9472 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9474 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9476 * ToolTip.cs: Add an internal Visible property to facilitate transition.
9478 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
9480 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9481 PopupEventHandler.cs: Make these internal for 1.1.
9482 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9483 use ToolTipWindow internals.
9484 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
9485 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9487 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9489 * X11Dnd.cs: Add a null check.
9491 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9493 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9494 nothing else succeeds. Fixes #82453.
9496 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9498 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9499 rectangle if we're painting to another window than the one the paint
9500 message was generated on. Simplify the code somewhat, which makes
9501 PaintEventEnd also simpler.
9503 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9505 * Control.cs: When changing parent of a form, let the form decide whether
9506 XplatUI.SetParent should be called or not.
9507 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9508 recreating the handle. If the new parent's handle isn't created, don't
9509 recreate our handle, just destroy it. CreateParams: Check if the
9510 parent's handle is created before fetching it.
9512 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9514 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9515 Update calls to PaintEventStart/End to take a Message argument.
9516 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9517 take a Message argument.
9518 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9519 Message argument, and handle the case where we don't paint to the window
9520 for which the paint message was generated.
9522 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9524 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9525 Marshal.GetLastWin32Error. Plug nasty memory leak in
9526 PaintEventStart/End, we were creating a DC we weren't releasing.
9528 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9530 * ListView.cs: Add Groups support in Details view. Also have a small
9531 method to do the layout of the group header. Don't use a separate
9532 method to do the groups calculation in Icons view, since our methods
9533 are now a little simpler.
9534 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9536 * ThemeWin32Classic.cs: Likewise.
9538 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9540 * Application.cs: Add FilterMessage method and rework our message loop
9543 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
9545 * Application.cs: Add some methods and stub a few methods that are
9546 pretty much never used.
9548 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
9550 * TreeNode.cs: Add some serialization methods.
9552 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9554 * ListView.cs: In ListViewItemCollection have a
9555 'is_main_collection' field to not modify ListViewItem.ListView
9556 when using it as ListViewGroup.Items (and not ListView.Items)
9557 and also don't modify selection state (.Net behaviour).
9558 Instead, set group for items contained in a ListViewGroup.Items collection.
9559 * ListViewItem.cs: Simplify some code in Group setter.
9560 * ListViewGroup.cs: use the new .ctor to pass the current instance
9561 to the ItemsCollection.
9562 * ListViewGroup.cs: Set the ListView property for ListViewGroup
9563 instances when adding/removing. Also make Remove use RemoveAt, which
9564 should perform better.
9566 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9568 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9569 that crept into the 1.1 profile.
9571 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9573 * ToolBarButton.cs: Implement ImageKey.
9575 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
9577 * ToolBar.cs: Implement ScaleControl/ScaleCore.
9579 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9581 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9582 created, it might have gotten destroyed since we last checked. Fixes
9585 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
9587 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9588 tooltip will hide when mouse is moved off the control.
9591 2007-08-11 Andreia Gaita <avidigal@novell.com>
9593 * WebBrowserBase.cs, WebBrowser.cs: add implementation
9594 using Mono.Mozilla for loading and navigating webcontrol
9596 The initial implementation was done on
9597 /trunk/mozembed/tests/browser , and copied here.
9599 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
9601 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9602 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9604 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9606 * DataGridView.cs: Add support for an editing row. Fixes #82226.
9607 RowTemplateFull: throw an exception if a column doesn't have a template.
9608 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9609 add the row just before it.
9610 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9612 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9613 DataGridView field to be able to reach the grid's editing row.
9615 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9617 * ToolTip.cs: If the control's handle hasn't been created when it has a
9618 tooltip set on it, don't check to see if we need to show the tooltip. This
9619 check was causing the control's handle to be created.
9622 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9624 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9626 Handle Not Created -1 0
9630 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
9632 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9635 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9637 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9638 * ToolTip.cs: Implement some properties and owner draw.
9640 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9642 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9643 show them again, since setting visibility causes a paint, causing an
9644 endless loop (instead use a temporary and set it all when it's known if
9645 they should be shown or not). Fixes #79265.
9647 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9649 * DataGridView.cs: Only do a full column/row selection if a header was
9650 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9651 isn't pressed, deselect everything before selecting something.
9653 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9655 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9656 behaviour according to bug #81075 - they are returned in the order they
9657 are selected. Fix HitTest to check if the point is within any of the
9658 headers. Allow for row/column selection when in ColumnHeader or
9659 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9660 the row and column to call when their selected state changes, and
9661 updated selected_[rows|columns] whenever SetSelected* is called.
9662 * DataGridViewBand.cs: Initialize isRow correctly. Call
9663 SetSelected[Row|Column]CoreInternal when the selected state changes, and
9664 add a SelectedInternal to avoid StackOverflows.
9665 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9666 ReadOnly no matter what.
9667 * DataGridViewSelectedColumnCollection.cs,
9668 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9669 the items in reverse order (just as MS does...)
9671 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
9673 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9674 itself, not part of a mnemonic. [Fixes bug #82378]
9676 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9678 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9679 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9680 the DGV, the column, the row, or the cell itself is readonly.
9682 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9684 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9686 * FileDialog.cs: Same.
9687 * TextRendered.cs: Same.
9688 * FolderBrowserDialog.cs: Same.
9689 * TextBoxBase.cs: Same.
9690 * Application.cs: Same.
9692 * ThemeClearLooks.cs: Same.
9694 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
9696 * XplatUI.cs: Added RunningOnUnix property to be used by controls
9697 instead of duplicating these checks everywhere.
9698 * FileDialog.cs: Use case-insensitive comparison for populating the
9699 DirComboBox when not running on unix. Fixes bug #82385.
9700 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
9703 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9705 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9706 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9707 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9708 cell and column selection with ctrl and shift pressed. Call the correct
9709 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9710 the corresponding virtual method (PaintBackground to paint background,
9712 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
9713 either the column, row or the cell itself is selected.
9714 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
9716 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
9717 here. When the row is selected, don't select all cells. Each cell now
9718 queries the row to see if the row is selected.
9720 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
9722 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
9725 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9727 * ListView.cs: In ListViewItemsCollection check that owner is
9728 not null before trying to access it (this happens quite often
9729 using Groups). Also don't duplicate calls by calling CollectionChanged
9732 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9734 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
9735 when we are dismissed to clear keyboard mnemonics.
9736 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
9737 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
9738 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
9739 was activated by keyboard or the OS tells us to always draw them.
9740 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
9741 [Fixes bugs #82376, #82377]
9743 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9745 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
9746 shot at having it because Alt was pressed.
9747 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
9748 the first real menu item.
9749 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
9750 a mnemonic if Text is null.
9753 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9755 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
9756 search do check whether the item is already contained in the
9757 collection or not; instead check if the owner of the item is the same
9758 as ours. Also, remove a redundant check in the same method.
9760 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
9762 * Control.cs: Allow the clip region to be set back to null.
9763 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
9764 [Fixes button still showing up in bug #82370 when Show Through is turned off]
9766 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9768 * GridEntry.cs: Add a null check.
9769 * PropertyGrid.cs: When checking for existing grid entries, ignore category
9770 entries. Fixes #82297.
9772 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9774 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
9777 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
9779 * ListBox.cs: Implement ScaleControl.
9781 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9783 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
9785 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
9786 parent has a menu strip. Fixes #81689.
9788 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9790 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
9791 moments, so apply some fuzzy logic to determine if the mouse is still
9792 inside a control or not. Fixes #82288 (for the third time).
9794 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9796 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
9797 Don't create the child if it has been disposed already (may happen if
9798 the user closes the form the Load event).
9800 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9802 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
9805 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9807 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
9808 might call us after we've been destroyed, in which case our own private
9809 parent field is null. Fixes #82326.
9811 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9813 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
9814 check for setting the dropdown's owner.
9816 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
9818 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
9819 before removing system menu items.
9821 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
9823 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
9825 * MdiControlStrip.cs: Added. These are the menu items used in mdi
9827 * ToolStrip.cs: Add a null check to mnemonics.
9828 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
9830 [Fixes most of bug #81689]
9832 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9834 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
9836 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
9838 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
9840 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9842 * DataGridViewCell.cs: EditType: returns
9843 DataGridViewTextBoxEditingControl always.
9845 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
9847 * TextRenderer.cs: Remove the LineLimit string format flag from the
9848 DrawString fallback method so that things like buttons that aren't
9849 tall enough to draw a full line will still draw part of the text.
9850 [Fixes part of bug #82272]
9852 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9854 * DataGridView.cs: Implemented AutoResizeColumn(s).
9855 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
9856 according to the Alignment.
9857 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
9858 Implement alignment and padding when painting.
9859 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
9861 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
9863 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
9866 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9868 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
9871 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9873 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
9874 hide GetPreferredSize from public API.
9875 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
9876 * ToolStripItem.cs: Stub out drag and drop methods and events.
9877 * ToolStripManager.cs: Stub out Save/LoadSettings.
9878 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
9879 * ToolStripPanel.cs: Fix corcompare error.
9880 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
9881 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
9882 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
9884 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
9886 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
9887 bounds height instead of PreferredHeight. Puts things back the way
9888 they were for height while still fixing the width. Fixes broken unit
9891 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9893 * Binding.cs: Implement 2.0 constructors and add a null check.
9895 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9897 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
9898 and fix row index (off by one).
9900 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9902 * PropertyGridView.cs: Remove debug output.
9904 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9906 * Control.cs: We need to reset the is_created flags when the handle is
9907 destroyed. Fixes #82187.
9908 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
9909 client coordinates if the window doesn't have a parent.
9910 Win32GetParent returns the parent or the owner, and for top-level
9911 windows with no parent (but with an owner) we were calculating the
9912 location from the location of the owner.
9913 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
9914 form has been disposed.
9915 * MdiClient.cs: Add a null-check.
9917 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
9919 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
9920 actually do auto-sizing. Override the internal GetPreferredSizeCore
9921 so we can provide an implementation that returns the current width
9922 and preferred height. Allows anchor = right to work with TextBox 2.0.
9925 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9927 * ListView.cs: Add support for navigating items in Groups mode, by
9928 creating a big matrix containing all rows and cols of all groups. When
9929 are in other mode than Details, pressing Up should have a similar
9930 behaviour as that one of Down (moving to the next available column if
9931 current one doesn't have an item in the requested row). Also, don't
9932 proceed to use groups if ShowGroups is false.
9933 * ListViewGroup.cs: Add an internal int field to store the starting
9934 row of the group (used by the big matrix used for navigating the
9936 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
9939 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
9941 * ToolStripDropDown.cs: When we do Show, start with the
9942 DefaultDropDownDirection, but if our popup menu is going to off-screen,
9943 modify the direction to keep it on screen. [Fixes bug #82210]
9945 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
9947 * FileDialog.cs: Accept any FilterIndex value, and store it
9948 unmodified. When FilterIndex is less than 1, or greater than number
9949 of filters, then default to first filter. Only add filter extension to
9950 file if user did not specifiy an extension. When type of dialog is
9951 OpenFileDialog and DefaultExt is set, then only use filter extension
9952 if: CheckFileExists is true and no file wih the default extension
9953 exists, or CheckFileExists is false, and user specified file does not
9954 exist. When CheckFileExists is true, then add first extension of
9955 selected filter that matches existing file. Perform checks for
9956 existing file, overwrite and create after extension has been added to
9957 file name. When CheckFileExists is true and type is SaveFileDialog,
9958 then only consider first filter extension if DefaultExt is set.
9959 When CheckFileExists is true, then ignore DefaultExt if file with that
9960 extension does not exist. Also perform check for existing file when
9961 type is SaveFileDialog. Changed some field to constants.
9963 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9965 * ListView.cs: Take into account the region used by header
9966 control when doing the vertical scroll (this way we invalidate
9967 the precise area, and don't get any dirty one).
9969 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
9971 * FileDialog.cs: Check for valid filterIndex on button open/save.
9974 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9976 * ListView.cs: Update some layout calculations in details view
9977 and clean the code in a pair of assignations.
9979 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9981 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
9982 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
9983 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
9984 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
9986 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9988 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
9989 performance of thread-safe Graphic methods. (Thanks rolf!)
9991 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9993 * ListView.cs: When doing the layout calculations, don't calculate
9994 scroll bars before handle is created. This is unnecessary and also
9995 calculating them before handle creation item causes a number of random
9996 bugs (which begin to appear after Chris' big patch for handle creation
9999 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
10001 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
10002 for things that don't have a Graphics object. Currently, things just use
10003 the static Hwnd.bmp_g which is not thread safe.
10005 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10007 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
10008 dialog. Fixes #82187.
10010 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10012 * DataGridViewElement.cs: Initialize state.
10013 * DataGridView.cs: Forward a few Mouse events to cells. Add
10014 GetRowInternal and GetCellInternal that doesn't unshare rows.
10015 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
10016 don't use the index, but look it up. Add
10017 DataGridViewControlCollection.RemoveInternal to remove controls
10018 that Remove won't remove (scrollbars, edit control).
10019 * DataGridViewColumn.cs: Initialize State correctly.
10020 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
10021 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
10023 * DataGridViewRowCollection.cs: Implemented shared rows.
10024 * DataGridViewRow.cs: Throw exceptions as MS do.
10025 * DataGridViewCell.cs: A few properties are implemented by a
10026 Get<Property> method, so move implementation there and remove the
10027 NIEX in the method. Add a bunch of OnXInternal that DataGridView
10028 calls when necessary.
10029 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
10030 complicates matters.
10031 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
10034 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10036 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
10037 the children controls. Instead, we will just set up the proper docking for the
10038 children controls so we don't have to worry about it. [Fixes bug #82188]
10040 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10042 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
10043 canceling and correct Before/AfterLabelEdit properties as layed out in bug
10044 81847. [Fixes bug #81847]
10046 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
10048 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
10049 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
10050 an explicit size based on the design-time size of the text. Since our fonts
10051 may not match this explicit size, we tend to cut off the ends of people's labels.
10053 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
10055 * Menu.cs: Add some missing methods to MenuItemCollection.
10057 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10059 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
10060 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
10061 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
10062 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
10063 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
10064 * DataGridViewElement.cs: State defaults to Visible.
10065 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
10066 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
10068 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10070 * Control.cs: Minor 1.1 corcompare fix.
10072 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10074 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
10075 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
10077 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10079 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
10080 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
10081 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
10082 DataGridViewSelectedColumnCollection.cs,
10083 DataGridViewSelectedRowCollection.cs: Corcompare work.
10085 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10087 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
10088 it is autoset by VS2005 designer and the effect is barely noticeable.
10090 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
10092 * TreeView.cs: Implement HitTest.
10094 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10096 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
10097 manually adding and removing the control from the Controls
10099 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
10100 EditingControlInternal property that tracks the editing control.
10101 Always keeping the scrollbars in the Controls collection, as MS
10102 testing confirms is the right behaviour.
10104 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10106 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
10107 according to MSDN and new test.
10109 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10111 * TreeNode.cs: Implement ToolTipText.
10112 * TreeView.cs: Implement tooltips, NodeMouse* events.
10114 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10116 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
10118 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10120 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
10121 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
10123 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
10125 * Control.cs, Form.cs, ContainerControl.cs,
10126 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
10127 for misc properties.
10129 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
10131 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
10132 * TreeView.cs: Implement StateImageList.
10134 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10136 * Form.cs: Don't check if the current form is the active form before
10137 activating it. Fixes #81904.
10139 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10141 * Form.cs: Don't check if the current form is the active form before
10142 activating it. Fixes #81904.
10144 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10146 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
10148 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10150 * Form.cs: Don't try to position the form after loading if the form was
10151 disposed. Fixes #81969.
10153 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10155 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
10156 properties. Had to change ToolBar into ToolStrip, which required a
10159 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10161 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
10162 resized, fixes part of #79829 (vertical lines in toolbar).
10163 PropertyGrid: Refactored Populate* to something that's easier to
10164 follow at least for me, as well as splitting it up into several new
10165 methods, required to update only subitems when something has
10166 changed by a popup editor or listbox. Don't use events to check
10167 when any values are changed, since the events are unreliable (we're
10168 changing the objects the events are registered with, and if the
10169 event handling requires the objects to be immutable (objects stored
10170 in hashtables for instance), the events will never be raised).
10171 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
10172 everytime we change a value, since events are unreliable.
10173 DropDownButtonClicked: For the same reason don't compare objects to
10174 check if it has changed or not, it would require all objects to
10175 derive Equals. Fix dialog location on windows, MS is doing weird
10176 things when creating parented forms.
10177 * GridEntry.cs: Add a SelectedObject setter.
10179 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10181 * TreeNode.cs: Add some corcompare attributes.
10182 * TreeNodeCollection.cs: Implement 2.0 stuffs.
10183 * TreeView.cs: Implement some 2.0 stuffs.
10185 2007-07-18 Andreia Gaita <avidigal@novell.com>
10187 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
10190 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
10192 * ListBox.cs: Implement custom tab offsets.
10194 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10196 * ToolStripContentPanel.cs: Support System renderer.
10197 * ToolStripControlHost.cs: Set RightToLeft to default to No.
10199 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10201 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
10203 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10205 * CheckBox.cs: Chain TextAlign to base implementation instead of
10206 maintaining another one.
10208 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10210 * ButtonBase.cs: Fix an incorrect string constant.
10212 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10214 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
10215 of creating one for measuring strings.
10217 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
10219 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
10220 Implement MaxItemSize.
10222 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10224 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
10225 for DeviceContext. Instead, use the static one available in Hwnd.
10226 Informal tests show this saves about 500k on formtest.exe.
10228 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
10230 * ContainerControl.cs: Implement 2.0 AutoScaling.
10232 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10234 * ComboBox.cs: Work around bug #82120 (bug in mcs).
10236 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10238 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
10239 Darken the focus color.
10241 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
10243 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
10245 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
10246 X, Y instead of a rect for drawing text.
10247 - For ControlPaint.DrawCheckBox, center the check a little better when the
10248 checkbox is odd width. When drawing a flat checkbox, use a white background
10249 when state != inactive.
10250 [Fixes bugs #82097, 82100]
10252 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
10254 * ListControl.cs: When changing CurrencyManager, disconnect event
10255 handlers from previous one. Fixes bug #81771. Code formatting.
10257 2007-07-15 Andreia Gaita <avidigal@novell.com>
10259 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
10260 full preview invalidation from layout invalidation, and only invalidate
10261 the layout when setting zoom or other properties. Invalidation should
10262 always be done even when resetting properties with the same values as
10263 what is there. Fixes #81744 and #79830.
10265 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10267 * ListView.cs: Implement initial support for Groups. Split some of the
10268 LayoutIcons code to render a partial list of the items (needed by
10269 items contained in ListViewGroup instances). Let the
10270 ListViewItemsCollection.ListView property be modifiable (needed when
10271 using Groups, too).
10272 * ListViewGroup.cs: Use a Bounds property rather than a Location
10273 one. Also invalidate the bounds when they get changed.
10274 * ThemeWin32Classic.cs: When drawing items, also draw the group header
10275 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
10278 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10280 * ListView.cs: When space gets pressed and CheckBoxes is true,
10281 don't invoke the Begin and EndUpdate methods. We are generating
10282 a redraw of the entire control without need to do so.
10284 2007-07-13 William Holmes <billholmes54@gmail.com>
10286 * Control.cs: Changing logic in FindFlatForward and
10287 FindFlatBackward to handle multiple Controls with
10289 This fixes bug 81687.
10291 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
10293 * OSFeature.cs: Enable IsPresent.
10295 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10297 * Control.cs: Don't do anything in WmShowWindow if the control has been
10298 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
10299 control is created, put on a form, the control is disposed (the
10300 form is never shown), and then we get a MapNotify, triggering a
10302 * Form.cs: Exclude the current form when sending Deactivate to all
10304 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
10305 there was a race condition because assigning the handle raises
10306 events, we can get more messages, therefore trying to assign the
10307 handle again, which would fail if any of those event handlers
10308 closed/disposed the control.
10310 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10312 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10314 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10316 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10317 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10319 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10321 * DateTimePicker.cs: If there's no part format specifier, return an
10324 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
10326 * FlatButtonAppearance.cs: Throw NotSupportedException for a
10327 Transparent BorderColor.
10329 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
10331 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10332 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10333 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10334 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10335 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10336 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10337 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10339 * X11Structs.cs: Remove warnings, add ToString implementations.
10341 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10343 * XplatUIX11.cs: Translate min/max size according to the actual min/max
10344 size, and not the current size. Fixes #81798.
10346 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10348 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10349 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10350 to the control yet).
10352 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10354 * PropertyGridTextBox.cs: Add a method that sends any forwarded
10355 mousedowns to the contained textbox.
10356 * X11Structs.cs: More ToString implementation.
10357 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10360 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10362 * PropertyGridView.cs: Add a null-check, fixes a few tests.
10364 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10366 * TableLayoutPanelCellPosition.cs: TypeConverter.
10368 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10372 * PropertyGridTextBox.cs: Propagate any color changes to all contained
10374 * PropertyGridView.cs: A few color fixes.
10376 2007-07-10 Jackson Harper <jackson@ximian.com>
10378 * TextControl.cs: Remove some old unused text formatting stuff.
10380 2007-07-10 Jackson Harper <jackson@ximian.com>
10382 * TreeView.cs: Update full row select invalidation to match the
10383 newer DrawSelection... method.
10384 - Make sure to invalidate the entire width when selecting a new
10385 node, if we have full row selection enabled.
10387 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10389 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10390 display of properties again.
10392 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
10394 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10395 to existing collections.
10397 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10399 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10400 that changed between 1.1 and 2.0.
10402 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10404 * PowerStatus.cs: Added. This is just a data class, it is filled
10405 in by SystemInformation.
10407 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10409 * Message.cs: Add op_Equality and op_Inequality.
10411 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10413 * MenuStrip.cs: Finish corcompare work.
10415 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10417 * LinkArea.cs: Add op_Equality and op_Inequality.
10419 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10421 * Application.cs: Add MessageLoopCallback delegate.
10423 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10425 * ListBox.cs: First set of 2.0 stuffs.
10427 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
10429 * Control.cs: Make an internal Height property we can override
10430 without messing up the public API.
10431 * ListBox.cs: Override HeightInternal to always return the size
10432 the user set. [Fixes bug #80466]
10434 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
10436 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10437 paint cell borders if we haven't calculated where they go yet.
10438 [Fixes bugs #82040 and #82041]
10440 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10442 * ListView.cs: In Details view, set the location of item_control
10443 in the (0,0) position (and the header_control is thus on the
10444 item_control). This way the Bounds of the Items are relative to the
10445 ListView control (before this, they had a Bounds value without the
10446 header_control offset, which wasn't matching .Net). Fixes #82004.
10448 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10450 * ListControl.cs: When DataSource is set to null, pass an empty
10451 array of object to SetItemsCore. This is done to clean the items
10452 in the ListContol children. Fixes #81788.
10454 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10456 * ListControl.cs: Add 2.0 stuffs.
10458 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10460 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
10461 Refresh is overkill for just about every repaint request.
10463 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10465 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10466 so remove my custom Get method and fix the property getter.
10468 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10470 * Label.cs: DefaultMargin for 2.0.
10472 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10474 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
10475 reported issue where other controls with mnemonics would steal strokes
10476 from a selected ComboBox.
10478 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
10480 * ScrollOrientation.cs: Make internal for 1.1.
10481 * ScrollEventArgs.cs: Add 2.0 stuffs.
10483 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
10485 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10486 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10487 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10489 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10491 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10493 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10495 * ListView.cs: Implement the so-incredibly broken 2.0
10496 VirtualItemsSelectionRangeChanged event.
10498 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10500 * ListView.cs: When enter is pressed and selection is non empty,
10501 an OnItemActivate event must be fired.
10503 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10505 * ListView.cs: Store the FocusedItem information as an
10506 int instead of a ListViewItem (needed by VirtualMode).
10507 Update the calls to SetFocusedItem to pass an index instead of
10509 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10510 the Focused state from the owner ListView.
10512 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10514 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10515 property. Also, invalidate previous focused item in the mentioned
10516 property (match .Net).
10518 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10520 * ListView.cs: Implement 2.0 FocusedItem property setter.
10522 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10524 * ListView.cs: Implement 2.0 TopItem property setter.
10526 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
10528 * StatusStrip.cs: The default renderer is System.
10529 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
10530 if the user specifies it.
10531 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10532 if we are ManagerRenderMode.
10533 * ToolStripMenuItem.cs: Calculate our text color better.
10534 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10535 from Professional to the base class based off working with the System renderer.
10536 * ToolStripSystemRenderer.cs: Added.
10538 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10540 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10542 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
10544 * ToolTip.cs: Implement 2.0 Tag property.
10546 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10548 * ListView.cs: Implement 2.0 HitTest methods.
10550 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10552 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10553 item is under the pointer or not (sugar). Also remove the TODO
10554 regarding to the cursor changes in OneClick activation.
10555 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10556 the subitems use the parent's HotFont if UseItemStyleForSubItems is
10557 true; otherwise don't show the underline style.
10559 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10561 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10562 the code to retrieve the item at position only one time. Also
10563 change cursor when Activation is ItemActivation.OneClick as well
10564 as invalidate the item if HotTracking is true (to show/hide the
10565 underline style). Add an internal HotItemIndex property to retrieve
10566 the current hot item's index.
10567 * ListViewItem.cs: Add an internal HotFont property to cache the
10568 font used when HotTracking is true and the pointer moves within the
10570 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10571 HotFont depending on the hot state of the item.
10573 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10575 * ListView.cs: Implement 2.0 HotTracking property.
10577 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10579 * ToolStripControlHost.cs: If our hosted control never got created,
10580 don't try to dispose it. [Fixes bug #81909]
10582 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10584 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10586 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
10588 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
10590 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10592 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
10594 * DrawListViewColumnHeaderEventArgs.cs:
10595 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10596 using the DrawText () methods.
10598 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
10600 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10601 background which got erased in my changes yesterday.
10603 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10605 * ListViewItem.cs: Actually set bounds for subitems in Details view
10607 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10608 can invoke from the owner draw routines if we need it. Also, add
10609 support for Owner draw in Details view.
10611 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10613 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10614 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10615 ShowImageMargin setting, properly align text in a ToolStripLabel
10616 hosted on a ToolStripDropDown.
10618 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10620 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10621 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10623 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10625 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10627 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
10629 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10630 location to match ToolStripMenuItems.
10632 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10634 * DrawListViewColumnHeaderEventArgs.cs:
10635 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10636 column headers in ListView.
10638 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10640 * UserControl.cs: Implement AutoSize.
10642 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10644 * DrawListViewItemEventArgs.cs:
10646 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10649 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
10651 * ToolStripDropDownItemAccessibleObject.cs: Added.
10652 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10653 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10654 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10655 ToolStripTextBox.cs: corcompare work.
10657 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10659 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10660 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10661 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10664 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
10666 * OSFeature.cs: Add IsPresent.
10667 * PrintPreviewControl.cs: Add RightToLeft.
10668 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10669 * SplitterPanel.cs: Add AutoSizeMode.
10671 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10673 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10674 * MdiClient.cs: Add 2.0 ScaleControl.
10675 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10676 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10678 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10680 * Form.cs: Implement some scaling methods, stub some RTL methods,
10683 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10685 * Control.cs: corcompare work.
10686 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10688 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
10690 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10691 ControlPaint 2.0 stuffs.
10693 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10695 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10697 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10699 * UpDownBase.cs: Add 2.0 stuffs.
10701 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10703 * NumericUpDown.cs: Add 2.0 stuffs.
10705 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10707 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10709 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10711 * ErrorProvider.cs: Implement 2.0 stuffs.
10713 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10715 * DomainUpDown.cs: Implement 2.0 stuffs.
10717 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10719 * CheckedListBox.cs: Fix RefreshItems signature.
10721 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
10723 * PictureBox.cs: Implement 2.0 stuffs.
10725 2007-06-12 Andreia Gaita <avidigal@novell.com>
10727 * TabControl.cs: Check if there are tabpages before checking
10728 the selected index - fix #81802 (font changes raise a ResizeTabs
10729 call on controls.add, which blew up nicely with no tabpages)
10731 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10734 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
10736 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10739 * ListViewItem.cs: In VirtualMode the selection information
10740 resides in the ListView, rather than in the Items. Also, throw
10741 InvalidOperationExceptions when VirtualMode is being used and
10742 CheckedItemCollection is accessed.
10744 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10746 * ComboBox.cs: Add ScaleControl.
10748 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10750 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
10752 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10754 * GroupBox.cs: Add 2.0 stuffs.
10756 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
10758 * Panel.cs: Add autosize properties/event.
10760 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10763 - When we remove a control, remove it from the collection before performing the layout.
10764 - Setup an internal property for explicit_bounds.
10765 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
10766 - Perform a layout when we set a new AutoSizeMode.
10768 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
10770 * ScrollableControl.cs: Add 2.0 stuffs.
10772 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10774 * ScrollBar.cs: Add 2.0 stuffs.
10776 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10778 * Splitter.cs: Add 2.0 stuffs.
10780 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10782 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
10783 to have BindingContext simply use base implementation.
10785 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10787 * ColumnHeader.cs: corcompare fix.
10789 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10791 * Button.cs: corcompare fixes.
10792 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
10794 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
10796 * Button.cs: Override GetPreferredSizeCore.
10797 * ButtonBase.cs: PerformLayout after changing properties that can affect
10798 AutoSize. Simplify some mouse/keyboard code.
10799 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
10800 * MouseEventArgs.cs: Make Location internal for 1.1.
10801 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
10802 * Theme.cs: Add CalculateButtonAutoSize.
10803 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
10805 2007-06-05 Miguel de Icaza <miguel@novell.com>
10807 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
10809 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10811 * ListViewItem.cs: We can't cache Bounds in VirtualMode
10812 since we can get different item instances every time we retrieve it.
10814 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10816 * ListView.cs: Work around for #81602, since an unkown an pretty
10817 infrequent condition appears only in some systems (old linux boxes, it
10820 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10822 * Button.cs: Completely reformat and a little refactor to bring
10823 this closer to Mono circa 2007.
10825 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10827 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
10828 to be ButtonBase.Invalidate.
10830 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10832 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
10834 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
10836 * ButtonBase.cs: Completely reformat and a little refactor to bring
10837 this closer to Mono circa 2007.
10839 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
10841 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
10842 values for autosize. Fixes #80137.
10844 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10846 * Control.cs: Don't perform layout when AutoSize changes.
10847 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
10848 directly when autosizing, use SetBounds with BoundsSpecified.None.
10849 Fixes unit tests my last commit broke.
10851 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10853 * Control.cs: Perform layout when AutoSize changes.
10854 * Form.cs: Implement AutoSizing.
10856 2007-06-01 Chris Toshok <toshok@ximian.com>
10858 * DataGrid.cs: remove the XXX'ed check at the top of
10859 ProcessGridKey. fixes #80464.
10861 2007-06-01 Chris Toshok <toshok@ximian.com>
10863 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
10864 adding idempotent (add/remove in Edit()), and also make sure we
10865 don't add it until after we set the text, so it's not tripped in
10866 Edit(). Fixes unit test regression.
10868 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
10870 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
10871 change is user explicit, not when the layout engine moves stuff. Fixes
10872 anchoring to bottom and right. [Fixes bug #81790]
10874 2007-06-01 Andreia Gaita <avidigal@novell.com>
10876 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
10878 2007-06-01 Andreia Gaita <avidigal@novell.com>
10880 * ContainerControl.cs:
10881 Fire enter event for common ancestor if it is not a ContainerControl.
10882 Send focus to the active_control and not the 'value', the active
10883 control might have been changed in one of the events fired.
10884 Definitely fixes #80159.
10886 2007-06-01 Andreia Gaita <avidigal@novell.com>
10888 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
10890 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10892 * PropertyGrid.cs: Anchor the help description to the bottom of the
10893 help panel and refactor SelectGridItem into a
10894 SelectGridItemInternal that can be set to null (and update it to
10895 clear the help texts when it is set to null). Set root item to null
10896 when there's no SelectedObject. Fixes #80438.
10897 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
10898 when we're recalculating after a resize (only).
10900 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10902 * ListView.cs: Implement 2.0 RedrawItems method.
10904 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10906 * ListControl.cs: Disconnect PositionChanged and ItemChanged
10907 handlers from previous data manager when DataSource is set to
10908 null. Fixes #81771.
10910 2007-05-31 Jackson Harper <jackson@ximian.com>
10912 * TextBoxBase.cs: These seem to be the correct values.
10914 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
10916 * FileDialog.cs: When close dialog with ok set filterindex using combobox
10917 value. Fixes #81784.
10919 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
10921 * Control.cs: Implement 2.0 scaling methods.
10923 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10925 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
10926 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
10929 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10931 * ProgressBar.cs: Implemented missing 2.0 members.
10933 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10935 * Control.cs: Corcompare issues.
10936 * MessageBox.cs: Implemented missing 2.0 functions.
10938 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10940 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
10941 Implemented more 2.0 members.
10943 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10945 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
10946 null (strange, but it seems to happen when running unit tests).
10948 2007-05-30 Andreia Gaita <avidigal@novell.com>
10950 * ContainerControl.cs: Set active_control even earlier, before
10951 firing any events, and undo it if validation returns false.
10953 2007-05-30 Andreia Gaita <avidigal@novell.com>
10955 * ContainerControl.cs: Raise Validation and Enter/Leave events
10956 even if there is no Form and set active_control earlier, just
10957 before firing Enter events (toshok's patches). Fixes #80647.
10959 2007-05-30 Jackson Harper <jackson@ximian.com>
10961 * TextControl.cs: Redid the pageup/pagedown a little to simplify
10962 things and fix bug #81311.
10964 2007-05-30 Jackson Harper <jackson@ximian.com>
10966 * X11Dnd.cs: Now that we have our own event loop, we need to
10967 cancel when we get a mouseup but it won't be accepted.
10969 2007-05-30 Chris Toshok <toshok@ximian.com>
10971 * DataGrid.cs (set_CurrentCell): guard against negative
10974 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
10975 array index syntax instead of looping over the property names.
10977 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
10978 and set IsInEditOrNavigateMode to false there.
10980 2007-05-30 Jackson Harper <jackson@ximian.com>
10982 * TreeView.cs: Make sure we don't get a bad visible order when
10983 setting to the top node. Fixes some misc crashing in
10986 2007-05-30 Andreia Gaita <avidigal@novell.com>
10988 * UserControl.cs: Add 2.0 AutoSizeMode
10990 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10992 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
10994 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10996 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
10997 lines. Fixes #80285.
10999 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11001 * DataGridColumnStyle.cs: Add char trimming column header text format.
11003 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
11005 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
11008 2007-05-29 Jackson Harper <jackson@ximian.com>
11010 * TreeNode.cs: Fix off by one on calculating whether or not a node
11013 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
11015 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
11016 * ScrollableControl.cs: Force an UpdateDistances when we move the
11020 2007-05-29 Andreia Gaita <avidigal@novell.com>
11022 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
11023 update the page setup screen.
11025 2007-05-29 Andreia Gaita <avidigal@novell.com>
11027 * PageSetupDialog.cs: Fix landscape mode.
11029 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11031 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
11032 IconSizeHorizontalSpacing.
11034 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11036 * ListView.cs: The declaration of prev_tooltip_item should be inside
11037 a NET_2_0 conditional (avoid a warning).
11039 2007-05-28 Andreia Gaita <avidigal@novell.com>
11041 * PageSetupDialog.cs: Implement PrintPreview control to display
11042 the preview thumbnail. Change unit conversion to use
11043 PrinterUnitConvert methods.
11045 Note: there is a huge bug in ms.net where the default margins are
11046 interpreted as centimeters (?), when in fact they are set in inches. When
11047 loading the page setup dialog initially (ms.net), the default margins
11048 are set to 1 inch, and the dialog shows them with value 10, when in fact
11049 it should be 25 (properly converted). Our dialog doesn't have this bug.
11051 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
11053 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
11055 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11058 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
11061 2007-05-28 Andreia Gaita <avidigal@novell.com>
11063 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
11064 an IntPtr on csc (it builds fine on mcs, could it be a compiler
11065 bug?), convert the ptr to Int32 first.
11067 2007-05-28 Jackson Harper <jackson@ximian.com>
11069 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
11070 recieved, we will exit the dnd tracking loop.
11072 2007-05-28 Jackson Harper <jackson@ximian.com>
11074 * X11Dnd.cs: Keep tracking until the xdnd finished event is
11075 recieved. TODO: I should probably stick a timer on the dropped
11076 event, and finish the drag if the XDND Finished event never shows
11077 (because some apps don't seem to send it).
11079 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
11081 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
11084 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11086 * MonthCalendar.cs: Only mark the keypresses we actually handle as
11089 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11091 * MonthCalendar.cs: Set the size after initializing all the relevant
11092 variables. Fixes #81742.
11094 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11096 * KeyEventArgs.cs: Fix typo.
11098 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
11100 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
11101 to match MS. Fixed MinDate to only accept value less than or equal
11102 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
11103 Removed TODO's that are now verified by unit tests.
11105 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
11107 * TreeNodeCollection.cs: Minor corrections to exceptions to match
11110 2007-05-25 Jackson Harper <jackson@ximian.com>
11112 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
11113 it's own message loop.
11114 * XplatUIX11.cs: Remove some of the dnd hooks
11116 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
11118 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
11119 instead of MinimizedWindowSize.
11121 2007-05-25 Jackson Harper <jackson@ximian.com>
11123 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
11125 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11127 * KeyEventArgs.cs: Added SuppressKeyPress.
11128 * Control.cs: Added support for SuppressKeyPress.
11130 2007-05-24 Andreia Gaita <avidigal@novell.com>
11132 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
11133 problems with PieChart. suppress_validation should not be a counter,
11134 if there are several BeginInit calls, the first EndInit will
11135 activate validation. Fix exceptions thrown by set_Value.
11136 * UpDownBase.cs: ValidateText only if it's the user editing it.
11138 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11140 * ListControl.cs: FilterItemOnProperty should return the filtered
11141 item proeprty even if DataSource is null. The same applies for
11142 GetItemText. Fixes #80427.
11144 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11146 * Control.cs: If a control doesn't have a parent when it's Dock is
11147 set, but it has children, it needs to do a layout. Fixes some nested
11148 controls issues. [Fixes bug #81199]
11150 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11152 * ComboBox.cs: If there are few items in the drop down list, make it
11153 the exact size the items need, no bigger. Fixes #81612.
11155 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11157 * Application.cs: When we have captured the keyboard for a menu,
11158 check for mouse down events in case we need to close the menu.
11159 * Control.cs, Form.cs: Remove mouse down checks for menus.
11161 2007-05-24 Jackson Harper <jackson@ximian.com>
11163 * TextControl.cs: Handle tabs in non multiline mode a little
11166 2007-05-24 Jackson Harper <jackson@ximian.com>
11168 * TextControl.cs: We need to manually break apart tabbed text and
11169 move the tabs, since the system.drawing tabbing mechanism relies
11171 * TextBoxBase.cs: Move the caret properly when the user enters a
11174 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
11176 * ContainerControl.cs: Don't check CanSelect before calling
11178 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
11179 release a KeyboardActive on click if it's not ours.
11181 2007-05-23 Andreia Gaita <avidigal@novell.com>
11183 * ColumnHeader.cs: Add TypeConverter
11185 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11187 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
11189 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11191 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
11193 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11195 * LinkLabel.cs: Implement public Padding property.
11197 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11199 * LinkLabel.cs: Implement public FlatStyle.
11201 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
11203 * Control.cs: Apply patch from George to call parent.PerformLayout
11204 when Visible is changed. [Fixes bugs #81118, 81718]
11206 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11208 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
11210 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11212 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
11214 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
11216 * ContextMenu.cs: Implement Collapse.
11218 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11220 * ToolBarButton.cs: Implement Name.
11222 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11224 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
11225 use current_item, it prevents some NRE. Fixes #81675.
11227 2007-05-22 Andreia Gaita <avidigal@novell.com>
11229 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
11230 without updating the text.
11232 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11234 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
11235 without calling DeleteObject. [Should fix bug #81709]
11237 2007-05-22 Jackson Harper <jackson@ximian.com>
11239 * RichTextBox.cs: Set the line endings correctly, when flushing
11242 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
11244 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
11245 {Width=0,Height=0}.
11247 2007-05-22 Jackson Harper <jackson@ximian.com>
11249 * TreeView.cs: Setting top with a null node should set to the very
11252 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11254 * Form.cs: ShowDialog: destroy the handle when message loop is
11255 finished, matches MS behaviour. Refactor parts of WmClose into
11256 RaiseCloseEvents, that only raises events if they haven't already
11257 been raised. Fixes #81688 and #81521.
11258 * Application.cs: Don't call close on the form when exiting a modal
11259 loop, it will raise all the (Form)Closed/Closing events again if
11260 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
11261 which doesn'r raise any events it they have been raised before.
11263 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
11265 * Control.cs: Add OnPrint.
11266 * ToolStrip.cs: Add GetChildAtPoint.
11267 * ToolStripContainer.cs: Add OnRightToLeftChanged.
11268 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
11270 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
11272 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
11274 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11276 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
11277 isn't visible anymore. Fixes #81651.
11279 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11281 * Control.cs: WmShowWindow: Update children's z-order after setting
11282 their parent. SetParent may show the window, thereby corrupting
11283 z-order, since the window will be shown on top.
11284 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
11285 multiple (and redundant) WM_SHOWWINDOW messages.
11286 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
11287 event has already been raised.
11288 * Form.cs: Change is_changing_visible_state to a counter, since
11289 SetVisibleCore can be called recursively. CreateHandle: when
11290 creating mdi children, send (De)Activated events.
11291 * MdiClient.cs: Update use of is_changing_visible_state.
11292 * Application.cs: OnThreadException: Surround exception handling with
11293 try/finally to ensure we always reset the error-handling state
11296 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11298 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
11301 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11303 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
11304 SmallIcon views, now that we have a standarized horizontal spacing.
11306 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
11307 4, just like the other views (Match .Net).
11309 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
11311 * Control.cs: Delay calculating anchor distances until we actually layout.
11312 Always query the WM for the actual size and location it put us at instead of
11313 only when we send negative values.
11314 [Fixes bugs #81694, 81695]
11316 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11318 * Application.cs: Avoid a possible stack overflow when trying to exit
11321 2007-05-19 Marek Safar <marek.safar@gmail.com>
11323 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11326 2007-05-19 Andreia Gaita <avidigal@novell.com>
11328 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11329 * NumericUpDownAcceleration.cs,
11330 NumericUpDownAccelerationCollection.cs: Added 2.0
11333 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
11335 * RichTextBox.cs: Recalculate the document after the ScrollBars
11336 property is changed. Fixes bug #81681.
11338 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11340 * DataObject.cs: Implement 2.0 methods.
11342 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11344 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11345 in the center of the checkbox, not in the left-top corner.
11348 2007-05-18 Jackson Harper <jackson@ximian.com>
11350 * RichTextBox.cs: Recalculate the document after the scrollbars
11351 property is changed.
11352 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11355 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11357 * CreateParams.cs: Make HasWindowManager marginally faster.
11358 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11359 into Hwnd so that other drivers can use it as well.
11360 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11361 the default location from Hwnd. Fixes MDI client windows always
11362 showing up at (0,0) in Windows (Win32 won't set the default
11363 location since the window styles aren't correct).
11365 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
11367 * TreeView.cs: Modified DoubleBuffered to just use the base
11370 2007-05-18 Jackson Harper <jackson@ximian.com>
11372 * TreeView.cs: Set the top node to the last child node when
11374 - When we get focus, if there is no selected node, use the top
11377 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
11379 * KeysConverter.cs: Add CanConvertTo.
11380 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11381 * LinkConverter.cs: Added.
11383 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11385 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11386 it prevents error when file dont have write access. Fixes #81669 and #81667.
11388 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11390 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
11391 button text. Fixes #79640.
11393 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11395 * Control.cs: According to MSDN controls created in the designer theres
11396 keyboard accelerators visible by default. So included check for design
11397 in ShowKeyboardCuesInternal.
11399 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11401 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
11402 text. Fixes #81621.
11404 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
11406 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11407 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
11409 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11411 * Control.cs: Finish implementation of UI State using WmChangeUIState
11412 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11413 in some controls to check for show_keyboard_cues to draw accell keys "_".
11415 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11417 * ListBox.cs: When calculating the horizontal scrollbar
11418 in single column mode, don't use values less than 0 for
11419 Maximum. Fixes #81474.
11421 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11423 * ListBox.cs: Throw the some missing exceptions in
11424 ListBox.ObjectCollection methods.
11426 2007-05-17 Jackson Harper <jackson@ximian.com>
11428 * TextBoxBase.cs: Recalculate the document when the word wrap
11429 value has changed. This fixes 81488.
11431 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11433 * Clipboard.cs: Implement missing GetText overload.
11435 2007-05-17 Chris Toshok <toshok@ximian.com>
11437 * Control.cs (CheckDataBindings): remove the binding_context arg
11440 * CurrencyManager.cs (OnItemChanged): fix this now that
11441 BindingManagerBase is fixed. also remove the comment telling where
11442 the fix should go. We set transfering_data to true/false around
11443 the call to PushData to keep UpdateIsBinding from being called.
11444 (ListChangedHandler): remove the extra OnMetaDataChanged call for
11445 PropertyDescriptorAdded in the 1.1 case. The extra call is
11446 actually generated by System.Data generating 2 metadata changed
11447 events of its own per column add. The fix should go there. Add a
11448 comment to that affect in our test's Assert.Ignore.
11450 * BindingManagerBase.cs: Rework PullData and PushData slightly.
11451 we keep a boolean flag (transfering_data) that keeps us from
11452 calling UpdateIsBinding multiple times if we re-enter either of
11455 * ControlBindingsCollection.cs (AddCore): remove the
11456 binding_context arg to binding.Check.
11458 * Binding.cs (IsBinding): don't check if we're binding here, just
11459 return our cached value. we update it in UpdateIsBinding.
11460 (Check): don't take the binding_context arg, we'll just use our
11461 control's. Also, for some reason MS doesn't use the data member
11462 field when getting the bindingmanager for this binding. it just
11463 uses the datasource. Make this method callable multiple times,
11464 and only do the is_null_desc stuff if manager.Position != -1 (so
11465 we don't get an exception accessing manager.Current).
11466 (UpdateIsBinding): move the code from IsBinding here.
11467 (PositionChangedHandler): call Check here to we can initialize
11468 things that require a non- -1 position.
11470 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11472 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11475 2007-05-17 Andreia Gaita <avidigal@novell.com>
11477 * TabControl.cs: Add 2.0 methods and events, including
11478 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11479 * TabPage.cs: Add 2.0 methods
11481 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
11483 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11484 keyboard_cues is properly handled by message method.
11486 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11488 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11490 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
11492 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11494 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
11497 - WmUpdateUIState added to handle state changes, it make call to
11498 OnChangeUICues event.
11499 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11502 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
11504 * ImageKeyConverter.cs: Added.
11505 * TreeViewImageKeyConverter.cs: Added.
11507 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11509 * ToolTips.cs: Update Text if SetToolTip is called for a control
11510 already showing the tooltip, as well as restarting its timer; show
11511 tooltip if we are inside the control bounds by the time of calling
11512 SetToolTip. Inside ShowTooltip remove the check to not show the
11513 tooltip again for the active control (it is allowed by .Net to
11514 show the tooltip on the same control multiple times).
11516 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11518 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11520 2007-05-16 Andreia Gaita <avidigal@novell.com>
11522 * ContainerControl.cs: only process tab key if there are no
11523 modifier keys present, otherwise the control does the
11524 tab processing, if it needs to. Fixes #81622
11525 * TabControl.cs: Fixes calculation for which tab to select on
11528 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11530 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11532 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
11534 * Control.cs: Make IsInputCharInternal to allow controls to
11535 override it and still match MS API.
11536 * TextBoxBase.cs: Override IsInputCharInternal and always
11540 2007-05-15 Jackson Harper <jackson@ximian.com>
11542 * TextBox.cs: Disable some of the menu options when using a
11545 2007-05-15 Jackson Harper <jackson@ximian.com>
11549 * RichTextBox.cs: Some new 2.0 methods
11551 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
11553 * FileDialog.cs: On 1.0 profile, do not support multidotted
11556 2007-05-14 Jackson Harper <jackson@ximian.com>
11558 * TextBoxBase.cs: Implement some of the new 2.0 methods.
11559 * RichTextBox.cs: We need to override these methods on 2.0.
11560 * MaskedTextBox.cs: These are implemented now
11561 * TextControl.cs: This was off by one.
11563 2007-05-14 Jackson Harper <jackson@ximian.com>
11565 * TextControl.cs: Because the line endings are including in the
11566 text, we don't need to add them in anymore.
11568 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11570 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11571 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11573 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11575 * ToolBar.cs: Adjust size to default size when button theres no text and
11576 image, it fixes remaining issues from #81524.
11578 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11581 - When not flat call redraw to recalculate sizes on creare handle to match
11583 - Revert 77220 because it causes some regressions in toobar
11586 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11588 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11589 now actually enters a usable state.
11591 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11593 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11594 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11597 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11599 * ToolBar.cs: Save default_size on create handle to use later for buttons
11600 without text, needed to mimic win32 behavior.
11602 2007-05-11 Everaldo Canuto <everaldo@simios.org>
11604 * ToolBar.cs: Fix button layour to best fit width or height according to
11605 vertical or not. Fixes #81524.
11607 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11609 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11610 toolbar size info because different styles theres different sizes.
11613 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11615 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11616 if we are using checkboxes, checked is true, and we have less
11617 than two images in StateImageList; for the 1.1 in the same scenario
11618 draw the first image if we have at least one image in StateImageList.
11619 Fixes part of #81191.
11621 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11623 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11624 the owner's Items collection on merge.
11626 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11628 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11629 * ToolStripItemCollection.cs: Lots of fixes to when events get called
11630 and parent/owner gets changed based on gert's unit tests.
11632 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11634 * MaskedTextBox.cs: Started implementing parts of it.
11636 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11638 * ListView.cs: When clicking the checkbox on the items
11639 take into account the double clicks even if we have only
11640 one image in StateImageList (only for 1.0/1.1). Also
11641 generate an extra change of checked state when we receive
11642 the second click on checkbox (match .Net behaviour).
11643 Fixes part of #81191.
11645 2007-05-10 Everaldo Canuto <everaldo@simios.org>
11647 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11649 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
11651 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11652 even if OnLoad is overriden and base.OnLoad is not called.
11655 2007-05-10 Andreia Gaita <avidigal@novell.com>
11657 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
11658 shame. (I blame my ever-persisting and annoying cold)
11660 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11662 * ListView.cs: Don't eat navigation keys. Let them flow through to
11663 KeyDown/KeyPress routines. [Fixes bug #81569]
11665 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11667 * ListView.cs: When handling keys for selecting the item based off
11668 keyboard input, do not consider keys pressed with Alt or Control. Also,
11669 correctly handle keys when the Shift key is down. [Fixes bug #81578]
11671 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11673 * Control.cs: When using UseWaitCursor, we have to store the requested
11674 Cursor to use when UseWaitCursor is turned off.
11676 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
11678 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
11680 * Application.cs: Use PreProcessControlMessage instead of
11682 * PreProcessControlMessage.cs: Make internal for 1.1.
11684 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11686 * Control.cs: Add InternalContains focus property, which hast the same
11687 functionality of ContainsFocus, but also including implicit controls.
11688 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11689 since we need to know if the focus is contained in our implicit
11690 ItemControl when calculating Layout. Fixes part of #80888.
11692 2007-05-08 Everaldo Canuto <everaldo@simios.org>
11694 * ToolTip.cs: Remove center form string alignment as it must be align to
11697 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
11699 * ToolStripItemCollection.cs: Set the new item's parent and owner
11700 in Insert like we do in Add. [Fixes bug #81568]
11702 2007-05-08 Jackson Harper <jackson@ximian.com>
11704 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11705 - Off by one error in SetTop
11706 - Disable DoubeBuffering
11708 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11710 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
11711 control as much as necessary in order to make it entirely visible,
11712 instead of centering the control in the container (matches MS
11713 behaviour). CalculateCanvasSize: we need to take the current scroll
11714 position into account when calculating the maximum canvas,
11715 otherwise the following scenario will fail: resize so that the
11716 scrollbars appear, use the scrollbars to scroll, resize again
11717 smaller, and now the canvas size is too small. Recalculate: when
11718 showing scrollbars make sure they start off at 0, and try to scroll
11719 the active control into view. Fixes #79540. HandleScrollBar: don't
11720 scroll anywhere if the scrollbar isn't visible.
11722 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11724 * ListView.cs: When focus changed, call Layout/Invalidate
11725 in the focused item to update the selected state (should show
11726 entire label when ListView is focused, and a part of it if is not).
11727 * ListViewItem.cs: When doing layout for LargeIcon, take into account
11728 for displaying the entire label not only the Focused state of the
11729 item, but also the Focused state of the ListView (match .Net
11732 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11734 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
11735 Implement UseWaitCursor.
11737 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11738 Applying contributed patch from Sergey Volk.
11740 * Clipboard.cs: Implement SetDataObject retry logic and new overload
11742 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
11744 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11746 * Control.cs: Implement DrawToBitmap.
11748 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11749 Applying contributed patch from Stefan Noack.
11751 * Control.cs: Add [Get|Set]AutoSizeMode.
11753 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11755 * MdiClient.cs: Unmerge menus when the last child is closed.
11757 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
11759 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
11760 * ToolStripManager.cs: Call Merge on DropDowns.
11763 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11765 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
11767 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
11768 visibility. We can't create forms visible, since we have to set the
11769 owner before making the form visible (otherwise Win32 will do
11770 strange things with task bar icons). The problem is that we set the
11771 internal is_visible to true before creating the control, so
11772 is_changing_visible_state is the only way of determining if we're
11773 in the process of creating the form due to setting Visible=true -
11774 this works because SetVisibleCore explicitly makes the form
11775 visibile afterwards anyways. Fixes #80775.
11777 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11779 * ThemeWin32Classic.cs: When drawing ListViewItems,
11780 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
11781 or LargeIcon _and_ item is not focused (match .Net behaviour).
11783 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11785 * Control.cs, Form.cs: Fix some obsolete method warnings.
11787 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
11789 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
11790 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
11792 2007-05-04 Andreia Gaita <avidigal@novell.com>
11794 * ContainerControl.cs: Fix active_control attribution when going
11795 up the parent chain so that the first parent container gets the control
11796 and the rest of the parent containers get the child containers (skips
11797 non-containers). Fixes #80729
11799 2007-05-04 Randolph Chung <tausq@debian.org>
11801 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
11804 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11806 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
11807 takes a size parameter, since the CreateParam's size isn't true for
11808 minimized forms. Fixes #81518,
11810 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11812 * Form.cs: Add OnDeactivateInternal.
11813 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
11815 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
11817 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
11818 accessing the parent. Fixes #81508.
11820 2007-05-03 Chris Toshok <toshok@ximian.com>
11822 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
11823 2.0 block, pass listposition + 1 to ChangeRecordState when a row
11824 was added before the current listposition. Fixes the
11825 TestInsertRowBeforeCurrent unit test.
11827 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
11829 * Application.cs: Add RaiseIdle.
11830 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11831 XplatUIX11.cs: Implement RaiseIdle.
11833 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
11834 corcompare work: N - Z
11838 * ScrollableControl.cs
11839 * SplitContainer.cs
11842 * SystemInformation.cs
11844 * TableLayoutControlCollection.cs
11845 * TableLayoutPanel.cs
11850 * ToolStripComboBox.cs
11851 * ToolStripContainer.cs
11852 * ToolStripContentPanel.cs
11853 * ToolStripDropDown.cs
11854 * ToolStripDropDownItem.cs
11855 * ToolStripDropDownMenu.cs
11857 * ToolStripItemCollection.cs
11858 * ToolStripMenuItem.cs
11859 * ToolStripPanel.cs
11860 * ToolStripSplitButton.cs
11863 * TreeNodeCollection.cs
11864 * TreeNodeMouseHoverEventArgs.cs
11867 2007-05-01 Everaldo Canuto <everaldo@simios.org>
11869 * ContextMenu.cs: Add public method Show with alignment property to 2.0
11870 stuff. Thanks aatdark for the patch.
11872 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11874 * GridItem.cs: Implement 2.0 Tag property.
11876 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
11878 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
11879 count instead of Nodes.Length. [Fixes bug #81448]
11881 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11883 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
11886 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11887 corcompare work: A - M
11888 * BindingNavigator.cs
11893 * FlowLayoutPanel.cs
11899 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
11901 * Application.cs: Give toolstrips a chance to process mnemonics.
11902 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
11903 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
11904 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
11906 2007-05-01 Jackson Harper <jackson@ximian.com>
11908 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
11910 - Don't set the BoundsSpecified
11912 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
11914 * Application.cs: When using the toolstrip shortcut mechanism, allow the
11915 message to pass through to a regular control if it hosted by a toolstrip.
11916 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11917 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
11919 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
11921 * TextRenderer.cs: Use the flags argument when using the MeasureString
11922 fallback algorithm.
11924 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
11926 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
11927 the MDI menu item. [Fixes bug #81483]
11929 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
11931 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
11932 string. When setting Name to null, use zero-length string instead.
11934 2007-04-29 Andreia Gaita <avidigal@novell.com>
11936 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
11937 DeselectTab). Implement missing 2.0 TabPageCollection methods
11938 (Add, ContainsKey, RemoveByKey, IndexOfKey)
11940 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
11942 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
11944 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
11946 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
11947 Fixes bug #81479. Include details of exception when LoadFile fails.
11949 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
11951 * DrawListViewSubItemEventArgs.cs: Added missing setter
11953 2007-04-27 Andreia Gaita <avidigal@novell.com>
11955 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
11956 Hide methods (not complete). Implement missing 2.0 OnPopup event.
11958 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11960 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
11961 removed in ly last commit (it was breaking the Label edit feature).
11963 * ThemeWin32Classic.cs: When drawing a ListViewItem use
11964 StringAlignment.Near for LineAlignment (match .Net).
11966 2007-04-27 Andreia Gaita <avidigal@novell.com>
11968 * TabControl.cs: Change SetTab so it adds the tabpage to the list
11969 of controls if it isn't already there - was blowing up when doing
11970 tabcontrol.TabPages[i]=new TabPage().
11971 SetTab now does a replace by removing the page at the index.
11972 Add a new InsertTab method that inserts a page in a given index
11973 instead of replacing.
11974 Implements TabPageCollection.Insert(int, TabPage).
11976 2007-04-27 Chris Toshok <toshok@ximian.com>
11978 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
11979 internal handler that can be invoked from our subclasses.) Also,
11980 add a comment to PushData about how we need to fix it.
11982 * CurrencyManager.cs: tons of changes here. trying to get things
11983 matching the behavior of .net wrt event orders (ItemChanged,
11984 CurrentChanged, PositionChanged.) I've implemented a private .net
11985 symbol (ChangeRecordState) that appears in stack traces because
11986 it's actually easier to do this than to effective inline all its
11987 various behaviors at every call site.
11989 * RelatedPropertyManager.cs: guard against an exception here by
11990 not using parent.Current if the position is set to -1 (if the
11991 parent datasource is cleared, for instance).
11993 * Binding.cs: don't parse data in PushData (this might be wrong,
11994 but it jives with MS's behavior.) Also, don't call PushData when
11995 we get a CurrentChanged event.
11997 2007-04-27 Andreia Gaita <avidigal@novell.com>
12001 WebBrowserSiteBase.cs,
12002 HtmlDocument.cs: Added stubbed out classes, no real implementations
12005 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12007 * MainMenu.cs: In draw method without parameters call draw method with
12008 PaintEvent, another one (just rect) adjust rectangle and we dont need it
12009 as Rect property is already adjusted. Fixes #80694.
12011 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
12013 * Application.cs: Need to handle keyboard menu deselection here.
12014 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
12015 navigation, allowing keyboard to work on X11.
12016 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
12018 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12020 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
12021 menu bar. It fixes some drawing issues in menu bar.
12023 2007-04-27 Everaldo Canuto <everaldo@simios.org>
12025 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
12026 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
12027 when <alt> key is pressed.
12029 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12031 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
12032 example just set visible to false and make this prevent from other problems.
12033 In SystrayAdd always remove pending expose. Fixes #81072.
12035 2007-04-26 Marek Safar <marek.safar@gmail.com>
12037 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
12040 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12042 * ListView.cs: Added three missing 2.0 events and corresponding
12043 EventHandlers. Added the OwnerDraw property.
12044 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
12046 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12048 * DrawListViewItemEventArgs.cs
12049 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
12051 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
12053 * TextControl.cs: Fixed typo in constructor
12055 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
12057 * Application.cs: Create a shortcut path so that currently selected
12058 MenuStrips can intercept keyboard events without having focus.
12059 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
12060 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
12061 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
12062 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
12063 generate WM_SYSCOMMAND message in X11 for other platforms.
12064 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
12065 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
12066 * ToolStripSplitButton.cs: Add DefaultItem property.
12068 2007-04-26 Everaldo Canuto <everaldo@simios.org>
12070 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
12071 fixes some menu draw problem on Windows with border diferent from default
12072 it also fixes #81403.
12074 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12076 * Form.cs: Refactor WndProc into separate methods, just like Control is
12079 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12081 * Control.cs: set_Text: move the call to the driver into a seperate
12082 virtual method so that Form can override it.
12083 * MaskedTextBox.cs: Corcompare fixes.
12084 * Form.cs: Override UpdateWindowText and only update the styles if the
12085 form has been shown (fixes #81405).
12087 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12089 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
12090 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
12091 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
12092 the form lost focus or another control was clicked.
12094 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
12096 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
12099 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12101 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
12102 DrawListViewItemEventHandler.cs,
12103 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
12105 * X11Structs.cs: More ToString implementation.
12107 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
12109 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
12110 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
12112 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12114 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
12116 * FormCollection.cs: Don't add a form if it's already in the
12118 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
12119 according to behaviour and MSDN. The ownerWin32 is the active
12120 window at the moment when we call ShowDialog, not the context's
12121 main form (the context's main form may open another form that opens
12122 a form with ShowDialog, the win32 owner is the second form). Add
12123 and remove forms to the Application.OpenForms in other places to
12124 better match MS behaviour. Add an IsActive property that raises
12125 On(de)Activated only if the active state has changed (we were
12126 raising OnDeactivated before OnActivated while creating forms).
12127 * Application.cs: Refactor Enabling/Disabling of windows for modal
12128 dialog loops out to separate methods, and restore the thread
12129 context when we quit the method. Fixes #81407.
12131 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12133 * ListView.cs: In ItemControl.HandleClicks, also fire
12134 2.0 MouseClick or MouseDoubleClick events on the parent,
12135 not only the Click/DoubleClick events.
12137 2007-04-24 Andreia Gaita <avidigal@novell.com>
12139 * TableLayoutSettings.cs:
12140 - Added a GetControls method and a support structure to help the
12141 TypeConverter to enumerate the controls for serialization.
12142 - Added a new serialization constructor.
12143 - Added a isSerialized flag initialized to true on the
12144 serialization constructor so that the TableLayoutPanel.LayoutSettings
12145 setter does not throw the designed NotSupportedOperation exception
12146 when the object is built through deserialization.
12147 - Implemented GetObjectData
12149 * TableLayoutPanel.cs: Added check on LayoutSettings.
12151 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12153 * ListView.cs: Report Click and DoubleClick events to the parent
12154 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
12155 from breaking the click count state when using dialog forms (Control
12156 reports the clicks in a similar fashion). In the previous behaviour
12157 the last WM_LBUTTONUP message in a double click was sent to the
12158 ListView's form, instead of the ListView, which was breaking the click
12159 count for it. Fixes #80387.
12161 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12163 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
12165 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12167 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
12168 us from created dropdowns for menu items that do not have subitems.
12169 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
12170 Check HasDropDownItems before calling DropDown so a dropdown will not be
12171 created if it isn't needed.
12173 2007-04-24 Jackson Harper <jackson@ximian.com>
12175 * TreeView.cs: Set the first node to the selected node when we get
12176 focus if there is no selected node.
12178 2007-04-24 Andreia Gaita <avidigal@novell.com>
12180 * MimeIcon.cs: remove using blocks so that image streams are
12181 not disposed of. Fixes #80151
12183 2007-04-24 Jackson Harper <jackson@ximian.com>
12185 * TextBoxBase.cs: Fixup the height of textboxes when the control
12188 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
12190 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
12191 for each ToolStripItem when the parent's RightToLeftChanged is called.
12193 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12195 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
12197 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
12198 property, so that the setter can be overriden too.
12199 * TextBox.cs: Change GetContextMenuInternal() to use
12200 ContextMenuInternal.
12202 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12204 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12207 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12209 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
12212 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12214 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
12215 avoid duplicate work. Mostily skeleton code, it's not working at
12218 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
12220 * NotifyIcon.cs : stub for MouseClick event
12221 * Application.cs: stub for SetUnhandledExceptionMode
12223 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
12225 * BindingNavigator.cs : Initial (partial) implementation
12227 2007-04-23 Jackson Harper <jackson@ximian.com>
12229 * TreeView.cs: Do not create the treeview's handle when setting
12230 the scroll position.
12231 - ExpandAll needs to compute the scrollbars so it knows which
12232 position to set the bar too.
12234 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
12236 2007-04-23 Jackson Harper <jackson@ximian.com>
12238 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
12241 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
12243 * ToolStripItem.cs: Make GetImageSize internal.
12244 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
12245 need to draw an item. Fixes a reported issue where images on menus
12246 that were not 16x16 were drawing incorrectly.
12248 2007-04-21 Miguel de Icaza <miguel@novell.com>
12250 * Padding.cs: Use the converter, fixes the resgen2 issue with
12253 2007-04-21 Jackson Harper <jackson@ximian.com>
12255 * TreeView.cs: Dont try to unhighlight the selected node if there
12256 isn't a selected node.
12258 2007-04-21 Jackson Harper <jackson@ximian.com>
12264 * TreeView.cs: Use the InternalBorderStyle property to set the
12265 initial border style, this forces the client rectangle to be sized
12268 2007-04-20 Jackson Harper <jackson@ximian.com>
12270 * TreeView.cs: Simplify scrolling to the last node after expanding
12272 - Fix some off by ones with setting the bottom.
12274 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12276 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
12277 that. We were incorrectly doing it the other way around. Also,
12278 update ClientSize if we change the BorderStyle before the control
12281 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12283 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12284 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12285 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
12286 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
12287 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
12288 Caption to CaptionHeight.
12289 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
12290 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
12291 and FixedFrameBorderSize to return value from current XplatUI driver.
12292 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
12293 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
12294 and FixedFrameBorderSize using win32 API. Renamed Caption to
12296 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
12297 * SystemInformation.cs: Fixed typo in BorderSize.
12299 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
12301 * XplatUI.cs: Added MenuAccessKeysUnderlined.
12302 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
12303 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
12305 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
12306 value from XplatUI driver.
12307 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
12308 SystemParametersInfo.
12309 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12311 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12314 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12316 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12318 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12320 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12322 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
12324 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12325 MenuStrips that contain ToolStripSeparators.
12327 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12329 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12330 DefineStdCursorBitmap.
12331 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12332 has been created off a standard cursor. This is used to get a
12333 bitmap of the standard cursor when Draw or DrawStretched is called
12334 in order to draw the cursor.
12335 * X11Structs.cs: Added XcursorImage and XcursorImages.
12336 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12337 DefineStdCursorBitmap.
12338 * Cursors.cs: Update all relevant creations of Cursor to use the new
12339 internal constructor.
12341 2007-04-19 Jackson Harper <jackson@ximian.com>
12343 * TextBox.cs: Move the has_been_focused into the base control, so
12344 some of the text adding methods can manipulate it (probably time
12345 for a better name for this flag too).
12346 - Call a new version of selectall that doesn't scroll
12347 * TextBoxBase.cs: When we append text, if the document is empty,
12348 don't scroll. If the document has text already, we scroll to the
12349 end of the appended text.
12350 - When the text is changed, we reset the has_been_focused, so the
12351 next time the control gets focused, all the text is selected.
12353 2007-04-19 Jackson Harper <jackson@ximian.com>
12355 * TextControl.cs: Move the margins to the document, add a method
12356 so the margin sizes can be updated.
12357 * TextBoxBase.cs: When the border style is changed, update the
12360 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
12362 * Control.cs: Respect DefaultPadding.
12363 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12364 padding into account.
12365 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
12367 2007-04-19 Jackson Harper <jackson@ximian.com>
12369 * TextControl.cs: Oops, we need to use the ClientRect not the
12372 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12374 * ListView.cs: In ItemControl.ItemsMouseDown, take into
12375 account the double clicks when CheckBoxes are used and
12376 the pointer is inside the checkbox. Fixes part of #81191.
12378 2007-04-18 Jackson Harper <jackson@ximian.com>
12380 * TextControl.cs: Pressing the end key shouldn't move the caret
12381 past the line ending.
12382 * TextBoxBase.cs: We can still delete if we are in the line
12383 ending and the combine will just kill the existing line ending.
12385 2007-04-18 Jackson Harper <jackson@ximian.com>
12387 * TextControl.cs: We can't move lines, then invalidate their
12388 bounds, we need to get the old bounds and combine that with the
12390 * TextBoxBase.cs: Before combining two lines for a delete, we need
12391 to invalidate the area of the old line, since that will be moved
12392 in the combine operation.
12394 2007-04-18 Everaldo Canuto <everaldo@simios.org>
12396 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12397 with transparent background. Fixes #80482.
12399 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
12401 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12402 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12405 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12407 * CreateParams.cs: Add a couple of helper methods and do a less string
12408 concatenation in ToString.
12409 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12410 overload that takes a Control parameter, since this method may be
12411 called before a control is assigned to the hwnd (from
12412 CreateWindow), and update CreateWindow to use the new overload. In
12413 GetMenuOrigin subtract the title bar from the y position if the
12414 form has a window manager (since we're painting it and not X).
12415 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12416 CreateParams to calculate the origin (since border sizes may vary).
12417 In ScreenToMenu only subtract the title height if we actually have
12419 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12420 mdi children never have menus of themselves.
12421 * InternalWindowManager.cs: Implement menu handling like form does.
12422 Added GetMenuOrigin to calculate the menu origin, can't use the
12423 CreateParams from the form like normally since it's lying.
12424 * Hwnd.cs: Implement GetBorderSize better (in the sense more
12425 windows-like) and add Inflate and comparison operators to the
12426 Borders type. When calculating MenuOrigin and it's a form with a
12427 window manager, use the window manager to calculate it.
12429 2007-04-17 Chris Toshok <toshok@ximian.com>
12431 * Control.cs (CreateControl): turns out in 2.0 we don't need this
12432 OnBindingContextChanged thing here. It's only generated from
12433 ContainerControl.OnCreateControl. Fixes a newly written unit test
12434 - BindingTest.BindingContextChangedTest4.
12436 2007-04-17 Jackson Harper <jackson@ximian.com>
12438 * ScrollBar.cs: When setting values, make sure the current
12439 position stays within the new values range.
12441 2007-04-17 Chris Toshok <toshok@ximian.com>
12443 * Control.cs (CreateControl): talk about a bizarre corner case.
12444 Don't emit OnBindingContextChanged here if we're a parentless
12445 control (i.e. if we're a form.). Fixes
12446 BindingTest.BindingContextChangedTest2.
12448 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12450 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
12451 from win32. Fixes #81255.
12453 2007-04-17 Everaldo Canuto <everaldo@simios.org>
12455 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12456 already present in CalculateButtonTextAndImageLayout.
12458 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12460 * XplatUIX11.cs: When setting min/max size for a window we need to
12461 translate the coordinates to x coordinates. Create an overload of
12462 SetWindowMinMax that takes a CreateParams handling this, and change
12463 SetWMStyles to call this function (can't use Control.FromHandle in
12464 the SetWindowMinMax to get the control/CreateParams from the handle
12465 because the handle might not have been assigned to the control
12466 yet). Fixes #81371.
12468 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12470 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12471 if StateImageList is non-null and it has less than two items (match MS
12472 behaviour). Also, in HandleNavKeys handle the Space key, calling
12473 the new ToggleItemsCheckState method, which tries to change the
12474 checked state of the selected items. Fixes part of #81191.
12476 2007-04-16 Jackson Harper <jackson@ximian.com>
12478 * RichTextBox.cs: namespace cleanup.
12480 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12482 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12484 2007-04-16 Everaldo Canuto <everaldo@simios.org>
12487 * Control.cs: Call invalidate in set_Region.
12489 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12490 it dont works here.
12492 2007-04-16 Jackson Harper <jackson@ximian.com>
12494 * TextBoxBase.cs: When enter is pressed, we need to update all
12495 lines below the current.
12497 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
12499 * MdiClient.cs: Implement implicit menu merging for MDI
12500 children. When a child form is active, if it has a menustrip
12501 and the parent form has a MainMenuStrip, automatically merge
12504 2007-04-15 Andreia Gaita <avidigal@novell.com>
12506 * TabControl.cs: Refactored sizing methods to not repeat
12507 code all over the place. Tab bounds are now calculated
12508 as if alignment is top and single line, and only when
12509 setting the bounds are the positions adjusted according
12510 to alignment. Replaced hardcoded positions, spacings and
12511 paddings by getting the values the ThemeEngine.
12514 * Theme.cs: Change TabControl properties and methods so
12515 that all start with TabControl*. Added more properties
12516 to help remove hardcoded values on tabcontrol.
12517 Add CPDrawBorder3D declaration so the Theming classes
12520 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12522 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12523 on the Theming namespace, and call the appropriate methods here.
12524 Change CPDrawBorder3D to public.
12526 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12528 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12529 the control after firing the OnMouseUp event, instead of sending
12530 the message before the mentioned event. This is so we can match the
12531 MS behaviour. Fixes part of #80385.
12533 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12535 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12536 RightToLeft property.
12538 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
12540 * ToolStrip.cs: Add properties and internal methods to support merging.
12541 * ToolStripItem.cs: Add MergeAction and MergeIndex.
12542 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12543 not trigger reparenting or layouts.
12544 * ToolStripManager.cs: Add Merge and RevertMerge methods.
12545 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12546 is hosting the overflow menu.
12548 2007-04-13 Jackson Harper <jackson@ximian.com>
12550 * TextControl.cs: Set the line ending correctly for the first
12553 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
12555 * Theme.cs: Update GetMethod to get the new definition for
12556 KnownColors.Update (and fix theme color updates).
12558 2007-04-12 Everaldo Canuto <everaldo@simios.org>
12560 * MessageBox.cs: Fix some test and button position.
12562 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12564 * Form.cs: Consider the implicit controls in
12565 GetRealChildAtPoint. We need it since this method
12566 is called on Form when handling the some messages in
12567 WndProc, and need to consider those implicit ones too.
12570 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
12572 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12573 if there are no ShortcutKeys set.
12574 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12575 set, use it when painting.
12577 2007-04-12 Jackson Harper <jackson@ximian.com>
12579 * TextControl.cs: Fix some off-by-one issues in line duplication
12580 and insertion in the undo manager. Also, overwrite the first tag
12581 of a line on insert, if it is just a zero lengthed tag. This
12582 prevents us from getting an extra stranded tag at the beginning of
12585 2007-04-11 Everaldo Canuto <everaldo@simios.org>
12587 * Label.cs: Remove check for handle created in CalcAutoSize, we need
12588 to calculated proper size including when handle was not created yet.
12590 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12592 * MdiWindowManager.cs: When moving a form, allow the form to be moved
12593 when the mouse is outside of it's parent's client rectangle. Fixes
12594 #79982 (take 3, part 2).
12596 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12598 * X11Structs.cs: Add a few ToString() overrides.
12599 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12600 the window location in a window-manager independent way. Reworked
12601 FrameExtents, it now actually works. Reworked AddConfigureNotify
12602 and ReparentNotify handling to use GetTopLevelWindowLocation
12603 instead of the earlier, more hacky solution. Reworked SetWMStyles,
12604 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12605 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12606 for all other windows (fixes #81281 part 1), a toolwindow is hidden
12607 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12608 and generally refactored to do as few calculations as possible
12611 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
12613 * Theme.cs: Change "reflective-contract" between MWF and SD to
12614 minimize # of calls, avoid Color serialization and avoid updating
12615 every "known colors" each time a single one is updated.
12617 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12619 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12620 when not readonly and the text is explicitly set. Code style updates.
12621 * DataGridTableStyle.cs: Removed extra line.
12622 * DataGrid.cs: Code style updates. Removed extra whitespace.
12623 * DataGridColumnStyle.cs: Code style updates. Removed extra
12626 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12628 * XplatUIX11.cs: Added comment that "fixes" #80021.
12630 2007-04-09 Jackson Harper <jackson@ximian.com>
12632 * TextControl.cs: We don't need this -1 on the line count anymore.
12634 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
12636 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12637 entered value to underlying type, and convert it back to a string to
12638 apply formatting. Modified GetFormattedValue to use TypeConverter
12641 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
12643 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12644 Use SubItems property when we want to ensure there's at least one
12645 subitem. Modified SubItems property to ensure there's always at least
12646 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12647 the NRE's reported by MS.
12649 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
12651 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12652 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12653 Spaces to tabs. Removed extra tabs.
12655 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
12657 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12658 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
12660 2007-04-06 Jackson Harper <jackson@ximian.com>
12662 * TextBoxBase.cs: When a delete removes a line, recalculate all
12663 lines below that line (they need to get offsets setup correctly)
12666 2007-04-05 Jackson Harper <jackson@ximian.com>
12668 * TextControl.cs: We need to invalidate across the width of the
12669 document when we are invalidating multiple lines.
12670 * TextBoxBase.cs: Don't delete into the line ending.
12672 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12674 * ListView.cs: Restore the check for the MouseHover event
12675 in ListView. It looks like the ListView fires more than one MouseHover
12676 event when HoverSelection is true _only_ in weird-corner scenarios, but
12677 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12680 2007-04-05 Mike Kestner <mkestner@novell.com>
12682 * ListView.cs : raise MouseDown before updating selection.
12683 [Fixes #80373 tab 1&3]
12685 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12687 * ToolStripRenderer.cs: Add static method to mirror image.
12688 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12689 and RightToLeftAutoMirrorImage.
12690 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12692 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
12694 * ToolStripSplitStackLayout.cs: Support Alignment property.
12695 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12697 2007-04-05 Jackson Harper <jackson@ximian.com>
12699 * TextControl.cs: Move around the line endings when crossing line
12701 - When combining lines, strip the ending text off the first line.
12703 2007-04-05 Jackson Harper <jackson@ximian.com>
12706 * TextBoxBase.cs: Try to never move the cursor into the line
12709 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12711 * ToolStripItem.cs: Make sure we aren't firing mouse events when
12712 the item is disabled. Also add a few missing methods.
12714 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12716 * ListView.cs: We don't need the MouseEnter/MouseLeave check
12717 to fire just one MouseHover event when HoverSelection is true, since
12718 .Net does fire more than one MouseHover event in that scenario. Also,
12719 fix the selection in HoverSelection, by invoking UpdateMultiSelect
12720 if MultiSelect is true, instead of only setting ListViewItem.Selected.
12721 Finally, we need to reset the Hover logic in MouseMove, even when we
12722 don't have a selected item.
12724 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12726 * ToolStrip.cs: Add several missing methods, properties, and events.
12728 2007-04-04 Chris Toshok <toshok@ximian.com>
12730 * DataGridTextBoxColumn.cs: set the bounds of the text box to
12731 (0,0,0,0) in Commit, as MS does.
12733 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
12734 make sure we set CurrentRow on a row header click *before* calling
12735 Select. This moves the current cell (and the textbox) to the new
12736 row. The call to Select then hides the textbox, giving us the
12737 correct behavior. Fixes #80362.
12739 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
12740 (ListChangedHandler): reorder the position/current changed events,
12741 and call UpdateIsBinding in the ItemAdded case.
12743 * GridColumnStylesCollection.cs: add some columns events, one of
12744 which raises the CollectionChanged event.
12746 2007-04-04 Jackson Harper <jackson@ximian.com>
12748 * TextControl.cs: When we delete multiple selection lines
12749 invalidate the selection area, don't need to do that for single
12750 lines because the final update view will handle it.
12752 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
12754 * Control.cs: When we CreateControl, we need to also create all of the
12755 control's children. The child's OnLoad must also fire before the parent's
12756 OnLoad. Fixes the toolbox size in PDN.
12758 2007-04-04 Jackson Harper <jackson@ximian.com>
12760 * TextBoxBase.cs: When the user presses enter, insert a line
12761 ending into the text. (Maybe this would be a good spot for
12762 Environment.NewLine).
12763 * TextControl.cs: Remove undo manager hack, line endings get
12764 inserted properly now.
12766 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12769 - Remove unneeded parameters in UpdateCursor.
12770 - Fix UpdateCursor to check if menu is active.
12771 - Call UpdateCursor when menu deactivate my click.
12772 [Fixes remaining issues from #80410]
12774 2007-04-04 Everaldo Canuto <everaldo@simios.org>
12776 * Control.cs: GetRealChildAtPoint method added, it make an
12777 recursive child control search for the point.
12779 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
12782 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
12784 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12786 * Form.cs: Fix mouse position when send back mouse event after closes
12789 2007-04-03 Everaldo Canuto <everaldo@simios.org>
12791 * Form.cs: Simplify the BUTTONDOWN for active tracker.
12793 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12795 * Control.cs: Fix an issue where if a user resized a control inside
12796 a sizing method like OnResize, we would overwrite their explicit
12797 value. Also, only call DefaultSize once in the constructor instead
12798 of 4 times. Also, do not call SetBoundsCore from SetBounds if
12799 nothing actually changed.
12801 2007-04-03 Jackson Harper <jackson@ximian.com>
12803 * TextControl.cs: Don't attempt to copy text for lines with no
12804 text in them (technically this shouldn't happen, but we aren't
12805 always inserting line endings when we should be).
12807 2007-04-03 Jackson Harper <jackson@ximian.com>
12809 * TextBoxBase.cs: Calculate the scrollbars before calculating the
12810 document, because this sets some of the document size properties
12813 2007-04-03 Jackson Harper <jackson@ximian.com>
12815 * TextBoxBase.cs: We need to calculate maximums even if this is
12816 not a multiline control, because the maxs are used for scrolling.
12817 - Display the caret after doing a page up/down, we need to
12818 manually display it because a proper CaretMoved event isn't
12819 triggered (this is because of the way the math is done to
12820 determine how far to scroll).
12822 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
12824 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
12825 (ToolBar was relying on SetBoundsCore to default the values sent
12826 base off of BoundsSpecified.)
12828 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12830 * DateTimePicker.cs: Change Text so that when a null value or empty
12831 string is assigned to the test we always raise ValueChanged and
12832 TextChanged (earlier implementation would only raise ValueChanged
12833 if the current date value was different from DateTime.Now).
12835 2007-04-03 Andreia Gaita <avidigal@novell.com>
12837 * ButtonBase: Call update after invalidation, fixes #80194
12839 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12841 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
12844 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12846 * XplatUIX11.cs: SetWMStyles: If the control is a form with
12847 FormBorderStyle = None, don't give the window any decorations.
12850 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12852 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12853 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
12854 to check for is a mix of several styles (such as WS_CAPTION for
12856 * Control.cs: Don't paint an area bigger than the client area when
12857 painting the background colour. Add an internal GetCreateParams.
12858 Update calls to XplatUI.CalculateWindowRect due to API change.
12859 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
12860 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
12861 the size if it hasn't been handled by any windows. When creating
12862 and moving windows, X wants the location of the entire window, but
12863 the size of the client window, so add
12864 TranslateClientRectangleToXClientRectangle,
12865 TranslateWindowSizeToXWindowSIze and
12866 TranslatedXWindowSizeToWindowSize to cope with this, and call them
12867 before every window creation and move. Update CalculateWIndowRect
12868 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
12869 In AddConfigureNotify don't do anything if the hwnd is a zombie
12870 (fixes the BadWindow we were getting while running the tests),
12871 always calculate the offsets when it's a parentless window, not
12872 only when reparented, and translate the window size, since we're
12873 getting the client size of the whole window, excluding entire
12875 * Theme.cs: Added BorderSizableSize.
12876 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12877 anymore. Update calls to XplatUI.CalculateWindowRect due to API
12879 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
12880 change. Fake the window styles here instead of in XplatUIWin32 so
12881 that all back-ends get the same window styles (and it's Form that's
12882 deciding when to use wm, not the Win32 backend anyways)
12883 * Hwnd.cs: Completely reworked GetWindowRectangle and
12884 GetClientRectangle - they are now passed a CreateParams and they
12885 only use Style and ExStyle to determine the rectangles (they should
12886 now work just like Win32AdjustWindowRectEx - though quite a few
12887 special cases are probably missing). They should also be 100%
12888 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
12889 == rect), and all numbers (borders, menu sizes) are taken from the
12890 current theme. Added a GetBorders helper function that will return
12891 the borders for any given CreateParams (including captions and
12892 menus), and GetBorderSize that returns the given border size only.
12893 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
12894 Hwnd.GetClientRectangle.
12896 2007-04-02 Chris Toshok <toshok@ximian.com>
12898 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
12899 logic between the values we present to the user and the values
12900 which are stored in the column's property. Also, don't call
12901 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
12903 2007-04-02 Jackson Harper <jackson@ximian.com>
12905 * TextBoxBase.cs: Scroll faster!
12907 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
12909 * StatusStrip.cs: Layout fixes for PDN.
12910 * ToolStrip.cs: Set item's available to true, and placement to main when
12912 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
12913 changing in setter before doing any work, add InternalVisible.
12914 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
12915 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12918 2007-04-02 Jackson Harper <jackson@ximian.com>
12920 * TextBox.cs: LBUTTON does not make the textbox select all of it's
12923 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12925 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
12926 Makes ToolStripComboBoxes show up again.
12928 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12930 * ListView.cs: Add a hover_pending field in ListView
12931 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
12932 cycle (we are resetting the MouseHover logic in XplatUI
12933 to handle HoverSelection). Fixes #80429.
12935 2007-04-02 Jackson Harper <jackson@ximian.com>
12937 * TextControl.cs: Make sure the attributes get set on the last
12939 - Still have to do the end tag if we have stepped all the ways to
12942 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
12944 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
12945 on an internal libgdiplus call when the information is already
12946 available via the public API.
12948 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12950 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
12951 control is removed from a control collecftion.
12952 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
12953 Fixes FormPropertyTest (failed on rare occasions).
12954 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
12955 of Win32SetParent (when changing from no parent to a parent it
12956 might add the new parent's location in screen coordinates to this
12957 window's location).
12958 * Form.cs: Rework ChangingParent once again, now the handle is
12959 recreated whenever a FormWindowManager is added or removed (that is
12960 whenever a normal form is parented or abandoned). Also change
12961 CreateParams so that all non-toplevel windows always get the
12962 specified sice (StartupPosition is never considered for
12963 non-TopLevel forms).
12964 * ContainerControl.cs: Add ChildControlRemoved, the container control
12965 needs to be notified when a control is removed from it's
12966 collection, in the case the removed control is the active control.
12968 2007-04-02 Jackson Harper <jackson@ximian.com>
12970 * RichTextBox.cs: Use the new methods for setting the font and
12971 color, these methods set the specified attribute without
12972 overriding the other attributes.
12974 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
12976 * ToolStripPanel.cs: Fixes for better layouts in PDN.
12978 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
12980 * TextBox.cs: Added internal ChangeBackColor method to special-case
12981 Color.Empty. Added check for invalid ScrollBars value.
12982 * TextBoxBase.cs: Added internal ChangeBackColor method.
12983 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
12984 internal ChangeBackColor method to special-case Color.Empty. Added
12985 check for invalid ScrollBars value.
12987 2007-03-30 Everaldo Canuto <everaldo@simios.org>
12989 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
12991 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
12993 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
12994 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
12995 [Based on submitted patch from Olivier Duff.]
12997 2007-03-30 Jackson Harper <jackson@ximian.com>
12999 * TextBox.cs: Only select all on initial focus if the user has not
13000 specified a selection area.
13002 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
13004 * UserControl.cs: Override CreateParams.
13006 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13010 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13011 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
13012 check for is a mix of several styles (such as WS_CAPTION for instance).
13013 * Control.cs: Don't paint an area bigger than the client area when painting
13014 the background colour. Add an internal GetCreateParams. Update calls to
13015 XplatUI.CalculateWindowRect due to API change.
13016 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
13017 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
13018 hasn't been handled by any windows. When creating and moving windows, X
13019 wants the location of the entire window, but the size of the client
13020 window, so add TranslateClientRectangleToXClientRectangle,
13021 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
13022 to cope with this, and call them before every window creation and move.
13023 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
13024 removing DeriveStyles). In AddConfigureNotify don't do anything if the
13025 hwnd is a zombie (fixes the BadWindow we were getting while running the
13026 tests), always calculate the offsets when it's a parentless window, not
13027 only when reparented, and translate the window size, since we're getting
13028 the client size of the whole window, excluding entire window.
13029 * Theme.cs: Added BorderSizableSize.
13030 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13031 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
13032 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
13033 Fake the window styles here instead of in XplatUIWin32 so that all
13034 back-ends get the same window styles (and it's Form that's deciding when
13035 to use wm, not the Win32 backend anyways)
13036 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
13037 they are now passed a CreateParams and they only use Style and ExStyle
13038 to determine the rectangles (they should now work just like
13039 Win32AdjustWindowRectEx - though quite a few special cases are probably
13040 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
13041 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
13042 sizes) are taken from the current theme. Added a GetBorders helper
13043 function that will return the borders for any given CreateParams
13044 (including captions and menus), and GetBorderSize that returns the given
13046 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13047 Hwnd.GetClientRectangle.
13049 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13051 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
13052 layout of the mdi children is handled by CreateParams. Fixes
13055 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13057 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
13060 * Form.cs: When active tracker mouse down is not processed, send event
13061 back to control inside mouse position. [Fixes #81227]
13063 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13065 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
13066 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
13067 stealing focus from the active form on Windows. (Control will be made
13068 visible in ShowWindow.)
13070 2007-03-29 Mike Kestner <mkestner@novell.com>
13072 * ImageList.cs : add internal Changed event.
13073 * ListView.cs : hook up to StateImageList.Changed to perform
13074 invalidations when the the state icon list changes. [Fixes #81191]
13076 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
13078 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
13079 to prevent tooltips from stealing focus from the active form on Windows.
13081 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13083 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
13085 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
13087 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13089 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
13092 2007-03-29 Jackson Harper <jackson@ximian.com>
13094 * TextControl.cs: When deleting text from non multiline textboxes,
13095 we need to update the entire document, because line offsets will
13098 2007-03-29 Everaldo Canuto <everaldo@simios.org>
13100 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
13101 added to theme, now we can create themes that uses diferent notify engines
13102 like notification-daemon from galago project or growl for Mac OS.
13104 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13106 * NotifyIcon.cs: Prevent Balloon to show in task bar.
13108 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13110 * XplatUIX11.cs: Prevent system to open more than one balloon.
13112 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
13113 some compiler warning messages.
13115 2007-03-28 Everaldo Canuto <everaldo@simios.org>
13119 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
13121 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
13122 implemented, this methods is used by NotifyIcon.BalloonWindow class.
13124 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
13127 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13129 * ListViewItem.cs: Forgot to make Invalidate internal.
13131 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13133 * ListView.cs: Add a InvalidateSelection method to
13134 invalidate methods which are currently selected, and call
13135 it when setting FullRowSelect and HideSelection, instead of
13138 2007-03-28 Chris Toshok <toshok@ximian.com>
13140 * XplatUIX11.cs (UnmapWindow): reindent this block.
13142 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
13143 the selection_start if we're moving the selection (that is, not
13144 extending it). Fixes bug #80461.
13146 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13148 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
13149 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
13150 create private ControlCollection.
13152 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13154 * Control.cs: We need to call OnVisibleChanged for our implicit
13155 children as well as our normal children. Fixes scrollbars in
13156 comboboxes not showing up.
13158 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13160 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
13161 the check for IsHandleCreated first. The check in CreateHandle is not
13162 good enough because CreateHandle can be overriden, and the override
13163 should not be called if the handle is already created.
13165 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
13167 * ToolStrip.cs: Remove MonoTODO for tooltips.
13168 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
13169 * ToolStripContainer.cs: Add custom ControlCollection class.
13170 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
13171 * ToolStripDropDown.cs: Add some missing properties/methods.
13172 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
13173 * ToolStripItem.cs: Remove MonoTODO for tooltips.
13174 * ToolStripManager.cs: Add IsShortcutDefined.
13175 * ToolStripOverflow.cs: Override LayoutEngine.
13176 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
13177 * ToolStripSeparator.cs: Add ImageKey.
13179 2007-03-28 Jackson Harper <jackson@ximian.com>
13181 * TextControl.cs: If a char delete removes a line ending, we need
13182 to update the ending style.
13183 - Make sure the line ending calcs get called.
13185 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13187 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
13188 it was making the new code not work. Fixed a typo in the new code
13189 as well. Fixes #79826.
13191 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13194 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
13195 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
13196 - SystrayBalloon method implemented.
13197 [Add support for notifyicon balloon on win32, #79149]
13199 2007-03-27 Mike Kestner <mkestner@novell.com>
13201 * ThemeWin32Classic.cs : update StateImageList selection to mirror
13202 the ms behavior when only one image is added to the list.
13205 2007-03-27 Jackson Harper <jackson@ximian.com>
13207 * TextControl.cs: Improvements to non multiline line ending
13210 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13212 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
13214 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13217 - Balloon message handling added.
13218 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
13220 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13221 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
13222 to SystrayBalloon to me like other Systray method, also a
13223 handle parameter added.
13225 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13227 * ListView.cs: Show scrollbars even when items.Count == 0
13228 but the columns Width is bigger than the ListView.Width.
13229 Also, when columns.Count == 0 set layout_wd and layout_ht
13230 to the ClientRectangle values, so we don't show any scrollbar
13233 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13235 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
13237 2007-03-27 Jackson Harper <jackson@ximian.com>
13239 * RichTextBox.cs: The RTF library decodes the text properly for us
13242 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13244 * ListView.cs: Display HeaderControl even when columns.Count == 0.
13245 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
13246 ListView header (HeaderControl), instead of Control.BackColor.
13248 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13250 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
13251 Fixes tab control issues where controls would not show up because they
13252 never received their OnVisibleChanged call.
13254 2007-03-27 Everaldo Canuto <everaldo@simios.org>
13256 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
13259 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
13261 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
13262 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
13263 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
13264 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
13265 the handle. Fix WindowState by using the internal variable until we are
13266 sure that we've been shown.
13267 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
13271 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
13273 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
13274 (at least borders). Fixes #79386 on Linux (with a small difference
13275 in behaviour: when trying to resize a caption-less window metacity
13276 shows the sysmenu. Resizing is still possible though).
13277 * XplatUIWin32.cs: When setting window styles send request an extra
13278 WM_NCCALCSIZE when it's a form without title (due to no text and no
13279 caption), since Win32 seems to calculate it wrong the first time we
13280 get the message, though the second time things work as they should.
13281 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
13282 newly reparented window might show up unparented. Update
13283 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
13284 there's no title text. Fixes #79386.
13286 2007-03-27 Mike Kestner <mkestner@novell.com>
13288 * ListBox.cs : don't perform invalidations if the handle hasn't been
13289 created. [Fixes #80753]
13291 2007-03-27 Mike Kestner <mkestner@novell.com>
13293 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
13296 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13298 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
13299 needed to implement Balloon.
13301 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13303 * ListViewItem.cs: In the constructors that take
13304 an array of strings, don't use ListViewSubItemCollection.AddRange
13305 method to add items, since we need to have a different behaviour (in
13306 the constructors we add an item for each null string, opposed to
13307 the behaviour of AddRange, which adds nothing).
13309 2007-03-26 Andreia Gaita <avidigal@novell.com>
13311 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13313 2007-03-26 Jackson Harper <jackson@ximian.com>
13315 * TextControl.cs: Draw and measure line endings when in non
13317 - When searching the text, count the end of the last line as a
13320 2007-03-26 Jackson Harper <jackson@ximian.com>
13322 * RichTextBox.cs: The selection_start and selection_end don't
13323 really track the correct tags for the selection. So we'll manually
13324 compute the correct tag here.
13326 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13328 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13329 and Continuous styles. Fixes #79469.
13331 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13333 * ToolStrip.cs: Implement Tooltips.
13334 * ToolStripItem.cs: Create internal method for determining tooltip.
13336 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
13338 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13340 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13342 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13343 it prevents a problem thak keeps icon visible after application
13346 2007-03-26 Everaldo Canuto <everaldo@simios.org>
13348 * NotifyIcon.cs: Balloon properties and methods created.
13350 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13351 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13353 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
13355 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13357 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13359 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
13360 parameter indicates which aspects were explicit/user-set.
13361 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13363 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
13365 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13366 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13367 SmallChange, and Value (2.0).
13368 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13370 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13372 * ListView.cs: Always set item_control.Width in LayoutDetails
13373 if View is Details. Setting it later in CalculateScrollBars
13374 in a not-so-corner scenario (the sum of columns width is
13375 not bigger than the ListView width when handle is created, and then
13376 that sum gets bigger by increasing the width of the columns)
13377 causes a very weird recursion path (which shouldn't be happening,
13378 since header_control sets it in CalculateScrollBars too). This bug
13379 appeared after Chris' fixes for handle created issues, so probably
13380 it's related to some handle-creation time.
13382 2007-03-23 Chris Toshok <toshok@ximian.com>
13384 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13385 case where there's an add row, just so we don't end up in a case
13386 where it's not displayed (this happens when the row is partially
13387 obscured). Fixes bug #79574.
13389 2007-03-23 Jackson Harper <jackson@ximian.com>
13393 * RichTextBox.cs: Preserve line endings in the lines text buffer,
13394 also added an enum that represents the line ending type.
13396 2007-03-23 Andreia Gaita <avidigal@novell.com>
13398 * NumericUpDown.cs: Fix logic so Text and Value properties are not
13399 messed with in every method call, but only from DownButton,
13400 UpButton, UpdateEditText() and ValidateText. Fixes #80346
13402 2007-03-23 Chris Toshok <toshok@ximian.com>
13404 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13405 format objects if the format spec is "". Fixes bug #80889.
13407 2007-03-22 Miguel de Icaza <miguel@novell.com>
13409 * ToolStripPanel.cs (Join): added stubs to build PDN3
13411 * Control.cs (AutoScrollOffset): Add.
13413 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13414 property, its only implemented for Win32, on X11 it defaults to
13415 some hardcoded value.
13417 * ToolStripItem.cs (AllowDrop): Add property
13419 2007-03-22 Mike Kestner <mkestner@novell.com>
13421 * ListView.cs : in FullRowSelect Details mode, only enable box
13422 selection if the user clicks over the "item" column outside of the
13423 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
13425 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13427 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13428 handle is not created yet.
13429 * Form.cs: Select: Don't call CreateHandle if the handle is already
13430 created, avoids a stack overflow on Windows when we are recreating
13432 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13433 they are made visible, and override AfterTopMostControl to keep
13434 them on top when other controls are brought to front.
13435 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13436 or force_*scroll_visible is true (old implementation always shows
13437 scrollbars when needed, no matter what auto_scroll was set to).
13438 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13439 IsHandleCreated check.
13441 2007-03-22 Andreia Gaita <avidigal@novell.com>
13443 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13444 row or col separator.
13445 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13447 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13449 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13451 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13453 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13454 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
13455 every time. Fixes #80410.
13457 2007-03-22 Chris Toshok <toshok@ximian.com>
13459 * BindingSource.cs (AddNew): partially implement.
13461 remove a couple of NotImplementedException's
13462 to get bug #81148 closed.
13464 2007-03-22 Everaldo Canuto <everaldo@simios.org>
13469 - UpdateCursor method added to update the screen cursor.
13470 - GetAvailableCursor method added to return cursor for enabled tree,
13471 it searches for cursor on control and it's parent's for enabled control.
13472 - Call UpdateCursor method on setter of Cursor property.
13473 - On setter of Enabled call UpdateCursor when it is false, we need to
13474 change cursor to normal (or to this parent cursor) because cursor
13475 setting theres no effect to disabled controls.
13476 - Some minor source changes to follow the coding style guidelines.
13478 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
13481 2007-03-22 Chris Toshok <toshok@ximian.com>
13483 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13486 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13488 * XplatUIX11.cs: Implement default locations for forms.
13489 * Form.cs: Completely rework startup location for forms. Fixes #79964.
13490 * Hwnd.cs: Add previous_child_startup_location (to track the current
13491 startup location for any child forms of the current form) and
13492 previous_main_startup_location (to track the startup location for
13493 the current toplevel form).
13495 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13497 * Control.cs: Don't trigger a layout if an implicit control is added
13498 that isn't visible. Also, don't notify the owner when an implicit control
13499 is added. (Owners shouldn't even know about their implicit controls.)
13501 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13503 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13504 to save some re-layouts.
13506 2007-03-21 Everaldo Canuto <everaldo@simios.org>
13508 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13511 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
13513 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13514 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13516 2007-03-21 Mike Kestner <mkestner@novell.com>
13518 * ListView.cs : disable selection update for non-left button clicks
13519 with mods and over selected items. [Fixes #80524]
13521 2007-03-20 Jackson Harper <jackson@ximian.com>
13524 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13527 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13529 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13530 very probably a more complicated calculation there. Update the
13531 textbox' ForeColor and BackColor when the ComboBox' colors are
13532 changed. Change the border change in LayoutComboBox to only affect
13533 the textbox, not all the calculations there. Seems to fix most of
13536 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13538 * ComboBox.cs: Handle Home and End keys as well as all combinations of
13539 modifiers + navigation keys as input keys, enables advanced text
13540 selection in the combobox (like Shift+Left Arrow for instance).
13541 ComboTextBox now overrides Focused and returns whatever
13542 ComboBox.Focused returns, since it really should be focused
13543 whenever the ComboBox is. Fixes #80795. Also make the border around
13544 the text box one pixel bigger, as mentioned in #79436.
13546 2007-03-20 Jackson Harper <jackson@ximian.com>
13548 * TreeView.cs: Don't offset the images, this was causing some
13549 artifacts when expanding/collapsing with images that were the
13550 exact height of the treenode.
13552 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13554 * TrackBar.cs: Query the theme for the correct value when the mouse
13555 moves and the thumb is pressed.
13556 * Theme.cs: Added TrackBarValueFromMousePosition
13557 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13558 implementation was updating the trackbar value when drawing, now
13559 the drawing methods only draw. Fixes #80900. Refactored the
13560 calculations out to TrackBarValueFromMousePosition and
13561 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13562 according to the mouse position whenever it wants to. Changed the
13563 light coloured pen when drawing the thumb from ControlLight to
13564 ControlLightLight, because the ControlLight is the same colour as
13565 the background so the 3D effect is lost.
13567 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13569 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13570 defined. Fixes #80784.
13572 2007-03-20 Marek Habersack <mhabersack@novell.com>
13574 * ContextMenuStrip.cs: align with the change introduced in
13577 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13579 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
13580 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
13583 2007-03-19 Chris Toshok <toshok@ximian.com>
13585 * Control.cs (WmPaint): don't make use of the Handle property
13586 after an event is emitted, as the user could have closed the
13587 form/destroyed the control. Store the Handle in a local variable
13588 and make use of that. Fixes bug #80768.
13590 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13592 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13593 behavior in X11 environments.
13595 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13597 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13598 because on setter of topmost we dont call SetTopmost when handle is not
13601 2007-03-20 Jackson Harper <jackson@ximian.com>
13603 * TextControl.cs: Need to use SelectionLength () not
13604 selection_length, since that var is reset to -1.
13605 - Draw the caret when we don't have focus.
13606 * TextBox.cs: The selectall actually doesn't occur until the first
13608 * TextBoxBase.cs: Need to update the caret position after a
13611 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13613 * ListView.cs: Enable scrolling when using Tile view.
13615 2007-03-20 Everaldo Canuto <everaldo@simios.org>
13619 * XplatUIDriver.cs: Abstract SetOwner method created.
13621 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
13622 must be implemented and was masked as todo.
13624 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
13627 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
13628 cheking for null owner to remove transient. The SetTopmost will be change
13631 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13632 SetTopmost. Now owned forms will work properly in win32 and X11.
13634 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13636 * MdiWindowManager.cs: Update function name.
13637 * Form.cs: After closing a form MdiParent is always null.
13638 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13639 better what it should do: necessary book-keeping when the form is
13640 closed, it should not close the form itself.
13642 2007-03-19 Andreia Gaita <avidigal@novell.com>
13644 * ListViewItem.cs: Fix back and fore color. The subitems only
13645 use their own colors if they are set, otherwise use the listview's
13646 colors. Don't set default colors on constructor for subitem.
13649 2007-03-19 Mike Kestner <mkestner@novell.com>
13651 * ListView.cs : make box selection for Details views with
13652 FullRowSelect conform to MS behavior when clicking in the "item"
13653 column and clicking outside the defined columns.
13654 [Fixes case 5-6 of #80374]
13656 2007-03-19 Chris Toshok <toshok@ximian.com>
13658 * ScrollableControl.cs: create the controls from within the ctor,
13659 but don't actually add them until our handle is created. this
13660 fixes a NRE possibility jpobst found (if you override OnLayout in
13661 a subclass, it's called before your ctor). Also, add a
13662 IsHandleCreated guard to UpdateSizeGripVisibility as well.
13664 2007-03-19 Jackson Harper <jackson@ximian.com>
13666 * TextBox.cs: Reduce the amount of invalidation we do.
13667 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13668 some of them are true by default on MS.
13669 - Add some functions to reduce the amount of invalidates we do.
13670 * TextControl.cs: Less invalidation.
13672 2007-03-19 Chris Toshok <toshok@ximian.com>
13674 [ Fixes #81773, and *seems* to fix #81553 as well ]
13676 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13677 AccumulateDestroyedHandles. We need to do it *after* we send
13678 WM_DESTROY, as the user's code can access Control.Handle in
13679 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
13680 move the WM_DESTROY/zombie handling to before the call to
13681 XDestroyWindow. For some reason without this ordering
13682 FormTest.RecreateHandle hangs. This ordering is semantically
13683 equivalent, however, as XDestroyWindow is async anyway.
13685 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
13687 * RichTextBox.cs: Reset backcolor_set after setting default.
13689 2007-03-19 Chris Toshok <toshok@ximian.com>
13691 * ScrollableControl.cs: the scroll position should not effect the
13692 canvas size. commit patch from georgegiolfan@yahoo.com, which
13693 fixes some really bizarre behavior on resizing. Fixes bug #80778.
13695 2007-03-19 Chris Toshok <toshok@ximian.com>
13697 * ScrollableControl.cs: clean this up a bit. create the
13698 scrollbars in the ctor and just show/hide them as needed. Also,
13699 make hscroll_visible/vscroll_visible internal to Recalculate, and
13700 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13701 everywhere else. This seems to fix the scrollbars appearing
13702 beneath the content for me (i have *no* idea why that is,
13705 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13707 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
13708 some redundacy for stuff in Anchor and Dock that base will take care of.
13711 2007-03-19 Mike Kestner <mkestner@novell.com>
13713 * ListView.cs : make box selection for Details views without
13714 FullRowSelect dependent on the text bounds, not item bounds.
13715 * ListViewItem.cs : add an internal property to obtain the TextBounds
13716 in Details view. [Fixes case 1-4 of #80374]
13718 2007-03-19 Andreia Gaita <avidigal@novell.com>
13720 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
13721 we're < 2.0. #78448 && #80316
13723 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
13725 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
13726 have the same style available as the previously selected one. Also,
13727 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
13729 2007-03-19 Jackson Harper <jackson@ximian.com>
13731 * TextControl.cs: Add an alignment property that all new lines
13733 - Make sure to use the align shift when calculating the line's X
13735 * TextBox.cs: Set the alignment on the document as well as on all
13736 the document lines.
13738 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13740 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
13741 throw if setting the parent of an mdichild that already has an
13742 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
13743 AssemblyProductAttribute in the assembly, use the type's namespace (as
13744 MS seems to do). CreateControl: don't create the handle if the control
13745 is not visible (according to MS behaviour and spec). SetTopLevel: Only
13746 create handle if the control is not a form. Change FocusInternal to
13747 virtual so that it can be overriden by Form.
13748 * TextBox.cs: Update call to FocusInternal.
13749 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
13750 form is not a toplevel form when it's a mdi child, so update is_toplevel
13751 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
13752 hasn't been created. Show (IWin32Window): Don't allow this overload for
13753 toplevel windows. CenterToParent/CenterToScreen/Select: create the
13754 handle as MS does. SetVisibleCore: if called on a MdiChild and the
13755 parent isn't visible yet, save the visibility and restore it when the
13756 parent is made visible.
13757 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
13758 methods, since the visibility of the scrollbars can be changed from
13759 several places, not only from AutoScroll.
13762 2007-03-19 Jackson Harper <jackson@ximian.com>
13764 * RichTextBox.cs: Enable shortcuts by default.
13765 * TextBoxBase.cs: Add conditional shortcuts.
13767 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13769 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
13771 2007-03-19 Chris Toshok <toshok@ximian.com>
13773 [ Fixes bug #80604]
13775 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
13776 swallow the message we're waiting on, instead of delivering it, as
13777 this is only used for the WM_SHOWWINDOW raised from
13778 MapWindow/UnmapWindow, and the message needs to be generated
13779 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
13780 before doing the Map/Unmap. Also make sure that the Hwnd is still
13781 alive after the message has been handled.
13783 *before* the window is shown.
13785 * Control.cs (CreateControl): guard a few more things inside the
13786 if (!is_created) block, as we might end up being called again -
13788 (WmShowWindow): call CreateControl if we're showing the control.
13790 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13792 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
13793 controls without a handle if they have any parent with a handle. In
13794 Dispose add a check whether the handle is created or not before
13795 calling BeginInvoke, this removes the need of the extra disposing
13796 parameter (which was bogus anyway since it didn't prevent the
13797 invoke from happening, it only skipped the check for an existing
13798 handle, meaning that the invoke would call on an inexistent
13801 2007-03-19 Everaldo Canuto <everaldo@simios.org>
13803 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
13804 appears in taskbar.
13806 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13809 - Fixed a problem that dont show help button for messages with 3 buttons.
13810 - Refactory button size and position calculations, now dont use fixed
13811 values, also fixed button sizes (#80043) and form's border space.
13812 - AddButton method created, now all other AddButton methods call this one.
13813 - Some other source code cosmetic changes.
13815 2007-03-18 Jackson Harper <jackson@ximian.com>
13817 * RichTextBox.cs: Don't do this all fonts must match check if
13818 there is only one char selected.
13820 2007-03-18 Jackson Harper <jackson@ximian.com>
13822 * TreeView.cs: ScrollWindow works properly now, so we don't need
13823 to screw around with the scroll area. This fixes some artifacts
13824 when expanding and collapsing.
13826 2007-03-18 Jackson Harper <jackson@ximian.com>
13828 * TextBoxBase.cs: Allow updating the selection position when the
13829 cursor is outside the textarea, but we have a capture.
13830 * TextControl.cs: A special case for when the cursor is outside
13831 the bounds of the TB.
13833 2007-03-18 Jackson Harper <jackson@ximian.com>
13835 * TextBoxBase.cs: Remove image pasting code for now. There is no
13836 way to get an image on the clipboard right now anyways.
13838 * RichTextBox.cs: Use the new RTF Picture class for pictures.
13840 2007-03-18 Everaldo Canuto <everaldo@simios.org>
13843 - Set window properties in constructor intead of on CreateParams.
13844 - Remove topmost from Window ExStyle.
13845 - Set ShowInTaskbar to false.
13846 - Set form border to FixedDialog.
13847 - Some cosmetic changes and remove unneeded comments.
13848 - It fixes itens 2,3 and 4 of bug #80043.
13850 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
13852 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
13853 none was explicitly set. Fixes part of bug #79949.
13855 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
13857 * ToolStripComboBox.cs: Add AutoComplete*.
13859 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
13861 * ToolStripComboBox.cs: Add FlatStyle.
13863 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
13865 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
13866 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
13868 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13870 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
13871 CheckBox.cs, RadioButton.cs, BindingSource.cs,
13872 DataGridColumnStyle.cs: Remove warnings.
13874 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13876 * Menu.cs: MergeMenu: Check menu argument for null before looping over
13878 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
13879 visibility of mdi child forms. FormSizeChangedHandler: update the
13880 maximized size if size has changed while maximized.
13881 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
13882 creating the handle.
13883 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
13884 avoid creating the handle if not created.
13885 * XplatUI.cs: Update debug output.
13886 * XplatUIStructs.cs: Added ToString's for a couple of structs.
13888 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
13890 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
13892 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
13893 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
13894 Implement keyboard shortcuts.
13896 2007-03-15 Everaldo Canuto <everaldo@simios.org>
13898 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
13899 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
13900 ColorDialog and all derived classes.
13902 2007-03-15 Everaldo Canuto <everaldo@simios.org>
13904 [ Fixes bug #79828 ]
13907 - Rename ToolBarButtonInfor to ToolBarItem.
13908 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
13909 - Maintain an array of ToolBarItem, used instead of ToolBarButton
13910 collection to be able add same button more than one time on a toolbar.
13911 - Refactory all properties and methods to use ToolBarItem.
13913 * ToolBarButton.cs:
13914 - Remove all propeties and methods that is now in ToolBarItem.
13915 - Rectangle propery now gets the rectangle from first ToolBarItem to
13916 mimic win32 behavior.
13917 - Size calculation and layout methods also removed.
13919 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
13920 ToolBarItem instead of ToolBarButton to right drawing buttons when
13921 same button/separator was added more than one time to ToolBar.
13923 * ThemeNice.cs: Same as above.
13925 2007-03-15 Andreia Gaita <avidigal@novell.com>
13927 * XplatUIX11.cs: Fire extra MouseMove events right after
13928 MouseDown and MouseUp, emulating win32's <censored> behaviour
13929 for apps that rely on it.
13931 2007-03-15 Jackson Harper <jackson@ximian.com>
13934 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
13935 it is drawn on the controls client window and there is no NC
13937 - Set the background color to gray on 2.0 when we are readonly.
13939 2007-03-15 Chris Toshok <toshok@ximian.com>
13941 [ Fixes bug #81144 ]
13943 * XplatUIX11.cs: implement VirtualScreen independently of
13944 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
13947 2007-03-15 Chris Toshok <toshok@ximian.com>
13949 * Hwnd.cs: add an internal field for the cached_window_state.
13951 * XplatUIX11.cs: cache the window state, invalidating the cache
13952 (and thus re-querying the X server) only when we see an update to
13953 the _NET_WM_STATE property.
13955 2007-03-15 Chris Toshok <toshok@ximian.com>
13957 * BindingSource.cs: get a lot of the unit tests working.
13959 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
13961 * Control.cs: Modify UpdateStyles to store distances when bounds >=
13962 0 instead of just bounds > 0. [Fixes bug #80912]
13964 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
13966 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
13969 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
13971 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
13972 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
13973 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
13974 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
13976 2007-03-15 Chris Toshok <toshok@ximian.com>
13980 * Control.cs: add Ivan's fix for 81101, with a slight modification
13981 - you can set control.Target to null.
13983 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
13985 * ToolStripItem.cs: If our OwnerItem is null, we can't use
13986 HideDropDown, use Hide instead to prevent an NRE.
13989 2007-03-14 Jackson Harper <jackson@ximian.com>
13991 * TextBoxBase.cs: Mess with the creation stuff a little. We need
13992 to calculate the document before the handle is created, in some
13993 cases. (Actually just one case).
13995 2007-03-14 Jackson Harper <jackson@ximian.com>
13997 * TextBoxBase.cs: Need to display the caret after letting the base
13998 wndproc handle the focus methods, because the caret display
13999 methods check the focus state.
14000 - Try to display the caret after updating it's position with SelectWord.
14001 - Don't need to do an immediate update on this recalc, since there
14002 will be an invalidate anyways.
14004 2007-03-14 Jackson Harper <jackson@ximian.com>
14006 * TreeView.cs: Some workarounds so that we can match event order a
14009 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
14011 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
14012 #80803. Avoid NullReferenceException when Control does not have
14013 parent. Fixed different blinkstyle issues. Only subscribe to Tick
14014 event a single time. Only draw error icon when control is created and
14015 visible. Fixes failing unit tests.
14017 2007-03-14 Andreia Gaita <avidigal@novell.com>
14019 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
14020 Selecting events. Fire Leave and Enter events when changing tabs.
14022 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
14024 * TreeView.cs: Add TreeViewNodeSorter.
14025 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
14027 2007-03-14 Chris Toshok <toshok@ximian.com>
14029 * Form.cs: go ahead and remove the RecreateHandles that jpobst
14030 removed earlier and I had him add back it. It turns out metacity
14031 *does* in fact handle the MOTIF_WM_HINTS property changing, it
14032 just doesn't redraw the window titlebar until you resize the
14033 window. This also means we aren't recreating the entire window
14034 hierarchy on X when you change this property. And it looks better
14037 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14040 * ListView.cs: Collecting selection information
14041 is now done in SelectedIndexCollection rather than in
14042 SelectedListViewItemCollection. This is done so we can
14043 have the selection information code in one single place
14044 (virtual mode selection information entirely depends on
14045 SelectedIndexCollection).
14047 2007-03-13 Miguel de Icaza <miguel@novell.com>
14049 * ErrorProvider.cs: Add stubs for ISupportInitialize
14051 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14053 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
14054 in the right order with the right values, from the Checked property,
14055 just as MS does (instead of triggering them from ListView).
14057 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
14059 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14061 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
14062 the correct handler in OnItemCheck method (ItemCheckEventHandler
14063 instead of EventHandler). This used to throw an InvalidCastException.
14065 2007-03-13 Jackson Harper <jackson@ximian.com>
14067 * TextBoxBase.cs: Calculate the document before the handle is
14068 created, so there isn't an extra invalidate called.
14070 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
14072 * Form.cs: Don't set owner in ShowDialog until we are sure
14073 that we aren't going to throw an exception. [Fixes bug #80773]
14075 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
14077 * TreeView.cs: Make it compile.
14079 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14081 * Control.cs: Another place we don't call SizeFromClientSize.
14082 * Form.cs: Another place we don't call SizeFromClientSize.
14085 2007-03-12 Jackson Harper <jackson@ximian.com>
14087 * TreeView.cs: Basically emulating some strangness here with
14088 exanding nodes and setting node positions when windows aren't
14090 - Also attempting to walk the node tree less than previously, and
14091 just use visible order calculations for determining offsets.
14092 - oops made scrolling backwards.
14093 * TreeNode.cs: We need to start nodes with a zero visible order,
14094 because the order calcs are based on the first nodes order.
14096 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14098 * Form.cs: Don't exit the program if RecreateHandle is called on
14101 2007-03-12 Chris Toshok <toshok@ximian.com>
14103 * XEventQueue.cs: remove the use of PostQuitState.
14105 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
14106 WM_QUIT message in GetMessage, return false (and if we're in the
14107 nested WaitForHwndMessage, repost the WM_QUIT message).
14109 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14111 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
14112 or the MaximizeBox properties. [Part of bug #80640]
14114 2007-03-12 Everaldo Canuto <everaldo@simios.org>
14116 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
14119 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14121 * ToolStripItem.cs: Fix some tests I broke by checking Visible
14122 instead of visible.
14124 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
14126 * FileDialog.cs: Use text of File name combobox to determine what
14127 files the user selected. Added tokenizer to parse the file names.
14130 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
14132 * Control.cs: We can't call SizeFromClientSize in the constructor,
14133 but we still need to do the same work, so make an internal version.
14136 2007-03-12 Jackson Harper <jackson@ximian.com>
14140 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
14143 2007-03-12 Jackson Harper <jackson@ximian.com>
14145 * TextBoxBase.cs: Now that the handles are being created a little
14146 later, we need to make sure that the document is recalculated when
14147 the handle is created.
14149 2007-03-11 Everaldo Canuto <everaldo@simios.org>
14151 * Theme.cs: GetLinkFont abstract method added.
14154 - Remove CalcTrimRectangle, no longer needed.
14155 - Factor also remove, position issues must be fixed in libgdiplus.
14156 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
14157 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
14158 care about font used to draw links.
14159 - Set TabStop to true when control is "Selectable", control is selectable
14160 when have one or more links. Fixes #80501 (test case is also added).
14161 - Set the LinkArea values after links change, LinkArea values must be
14162 based in first link position and size, a test case was created.
14163 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
14164 the attribute must be true LinkArea.Length > 0. The same was applied to
14167 * ThemeWin32Classic.cs:
14168 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
14170 - Use CPDrawStringDisabled to draw disabled text instead of hard code
14172 - Draw focus rectangle for every parts focused, including parts that
14173 is on another line, its because regions returns various rectangles
14174 and not only one. Needed to mimic W32 look.
14175 - Uses Graphics.Clip to delimite region painted, it mean that now
14176 complete text is passed to DrawString, with this we solve layout
14177 issues without create another text renderer.
14178 - Uses Region.Intersect to fix some flickers problems, now only needed
14179 parts will redrawed.
14180 - This changes fixes #79614 and some other unreported issues, on Linux
14181 some layout problems still remain, the problem is under
14182 MeasureCharacterRanges but it is an libgdiplus bug.
14184 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
14186 * TextBox.cs: Set for foreground color.
14187 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
14188 this is already done in Control.
14190 2007-03-10 Jackson Harper <jackson@ximian.com>
14192 * TextBox.cs: Set the background color, but reset the
14193 backcolor_set flag which is just for the user setting the
14196 2007-03-09 Chris Toshok <toshok@ximian.com>
14198 * Control.cs: really remove the call to XplatUI.SetVisible from
14199 CreateHandle(), like I said I did when I merged the branch.
14201 * BindingSource.cs: implement some more of this stuff.
14203 2007-03-09 Jackson Harper <jackson@ximian.com>
14205 * TextBox.cs: Don't explicitly set our background colors.
14207 * TextBoxBase.cs: Draw readonly text.
14208 - Need to invalidate when backcolor or readonly are changed.
14210 2007-03-09 Jackson Harper <jackson@ximian.com>
14212 * TextBoxBase.cs: Don't set the forecolor until the handle is
14214 - Do not raise OnPaint, and removed some old debug code.
14216 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
14218 * ScrollableControl.cs: Fix mouse wheel scrolling.
14220 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14222 * Control.cs: Wire up MouseDoubleClick event.
14224 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
14226 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
14228 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
14229 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
14230 item is added. This logic was moved to ToolStrip.OnItemAdded.
14233 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14235 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
14237 2007-03-08 Jackson Harper <jackson@ximian.com>
14239 * TreeView.cs: Show the correct image for selected node (this used
14240 to work, not sure how the code got deleted). Also implemented 2.0 feature
14243 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14246 * ListViewItem.cs: Cache index in items when retrieving them
14249 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14251 * ToolStripItem.cs: Don't return the explicit_size if we are using
14252 AutoSize. Fixes invalidation issue when user has explicitly set a
14253 size and has AutoSize = true.
14255 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14257 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
14259 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14261 * DataGridView.cs: Remove event handler from DataView when a
14262 DataTable is used as DataSource.
14264 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
14266 * Control.cs: Create internal setter for client_size to allow it to be
14267 set without triggering resizing code.
14268 * Form.cs: Calculate client_size in constructor, only change client_size
14269 in FormBorderStyle property if Handle has been created.
14270 [Fixes #80574, #80791]
14272 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
14274 * SystemInformation.cs: Add TerminalServerSession.
14276 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14278 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
14281 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14283 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
14284 Handle before we were supposed to. Now checks ActivateOnShow property
14286 * Control.cs: Add internal ActivateOnShow property.
14287 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
14288 for ActivateOnShow.
14289 * Hwnd.cs Remove no longer needed no_activate field.
14291 2007-03-07 Jackson Harper <jackson@ximian.com>
14293 * TreeView.cs: Implement owner draw tree nodes. And a couple more
14295 * DrawTreeNodeEventHandler.cs: Add
14296 * DrawTreeNodeEventArgs.cs: Correct default value.
14298 2007-03-07 Chris Toshok <toshok@ximian.com>
14300 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
14301 to be called before NativeWindow.WndProc. Put the HwndCreating
14302 magic there to hook up our Hwnd's to handles.
14304 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
14306 * DataGridView.cs: Comment out debug code.
14308 2007-03-07 Chris Toshok <toshok@ximian.com>
14310 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14311 to make the rest of the world happy]
14313 * Control.cs (CreateHandle): there's no need to call
14314 XplatUI.SetVisible here, it's effectively done by
14315 XplatUI.CreateWindow on X now, and always was on windows.
14317 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14318 shortcircuit out of the loop if we have a message loop running on
14321 [Changelog from merge]
14323 2007-03-05 Chris Toshok <toshok@ximian.com>
14325 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14326 causes handle creation.
14328 2007-02-28 Chris Toshok <toshok@ximian.com>
14330 * ApplicationContext.cs: Add a flag to make sure we only raise the
14331 ThreadExit event once (ExitThreadCore can be indirectly called
14332 from a few places.) I don't like the additional flag, but it
14333 makes the event ordering/count correct.
14335 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14336 without locking the collection. An enumerator doesn't give us any
14337 protection from modification anyway. Lock the thread hash and
14338 replace the complicated enumerator loop with a foreach.
14339 (Application.CloseForms): make internal so it can be called from
14340 ApplicationContext. This should probably be moved to MWFThread.
14341 (Application.ExitThread): don't call MWFThread.Current.Exit()
14342 here. just call XplatUI.PostQuitMessage. We'll exit the thread
14343 when the runloop exits (in response to WM_QUIT.)
14344 (Application.RunLoop): add a comment (and check) for
14345 context.MainForm being null after setting context.MainForm.Visible
14346 = true. This is because you're perfectly free to dispose of a
14347 form in VisibilityChanged. Chalk this up to another case where we
14348 need to synchronously generate WM_ACTIVATE from Control.Show.
14349 Also, add handling for WM_QUIT here so we'll exit the loop.
14351 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
14352 fact that we don't wait if we're only unmapping the whole_window
14353 makes me a bit nervous, but it doesn't seem to cause any problems
14356 also, add a comment about the stupid, broken and wrong resetting
14357 of PostQuitState to false in GetMessage().
14359 In PostQuitMessage, we need to add a WM_QUIT message to the
14360 thread's queue. We use the FosterParent to get the right
14363 Lastly, in SetVisible, we need to unmap both windows, since the
14364 waiting only happens when we're unmapping the client window. So
14365 now, the *only* time we unmap just the whole_window is in the hack
14366 for resizing a control to 0,0.
14368 2007-02-21 Chris Toshok <toshok@ximian.com>
14370 * Application.cs (CloseForms): rewrite this so that we don't
14371 modify the list while we're traversing it.
14373 2007-02-20 Chris Toshok <toshok@ximian.com>
14375 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14376 of OnHandleCreated.
14377 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14378 handle is created. otherwise we'll create it here.
14379 (VerticalScrollEvent): same here.
14381 * Application.cs (CloseForms): call Form.Dispose, don't post
14384 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14385 here. Application should Dispose() of the Form's.
14387 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14388 WM_DESTROY as well.
14389 (MapWindow,UnmapWindow): only actually do the waiting for
14390 SHOWWINDOW if the control we're dealing with is a Form.
14391 (CreateWindow): if the control isn't a form, SendMessage
14392 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14394 * Control.cs (SetVisibleCore): always use is_visible here, not
14395 value. If we use value, we can end up re-setting something
14396 visible if, for instance, you do Control.Hide() in a delegate
14397 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14399 2007-02-20 Chris Toshok <toshok@ximian.com>
14401 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14402 the message we need. PeekMessage returning false should not be a
14403 condition under which we exit the loop.
14405 2007-02-15 Chris Toshok <toshok@ximian.com>
14407 * Control.cs (Refresh): only refresh if we've got a handle and are
14409 (CreateAccessibilityInstance): CreateControl() here.
14410 (UpdateChildrenZOrder): complicate the code loop even more by
14411 taking into account controls that haven't had their handle
14412 created, and those that aren't visible. But on the flip side,
14413 simplify the code by splitting it into two loops. one which
14414 builds up the list of child controls we're interested in, and the
14415 other that sets the z order of those children.
14417 2007-02-14 Chris Toshok <toshok@ximian.com>
14419 * Control.cs: Control.AccessibilityObject causes the control to be
14420 created, not just the handle.
14422 2007-02-14 Chris Toshok <toshok@ximian.com>
14424 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14425 problem on X where a window might have its handle created (and be
14426 visible) while the window is unmapped. calling XConfigureWindow
14427 on an unmapped window is bad, and generates X errors.
14429 2007-02-13 Chris Toshok <toshok@ximian.com>
14431 * Control.cs (CreateHandle): don't loop over our children setting
14432 their parent here. do it when in WndProc when we're shown.
14433 (UpdateChildrenZOrder): make this internal so we can call it from
14435 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14436 creating its handle. Also, remove the calls to PerformLayout from
14437 here. they're done in ScrollableControl.OnVisibleChanged. Also,
14438 OnVisibleChanged only seems to be called directly here for the
14439 toplevel control. It's propagated down the window hierarchy by
14440 calls to child.OnParentVisibleChanged.
14441 (OnVisibleChanged): don't do layout here - it's done (oddly
14442 enough, according to a glance at stack traces on ms.net..) in
14445 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14446 z order of our children before calling PerformLayout.
14448 2007-02-12 Chris Toshok <toshok@ximian.com>
14450 [big change, fixes #80020]
14452 * AccessibleObject.cs: we need to make owner internal again to fix
14453 some of ControlAccessibleObject.
14455 * Control.cs: lots of changes here. add support for WM_CREATE,
14456 for which we generate OnHandleCreated. Remove the OnHandleCreated
14457 call from CreateHandle. Also add support for WM_SHOWWINDOW where
14458 we create child controls. leave the MonoTODO's for the
14459 accessibility calls, but fix the exceptions so the tests pass.
14461 Add the InvalidOperationExceptions to Invoke methods, and remove a
14462 couple of InvokeInternal methods we aren't using.
14464 Also, add a couple of CreateHandle calls in places where we know
14465 the handles are being created but our code doesn't reference
14468 Make SetVisibleCore call OnVisibleChange if the handle isn't
14469 created. If the handle is created, we rely on XplatUI.SetVisible
14470 generating the event synchronously.
14472 Lastly, make sure we don't use this.Handle inside CreateHandle,
14473 because we can call back into client (and that code can dispose of
14476 * XplatUIStructs.cs: misc/cleanup.
14478 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14479 although we don't populate the wParam properly.
14480 (CreateWindow): generate WM_CREATE.
14481 (MapWindow,UnmapWindow): make these calls synchronous, at great
14482 performance expense (particularly in the unmap case), to match
14485 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14487 (set_MdiParent): don't recreate the handle unless it's been
14490 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14493 * NativeWindow.cs: this is probably the weirdest part of the
14494 patch. We need a way to link up the window being created to the
14495 WM_CREATE message. Since we can only be creating one window at a
14496 time on a given thread, we keep track of a per-thread reference so
14497 we can dispatch it properly. We also need to keep track of the
14498 Hwnd currently being created so that the win32 backend doesn't
14501 * XplatUIWin32.cs: a similar change to the one we made in
14504 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
14506 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14507 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14508 to draw the menu shortcut string.
14510 2007-03-07 Jackson Harper <jackson@ximian.com>
14512 * TreeNode.cs: Add the 2.0 collapse method.
14514 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14516 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14518 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14520 * DataGridView.cs: Change DataSource will clear column and row
14521 lists. Call Invalidate() to reflect DataSource change.
14523 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14525 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14526 and a new row is added to it.
14528 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
14530 * DataGridView.cs: Add columns when DataSource is en empty list but
14531 is a System.Data.DataView (from a System.Data.DataTable).
14533 2007-03-06 Andreia Gaita <avidigal@novell.com>
14535 * Label.cs: Implement AutoEllipsis (2.0)
14537 2007-03-06 Jackson Harper <jackson@ximian.com>
14539 * TreeView.cs: Implement 2.0 TopNode setter property.
14540 - Use a local var instead of the skipped_nodes field for computing
14541 how many nodes to skip. Otherwise we won't scroll because the
14542 valuechanged handler checks if skipped_nodes is equal to the new
14544 - Implement 2.0 Sort method.
14545 - Add useless 2.0 DoubleBuffer property
14546 - Implement 2.0 LineColors property. Lets you change the color of
14547 the lines in the tree. Terribly useful for creating non cohesive
14549 - Implement 2.0 image key feature.
14551 2007-03-06 Jackson Harper <jackson@ximian.com>
14553 * TreeView.cs: We can't get the bounds of the nodes before raising
14554 the AfterSelect event, because that event could change the node's
14555 bounds (scrolling, font change, etc).
14557 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14559 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14560 * Form.cs: Don't recreate handle when creating FormWindowManager, just
14561 update window styles. In CreateParams us VisibleInternal instead of
14562 VIsible to get the actual visible flag set for this form.
14563 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14564 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14565 handle the case when the form is already maximized, in which case
14566 it should be restored. Fixes #81043.
14568 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14570 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14572 2007-03-05 Jackson Harper <jackson@ximian.com>
14574 * TreeViewHitTestInfo.cs: implement.
14576 2007-03-05 Jackson Harper <jackson@ximian.com>
14578 * InternalWindowManager.cs: class status fix.
14580 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
14582 * InternalWindowManager.cs: All windows that have a parent
14583 are confined to their parent when they're being moved.
14586 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
14588 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14589 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14591 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14593 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14594 buttons invisible before deciding which ones should be visible
14595 (fixes minimize/maximize buttons showing up in toolwindows). Remove
14596 an unused variable.
14597 * InternalWindowManager.cs: Remove warning.
14599 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14601 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14602 to throw an InvalidOperationException is virtual mode is being used.
14604 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14606 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14607 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14608 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14609 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14610 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14611 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14613 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14615 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14616 driver.KeyboardDelay from XplatUI.KeyboardDelay
14617 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14618 (patch by Sergey Volk)
14620 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14622 * ToolWindowManager.cs: Added, contains logic for
14624 * CreateParams.cs: Add a few helper methods and an
14625 internal variable to know which control the CreateParams belongs
14627 * Control.cs: Call Form.ChangingParent when the
14628 parent is about to be changed.
14629 * XplatUIX11.cs: DeriveStyles (): Set
14630 caption_height for all windows that have captions and are children.
14631 Update to use ToolWindowManager instead of InternalWindowManager
14633 * XplatUIWin32.cs: Set fake window styles for all
14634 windows that have window managers.
14635 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14636 now duplicated for mdi windows when they are
14637 maximized, first for the buttons the window itself has, then for
14638 the buttons that appear in the menu bar. Makes things a little
14639 easier). Updated UpdateWindowDecorations, SetWindowState and the
14640 mouse eventhandlers accordingly.
14641 * Form.cs: Add ChangingParent (), contains the
14642 logic of what should happen when the parent changes. In MdiParent
14643 don't set things that ChangingParent () is doing. When handling
14644 WM_CLOSE, we can close the form if there are any other modal forms
14645 and the current form is a descendent of the modal form.
14646 * InternalWindowManager.cs: A lot of refactoring,
14647 the title buttons are now extracted to a separate container class
14648 that takes care of all button code (clicks, tooltips, etc). Moved
14649 Iconic|Maximized|Normal Bounds properties to this class from
14650 MdiWindowManager, so that the window state logic can succeed for
14651 other than mdi wm's. Implemented general window state change logic.
14652 Moved CreateButtons to ThemeWin32Classic, since the theme might
14653 override which buttons are available when as well as the exact
14655 * FormWindowManager.cs: Added, contains logic for
14657 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14658 which buttons go where (and if they are at all visible).
14659 Removed special handling of maximized windows, since they aren't special.
14660 In DrawManagedWindowDecorations don't try to draw the text if it is
14662 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
14663 use whatever the wm gives us.
14665 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
14667 * ButtonBase.cs: Add 2.0 properties.
14668 * Button.cs: Override Draw for 2.0.
14669 * Control.cs: Add Entered and Selected properties.
14670 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14671 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14672 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14674 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14676 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14678 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
14680 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
14682 * XplatUIWin32.cs: Register a new class with Windows each time we get
14683 a new ClassStyle. [Fixes bugs #79432, #80817]
14684 * Controls.cs: Set the correct ClassStyle in CreateParams.
14685 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14687 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
14689 * ListView.cs: Add fireEvent argument to ReorderColumn since the
14690 ColumnReordered event must not be signaled when modifying DisplayIndex
14691 of a ColumnHeader. Added internal ReorderColumns method which takes
14692 care of drawing, and updating the internal DisplayIndex of the
14693 ColumnHeader. Added AddColumn method which is invoked from
14694 ColumnHeaderCollection when adding or inserting columns, and which
14695 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14696 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14697 Recalculated dispay indices after removing a ColumnHeader.
14698 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14699 match MS. Allows last display index to be returned after ListView
14700 is disposed. Update actual location of ColumnHeader when DisplayIndex
14703 2007-03-01 Everaldo Canuto <everaldo@simios.org>
14705 * LinkLabel.cs: Improve CalcTrimRectangle.
14707 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14709 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14711 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
14712 get rectangle as a result value.
14714 2007-02-28 Everaldo Canuto <everaldo@simios.org>
14716 * LinkLabel.cs: Theres some diferences between rectangle return from
14717 MeasureCharacterRanges and the area used for DrawString to fix this
14718 CalcMeasurementFactor method was created, it calcules the diferences
14719 to be use later to adjust rectangle in draw operations. Fixes #80473.
14721 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
14722 to adjust draw rectangle.
14724 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14726 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
14727 text and some other changes to reduce and optimize source code.
14729 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14731 * RadioButton.cs: Implement 2.0 event.
14732 * RelatedImageListAttribute.cs: Implement new class.
14734 2007-02-27 Everaldo Canuto <everaldo@simios.org>
14736 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
14738 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
14740 * CheckBox.cs: Implement 2.0 functionality.
14742 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14744 * ListView.cs: Refactor Add and AddRange methods of
14745 ListViewItemCollection, to not update the ListView
14746 everytime an item is added in AddRange. Also move the update
14747 code to a new CollectionChanged method, and call it
14748 from other methods that need it as well (this should also fix some
14749 bugs when Sorting is used).
14751 2007-02-27 Jackson Harper <jackson@ximian.com>
14753 * TextControl.cs: Try to never let the caret stay in a non-text
14755 * TextBoxBase.cs: Update the caret.
14757 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
14759 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
14760 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
14761 delete POINT structure, duplicate of one in XplatUIStructs.
14762 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
14764 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
14766 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
14767 edit box since otherwise the Label would immediately be set (even if
14768 the user did not modify the label). In OnKeyDown set Handled to true
14769 if Return or Escape was pressed. In ColumnHeaderCollection unlink
14770 columns that are to be removed. In ListViewItemCollection unlink items
14771 that are to be removed.
14773 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
14775 * TextRenderer.cs: If we set a GDI clip region, we need to clear
14776 it when we are done. [Fixes bug #80949]
14778 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14780 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
14782 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14784 * ListView.cs: I forgot to commit the changes for ListView
14785 in my previous patch.
14787 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14789 * Clipboard.cs: Partially implement an overload of SetDataObject.
14790 * Form.cs: Implement ShowWithoutActivation.
14791 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
14793 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14795 This is a first set of changes to make the Virtual mode works,
14796 by avoiding the retrieval of ListViewItem instances until
14799 * ListView.cs: Store item position in the ListView instead of the
14800 ListViewItem, this way we don't request the Bounds property of
14801 ListViewItem inside the ListView calculations, as well as cache the item
14802 size in item_size field. Store indexes instead of ListViewItem
14803 instances in the matrix used by icon view. Add a ItemMatrixLocation
14804 struct to hold the row and col info of the matrix info.
14806 * ListViewItem.cs: Don't store the location anymore, and only cache
14807 the rectangles for GetBounds. Use the ListView.GetItemLocation
14808 method to retrieve the actual location.
14810 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14812 * TextRenderer.cs: Add clipping support, thanks to George.
14815 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14817 * ListViewItem.cs: Cancel label edit when item is removed from
14819 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
14820 event before the edit textbox is displayed. Added CancelEdit method
14821 which is used end to editing while ignoring the value set by the
14822 user. In EndEdit, set focus to ListView to avoid losing focus to
14823 other controls. In ListViewItemCollection.Clear, cancel editing of
14824 any of the items. In Remove, cancel editing of item being removed.
14825 Avoid udplicate code by modifing RemoveAt to invoke Remove.
14827 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14829 * FileDialog.cs: Update FSEntry when move is successful. Fixes
14832 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14834 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
14835 compatible with non X11 systems. Fixes #80901.
14837 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
14839 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
14840 whether the item should be unselected and reselect. We do no want this
14841 when we're starting to edit the label. Do not fire the
14842 SelectedIndexChanged event from ListView when its already been fired
14843 by modifying ListViewItem.Selected. Fixes bug #80943.
14845 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14847 * TextRenderer.cs: Previos commit logic was backwards.
14849 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
14851 * TextRenderer.cs: Don't add padding on MeasureText if we were
14852 sent the NoPadding flag.
14854 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14856 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
14857 after DrawButton. To prevent image overlaps button borders SetClip and
14858 ResetClip added before and after draw image. Fixes #79129.
14860 2007-02-23 Everaldo Canuto <everaldo@simios.org>
14862 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
14863 window size, it fix problem when you run under win32 that theres
14864 Size diferent than ClientSize. Also fix controls size and positions
14865 to mimic Win32. Fixes #80837.
14867 2007-02-22 Everaldo Canuto <everaldo@simios.org>
14869 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
14870 menu area to fix some problems for non X11 systems. Fixes #80613.
14872 2007-02-22 Jackson Harper <jackson@ximian.com>
14874 * TreeNode.cs: When a node is expanded, set its is_expanded flag
14875 even if it doesn't have any children.
14877 2007-02-22 Jackson Harper <jackson@ximian.com>
14879 * TreeView.cs: Calculate the top node 'on the fly', this
14880 eliminates issues where you need to click on the tree before
14881 scrolling it to get the top node computed correctly.
14882 * TreeNodeCollection.cs: We don't need to mess with the top node
14885 2007-02-22 Jackson Harper <jackson@ximian.com>
14887 * DataGridViewRow.cs: Fix typo so height can actually be set.
14888 Patch by Peter Grimm.
14890 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
14892 * FileDialog.cs: Fixed support for renaming files and directories.
14893 * ListView.cs: Do not lose focus when edit is canceled. Process
14894 Escape as regular key (to prevent closing of dialogs).
14896 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
14898 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
14899 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
14901 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
14903 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
14904 did not modify label.
14905 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
14906 modified the text. Reset Label when user presses Escape in edit mode.
14907 Move focus to ListView after having cancelled or finished editing the
14910 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
14912 * ComboBox.cs: Removed unnecessary initializations. Marked items field
14913 private. Clear textbox when Text is set to null and SelectedIndex is
14915 * FileDialog.cs: Removed unnecessary initializations. Removed
14916 workarounds for ComboBox bugs that are now fixed. Modified
14917 DefaultExt, InitialDirectory and Title property to change null to
14918 zero-length string in getters. Avoid directly accessing fields.
14920 2007-02-20 Jackson Harper <jackson@ximian.com>
14922 * TextControl.cs: Remove RecalAlignments call, that was some
14923 debugging leftovers.
14924 - Don't use the line indent when we shouldn't.
14925 * RichTextBox.cs: Add support for paragraph left indents.
14927 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14929 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
14930 Seems like the class status pages doesn't catch params differences.
14932 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
14934 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
14936 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
14938 * ComboBox.cs: Setting Text should have no effect if item text of
14939 selected item exactly matches value. First lookup text using
14940 case-sensitive comparison, and fallback to case-insensitive comparison.
14941 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
14942 allow startIndex to be last index. Changed ArgumentOutOfRangeException
14943 paramname to match MS. Restart from first item if string is not found
14944 after startIndex. Fixed paramname of ArgumentNullException that is
14945 thrown for null value in ObjectCollection.Contains.
14947 2007-02-19 Everaldo Canuto <everaldo@simios.org>
14949 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
14951 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14953 * ListControl.cs: In SelectedValue use value.Equals to compare for
14954 equality instead of ==, otherwise it will fail for strings.
14957 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14959 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
14960 since the caret won't show up unless ShowSelection is true.
14963 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14965 * Application.cs: When disabling all forms but the main form, do not
14966 disable any descendants of the main form (such as mdi children or
14967 other parented forms). Fixes #80822 on Windows.
14968 * Form.cs: If we have a parent, set the WS_CHILD style.
14969 * Control.cs: Update the window styles if the control whose parent has
14970 changed is a form (the WS_CHILD style has to be switched).
14972 2007-02-19 Everaldo Canuto <everaldo@simios.org>
14974 * XplatUIStructs.cs: MsgUIState structure added.
14976 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
14978 * FileDialog.cs: Removed need for separate fileName field. On 2.0
14979 profile, do not check filename(s) for illegal character if filename(s)
14980 were set non-interactively but always check on 1.0 profile. Fixed NRE
14981 in DefaultExt and only strip off first leading dot. Improve exception
14982 message when invalid Filter is set. Do not ignore InitialDirectory if
14983 it does no exist. Store specified Title, and if empty use default
14984 title (depending on type of dialog). Added an internal DialogTitle
14985 property for retrieving dialog title. Fixed logic of displayed dir to
14986 more closely match MS. Avoid setting ComboBox.Text to a zero-length
14987 string as its buggy.
14988 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
14989 FileName is a zero-length string (it can never be null). Override
14990 DialogTitle property to set default title of dialog box.
14991 * SaveFileDialog.cs: Override DialogTitle property to set default
14992 title of dialog box.
14994 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
14996 * FileDialog.cs: Modify default text of filename and filetype labels
14997 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
14998 after we've updated the SelectedIndex. Fixes part of bug #80887.
14999 * SaveFileDialog.cs: Set text of filetype label.
15001 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15003 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
15004 label field. Needed by latest Jackson's fixes for ListView.
15006 2007-02-16 Andreia Gaita <avidigal@novell.com>
15008 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
15009 print preview images.
15011 2007-02-16 Jackson Harper <jackson@ximian.com>
15013 * ListView.cs: Make AfterLabelEdit work correctly.
15014 * FileDialog.cs: After changing the name of the folder, we have to
15015 make sure that it is created, or that we pop up an error because
15018 2007-02-16 Jackson Harper <jackson@ximian.com>
15020 * X11Dnd.cs: Implement aliases on mime handlers, so things like
15021 System.String are mapped to text.
15022 - Handle dataobjects, getting all the possible formats out of them
15023 - We dont need the drag event args before we give feedback. This
15024 allows feedback cursors to be immediate before selections have
15027 2007-02-16 Jackson Harper <jackson@ximian.com>
15029 * TextBoxBase.cs: Modified the method for inserting images to
15030 taking a line and position instead of tag and position.
15031 * RichTextBox.cs: Handle PngBlip data by inserting the png image
15033 * TextControl.cs: Allow images to be inserted as the first tag of
15035 - Fix some off by one issues when we assume the first tag is a
15036 text tag, not an image tag.
15038 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15040 * ListView.cs: Set focus to ListView when ItemControl gets a
15041 WM_RBUTTONDOWN message, to mimic .Net behaviour.
15042 Fixes part of #80467.
15044 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15046 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
15047 validate Text input (if null or empty string reset Value to default
15048 value). Fixes #80830.
15050 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15052 * ListView.cs: Set owner as null for columns and items when
15053 Dispose is invoked. Fixes #80607.
15055 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
15057 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
15058 showing DropDowns, don't show a Grip when doing Flow layout.
15059 [This fixes the toolbox in PDN 2.72.]
15060 * ToolStripItem.cs: Add Anchor property and some internal properties to
15061 reduces needed changes to FlowLayout.
15062 * ToolStripOverflow.cs: Remove unused variable.
15063 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
15064 use it in the layout calculations.
15066 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15068 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
15069 reported in #79640.
15071 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
15074 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15076 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
15077 MeasureString format, it can make button very large in some cases, it is
15078 strange but is what win32 do.
15080 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15082 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
15085 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
15086 rendering, the value is based on MenuAccessKeysUnderlined.
15088 2007-02-13 Everaldo Canuto <everaldo@simios.org>
15090 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
15093 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
15095 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
15096 and use MenuAccessKeysUnderlined instead.
15098 2007-02-13 Andreia Gaita <avidigal@novell.com>
15100 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
15101 A selected control would not get a Focus call if:
15102 - the default active control of the container is the same as
15103 the one that was selected
15104 - we are switching from one container to another
15105 Under these conditions, the container being selected already has
15106 an active_control, which is the same as the one being activated,
15107 so set_ActiveControl would always return and not send the Focus
15108 call. Fix to check if the currently active control of the container
15109 is actually focused.
15111 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
15113 * StatusStrip.cs: Implement the spring layout.
15114 * ToolStripControlHost.cs: Make sure the hosted control's visibility
15115 always matches the host.
15116 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
15117 and TextAfterImage.
15119 2007-02-13 Andreia Gaita <avidigal@novell.com>
15121 * Control.cs: Code reorganization only.
15122 - Reorganize the WndProc cases so that each case has it's own handling method,
15123 to help with the no-line-numbering stack traces.
15124 - Formatting changes (it's vstudio's fault, really :p)
15126 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15128 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
15129 Thread.CurrentUICulture to match DateTimePicker's (and MS)
15132 2007-02-12 Jackson Harper <jackson@ximian.com>
15135 * TextBox.cs: By default we have a non multiline document
15136 - use the multiline property instead of the internal variable
15137 * TextBoxBase.cs: Treat multiline and non multiline the same in
15139 - Use the documents multiline flag instead of tracking it ourself
15140 * TextControl.cs: Attempt at getting multiline to match MS
15141 behavior. Lines now track an offset, which is either their X or Y
15142 offset depending on whether or not we are in multiline mode.
15143 - Update all the methods to understand that lines have an X value.
15144 - Fix crash in Undo::Duplicate when empty lines are deleted.
15146 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15148 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
15149 code moved to properties PreferredHeight and PreferredWidth. It solve the
15150 all problems when preferred sizes must be recalculated. Fixes #80801.
15152 2007-02-12 Everaldo Canuto <everaldo@simios.org>
15154 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
15155 font height when compatible_text_rendering is false. Partially fix #80801.
15157 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15159 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
15161 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15163 * Form.cs: Improved exception messages in ShowDialog.
15165 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
15167 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
15168 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
15169 if not set. Fixes bug #80764. Avoid accessing current_settings field
15172 2007-02-08 Everaldo Canuto <everaldo@simios.org>
15174 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
15177 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
15178 public in 2.0 and for easy maintenance and dont break compatibility it is
15181 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15183 * ToolStripItem.cs: Implement using images from ImageList.
15185 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15187 * DateTimePicker.cs: Change default date-formatting culture from
15188 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
15189 seems to be the way MS does it.
15191 2007-02-08 Andreia Gaita <avidigal@novell.com>
15193 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
15194 (the 6 was cut off on the right side)
15196 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15198 * Form.cs: Tell MenuStrips to close when the form is clicked.
15199 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
15200 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
15201 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
15202 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
15203 support for Overflow, where items that do not fit are automatically
15204 reparented to a drop down menu.
15205 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
15206 Also: fixes bug #80747.
15208 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15210 * ComboBox.cs: Remove warning (unused code).
15211 * ScrollableControl.cs: Remove warning for 1.1 profile.
15213 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15215 * Form.cs: Remove a warning.
15217 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
15219 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
15220 'g' specifier, not documented anywhere, but seems to always show up
15221 as a single space (might have something to do with the DateTime 'g'
15222 specifier, which is the era format, but since DateTimePicker can't
15223 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
15224 won't crash if the format has an unmatched quote. Now shows
15225 single-character formats correctly. Fixes #80744.
15227 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
15229 * StatusStrip.cs: Stretch property needs to call base.Stretch,
15230 not this.Stretch to fix stack overflow. [Fixes bug #80760]
15232 2007-02-07 Chris Toshok <toshok@ximian.com>
15234 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
15235 background color. it overwrites the background image we've
15236 already painted. Fixes #80599.
15238 2007-02-07 Chris Toshok <toshok@ximian.com>
15240 * DataGrid.cs: return immediately from Edit() when there are no
15241 columns. Fixes #80662.
15243 2007-02-07 Chris Toshok <toshok@ximian.com>
15245 * MessageBox.cs: fix #80625. don't always show the Help button in
15246 2.0. use the displayHelpButton parameter to determine if we
15247 should show it. Also, make the internal show_help field private.
15249 2007-02-07 Chris Toshok <toshok@ximian.com>
15251 * Control.cs (SetVisibleCore): check in the proposed patch for
15252 80604, and set is_visible before calling CreateControl.
15254 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
15256 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
15257 MonoInternalNote. This is added automagically by VS2005, so let's not crash
15260 2007-02-06 Everaldo Canuto <everaldo@simios.org>
15262 * MenuAPI.cs: hotkey_active internal field added, it is required because
15263 we need to know when hotkeys must be draw, before this change a keystate
15264 Navigating was used but we can have menu in navigating state without
15265 hotkeys. Fixes #80694.
15267 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
15269 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15271 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
15272 corresponding events and methods to be internal for 1.1 profile and
15273 public for 2.0 profile (required by SizeGrip).
15274 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
15275 implicit control list). Don't set the size nor the location of the
15276 SizeGrip anymore as it's not needed.
15277 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
15278 draw directly on the captured control (fixes #80656). Removed
15279 ShowGrip (it wasn't used anywhere), redraw (always true), added
15280 GetDefaultSize and GetDefaultRectangle to calculate defaults.
15281 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
15282 be called from SizeGrip.
15284 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15286 * Timer.cs: Throw ArgumentException if Interval <= 0.
15288 2007-02-05 Jackson Harper <jackson@ximian.com>
15290 * TreeView.cs: We need to check scrollbar visibility when window
15291 visibility is updated, because non visible trees don't ever add
15293 * Cursor.cs: We want the override cursor to be reset to NULL when
15294 we set current cursor to the default cursor.
15296 2007-02-05 Jackson Harper <jackson@ximian.com>
15298 * TextControl.cs: Don't have crlfs when we are non multiline.
15299 - Consolidate the line position.
15301 2007-02-05 Jackson Harper <jackson@ximian.com>
15303 * X11Keyboard.cs: BACK+CTRL gets a special char code.
15305 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15307 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
15308 handling LeaveNotify->NotifyUngrab in order to send
15309 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15310 after calling XUngrabPointer, so we call WindowUngrabbed directly
15311 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15312 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15313 MouseCaptureChanged correctly. Also create handles if changing
15314 Capture (matches MS behaviour).
15316 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15318 * SizeGrip.cs: Make the last change 2.0 only.
15320 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15322 * SizeGrip.cs: If resizing and the capture is lost, revert any size
15323 changes to initial size (fixes #80597).
15325 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15327 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15329 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15331 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15332 background) and only allow dragging if enabled. This way the
15333 sizegrip can be used to fill the open square that otherwise would
15334 have been shown in the bottom right corner of ScrollableControl
15335 when ScrollableControl is not suppose to support sizing.
15336 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15337 sizegrip is shown and enabled, and hook up with necessary events.
15339 2007-02-01 Chris Toshok <toshok@ximian.com>
15341 * DataGridTextBoxColumn.cs: clean up the
15342 GetFormattedString/GetColumnValueAtRow combination of functions.
15343 Also fix UpdateUI, and the initial state of
15344 IsInEditOrNavigateMode.
15346 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15347 aren't supposed to scroll the textbox here, we're supposed to
15348 scroll the datagrid.
15350 2007-02-01 Chris Toshok <toshok@ximian.com>
15352 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15353 setting the position.
15355 2007-02-01 Chris Toshok <toshok@ximian.com>
15357 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15358 here, since the most recent focus fixes keep us from generating
15359 the Leave event when our textbox gets focus.
15360 (Edit): we should be passing null for the column style's
15361 instantText parameter.
15363 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
15365 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
15366 raised. Fixes menu text/icons not showing up in PDN.
15368 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15370 * Control.cs: Remove code in constructor that makes every
15371 control with WS_CHILD set have initial location -1, -1.
15373 2007-01-31 Jackson Harper <jackson@ximian.com>
15375 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15377 * XplatUIX11.cs: Give teh keyboard to teh dnd.
15379 2007-01-31 Jackson Harper <jackson@ximian.com>
15381 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15382 - Remove some debug code.
15384 2007-01-31 Jackson Harper <jackson@ximian.com>
15386 * XplatUIX11.cs: If you set the override cursor during a grab, it
15387 should actually override the grab cursor. This comes into play
15388 when you are setting custom cursors in a DND feedback method.
15390 2007-01-31 Jackson Harper <jackson@ximian.com>
15392 * X11Dnd.cs: Add support for handling the QueryContinue and
15393 GiveFeedback events.
15394 - Cancel drag and drop actions when the escape key is clicked.
15395 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15396 can handle the ESCAPE key.
15397 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
15398 done when dnd events are continued after the button is released.
15399 - Add a new helper method so that dnd can translate key events.
15401 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
15403 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15404 make it more obvious what is happening.
15406 2007-01-30 Jackson Harper <jackson@ximian.com>
15408 * XplatUIX11.cs: Don't break when handling button release in drag
15409 and drop operations. We need that BUTTONUP message to get through
15410 so capture is released.
15411 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15412 this is handled automatically when the mouse is down.
15414 2007-01-30 Jackson Harper <jackson@ximian.com>
15416 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15417 is closed, so we need to make sure that we aren't changing the
15418 dialog result when the OK (Open or Save) button has been clicked
15419 and we are closing the window ourselves. Note we don't need to
15420 worry about the cache being written in this case, because it was
15421 already done in the previous FilOk call.
15423 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15425 * DateTimePicker.cs: Remove a warning.
15426 * ComboBox.cs: Remove a couple of warnings.
15428 2007-01-29 Chris Toshok <toshok@ximian.com>
15430 * XplatUIX11.cs: don't crash, and remove the icon if the user has
15431 set one, if SetIcon is passed a null icon.
15433 2007-01-29 Andreia Gaita <avidigal@novell.com>
15435 * TextBox.cs: Redraw when the password characters changes
15436 * TextControl.cs: Check if textbox has a password char and draw
15437 a line of password chars instead of the text in the line. LineTag gets
15438 an extra Draw() method which allows document.Draw to override the text
15439 that will be drawn. Removes 1024 char limitation on length of passworded
15442 2007-01-29 Jackson Harper <jackson@ximian.com>
15444 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
15445 single chars is not.
15447 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
15449 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15450 one pixel. Fix a StackOverflowException caused by an overload wrongly
15453 2007-01-26 Everaldo Canuto <everaldo@simios.org>
15455 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15456 also remove ProcessArrowKey and put the code inside ProcessKeys.
15458 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
15460 * PaddingConverter.cs: Added.
15462 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15464 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15465 ShowPanels is false (fixes #80600). Only draw up to 127 characters
15466 of text (fixes #80601). For panels clip the text to draw to the
15467 panel (fixes #80603).
15469 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15471 * ComboBox.cs: Fixed implementation of ResetText.
15473 2007-01-25 Jackson Harper <jackson@ximian.com>
15475 * TextControl.cs: For the last char of a line we need to use the
15476 line size, not that chars width, since it won't actually be
15477 computed since the right side of a char is based on the start of
15478 the left side of the next char, and the next char does not exist.
15480 2007-01-25 Chris Toshok <toshok@ximian.com>
15482 * Splitter.cs: fix the new unit tests, and reindent some switch
15485 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15487 * ComboBox.cs: Implemented 2.0 methods and events.
15488 * TextBoxBase.cs: Added OnTextUpdate, so that
15489 ComboBox.ComboTextBox can inform ComboBox of it.
15491 2007-01-25 Jackson Harper <jackson@ximian.com>
15493 * TextControl.cs: Respect ShowSelection when deciding whether or
15494 not to display the caret, this allows comboboxes to have carets
15495 when the combotextbox does not have focus.
15497 2007-01-25 Jackson Harper <jackson@ximian.com>
15499 * TextControl.cs: Add a Suspend/Resume for updating, basically the
15500 same as the Suspend/Resume for recalc, except this will do actual
15502 - New Undo manager, works much like the MS version.
15504 * TextBoxBase.cs: The Cut operation is undoable.
15506 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15508 * TextBoxBase.cs: Don't antialias text. Makes it look way better
15509 on Windows (no difference on Linux).
15511 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15513 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15514 we don't want to activate any windows. Fixes #79433.
15516 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
15518 - ButtonBase.cs: Fix capitalization of parameter: disposing.
15521 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
15524 - Move to using System.ComponentModel.EventHandlerList
15525 - Replace Refresh with Invalidate
15526 - Clear the mime filecache on closing
15527 - Some other memory reducing work. After beeing closed FD now uses
15528 only about 300 KB for the fdo mime stuff plus the memory of the
15530 * Mime.cs: Changed coding style and removed unnecessary commented
15531 code. Some more memory memory reducing work.
15533 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
15535 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15536 a few other missing 2.0 properties.
15537 * Theme.cs: Added DrawFlatStyleComboBox.
15538 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15540 2007-01-24 Chris Toshok <toshok@ximian.com>
15542 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15543 wake_waiting flag, not just when there's data to be read. if we
15544 don't, then future wakeup's won't reach us and we'll be doomed to
15545 wait for the entire 1 second timeout forever (unless there are X
15548 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15550 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15551 until you pass Items.Count, not Items.Count - 1 like 1.1.
15553 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
15555 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15557 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
15559 * ToolStripContainer.cs: The recent Dock fix exposed that I was
15560 adding the panels in the wrong order.
15562 2007-01-24 Jackson Harper <jackson@ximian.com>
15564 * TextBoxBase.cs: When we move the caret we also need to move the
15565 selection, this fixes some random crashing after doing select
15566 text, unselect, delete a char, paste.
15568 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
15570 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15572 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15574 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15575 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
15576 * ToolBar.cs: Force redraw in BackgroundImageChanged.
15578 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15581 - Implement support for vertical toolbars. Fixes #80539;
15582 - Call LayoutToolBar when resize, it fix some other problems in layout.
15583 - Rename requested_height to requested_size, as we can have width on it
15584 when toolbar is vertical.
15585 - Create a private property "Vertical" that uses Dock to verify when
15586 toolbar is vertical or not.
15587 - Set ControlStyles when change Dock property.
15588 - Refactory in LayoutToolBar to have better variables names and to support
15590 - Fixes default value for ButtonSize when button count is equal zero, size
15591 must be (39, 36) test case writed.
15593 2007-01-23 Chris Toshok <toshok@ximian.com>
15595 * Control.cs: fix the checks so that they work correctly for mdi
15598 2007-01-23 Chris Toshok <toshok@ximian.com>
15600 * Control.cs: ControlCollection seems to have super-secret
15601 abstraction breaking knowledge of Mdi containers. allow MdiClient
15602 to add toplevel controls.
15604 2007-01-23 Chris Toshok <toshok@ximian.com>
15606 * Control.cs: throw an ArgumentException if a toplevel control is
15607 added to our control collection from ControlCollection.Add, as
15608 well as from ControlCollection.IList.Add. This fixes the
15609 ControlSetTopLevelTest.TestTopLevelAdd unit test.
15611 Also, in ControlCollection.IList.Add, don't through an
15612 ArgumentNullException, throw an ArgumentException, when value ==
15613 null. This matches MS.
15615 2007-01-23 Chris Toshok <toshok@ximian.com>
15617 * BindingSource.cs: initial, incomplete, implementation of
15620 2007-01-23 Jackson Harper <jackson@ximian.com>
15623 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15624 that I can fix a broken unit test (TextBoxTest::ClearUndo)
15626 2007-01-23 Everaldo Canuto <everaldo@simios.org>
15628 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15630 2007-01-23 Andreia Gaita <avidigal@novell.com>
15632 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15633 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15634 IndexOfKey() for 2.0
15636 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
15638 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15639 to prevent it from changing z-order.
15640 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15641 leave UI updates in MdiWindowManager.
15642 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15643 1 sized (NC handling goes weird on Linux otherwise).
15644 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15645 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15646 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15647 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15648 and SetWindowState(s) to allow for changing the size of an activated child
15649 before activating it (reduces a lot of flicker).
15651 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15653 * Form.cs: Changing FormBorderStyle has different semantics based
15654 on whether the Form is visible or not. If not visible, don't change
15655 the Size. But InvalidateNC needs to be called to force the window
15656 to pick up the changes and redraw itself. [Fixes bug #80574]
15658 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
15661 * ContainerControl.cs: ProcessCmdKey.
15662 * ErrorProvider.cs: new constructor.
15663 * Form.cs: fix AutoValidateEvent compiler warning.
15664 * Label.cs: fix OnAutoSizeChanged compiler warning.
15665 * MenuStrip.cs: fix CanOverflow compiler warning.
15666 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15667 * TextBox.cs: Dispose.
15668 * ToolStrip.cs: CanOverflow, re-enable double buffering.
15669 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15670 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15671 * ToolStripItem.cs: Overflow, RightToLeft properties.
15673 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15675 * Form.cs: Move the layout of the main form to MdiWindowManager.
15676 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15677 do a layout of the main window to update MdiClient's client area to
15678 the right area. Fixes #80533. Remove the calculation of nc size,
15679 it was just wrong and the correct one is the same as for
15680 InternalWindowManager.
15682 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
15684 * Control.cs: Setting Anchor or Dock needs to reset the other
15685 to its default. [Fixes bug #80556]
15687 2007-01-20 Chris Toshok <toshok@ximian.com>
15689 * CheckedListBox.cs: class status changes.
15691 * ScrollableControl.cs: same.
15693 * RichTextBox.cs: same.
15695 * ContainerControl.cs: same.
15697 * ListView.cs: same.
15699 * NotifyIcon.cs: same.
15701 * MenuStrip.cs: same.
15703 * RadioButton.cs: same.
15705 * CheckBox.cs: same.
15707 * PrintPreviewDialog.cs: same.
15711 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
15713 * TreeNode.cs: Apply Alan's patch for Name property.
15715 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15717 * Form.cs: Implemented SizeGripStyle.
15718 * SizeGrip.cs: Check for minimum and maximum size for the
15719 control being resized and only resize if size has actually
15722 2007-01-19 Chris Toshok <toshok@ximian.com>
15724 * DataGridColumnStyle.cs: stop setting _readonly in the
15725 PropertyDescriptor setter. fixes a unit test failure.
15727 also, rename ParentReadOnly to TableStyleReadOnly, and have it
15728 just consult our table style (if we have one). We don't need to
15729 consult the datagrid readonly attribute because that's passed in
15730 as the _ro arg to Edit. this simplifies things a little.
15732 * DataGrid.cs: use CurrentColumn instead of
15733 current_cell.ColumnNumber just to simplify some of the code.
15735 switch the order of some things in the CurrentCell setter to keep
15736 the previous cell from getting a textbox again -
15737 EnsureCellVisibility causes scrolling to happen, which calls Edit.
15738 So we need to set the new cell before calling it.
15740 call Edit in OnEnter, as does Microsoft.
15742 also, make sure the current table style isn't the one we create
15743 initially when checking to see if it's different than the one
15744 we're setting it to in BindColumns (this fixes #80421).
15746 * GridTableStylesCollection.cs: table styles can have "" for a
15747 mapping name. part of the fix for #80421.
15749 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
15750 Edit significantly.
15752 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15754 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
15755 and less GDI object leaky-er.
15757 2007-01-18 Andreia Gaita <avidigal@novell.com>
15759 * LinkLabel.cs: Add opaque control style
15761 2007-01-18 Jackson Harper <jackson@ximian.com>
15763 * TextControl.cs: Calculate width properly.
15764 - Don't store the tag's X offset, this can be figured out very
15766 - When getting the caret tag make sure to get the last empty tag.
15768 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15770 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
15773 * Control.cs: Color.Empty shouldn't count for previous transparent
15776 2007-01-18 Jackson Harper <jackson@ximian.com>
15780 * TextControl.cs: Starting to merge in some pieces of my older
15781 undo work. Basically just some slight cleanup of the undo API.
15783 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15785 * TrackBar.cs: Fix signature of RightToLeftLayout.
15786 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
15787 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
15788 * Application.cs: Implemented UseWaitCursor.
15790 2007-01-18 Jackson Harper <jackson@ximian.com>
15792 * TextControl.cs: We can't skip tags if any part of the tag is
15795 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15797 * ContainerControl.cs: Override OnLayout.
15799 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15801 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
15803 * ContextMenuStrip.cs: Make sure context menu is shown on top of
15806 2007-01-18 Chris Toshok <toshok@ximian.com>
15808 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
15809 (leftover from the container_selected days, I'd wager). fixes bug
15812 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15814 * Control.cs: Apply patch from George to fix the new testcase on
15815 bug #80451. We can't just check for Color.Transparent, we need
15816 to check if the back color's alpha channel is < 255.
15818 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
15820 * Form.cs: Move setting show_icon = true to before the constructor
15821 so that the base constructor has that information when it calculates
15822 the form's size. Was causing forms to be (6, 6) bigger than they
15823 were supposed to be. Thanks for catching this Rolf!
15825 2007-01-18 Jackson Harper <jackson@ximian.com>
15827 * TextControl.cs: When replacing a selection we need to invalidate
15828 from the initial selection start, because selection start is moved
15829 to the end of the replacement.
15831 2007-01-18 Andreia Gaita <avidigal@novell.com>
15833 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
15835 2007-01-18 Chris Toshok <toshok@ximian.com>
15837 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
15840 2007-01-17 Everaldo Canuto <everaldo@simios.org>
15842 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
15843 layout methods and properties from ToolBarButton must be available
15844 into ToolBarButtonInfo.
15846 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15848 * Control.cs: If the control has a transparent background, we
15849 need to refresh it when it moves and when it's parent's background
15850 image changes. [Fixes bug #80451]
15852 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15854 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
15856 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
15858 * XplatUIWin32.cs: Implement proper double buffering for Windows.
15859 [Fixes bug #80447, and probably speeds up things as well]
15861 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15863 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
15864 * XplatUIWin32.cs: We need to recalculate NC size after changing
15865 window style to toolwindow (otherwise the client rectangle will be
15866 3 pixels to small for some reason).
15867 * MdiWindowManager.cs: Revert NC size calculations to match how
15868 they are calculated only based on window styles (to match
15869 Win32AdjustWindowRectEx, since otherwise when setting size or
15870 location, Control will call Win32AdjustWindowRectEx to update client
15871 size, which would provoke a paint, then we'd get a NCCALCSIZE and
15872 calculate a different value of client size causing another paint
15874 * InternalWindowManager.cs: When moving or resizing a window only
15875 update size or location if they actually changed.
15876 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
15877 (seems to match Windows behaviour better). Cleaned up
15878 ManagedWindowDecorations to draw what's needed and nothing else
15879 (was drawing borders and lines where they shouldn't be)
15880 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
15881 (style = 0xFFFF) and takes into account caption height when
15882 calculating window rectangle.
15884 2007-01-16 Everaldo Canuto <everaldo@simios.org>
15886 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
15887 can be added to toolbar multiple times, we need to maintain a list of
15888 button information for each positions.
15890 2007-01-16 Everaldo Canuto <everaldo@simios.org>
15892 * ToolBar.cs: Some small stetic changes.
15894 2007-01-16 Jackson Harper <jackson@ximian.com>
15896 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
15897 that allow us to have nested recalc = false blocks.
15898 - Add paste support for images in the RichTextBox
15899 * RichTextBox.cs: flush the text after the color is changed, so
15900 the change takes effect.
15901 - Use SuspendRecalc
15902 - Some extra debugging info
15903 * TextControl.cs: Tags no longer track their length, it is just
15904 computed from the next tags length, this makes things a little
15905 simpler and reduces places that we have to track length changes.
15906 - Refactored the linetag class a little so we could make it
15907 a base class for different kinds of tags
15908 - Created a image tag, a tag that can have a single image inserted
15910 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
15911 that we can call suspend multiple times.
15912 - Add some debugging methods
15914 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15916 * MdiClient.cs: Add ActivatePreviousChild for
15917 mdi child window navigation.
15918 * Form.cs: Use MdiClient.ActivateNextChild/
15919 ActivatePreviousChild instead of Form.SelectNextControl
15920 to select the next/previous child since
15921 SelectNextControl doesn't do it in the same order
15922 as mdi children should do it.
15924 2007-01-16 Chris Toshok <toshok@ximian.com>
15926 * Control.cs: remove container_selected field.
15928 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15930 * MdiClient.cs: Update main form's ActiveChild when
15931 updating keyboard focus for the mdi child.
15933 2007-01-16 Jonathan Pobst <jpobst@novell.com>
15935 * Control.cs: PreferredSize fix.
15937 * Form.cs: Add several 2.0 events, properties, and methods.
15939 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
15941 * Form.cs: Provide meaningful message when MdiParent is assigned a
15942 Form that is not an MdiContainer.
15944 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15946 * MdiClient.cs: Update main form's ActiveChild when
15947 activating a mdi child.
15949 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15951 * MdiWindowManager.cs: Fix NRE when merging menus and main form
15952 doesn't have a menu.
15954 * Form.cs: Request NCRecalc after creating a mdi child window.
15955 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
15956 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
15958 * MdiClient.cs: Add new method SendFocusToActiveChild that either
15959 sends keyboard focus to the active child, or to the MdiClient
15960 if there are no child forms.
15962 2007-01-15 Chris Toshok <toshok@ximian.com>
15964 * ListView.cs: drop the *Internal overrides, just do our work in
15965 ItemControl's WndProc instead.
15967 * UpDownBase.cs: a few large changes. Fix up the Selectable state
15968 of the various controls, and forward the events properly (in the
15969 same manner as MS) from the textbox to the UpDown. Also the
15970 ActiveControl of the UpDownBase gets set properly now. Finally,
15971 we don't call UpdateEditText from the ctor. Fixes bug #79957.
15973 * NumericUpDown.cs: set Text in the ctor.
15975 * DomainUpDown.cs: call UpdateEditText in the ctor.
15977 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
15978 so even a Selectable = false textbox can be focused if you click
15981 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
15982 just add their handling in their respective WndProc's. Also add
15983 an explicit FocusInternal method that doesn't consult CanFocus
15984 before calling Select(this).
15986 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
15987 do our work in WndProc instead.
15989 * TabControl.cs: same.
15991 * ComboBox.cs: same.
15993 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15995 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
15998 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16001 * ThemeWin32Classic.cs: Don't draw the item text outside
16002 item bounds in Details view, as well as use trimming.
16005 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16007 * Form.cs: Implement Form.ShowIcon.
16009 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
16010 null, which when combined with the DlgModalFrame window style removes
16011 the icon from the title bar.
16013 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16015 * Control.cs: Call OnMouseClick after OnClick. (2.0)
16017 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16019 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
16020 menu when mdi child windows theres a menu, uses insert to get icon
16021 at first position. Partially fix #80006.
16023 2007-01-15 Jonathan Pobst <jpobst@novell.com>
16025 * Clipboard.cs: Implement 2.0 methods.
16027 2007-01-15 Everaldo Canuto <everaldo@simios.org>
16029 * Menu.cs: Implement Insert method of MenuItemCollection class
16032 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16034 * ListView.cs: Implement 2.0 FindItemWithText method.
16036 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16038 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
16039 to calculate menu bar size. Fixes #80290.
16041 2007-01-11 Everaldo Canuto <everaldo@simios.org>
16043 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
16045 2007-01-11 Chris Toshok <toshok@ximian.com>
16047 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
16050 2007-01-11 Chris Toshok <toshok@ximian.com>
16052 * LinkLabel.cs: make sure to call base.Select in our Select method
16053 if it turns out we're going to be selected (i.e. if we have a link
16054 that is going to receive focus). That way our container's
16055 ActiveControl is updated properly.
16057 2007-01-11 Chris Toshok <toshok@ximian.com>
16059 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
16060 they have 1 or more links. this fixes the crash gert reported.
16062 2007-01-11 Andreia Gaita <avidigal@novell.com>
16064 * ContainerControl.cs: Remove ContainerSelected flag, not needed
16067 * Control.cs (Controls.Add): Check if control to be added to the collection
16068 is a top level control, and throw an ArgumentException if it is.
16069 Remove ContainerSelectedFlag, not needed anymore.
16071 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
16072 top most control doesn't activate the form. This fixes a problem in the
16073 MessageBox, where the default button wouldn't get focus because the form
16074 was activated before being Loaded - when the Owner is set, SetTopMost is
16075 called, and it would activate it.
16077 2007-01-11 Jonathan Pobst <jpobst@novell.com>
16079 * Button.cs: When clicked and setting the parent form's DialogResult,
16080 use FindForm instead of Parent, since parent could be a container
16081 control and not the Form. Fixes bug #80495.
16083 2007-01-10 Chris Toshok <toshok@ximian.com>
16085 * Form.cs: move the call to SendControlFocus into the same
16088 2007-01-10 Chris Toshok <toshok@ximian.com>
16090 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
16091 It breaks in the face of the new ActiveControl stuff, and should
16094 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
16095 activecontrol's focus if it's not already set, after we set
16096 ActiveControl, but before we call OnActivated. Re-fixes #79667
16097 after the previous focus/active control fixes regressed it.
16099 * Control.cs: reindent some code.
16101 2007-01-10 Chris Toshok <toshok@ximian.com>
16103 * Splitter.cs: clearing some outstanding changes from my tree.
16104 Replace all accesses (not writes) to the internal dock_style field
16105 with the Dock property.
16107 2007-01-10 Chris Toshok <toshok@ximian.com>
16109 * Control.cs: make FireEnter, FireLeave, FireValidating, and
16110 FireValidated virtual.
16112 * Form.cs: override and don't chain up calls to FireEnter and
16115 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16117 * ListView.cs: Add more text padding space when using
16118 auto resize for columns (the previous value didn't work fine).
16120 * ThemeWin32Classic.cs: Update text position inside columns,
16121 to match the appeareance of .Net.
16123 * ColumnHeader.cs: When using auto resize, only the Width should
16124 depend on the sub items, not the Height. Also, set width after
16125 auto resizing (the value of Width should never remain as -1 or -2).
16127 2007-01-10 Chris Toshok <toshok@ximian.com>
16129 * Application.cs: fix compilation errors when debug is enabled.
16131 2007-01-10 Chris Toshok <toshok@ximian.com>
16133 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
16134 add some nice ascii art pictures and explanation of the process).
16135 (GetMostDeeplyNestedActiveControl): new utility function we need
16136 because our ActiveControl can refer to a child container with its
16139 * Form.cs (OnActivated): remove the call to SelectActiveControl
16140 from here, since you can override this method and not chain up,
16141 and winforms still sets the active control.
16142 (OnCreateControl): also remove the unnecessary SelectActiveControl
16144 (WndProc): it's actually called from the WM_ACTIVATE block, just
16145 before calling OnActivated.
16147 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
16148 inside the else. the ActiveControl setter will end up setting
16149 focus on @control. This keeps us from setting it again (and
16150 generating an extra LostFocus/GotFocus pair).
16151 (Select (bool, bool)): reindent.
16153 2007-01-10 Jonathan Pobst <jpobst@novell.com>
16155 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
16156 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
16157 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
16158 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
16159 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
16160 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
16161 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
16162 ToolStripTextBox.cs: Another wave of corcompare work.
16164 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16166 * ColumnHeader.cs: Implement 2.0 AutoResize method using
16167 the Width property.
16169 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
16170 methods by callling Column.AutoResize method on columns.
16172 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16174 * Control.cs: Provide proper implementations of PreferredSize
16175 and GetPreferredSize (2.0).
16177 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
16179 * Form.cs: Remove one character (!) to make my previous OnClosing
16180 stuff work for modal windows like MessageBox.
16182 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16185 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
16186 ListView.Columns to get the last displayed column. Fixes #80452.
16188 2007-01-09 Everaldo Canuto <everaldo@simios.org>
16190 * Label.cs, LinkLabel.cs: Source code identation fixes.
16192 2007-01-08 Everaldo Canuto <everaldo@simios.org>
16194 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
16195 we dont need to invalidate only borders because when we invalidate four
16196 border lines the invalidate's generates a complete redraw of button,
16197 because it now invalidate a complete rect some other redraws operations
16198 are fixed. Fixes #80196.
16200 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
16201 Remove ToolBarInvalidateEntireButton as it is not used.
16203 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16205 * Form.cs: Make sure that both OnClosing and OnFormClosing are
16206 called for 2.0 profile.
16207 * CloseReason.cs: Make class internal for 1.1.
16209 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
16211 * ToolStripManager.cs: Implement FindToolStrip functionality.
16212 * ToolStrip.cs: Register and unregister with ToolStripManager.
16214 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16216 * Control.cs: This was messy. 2.0 moves much of ControlCollection
16217 to ArrangedElementCollection. Implemented this with as few #if's as
16218 possible (which is still too many).
16220 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
16222 * Control.cs: Implement SizeFromClientSize() [2.0].
16224 2007-01-07 Everaldo Canuto <everaldo@simios.org>
16226 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
16227 use Theme.BorderSize to calculate area instead of static value 1,
16228 by the way use new BorderStaticSize instead Border3DSize when
16229 border_static is true. Fixes #79537.
16231 * XplatUIOSX.cs: Fix call to GetClientRectangle.
16233 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
16236 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16238 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
16240 2007-01-06 Everaldo Canuto <everaldo@simios.org>
16242 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
16243 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
16246 - border_static field added, it will used to define when a control
16247 theres 3D border but it must be static (thin).
16248 - In GetWindowRectangle use Theme.BorderSize to calculate area
16249 instead of static value 1, by the way use new BorderStaticSize instead
16250 Border3DSize when border_static is true.
16252 * XplatUIX11.cs, XplatUIOSX.cs:
16253 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
16255 * Theme.cs: BorderStaticSize field added.
16257 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16259 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
16261 2007-01-05 Everaldo Canuto <everaldo@simios.org>
16263 * Control.cs: Under InternalBorderStyle call RecreateHangle to
16264 mimic same behavior than win32 that set border only in CreateParams,
16265 it fix problems under CreateParams overrides. Fix #79442 and partial
16268 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
16269 of thi control you must call recreate handle.
16271 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
16272 need to do anything as RecreateHangle will take care about borders.
16274 2007-01-05 Mike Kestner <mkestner@novell.com>
16276 * ListView.cs: hack to eliminate Lost/Got focus notifications on
16277 cycles between the ItemControl and parent. Fixes #80388.
16279 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
16281 * Control.cs: Lazy init layout engine. Do not directly use
16282 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
16284 2007-01-05 Chris Toshok <toshok@ximian.com>
16286 * DataGrid.cs: don't forceably rebind columns in SetDataSource
16287 unless our list manager has changed (i.e. unless we have reason to
16288 believe our columns have changed). Fixes #80422.
16290 also, disable the call do BindColumns in
16291 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
16292 1.1 the event isn't raised in response to a column addition on a
16295 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16297 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
16298 that inheritors can not call it if they choose. Fixes bug #80456.
16300 2007-01-05 Andreia Gaita <avidigal@novell.com>
16302 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
16303 doesn't blow up with a null exception on marshalling.
16305 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
16307 * Control.cs: Implement several 2.0 protected properties and methods.
16308 Ensure that all necessary events are being called when properties
16311 2007-01-05 Mike Kestner <mkestner@novell.com>
16313 * ListView.cs: implement PgUp/PgDn for Details view. Also
16314 fixes First/LastVisibleIndex to use the item_control.ClientRect
16315 instead of the parent control. Fixes #80378.
16317 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
16319 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16320 determine whether to use yard-pound or not (bug #78399).
16322 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
16324 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16325 problems. So it is time to bring back the old popupbutton colors.
16327 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16330 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16331 property by using the internal information of the
16332 columns order in ListView.
16334 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
16336 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16337 Add 2.0 Tag properties.
16339 * LinkArea.cs: Add 2.0 ToString method.
16341 2007-01-03 Chris Toshok <toshok@ximian.com>
16343 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16344 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
16345 when we're editing, which fixes #80047.
16347 2007-01-03 Chris Toshok <toshok@ximian.com>
16349 * Form.cs: apply patch contributed by Dominik Seichter. fixes
16352 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
16354 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16355 property and implementation.
16357 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16358 for MdiWindowListItem property.
16360 * ToolStripDropDown.cs: Don't consider hidden menu items while
16361 laying out the menu.
16363 2007-01-03 Andreia Gaita <avidigal@novell.com>
16365 * SendKeys.cs: window handle is not needed in win32, so just
16366 get the active window for X after parsing keys and don't use
16367 it when building the message; it is passed by parameter to the
16368 Xplat method and used there to build the message instead. Also,
16369 wait for events to be processed on SendWait, as opposed to Send,
16370 which doesn't wait :) Playing with threads and Send() completely
16371 hangs on ms.net, only SendWait() works.
16374 X11Display.cs: Check for valid window handle.
16376 2007-01-03 Jackson Harper <jackson@ximian.com>
16378 * TextControl.cs: Need to prevent wrap calculations when replacing
16379 text (this was there before i removed it accidently).
16380 - Don't update the cursor during the positioning, just set it to
16381 selection_start at the end of the operaion.
16383 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16386 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16388 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16390 * MonthCalendar.cs: Added Click and DoubleClick events again,
16391 but this time they only hide Control's Click and DoubleClick.
16393 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
16395 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16396 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16398 2007-01-02 Jackson Harper <jackson@ximian.com>
16400 * TextBoxBase.cs: We move the caret with the split now, so we
16401 don't need to explicitly move the caret after splitting. This
16402 fixes the caret bumping down an extra line on Enter.
16404 2007-01-02 Miguel de Icaza <miguel@novell.com>
16406 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16409 * ScrollableControl.cs: Add Scroll event.
16411 2007-01-02 Mike Kestner <mkestner@novell.com>
16413 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
16414 to fix all hdr height padding codepaths. Fixes #80207.
16416 2007-01-02 Chris Toshok <toshok@ximian.com>
16418 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16419 setting it to the Control defaults anyway, and it being after the
16420 Dock set was screwing up layout.
16421 (set_Dock): don't short circuit out of setting base.Dock. Also,
16422 no need to call UpdateStatusBar here, as it'll be re-layed out if
16425 2007-01-02 Mike Kestner <mkestner@novell.com>
16427 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16428 to header height for width == -1. Fixes the rest of #80207.
16430 2007-01-02 Mike Kestner <mkestner@novell.com>
16432 * ListView.cs: rework the mouse event forwarding everaldo added
16433 to translate the coordinates to the parent control not
16434 raise the parent events until after we've done our work. Hover
16435 needs more work, in the case where HoverSelection is on, because
16436 the item control receives more than one MouseHover per Enter
16437 event, so we need to ensure only the "first" hover gets forwarded.
16438 Opening a minor bug for that.
16440 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
16442 * CheckedListBox.cs: Fixed SelectionMode to match MS.
16443 * ListControl.cs: Implemented AllowSelection property. Removed extra
16445 * ListBox.cs: Implemented AllowSelection property.
16447 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16449 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16450 SelectedItem, it prevent for errors when you must disable item
16451 before perform click. Fixes #80409.
16453 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16455 * MenuAPI.cs: Prevent second level and beyond submenus to close
16456 until first level when move out side of popup.
16458 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16461 - Down submenu positin in three pixels.
16462 - Closes sub menu when mouse leaves from menu. Fixes #80402.
16464 2007-01-02 Everaldo Canuto <everaldo@simios.org>
16466 * ThemeWin32Classic.cs:
16467 - Fix popup menu size adding one pixel on the top.
16468 - Down menu item border from two to one to mimic Win32.
16469 - Some source identation fixes.
16471 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16473 * ThemeWin32Classic.cs: Use float numbers to calculate size and
16474 position of menu arrows, it fix wrong arrow size.
16476 2007-01-01 Everaldo Canuto <everaldo@simios.org>
16478 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16479 instead of line, it simplify draw operation and fix it using 3D
16480 borders to mimic Win32.
16482 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
16484 * StatusStrip.cs: Add implementation of the sizing grip.
16486 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16487 StatusStrip rendering.
16489 2006-12-31 Chris Toshok <toshok@ximian.com>
16491 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
16492 override the layout style (anchor/dock) of the control. assign to
16493 Dock instead. Fixes bug #80416.
16495 * ToolStrip.cs: same.
16497 2006-12-31 Andreia Gaita <avidigal@novell.com>
16499 * ContainerControl.cs: Use ContainerSelected flag to check if
16500 a Container is directly selected, or if Select is called on a
16501 non-container. If a container is directly selected, focus events
16502 should not be raised.
16503 Apply #80411 patch to throw exception on set_ActiveControl if
16504 control is the same as the current one.
16506 * Control.cs: Use ContainerSelected flag (see above).
16507 Add invalidation check to raise event but not invalidate if
16509 Apply #80411 patch.
16512 2006-12-31 Everaldo Canuto <everaldo@simios.org>
16514 * MenuAPI.cs: After click, dont close popup menu when menu is
16515 ContextMenu. Fixes #80399.
16517 2006-12-30 Chris Toshok <toshok@ximian.com>
16519 * ContainerControl.cs: make sure we throw the exception if the
16520 container control doesn't contain the control we're setting
16523 2006-12-30 Chris Toshok <toshok@ximian.com>
16525 * Control.cs (SetTopLevel): fix the exception raised by
16526 SetTopLevel for child controls.
16527 (set_Anchor): call UpdateDistances when setting the anchor type.
16528 This fixes bug #80336.
16530 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16532 * Theme.cs: For now, revert back to 8pt font.
16534 2006-12-29 Everaldo Canuto <everaldo@simios.org>
16536 * MenuAPI.cs: Set popup as active when open a ContextMenu.
16539 2006-12-29 Chris Toshok <toshok@ximian.com>
16541 * Control.cs: reorder the code in OnResize to give the same event
16544 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
16546 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16547 TileHorizontally and TileVertically.
16549 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
16551 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16552 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16553 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16554 Corrected copyright and email adress.
16556 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16558 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16559 of Exception in FullPath property if no TreeView is associated with
16562 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
16564 * Theme.cs: Marked default_font as private, and initialize it in ctor
16565 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16567 * ThemeGtk.cs: Removed default_font intialization.
16568 * ThemeWin32Classic.cs: Removed default_font initialization.
16570 2006-12-28 Chris Toshok <toshok@ximian.com>
16572 * Control.cs: fix a couple of place where we were creating handles
16573 more aggressively than we should be. Fixes ControlRefresh unit
16576 2006-12-28 Chris Toshok <toshok@ximian.com>
16578 * Control.cs: contrary to what the comment said, Control.Dock does
16579 not supercede Control.Anchor - the last one you assign to decides
16580 the layout behavior. so we need to keep track of which was the
16581 last set. Also, fix some of the affected property arguments in
16582 PerformLayout calls, and remove an redundant parent.PerformLayout
16585 Add a VisibleInternal property, which returns is_visible. We
16586 can/should get rid of all the usage of this field elsewhere.
16588 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16590 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16591 control style, not DoubleBuffer. Added UseDoubleBuffering property
16592 that indicates whether doublebuffering is enabled and supported.
16593 (comment from and code based on Gert Driesen's patch in #80324).
16596 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16598 * Control.cs: Fixed a NRE.
16600 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16602 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16605 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16607 * Control.cs: Rewrote double buffering, now a seperate
16608 class handles all the buffering, no Graphics is disposed of
16609 until the painting is finished (earlier implementation
16610 would crash if the control was resized in the OnPaint,
16611 since it would cause the double buffer to be recreated
16612 and the old one disposed), a separate Graphics is
16613 created for every paint (MS behaviour and anyways the state
16614 of the Graphics would have to be saved and restored otherwise)
16616 * XplatUIDriver.cs:
16618 * XplatUI.cs: Added and implemented GetOffscreenGraphics
16619 so that we can get the graphics for the back buffer without
16620 having to create a new one and remove the offscreen_dc parameter
16621 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16623 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16625 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16626 Also make virtual all the key-related methods.
16628 * ListViewItem.cs: Make virtual the key related methods for
16629 ListViewSubItemCollection.
16631 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16635 * ThemeWin32Classic.cs:
16636 * Theme.cs: Initial support for Tile view in ListView,
16637 as well as the implementation of the required bits for it (Item
16640 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16642 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16643 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16644 Provide useful exception messages.
16646 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
16648 * TrackBar.cs: Remove a warning.
16649 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16650 when used by DateTimePicker, fixes #80287. This also requires that
16651 MonthCalendar implements it's own drawing for the yearly updown control,
16652 otherwise the Capture tracking would be too complicated. Removed the Click
16653 and DoubleClick events (according to comments they were hiding the base class
16654 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16655 raise these events, not that they cannot be raised. It is possible to raise
16656 them by calling OnClick and OnDoubleClick). Added two internal fields in
16657 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16658 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16659 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16660 event, no longer needed.
16662 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16664 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16665 true if new value differs from current value.
16667 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16669 * Control.cs: ControlCollection.Count must be public. Fixed build of
16672 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16674 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16676 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
16678 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16680 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16682 * Control.cs: Invalidates control including when Width and Height is
16683 equal zero or is not visible, only Paint event must be care about
16684 this. Fixes #79913.
16686 2006-12-26 Chris Toshok <toshok@ximian.com>
16688 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16689 more corcompare work.
16691 * DataGridView.cs: fix compiler warning.
16693 * ColumnHeader.cs: some corcompare work, and also take the
16694 opportunity to make the internal fields private.
16696 * ListView.cs: fix the fallout from the above field change.
16698 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16700 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16701 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16702 ToolStripTextBox.cs: Fixes to events and corcompare.
16704 2006-12-26 Everaldo Canuto <everaldo@simios.org>
16706 * ListView.cs: Call owner.OnMousexx event to propagate events from
16707 item to ListView. Fixes #80367.
16709 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16711 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
16712 if value is less than one. ItemHeight should not be set to a value
16713 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
16714 Removed extra tabs.
16716 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
16718 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
16719 * ToolStripStatusLabel.cs: Add Spring for Moma.
16721 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16723 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
16724 Fixed code formatting. Removed debug code.
16725 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
16727 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
16729 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
16730 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
16731 ArgumentOutOfRangeException if ColumnCount is negative. In
16732 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
16733 less than 4 or higher than 32768.
16734 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
16735 Fixed FormatProvider to return CurrentCulture unless explicitly set.
16736 Fixed IsFormatProviderDefault to return true if FormatProvider has
16737 not been explicitly set.
16739 2006-12-25 Chris Toshok <toshok@ximian.com>
16741 * Application.cs: add a couple of 2.0 events.
16743 2006-12-25 Chris Toshok <toshok@ximian.com>
16745 * Control.cs: fix compiler warning.
16747 * AxHost.cs: corcompare fixes.
16749 * ApplicationContext.cs: corcompare fixes.
16751 2006-12-25 Chris Toshok <toshok@ximian.com>
16753 * Control.cs: only update dist_right/dist_bottom if the
16754 width/height is > 0. this fixes anchored controls being resized
16755 smaller until they disappear and then resized larger again.
16757 2006-12-25 Chris Toshok <toshok@ximian.com>
16759 * Control.cs: a couple of changes. Remove dist_left and dist_top,
16760 since they're nothing more than X/Left and Y/Top, respectively.
16762 Also, move back to a per-control Bitmap/Graphics for
16763 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
16764 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
16767 2006-12-25 Miguel de Icaza <miguel@novell.com>
16769 * MessageBox.cs: Implemented overload that takes a new "bool
16770 displayHelpButton" by adding a new internal field "show_help".
16771 When clicked this will raise the HelpRequested on the owner or the
16774 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
16775 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
16777 * ListView.cs: Add support ColumnWidthChanged and
16778 ColumnWidthChanging.
16780 Add support for ColumnReordered event.
16781 (ReorderColumn): Add NET_2_0 specific support for cancelling the
16784 Very nice codebase!
16786 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
16788 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
16790 2006-12-24 Chris Toshok <toshok@ximian.com>
16792 * GridTablesFactory.cs: 2.0 corcompare work.
16794 * ToolStripContainer.cs: add "override" to
16795 ContextMenuStripChanged, and remove the local event object.
16797 * ToolStripDropDown.cs: same with a couple properties.
16799 * ToolStripPanel.cs: same with AutoSizeChanged event.
16801 * TextBoxBase.cs: add "override" to AutoSizeChanged.
16803 * Form.cs: add the remaining 2.0 events, and do some corcompare
16806 * DateTimePicker.cs: add "new" to padding.
16808 * ButtonBase.cs: use Control's use_compatible_text_rendering.
16810 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
16812 * DataGridView.cs: PaddingChanged is overridden.
16814 2006-12-24 Chris Toshok <toshok@ximian.com>
16816 * Control.cs: corecompare work here too.
16818 * DataGridViewElement.cs, DataGridView.cs,
16819 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
16820 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
16821 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
16822 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
16825 2006-12-24 Miguel de Icaza <miguel@novell.com>
16827 * Control.cs: Switched the error message on the console for a
16828 todo. A review of the code will have to cope with this anyways
16829 (since its a large feature, it is in our radar) and it was
16830 producing too much output when running PDN.
16832 * ToolStripComboBox.cs: Set the text when the SelectedIndex
16833 changes. Applications depend on this (PDN 2.72)
16835 2006-12-23 Chris Toshok <toshok@ximian.com>
16837 * TableLayoutSettings.cs: finish up the corcompare work for this
16840 2006-12-23 Chris Toshok <toshok@ximian.com>
16842 * Control.cs: make SetImplicitBounds internal, do some futzing
16843 with LayoutEngine so that it's available in 1.1, and remove the
16844 entire duplicated code mess from PerformLayout. Use
16845 System.Windows.Forms.Layout.DefaultLayout instead.
16847 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
16849 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
16851 * Form.cs: Add MainMenuStrip property.
16853 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
16855 * Control.cs: Add ContextMenuStrip property and implementation.
16856 Fix ContextMenu implementation to show menu centered on control when
16857 activated using the keyboard instead of showing at screen (0,0).
16859 * ToolStripDropDown.cs: Fix needed overload of Show ().
16861 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16863 * Menu.cs: Name property added for 2.0 profile.
16865 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16867 * Menu.cs: Update information about FindMenuItem, method to be
16870 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16872 * MenuAPI.cs: When deselect items deselect also selected subitems.
16874 2006-12-23 Everaldo Canuto <everaldo@simios.org>
16876 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
16877 FindSubItemByCoord to found itens that is not active, also an
16878 cheking added to FindSubItemByCoord to search for items only
16879 in visible popup windows. Fixes #80274.
16881 2006-12-22 Everaldo Canuto <everaldo@simios.org>
16883 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
16884 internal property, it be care about change ExStyle.
16886 2006-12-22 Andreia Gaita <avidigal@novell.com>
16888 * ContainerControl.cs: set activeControl for parent forms up the
16889 tree when the new activecontrol is a container.
16890 When validating the active control, if it is a container, also
16891 raise up the validation for it's active control. Fixes #80280
16893 * Control.cs: Add internal property flag and check to prevent
16894 Focus events from getting raised when Select() is called for
16895 a ContainerControl. There are still too many focus events being
16896 raised at the moment though.
16897 Cleaned up the code a bit.
16899 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16901 * Control.cs: Added all missing 2.0 events.and
16902 fixed a couple of corcompare issues.
16903 * TrackBar.cs: Implemented missing 2.0 bits.
16904 * MonthCalendar.cs,
16905 * DateTimePicker.cs,
16906 * MdiClient.cs: Fixed some corcompare issues.
16908 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
16910 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
16911 SplitterPanel.cs: corecompare work.
16913 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
16915 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
16916 Clean up warnings for BackgroundImageChanged and PaddingChanged
16917 events now that they are implemented in Control.cs.
16919 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
16921 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
16923 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
16924 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
16925 of TableLayoutPanel and supporting cast.
16927 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
16930 - GrabWindow now confines the mouse pointer to the confine window.
16931 - Added Win32ClipCursor and Win32GetClipCursor.
16934 - Added CaptureWithConfine to be able to capture and confine
16937 * InternalWindowManager.cs:
16938 - Call CaptureWithConfine instead of Capture if we're an
16939 MdiChild (fixes #79982).
16941 2006-12-21 Chris Toshok <toshok@ximian.com>
16943 * DataGrid.cs: guard against the initial state of selection, where
16944 selection_start == -1. make sure we only select from index >= 0.
16947 2006-12-21 Chris Toshok <toshok@ximian.com>
16949 * Control.cs: we don't need to be so draconian with
16950 UpdateDistances, and we thusly don't need to call it before
16951 calling PerformLayout in ResumeLayout. Fixes bug #80289.
16953 2006-12-21 Daniel Nauck <dna@mono-project.de>
16956 TextBox.cs: Implemented AutoComplete properties.
16958 2006-12-20 Chris Toshok <toshok@ximian.com>
16960 * DataGridView*.cs: some corecompare work.
16962 2006-12-20 Jackson Harper <jackson@ximian.com>
16964 * XplatUIX11.cs: We need to hide the caret when deleting it,
16965 otherwise you get carets left lying around everywhere.
16966 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
16967 prevents getting some weird half drawn caret tracers when
16969 * TextControl.cs: Attempt to reduce the number of times we need to
16970 recreate the caret.
16972 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
16974 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
16976 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16978 * DateTimePicker.cs:
16979 - Implemented missing 2.0 bits.
16980 - Changed some default values to match MS.
16982 2006-12-20 Jackson Harper <jackson@ximian.com>
16984 * TextBoxBase.cs: When changing the font across the document we
16985 can't recalculate after changing each line, since that will cahnge
16987 - PreferredHeight is a little different than i thought.
16988 - When backspacing, move the caret before we do the actual char
16989 delete, because when that delete crosses a wrap boundary the
16990 positional information will change.
16992 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16994 * Control.cs: Added some missing 2.0 bits:
16995 BackgroundImageLayout, BackgroundImageLayoutChanged,
16996 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
16997 add IBindableComponent and IDropTarget implementation.
16999 * MonthCalendar.cs:
17000 - Added all missing 2.0 features:
17001 BackgroundImageLayout, RightToLeftLayout,
17002 OnHandleDestroyed, RightToLeftLayoutChanged,
17003 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
17005 - Rewrote all the BoldDate code, it was completely broken.
17006 - Fixed all the tests (the tests can now be re-enabled, the
17007 problems were not with the tests, but with the control, it was
17010 * DateTimePicker.cs: Changed the location where the
17011 MonthCalendar is shown.
17013 2006-12-19 Chris Toshok <toshok@ximian.com>
17015 * DataGridView.cs: add IDropTarget implementation.
17017 * ToolStripPanel.cs: add IDropTarget implementation.
17019 2006-12-19 Jackson Harper <jackson@ximian.com>
17021 * TextControl.cs: soft now means something different than what it
17022 used to mean, we want to move the caret regardless of whether or
17023 not this break was soft (would we really have wanted the caret
17024 to not move with the break in the old context?)
17025 * TreeView.cs: Make sure we factor in the vert scrollbar when
17026 calculating the horizontal scrollbar's maximum.
17028 2006-12-19 Andreia Gaita <avidigal@novell.org>
17030 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
17031 check for keywords in alternate casing, close bug #80049.
17033 2006-12-19 Chris Toshok <toshok@ximian.com>
17035 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
17036 methods (which all do nothing).
17038 * IDropTarget.cs: add the 4 missing methods.
17040 2006-12-19 Chris Toshok <toshok@ximian.com>
17042 * TableLayoutRowStyleCollection.cs: corcompare work.
17044 * TableLayoutSettings.cs: same.
17046 * TableLayoutStyle.cs: same.
17048 * TableLayoutColumnStyleCollection.cs: same.
17050 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
17052 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
17053 TableLayoutPanel I've had in my local tree for way too long.
17055 2006-12-19 Miguel de Icaza <miguel@novell.com>
17057 * TableLayoutSettings.cs: Finish the public API (still needs all
17058 the logic to update on changes).
17060 * TableLayoutPanelCellPosition.cs: new file.
17062 * TableLayoutRowStyleCollection.cs,
17063 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
17064 TableLayoutSettings.cs: Track the final 2.0 table api.
17066 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17068 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
17069 and Image List 2.0 members for ColummnHeader.
17070 * ListView.cs: Add key-related 2.0 methods for
17071 ColumnHeaderCollection.
17073 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17075 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
17076 ArgumentNullException if items argument is null. Ignore null item in
17077 arrays. Removed extra tabs.
17079 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
17081 * MonthCalendar.cs: Fixed InvalidCastException.
17083 2006-12-19 Jackson Harper <jackson@ximian.com>
17085 * TextControl.cs: Don't increment the position here.
17086 - When calculating char positions only add in the line break size
17087 for hard line breaks.
17089 2006-12-19 Andreia Gaita <avidigal@novell.org>
17091 * SendKeys.cs: Changed some things to match ms.net behaviour
17092 when parsing shifted capital letters.
17094 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
17095 Add window handle as parameter to SendInput. X11 needs the
17096 window handle, and the handle being passed to it in the keys
17097 queue is the active control handle (which windows needs), not
17100 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
17101 to support SendKeys on X.
17103 * X11Keyboard: Implement helper method to lookup a linux keycode
17104 given the virtual keycode. Added table of keycode-2-virtualkey
17105 values to support this.
17107 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17109 * ListView.cs: Add support for SelectedIndexCollection
17110 and SelectedItemCollection 2.0 methods. Implement support
17112 * ListViewItem.cs: Add support for ListViewSubItemCollection
17113 2.0 methods. Also, fix an incorrect behavior of AddRange method
17114 (it shouldn't call Clear).
17115 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
17117 2006-12-19 Jackson Harper <jackson@ximian.com>
17120 * TextBoxBase.cs: New args for FormatText
17121 * TextControl.cs: Rewrote the main drawing method, this version
17122 feels a little easier to understand and debug to me. Hopefully it
17123 does to others also
17124 - Fix FormatText to OR in the new formating values. Added
17125 FormatSpecified param, basically this works in the same way as
17126 BoundsSpecified in Control.
17127 - Set the caret properties when the caret is positioned.
17128 - When wrapping text make sure that we calculate the width of the
17130 - when calculating alignments we might have wrapped down to the
17131 next line, so don't search for an individual tag, search for the
17133 - We need to invalidate the selection area when we replace the
17136 2006-12-19 Daniel Nauck <dna@mono-project.de>
17138 * Application.cs: add Restart () 2.0 support
17140 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17142 * MenuItem.cs: Invalidate menu item rectangle after change Enable
17143 property. Fixes #80268.
17145 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17147 * MenuAPI.cs: Dont trigger select event when closes top menu
17148 item. Fixes #80270.
17150 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17152 * MenuAPI.cs: When you click on menuitem only trigger onselect
17153 event for top menu itens. Fixes #80271.
17155 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17157 * MdiWindowManager.cs: Make IconicBounds depend on
17158 the bottom of MdiClient, not the top (fixes #80267)
17160 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17162 * MdiClient.cs: Added missing 2.0 attribute
17164 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17166 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
17167 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
17169 2006-12-18 Everaldo Canuto <everaldo@simios.org>
17171 * MenuAPI.cs: Fix click when menuitem is not popup,
17172 this regression was caused by last commit (#80272).
17174 2006-12-17 Everaldo Canuto <everaldo@simios.org>
17176 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
17177 fire click event or close menu. Fixes #80272.
17179 2006-12-17 Daniel Nauck <dna@mono-project.de>
17181 * ListViewHitTestInfo.cs: add
17183 2006-12-17 Daniel Nauck <dna@mono-project.de>
17185 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
17186 * FlatButtonAppearance.cs: add
17187 * DockingAttribute.cs: add
17189 2006-12-17 Chris Toshok <toshok@ximian.com>
17191 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
17192 and rebind our columns when it does - this way, if you make
17193 changes to the DataTable (or set the Table attribute on a DataView
17194 after setting it as the DataGrid's DataSource, the changes are
17195 made visible.) Fixes bug #80107.
17197 2006-12-17 Daniel Nauck <dna@mono-project.de>
17199 * ListViewGroup.cs: add internal Location property for layouting.
17200 * Theme.cs: add abstract ListViewGroupHeight function.
17201 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
17203 2006-12-16 Andreia Gaita <avidigal@novell.com>
17205 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
17206 Added reset of selected index to 0 when adding first tab page.
17209 * NumericUpDown.cs: Fix NET_2_0 check
17211 2006-12-16 Daniel Nauck <dna@mono-project.de>
17213 * ListViewGroup.cs: fixed DefaultValueAttribute value
17215 2006-12-16 Daniel Nauck <dna@mono-project.de>
17217 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
17219 2006-12-15 Miguel de Icaza <miguel@novell.com>
17221 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
17222 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
17223 ScrollableControl.cs: Add a handful of methods that are
17226 2006-12-15 Chris Toshok <toshok@ximian.com>
17228 * XplatUIWin32.cs: initial implementation of the Reversible
17229 drawing functions. there are some problems. DrawReversibleFrame
17230 doesn't seem to work at all for Dashed FrameStyle, and in the
17231 Thick case there are drawing errors at the corners (we probably
17232 need to bind Rectangle instead of doing moveto/lineto's.)
17234 2006-12-16 Andreia Gaita <avidigal@novell.com>
17236 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
17237 to send blocks of key messages. Send accumulates keys to send with Flush,
17238 while SendWait sends all keys immediately.
17240 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17241 XplatUIX11.cs, XplatUIX11-new.cs:
17242 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
17243 to Win32 SendInput.
17244 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
17246 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
17247 testing for ms.net on this class is very tricky, as the tests run too fast
17248 to allow the hook to release, essentially freezing the keyboard and the
17249 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
17252 2006-12-16 Daniel Nauck <dna@mono-project.de>
17254 * Padding.cs: fixed serialization compability to MS ("_var" field names),
17255 added missing attributes.
17257 2006-12-15 Daniel Nauck <dna@mono-project.de>
17259 * ListViewGroup.cs: Added missing attributes.
17260 * ListViewGroupCollection.cs: Added missing attributes.
17262 2006-12-15 Daniel Nauck <dna@mono-project.de>
17264 * ListViewItem.cs: fixed ListViewSubItem text property.
17266 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17268 * Control.cs: Added missing 2.0 attributes
17270 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17272 * MdiClient.cs: Added missing 2.0 attribute.
17273 * MonthCalendar.cs: Added some missing 2.0 attributes
17276 2006-12-15 Daniel Nauck <dna@mono-project.de>
17278 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
17280 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
17282 * MainMenu.cs: Add the new 2.0 constructor to help out people
17283 using the MainMenu in VS2005.
17285 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17287 * MdiChildContext.cs: Removed it, no longer used.
17288 * MdiClient.cs: Added missing 2.0 attributes.
17290 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17292 * InternalWindowManager.cs: Fix a NullRef with previous
17293 changes for toolwindows.
17295 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17298 - Added AfterTopMostControl to allow for certain controls
17299 to always stay on top when normal controls are brought to
17303 - (DrawInversibleRectangle): Get window rectangle from Win32
17304 in stead of from control, since Win32 doesn't calculate
17305 screen coords correctly from control's Location if it
17306 have docked siblings.
17308 * MdiWindowManager.cs:
17309 - Correct the control menu popup location when clicked on
17310 the maximized form icon. (fixes #80223.1)
17311 - Don't show moving rectangle if mouse hasn't moved from
17312 the original clicked point.
17313 - Removed FormGotFocus handler (not used).
17314 - Calculate the control buttons location from the main
17315 window's size and not client size (fixes #79770).
17316 - Form is now closed when the form icon is double-clicked
17318 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17320 * InternalWindowManager.cs:
17321 - Moved some MDI-only methods to MdiWindowManager.
17322 - Removed unused properties and methods.
17323 - Unified method naming for methods handling wm messages.
17324 - Moved all message handling to seperate methods for
17327 * ThemeWin32Classic.cs:
17328 - DrawManagedWindowDecorations now draws the title bar
17329 with a gradient brush.
17330 - Add a CPDrawButtonInternal that allows us to specify
17331 light, normal and dark colors for the buttons (control
17332 buttons for MDI children were drawn with the same light
17333 color as the background, therefore loosing the 3D effect).
17336 - Add a CapturedControl property that is used to
17337 determine the control to resize (defaults to parent).
17338 Needed for MdiClient, since its SizeGrip's parent is
17339 MdiClient, but the control to resize is the main form.
17342 - Set SizeGrip's CapturedControl to the main form in order
17343 to resize the main form and not the MdiClient.
17344 - Override AfterTopMostControl to leave the scrollbars
17347 2006-12-15 Daniel Nauck <dna@mono-project.de>
17349 * ListView.cs: fixed ListViewItemCollection AddRange and
17350 implemented ListViewItemCollection AddRange 2.0 support.
17352 2006-12-15 Daniel Nauck <dna@mono-project.de>
17354 * ListViewGroup.cs: Add.
17355 * ListViewGroupCollection.cs: Add
17356 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17357 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17358 stub for ImageKey 2.0 support.
17360 2006-12-14 Mike Kestner <mkestner@novell.com>
17362 * ListView.cs: add text padding to the autocalculation for columns
17363 of width -2. Fixes #80207.
17365 2006-12-14 Mike Kestner <mkestner@novell.com>
17367 * ListView.cs: add some index guarding for partial row navigation
17368 logic. Fixes #80250.
17370 2006-12-14 Mike Kestner <mkestner@novell.com>
17372 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17373 are added or inserted to the collection. Fixes #81099.
17375 2006-12-13 Everaldo Canuto <everaldo@simios.org>
17377 * MenuAPI.cs: Closes menu when right click out side of popup
17378 it fix problem in ContextMenu and MainMenu. Fixes #80252.
17380 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17382 * ListViewItem.cs: Fix dumb error.
17384 * ListView.cs: Add Find and ContainsKey methods in
17385 ListViewItemCollection, and also return true for IsReadOnly
17386 and IsFixedSize (changes for 2.0).
17388 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
17390 * Control.cs: Allow Region to be set to null.
17392 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17394 * MdiWindowManager.cs: Remove unused (commented out) code.
17395 * Form.cs: When the MdiChild is maximized, the form needs
17396 WM_NCMOUSELEAVE, so request it.
17397 * InternalWindowManager.cs:
17398 - Added tooltips to control buttons.
17399 - Removed duplicated control button handling code.
17400 - Removed unused (commented out) code.
17402 2006-12-12 Everaldo Canuto <everaldo@simios.org>
17404 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
17405 was used because we must set cursor without trigger ChangeCursor event
17406 and without change Cursor control property. Fixes #79963.
17408 2006-12-12 Andreia Gaita <avidigal@novell.com>
17410 * Control.cs: Check if Region setter value is null, and ignore
17412 2006-12-12 Jackson Harper <jackson@ximian.com>
17414 * TextControl.cs: We were almost always drawing one more line then
17415 needed, since the GetLineByPixel will return the last line found
17416 at that pixel. In most cases though, we were invalidating up to
17417 the junction between two lines.
17418 - Improve debug code.
17420 2006-12-12 Chris Toshok <toshok@ximian.com>
17422 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17423 and FillReversibleRectangle.
17425 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17426 and FillReversibleRectangle.
17428 * XplatUIWin32.cs: add stubs which do nothing for
17429 DrawReversibleFrame, DrawReversibleLine, and
17430 FillReversibleRectangle.
17432 * XplatUIOSX.cs: add stubs which raise NIE for
17433 DrawReversibleFrame, DrawReversibleLine, and
17434 FillReversibleRectangle.
17436 * XplatUIX11.cs: add working implementation for
17437 DrawReversibleFrame, DrawReversibleLine, and
17438 FillReversibleRectangle.
17440 * ControlPaint.cs: implement DrawReversibleFrame,
17441 DrawReversibleLine, and FillReversibleRectangle, by calling into
17442 the appropriate XplatUI method.
17444 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17446 * Form.cs: Make MdiClient have the focus even if it's
17447 not selectable, since it should receive WM_KEY* and WM_MOUSE
17448 messages. Fixes #79907.
17450 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17452 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17453 queried after the window is created.
17455 * XplatUIX11.cs: Added SendParentNotify to implement
17456 WM_PARENTNOTIFY logic. Fixes #79965.
17458 * Control.cs: Added MakeParam.
17460 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17462 * MdiClient.cs: Resume Layout before setting window
17463 states (fixes #80201).
17465 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
17467 * MenuAPI.cs: Deselect a menu item after performing
17468 the click (fixes #80197).
17470 2006-12-11 Jackson Harper <jackson@ximian.com>
17472 * TextBoxBase.cs: We need to cap this value, since Maximum -
17473 ViewPortHeight can be less than zero.
17474 - Only do selection with the left mouse button.
17475 * TextBox.cs: Don't tell the world that we have a context menu.
17476 * Control.cs: New method so that we can control whether or not the
17477 context menu is visible outside MWF.
17479 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17481 * ToolBarButton.cs: Fix text positon.
17483 2006-12-11 Miguel de Icaza <miguel@novell.com>
17485 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17487 * Control.cs (DoubleBuffered): Add implementation.
17489 * Application.cs (OpenForms): Add.
17491 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17493 * Form.cs: Use opacity instead of Opactiy to determine if we need
17494 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
17496 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
17498 * Control.cs: Fix NRE if Control.Site was set to null.
17500 2006-12-11 Chris Toshok <toshok@ximian.com>
17502 * Control.cs: ControlCollection.Remove should return if the arg is
17503 null, and ControlCollection.SetChildIndex should raise a ANE.
17505 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
17507 * Control.cs: Verify value set for Dock property. Code formatting
17510 2006-12-11 Jackson Harper <jackson@ximian.com>
17512 * TextControl.cs: Draw the caret and the selection when a flag is
17514 * TextBoxBase.cs: We want to draw the caret and the selection for
17515 TextBox but not for TextBoxBase.
17516 - If the window is resized and scrolling is no longer needed (the
17517 whole doc is visible) set the scroll position to zero.
17518 - The default SelectWord (the one TextBox uses) should move the
17519 caret to the end of the word.
17520 - SelectAll moves the caret to the end of the selection.
17521 * TextBox.cs: We don't selectall on focus, we just do it when the
17522 control is created.
17524 2006-12-11 Mike Kestner <mkestner@novell.com>
17526 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17528 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17530 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
17532 * ListViewItem.cs: Add Name 2.0 property.
17534 2006-12-11 Andreia Gaita <avidigal@novell.com>
17536 * TabControl.cs: Set visibility on selected or default tab
17537 when tabcontrol handle is created, so that it's contents
17538 actually show up (duh). Fixes #80193
17539 Don't redraw the control if there is no handle created, as
17540 the selected index might be completely invalid. Added some tests
17543 2006-12-11 Everaldo Canuto <everaldo@simios.org>
17545 * ToolBar.cs: Uses maximun width and height of all buttons as
17546 button rectangle when ButtonSize specified, it looks strange but
17547 is what happens in Win32. Fixes #80189.
17549 2006-12-11 Jackson Harper <jackson@ximian.com>
17551 * TextControl.cs: Need to track undo levels ourself, since
17552 compound actions will mess them up.
17554 2006-12-10 Andreia Gaita <avidigal@novell.com>
17556 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17557 SelectedIndex value is changed (even if it's not valid).
17558 Reset SelectedIndex to 0 when the handle is created and if
17559 the current index is invalid.
17560 Fixes SelectdeIndex unit tests and #80128
17562 2006-12-08 Chris Toshok <toshok@ximian.com>
17564 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17565 calls EndEdit, it needs to be called before we set current_cell to
17566 its new value. Otherwise, we end up committing the value in the
17567 textbox to the new cell as well. Fixes bug #80160.
17569 2006-12-08 Chris Toshok <toshok@ximian.com>
17571 * Form.cs (set_CancelButton): if the button's DialogResult is
17572 None, set it to Cancel. Fixes bug 80180.
17574 2006-12-08 Jackson Harper <jackson@ximian.com>
17576 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17577 to watch ourselves when setting the canvas size and setting the
17580 2006-12-08 Chris Toshok <toshok@ximian.com>
17582 * DataGrid.cs: comment out the two MakeTransparent calls for the
17583 time being so people using trunk (and not 1.2.2) on windows can
17584 actually use the datagrid. This deals with bug #80151.
17586 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17588 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17589 Graphics.DrawImage (image, int, int, int, int) overload instead
17590 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
17591 the dpi difference and was blurring images it drew.
17594 2006-12-08 Chris Toshok <toshok@ximian.com>
17596 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17597 rowcnt is 0 (such as with an empty datasource), and make sure we
17598 initialize not_usedarea.Y to cells.Y, so we don't draw over the
17599 other areas (caption, parent row, etc, etc). Fixes bug #80095.
17601 2006-12-08 Chris Toshok <toshok@ximian.com>
17603 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17606 2006-12-08 Chris Toshok <toshok@ximian.com>
17608 [ Fixes bug #80167 ]
17610 * ThemeWin32Classic.cs: don't draw the image if the button's flat
17611 style is FlatStyle.System.
17613 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17614 ButtonBase.flat_style private, and switch uses of it to the public
17617 2006-12-08 Chris Toshok <toshok@ximian.com>
17619 [ Fixes bug #80121 ]
17621 * ThemeWin32Classic.cs: center the caption text in the datagrid
17624 * DataGrid.cs: lessen the amount we add to the caption height from
17625 6 to 2. 6 was making it huge.
17627 2006-12-08 Andreia Gaita <avidigal@novell.com>
17629 * UpDownBase: Handle MouseWheel call directly instead of capturing
17630 the inner textbox's OnMouseWheel. Fixes #80166
17632 2006-12-08 Jackson Harper <jackson@ximian.com>
17634 * TextControl.cs: We need to invalidate the textbox when we empty
17635 it (how had this not been discovered before?)
17637 2006-12-08 Jackson Harper <jackson@ximian.com>
17639 * TextBoxBase.cs: Reworked the mouse down code so I could get it
17640 to behave like MS, we now ignore the eventargs.Click and just
17641 track state ourself, which we were already doing anyways.
17642 - Constrain the double click handler to the double click size.
17644 2006-12-08 Chris Toshok <toshok@ximian.com>
17646 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17647 direction if that scrollbar isn't shown. fixes bug #80158.
17649 2006-12-08 Andreia Gaita <avidigal@novell.com>
17651 * NumericUpDown.cs: Update value on getter. Fixes #79950
17653 2006-12-08 Chris Toshok <toshok@ximian.com>
17655 * MenuItem.cs: add back in the event cloning code. I didn't know
17656 how to do it in the face of the EventHandlerList work i'd done
17657 last week. Fixes bug #80183.
17659 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
17661 * Control.cs: Add an invalidate to the BackgroundImage setter.
17664 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17666 * ToolStrip*: Add some small properties reported by MoMA, fix event
17667 firing and default properties based off of unit tests, and add some
17668 attributes based off of the class status page.
17670 2006-12-07 Jackson Harper <jackson@ximian.com>
17672 * TextBoxBase.cs: Take HideSelection into account when determining
17673 whether or not to show the selection.
17674 * RichTextBox.cs: After inserting the RTF into the document move
17675 the cursor to the beginning of the document.
17677 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
17679 * Control.cs: Remove static ArrayList "controls" which maintained
17680 a reference to every control created.
17681 * Application.cs: Create a static FormCollection to maintain a reference
17682 to every form created. Use it in places that formerly enumerated through
17683 the controls one looking for forms.
17684 * Form.cs: Add and remove self from above FormCollection.
17686 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
17688 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17689 not libgdk (though it makes me wonder why I didn't have any
17692 2006-12-07 Chris Toshok <toshok@ximian.com>
17694 [ you had to know this was coming after that last commit...]
17696 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17697 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17698 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17701 2006-12-07 Chris Toshok <toshok@ximian.com>
17703 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17704 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17705 all the behavior we need for double buffering.
17707 * XplatUIDriver.cs: implement the 3 double buffer methods using a
17708 client side Bitmap, just like the old Control-based double buffer
17709 code did. The methods are virtual, so each XplatUI driver
17710 subclass can replace the implementation to use a faster, platform
17713 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
17714 double buffer code, and clean things up a bit in the process.
17716 2006-12-06 Chris Toshok <toshok@ximian.com>
17718 * Control.cs: reindent WndProc.
17720 2006-12-06 Chris Toshok <toshok@ximian.com>
17722 [ I wanna be like BenM when I grow up ]
17724 * Hwnd.cs: create a single static Graphics object on the static
17725 Bitmap we create. use this for our text measurements.
17727 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
17728 This was causing us to allocate a backbuffer for every control,
17729 even when it wasn't flagged as double buffered. Instead use the
17730 single graphics instance. This might have implications for
17731 multithreaded applications. If we run into problems we can switch
17732 to creating 1 Graphics per control, on the static Hwnd bitmap.
17734 this change nets us a 7M savings in private dirty mappings when
17735 running FormsTest.exe.
17737 2006-12-06 Chris Toshok <toshok@ximian.com>
17739 * ListView.cs: the BackgroundImage override is just to set
17740 attributes. chain up to base.BackgroundImage.
17742 * RichTextBox.cs: same.
17744 * ToolBar.cs: same, but we need to also redraw the toolbar when it
17745 changes, so instead a handler for BackgroundImageChanged.
17747 * Control.cs: make background_image private.
17749 2006-12-06 Chris Toshok <toshok@ximian.com>
17751 * ScrollBar.cs: change the assignment of cursor to Cursor. not
17752 sure we even need this assignment, but roll with it for now.
17754 * Control.cs: make the cursor field private.
17756 2006-12-06 Chris Toshok <toshok@ximian.com>
17758 * Form.cs: we don't need to explicitly set ImeMode to
17759 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
17760 behavior in the face of ImeMode.Inherit.
17762 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
17763 change the ctor's assignment to use ImeMode instead of ime_mode.
17765 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
17766 ImeModeInherit. Only check for the parent's imemode (and return
17767 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
17768 This fixes the button unit test, which sets both ImeMode and
17769 DefaultImeMode to ImeMode.Disable.
17771 also make the ime_mode field private.
17773 2006-12-06 Chris Toshok <toshok@ximian.com>
17775 * Control.cs: make control_style private.
17777 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
17778 setting the styles to true, then setting them to false instead of
17779 reverting to their previous values.
17781 also, call SetStyle on the scrollbars instead of using
17782 control_style directly.
17784 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
17786 * FormCollection.cs: Implement. [2.0]
17788 2006-12-06 Chris Toshok <toshok@ximian.com>
17790 * Control.cs: make tab_stop private.
17792 * Label.cs: set TabStop, not tab_stop. reformat some event
17793 add/remove methods to make them more compact.
17795 2006-12-06 Chris Toshok <toshok@ximian.com>
17797 * RadioButton.cs: fix TabStop handling.
17799 2006-12-06 Chris Toshok <toshok@ximian.com>
17801 * TextBox.cs: remove the explicit assignments to has_focus.
17804 * ButtonBase.cs: remove the assignment to has_focus. Control will
17807 2006-12-06 Chris Toshok <toshok@ximian.com>
17809 * ButtonBase.cs: remove all uses of is_enabled from this code.
17810 it's always true when any of the code containing the checks is
17813 2006-12-06 Chris Toshok <toshok@ximian.com>
17815 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
17816 with different semantics (some are present in both 1.1 and 2.0
17817 profiles) so that we match MS's behavior in our unit tests.
17819 2006-12-06 Jackson Harper <jackson@ximian.com>
17821 * TextControl.cs: Make this operation undoable.
17822 * TextBoxBase.cs: Factor the border width into the preferred
17824 - implement Modified as per the spec.
17826 2006-12-06 Chris Toshok <toshok@ximian.com>
17828 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
17830 2006-12-06 Chris Toshok <toshok@ximian.com>
17832 * Control.cs: make right_to_left and context_menu fields private.
17834 2006-12-06 Chris Toshok <toshok@ximian.com>
17836 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
17837 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
17838 Control.child_controls private. switch all uses over to
17841 2006-12-06 Chris Toshok <toshok@ximian.com>
17843 * System.Windows.Forms/GroupBox.cs,
17844 System.Windows.Forms/AccessibleObject.cs,
17845 System.Windows.Forms/ErrorProvider.cs,
17846 System.Windows.Forms/Control.cs,
17847 System.Windows.Forms/UpDownBase.cs,
17848 System.Windows.Forms/ScrollBar.cs,
17849 System.Windows.Forms/DateTimePicker.cs,
17850 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
17851 System.Windows.Forms/ToolTip.cs,
17852 System.Windows.Forms/RadioButton.cs,
17853 System.Windows.Forms/LinkLabel.cs,
17854 System.Windows.Forms/Splitter.cs,
17855 System.Windows.Forms/TextBoxBase.cs,
17856 System.Windows.Forms/ToolStripTextBox.cs,
17857 System.Windows.Forms/ContainerControl.cs,
17858 System.Windows.Forms/ThemeWin32Classic.cs,
17859 System.Windows.Forms/SizeGrip.cs,
17860 System.Windows.Forms/ToolStripDropDown.cs,
17861 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
17862 private. switch all uses over to Control.Parent.
17864 2006-12-06 Chris Toshok <toshok@ximian.com>
17866 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
17867 Control does this before calling emitting these events.
17869 * TabControl.cs: same.
17871 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
17872 Control.client_rect.
17874 * ButtonBase.cs: use the ClientSize property instead of the
17877 * ScrollableControl.cs: same.
17879 * Control.cs: another pass at making properties private. also,
17880 move the initialization of tab_stop to the ctor.
17882 2006-12-05 Andreia Gaita <avidigal@novell.com>
17884 * TabControl.cs: Let the selected index be set freely if the
17885 control handle is not yet created.
17887 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
17889 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
17890 internal until I can rewrite DefaultLayout.
17891 * ToolStrip.cs: Fix build error and some general cleaning.
17892 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
17893 Fix build errors caused by making some of Control's fields private.
17895 2006-12-05 Jackson Harper <jackson@ximian.com>
17897 * TextControl.cs: Redo Insert a little so that it use IndexOf
17898 instead of Split, this prevents it from messing up on things like
17899 \n\n\n. Also more effecient since the split array doesn't need to
17901 * TextBoxBase.cs: AppendText doesnt handle multiline and non
17902 multiline text differently, this is the first of many fixes that
17903 will make multiline/non-multiline the same thing as far as the
17904 TextBoxBase is concerned.
17905 - Don't split the text and insert lines, this can lose some line
17906 endings (like is the last line a soft or hard break). Instead use
17908 - Fix an off by one when combining all the lines in the Text
17910 - Remove separate multiline handling from the Text getter/setter.
17912 2006-12-05 Chris Toshok <toshok@ximian.com>
17914 * ButtonBase.cs: a few changes:
17916 - don't reinitialize internal Control fields in the ctor when they
17917 have the same values as Control sets them.
17919 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
17920 this before calling those methods.
17922 - we don't need to call Refresh for anything. use Invalidate
17925 - OnEnabledChanged doesn't need to redraw at all - Control.cs
17926 calls Refresh in its OnEnabledChanged.
17928 - several of the events we were registered for in the ctor to
17929 redraw ourselves already include calls to Invalidate in the
17930 property setters that raise the events. remove the extra
17933 - reformat a switch statement that was 83274658 columns wide.
17935 2006-12-05 Mike Kestner <mkestner@novell.com>
17937 * ComboBox.cs: fix a unit test regression from a TextBox
17938 SelectionLength return of -1 when there's no selection.
17940 2006-12-05 Chris Toshok <toshok@ximian.com>
17942 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
17943 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
17944 cleaning up some of the internal Control fields being used by
17947 2006-12-05 Mike Kestner <mkestner@novell.com>
17949 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
17950 listbox after AddImplicit calls since it defaults to hidden. Add a
17951 hack to preserve requested heights across DropDownStyle changes.
17953 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
17955 * PropertyGrid.cs: Hide FindFirstItem method from public API.
17957 2006-12-05 Chris Toshok <toshok@ximian.com>
17959 * DataGridView.cs: fix compiler warnings.
17961 * PrintControllerWithStatusDialog.cs: same.
17963 * ToolBar.cs: same.
17965 * FolderBrowserDialog.cs: same.
17967 * Splitter.cs: same.
17969 * DataGridViewComboBoxCell.cs: same.
17971 * XplatUIWin32.cs: same.
17973 * PictureBox.cs: same.
17975 * Win32DnD.cs: same.
17977 * PageSetupDialog.cs: same.
17979 * FileDialog.cs: same.
17981 * PrintDialog.cs: same.
17983 * DataGridTextBoxColumn.cs: same.
17985 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
17987 2006-12-05 Chris Toshok <toshok@ximian.com>
17989 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
17990 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
17991 System.ComponentModel.EventHandlerList work.
17993 2006-12-05 Jonathan Chambers <joncham@gmail.com>
17995 * DrawTreeNodeEventArgs.cs: Added.
17997 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17999 * InternalWindowManager.cs: Remove an unused field.
18001 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18003 * InternalWindowManager.cs:
18004 - Save the point where the title bar is clicked.
18006 * MdiWindowManager.cs:
18007 - Only allow moving of the window as long as the
18008 clicked point on the title bar does not get out of
18009 MdiClient's rectangle. Fixes #79982.
18012 - Added Horizontal/VerticalScrollbarVisible.
18013 - Simplified the scrollbar sizing algorithm.
18014 - Cache the difference in scrolled value in
18015 H/VBarValueChanged and move the calculation out
18018 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
18020 * Control.cs: Make the Console.WriteLine in WndProc
18023 2006-12-05 Chris Toshok <toshok@ximian.com>
18025 * ToolStripManager.cs, ToolStripButton.cs,
18026 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
18027 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
18028 ToolStripSplitButton.cs, ToolStripSeparator.cs,
18029 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
18030 ToolStripProgressBar.cs, ToolStripContainer.cs,
18031 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
18032 to using System.ComponentModel.EventHandlerList.
18034 2006-12-04 Chris Toshok <toshok@ximian.com>
18036 * LinkLabel.cs: fix up compiler warnings.
18038 * TableLayoutSettings.cs: same.
18040 * TreeView.cs: same.
18042 * ToolBar.cs: same.
18044 * TabControl.cs: same.
18046 * RichTextBox.cs: same.
18048 * ListViewItem.cs: same.
18050 * PropertyGrid.cs: same.
18052 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
18056 * TextRenderer.cs: fix up compiler warnings.
18060 * Form.cs: corcompare fixes.
18062 * PictureBox.cs: fix up compiler warnings.
18064 * ImageListStreamer.cs: same.
18066 * TrackBar.cs: corcompare fix.
18068 * Control.cs: fix up compiler warnings.
18070 * SplitterPanel.cs: same.
18072 * NumericTextBox.cs: same.
18074 * ImageList.cs: same.
18076 * StatusStrip.cs: same.
18078 * ProgressBar.cs: corcompare fix.
18080 * ToolStripButton.cs: fix up compiler warnings.
18082 * ToolStripStatusLabel.cs: same.
18084 * ToolStripSplitButton.cs: same.
18086 * ToolStripSeparator.cs: same.
18088 * ToolStripProgressBar.cs: same.
18090 * ToolStripDropDownMenu.cs: same
18092 * ToolStripDropDown.cs: same.
18094 * ToolStripDropDownButton.cs: same.
18096 * ToolStrip.cs: same.
18098 * ToolStripControlHost.cs: same.
18100 * ToolStripContentPanel.cs: same.
18102 * ToolStripDropDown.cs: same.
18104 * ToolStripContainer.cs: same.
18106 * ToolStripPanel.cs: same, and add "new" where we need it to work
18107 with the new ArrangedElementCollection.
18109 * ToolStripItemCollection.cs: add "new" where we need it to work
18110 with the new ArrangedElementCollection.
18112 2006-12-04 Andreia Gaita <avidigal@novell.com>
18114 * TabControl.cs: Fix default tab selection to after TabControl
18115 gets focus and not before. Fixes #80128
18117 2006-12-04 Chris Toshok <toshok@ximian.com>
18119 * DataGridTableStyle.cs: remove the gross calling of
18120 datagrid.Refresh from here. It's a broken idea and it doesn't
18123 * DataGrid.cs: instead, just register/unregister from the
18124 DataGridTableStyle events in CurrentTableStyle. we play it
18125 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
18126 even though some would most likely not require it. Fixes bug
18127 #80115 (and one portion of #80117 as a side effect).
18129 2006-12-04 Chris Toshok <toshok@ximian.com>
18131 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
18132 so the textbox (if any) goes away. Fixes bug #80117.
18134 2006-12-04 Chris Toshok <toshok@ximian.com>
18136 * DataGridColumnStyle.cs: set the column's readonly property
18137 initially based on the property descriptor's IsReadOnly. Fixes
18140 2006-12-04 Chris Toshok <toshok@ximian.com>
18142 * ComboBox.cs: wrap the dropdown style changing work in
18143 SuspendLayout/ResumeLayout. Fixes bug #79968.
18145 2006-12-04 Jackson Harper <jackson@ximian.com>
18147 * TextBoxBase.cs: Fix off by one, since these are one-based.
18148 * TextBox.cs: Select all the text when we get focus. The TextBox
18149 does this but the RTB does not.
18151 2006-12-04 Chris Toshok <toshok@ximian.com>
18153 * DataGridTextBoxColumn.cs: remove some spew.
18155 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
18156 but some part of me is saying "it shouldn't be here.." At any
18157 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
18160 2006-12-04 Chris Toshok <toshok@ximian.com>
18162 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
18163 to reassign the propertydescriptor.
18165 2006-12-04 Jackson Harper <jackson@ximian.com>
18168 * TextControl.cs: Remove some unused variables. Maybe this will
18169 patch things up between mike and I.
18170 - don't split lines less then one char wide, if the viewport is
18171 that small text won't be visible anyways.
18173 2006-12-04 Jackson Harper <jackson@ximian.com>
18175 * TextBoxBase.cs: Default selection length is -1, need to do some
18176 more testing on windows to see when this is used for the property.
18177 - Redid the Lines [] property to that we properly remove soft line
18179 - added support for preserving carriage returns
18180 - CanUndo is not a variable like 'is undo enabled' it just returns
18181 true if there is undo operations available.
18182 - AppendText doesn't need to grab the last tag itself anymore,
18183 this happens automatically when we move the cursor.
18184 * TextControl.cs: Add CompoundActions to the undo class. This
18185 allows combining the other operations into one big option. ie a
18186 paste will combine { delete old, insert new, move cursor }
18187 - Add InsertString undo operation
18188 - New method for deleting multiline text
18189 - Add carriage returns to lines. So we can preserve carriage
18190 returns when text is 'roundtripped'
18192 2006-12-04 Chris Toshok <toshok@ximian.com>
18194 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
18195 minimum 0. Fixes the scrollbar exception in bug #80136.
18197 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18200 * MdiWindowManager: Removed unused fields and methods.
18202 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18204 * StatusBar.cs: Update all panels when a AutoSize=Contents
18205 panel needs updating.
18207 * StatusBarPanel.cs: Remove twidth and only use initialize.
18210 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
18212 * Form.cs: When a form's MdiParent is set add it directly
18213 on top of the z-order in stead of relying on MdiClient's
18214 ActivateChild to do it. Fixes #80135.
18217 - Remove original_order, mdi_child_list is already doing
18219 - Create mdi_child_list on construction in
18220 stead of first use (avoids a few null checks).
18222 * MenuItem.cs: Use an already existing list of mdi children
18223 to get the correct order of children and remove the other
18226 2006-12-04 Chris Toshok <toshok@ximian.com>
18228 * PropertyGridView.cs: cached_splitter_location is only used in
18229 !DOUBLEBUFFER code.
18231 * PropertyGrid.cs: implement the ComComponentNameChanged event
18232 using Events, hoping that would fix the warning. Looks like a
18233 compiler bug instead (#80144).
18235 * PropertyManager.cs: remove unused method.
18237 2006-11-04 Everaldo Canuto <everaldo@simios.org>
18239 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
18240 include parentesis to fix expression evaluation. Fixes #79634.
18242 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18245 - Changes to fix behavior in Menu control, some reported in #80097
18246 and other detected during behavior refactory like a select event
18248 - Remove unneded "if's" conditions.
18249 - Created an internal to flag when popup is active in control, we need
18250 it because in .NET you can have menu active but without popup active
18251 when you active menu using popup without visible items.
18252 - Mimic win32 behavior for Select and Popup events.
18253 - Dont open popup menu when you dont have visible subitems.
18254 - Do nothing when click on disabled menu item.
18255 - Some small changes to follow the coding style guidelines.
18256 - Unselect menu only when another control gives focus. Fixes #80097.
18257 - Remove unused code.
18259 * MenuItem.cs: internal VisibleItems method to check if menu
18260 theres visible subitems, it will be usefull to fix some
18261 behavior in Menu control.
18263 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18265 * Timer.cs: Tag property for 2.0 profile.
18267 2006-12-01 Chris Toshok <toshok@ximian.com>
18269 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
18271 * Win32DnD.cs: comment out some unused fields.
18273 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
18274 some unused properties/methods.
18276 * XplatUIX11.cs: fix MousePosition so we override the base class's
18277 property instead of conflicting with it.
18279 * PictureBox.cs: comment out some unused fields
18281 * OSXStructs.cs: make some struct fields public.
18283 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
18284 MousePosition so we override the base class's property instead of
18285 conflicting with it.
18287 * X11Dnd.cs: comment out some unused fields
18289 * X11DesktopColors.cs: fix some struct field visibility to quiet
18292 * X11Dnd.cs: remove some debug code.
18294 * ThemeClearlooks.cs: comment out unused field.
18296 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
18298 * ThemeGtk.cs: comment out some unused pinvokes.
18300 * Timer.cs: remove some unused fields.
18302 * ThemeClearlooks.cs: comment out unused field.
18304 * UpDownBase.cs: comment out unused field.
18306 * DataObject.cs: comment out unused field.
18308 * DataGridBoolColumn.cs: reomve unused field.
18310 * DataGrid.cs: remove unused field.
18312 * Cursor.cs: remove old ToBitmap code.
18314 * ControlPaint.cs: remove unused method.
18316 * ScrollBar.cs: remove unused fields.
18318 * ComboBox.cs: remove unused field, and chain up to
18319 AccessibleObject ctor.
18321 * ListBox.cs: remove unused field.
18323 * ButtonBase.cs: wrap a couple fields in NET_2_0.
18325 * GridEntry.cs: remove unused fields.
18327 * Binding.cs: remove unused fields.
18329 * AxHost.cs: remove unused method.
18331 * ContainerControl.cs: remove unused field.
18333 * ScrollableControl.cs: remove unused fields.
18335 2006-12-01 Chris Toshok <toshok@ximian.com>
18337 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18338 the Where/WhereString stuff. it's easy enough to CWL
18339 Environment.StackTrace.
18341 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18342 unused private fields.
18344 2006-12-01 Jackson Harper <jackson@ximian.com>
18346 * TextControl.cs: Do not update the view while inserting multiline
18347 text. If we update the view we might wrap lines, before entering
18348 the new lines, which causes the new line insertion calculations to
18349 be totally fubared.
18350 - Remove an old TODO
18351 - Make debug output a little nicer
18353 2006-12-01 Chris Toshok <toshok@ximian.com>
18355 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18357 2006-12-01 Chris Toshok <toshok@ximian.com>
18359 [ fix the majority of the CS0108 warnings we've been suppressing ]
18361 * TreeView.cs: mark BackgroundImageChanged as 'new'.
18363 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
18364 to "LayoutToolBar" to quiet mcs.
18366 * TabControl.cs: mark our ControlCollection class as 'new'.
18368 * TextBoxBase.cs: mark some events as 'new'.
18370 * Splitter.cs: TabStop is 'new'.
18372 * ControlBindingsCollection.cs: mark a few methods as new since
18373 they change the visibility from protected to public.
18375 * RadioButton.cs: DoubleClick -> base class, and remove unused
18378 * MonthCalendar.cs: ImeMode property -> base class, and mark many
18381 * NumericUpDown.cs: TextChanged -> base class.
18383 * CheckedListBox.cs: mark our ObjectCollection class as new to
18386 * FolderBrowserDialog.cs: make HelpRequest event new and have it
18387 muck with the base class.
18389 * StatusBar.cs: fix some mcs warnings about Update being the same
18390 name as a base class method.
18392 * RichTextBox.cs: mark some events as new, and make them do things
18393 to the base class impl.
18395 * UserControl.cs: mark TextChanged as new, and have it manipulate
18398 * UpDownBase.cs: mark some things new.
18400 * CheckBox.cs: mark DoubleClick "new", and add some text about
18401 what we need to look at.
18403 * Panel.cs: make the events "new", and manipulate the base
18404 version. these are just here for attributes.
18406 * AccessibleObject.cs: make owner private.
18408 * Control.cs: deal with AccessibleObject.owner being private.
18409 cache our own copy if we need it.
18411 * Button.cs: add "new" to the DoubleClickEvent.
18413 * ListBox.cs: no need to track our own has_focus here. let
18414 Control.has_focus do it for us. Also some other work to clear up
18415 warnings about not overriding base class methods of the same name.
18417 * ComboBox.cs: clear up some warnings about not override base
18418 class methods of the same name.
18420 2006-12-01 Chris Toshok <toshok@ximian.com>
18422 * Form.cs: flag a few things as "new" to quiet some of the mcs
18427 * PrintPreviewDialog.cs: same.
18429 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
18430 now DGV isn't so horrible on the class status page. also, move
18431 all events to using System.ComponentModel.EventHandlerList. my
18434 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
18436 * MdiWindowManager.cs:
18437 - Set form to active mdi child if shown,
18438 and update the active mdi child to the next
18439 remaining child in the z-order if the form is hidden.
18442 - Track if the form has been visible and if its
18443 visibility is beeing changed, so that the MdiClient
18444 can properly decide the ActiveMdiChild. The MdiClient
18445 cannot track this since the form can change visibility
18446 before MdiClient is created.
18449 - Don't activate anything of the parent form is changing
18451 - Rework ActiveMdiChild to only return visible mdi
18452 children and take into account several other corner
18455 2006-12-01 Chris Toshok <toshok@ximian.com>
18457 * IBindableComponent.cs: new 2.0 interface.
18459 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
18461 * DataGrid.cs: Font for caption area is bold by default.
18463 2006-12-01 Everaldo Canuto <everaldo@simios.org>
18465 * Menu.cs: Tag property for 2.0.
18467 2006-11-01 Everaldo Canuto <everaldo@simios.org>
18469 * ThemeWin32Classic.cs: Adjust menu separator drawing.
18471 2006-12-01 Chris Toshok <toshok@ximian.com>
18473 * TreeView.cs: doh, the Begin* events should be
18474 TreeViewCancelEventHandler.
18476 2006-12-01 Chris Toshok <toshok@ximian.com>
18478 * Form.cs: Form.ControlCollection already stores off the
18479 form_owner field. don't access the base class's internal "owner"
18482 * Control.cs: make all the fields in Control.ControlCollection
18483 private. there's no need for any internal fields here.
18485 2006-12-01 Chris Toshok <toshok@ximian.com>
18487 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18488 OnHandleCreated. Fixes bug #80109.
18490 2006-12-01 Chris Toshok <toshok@ximian.com>
18492 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18493 SplitContainer.cs, Control.cs, StatusStrip.cs,
18494 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18495 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18496 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18497 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18498 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18499 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18500 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18501 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18502 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18503 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18505 do most of the work to convert our code over to use
18506 System.ComponentModel.Component.Events for
18507 adding/removing/dispatching events.
18510 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18512 * DataGridView.cs: Fix an ArgumentNullException reported
18513 twice today in IRC.
18515 2006-11-30 Mike Kestner <mkestner@novell.com>
18517 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
18518 grabbed listbox. Fixes #80036 and #80101.
18520 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18522 * Message.cs: Changed ToString() to match MS.
18524 2006-11-30 Jackson Harper <jackson@ximian.com>
18526 * TextBoxBase.cs: You can still change the selected text on a read
18528 * TextControl.cs: Lower magic number for wrap calculations. This
18529 lets text get closer to the right (far) edge.
18531 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
18533 * Control.cs: Tweak 2.0 layout properties.
18534 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18535 * TextRenderer.cs: Add a new overload.
18536 * ToolStrip*: Huge amount of changes and new features.
18538 2006-11-30 Mike Kestner <mkestner@novell.com>
18540 * ComboBox.cs: fixes for LargeChange and Maximum to get the
18541 scroll range correct. Fixes #79994.
18543 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18545 * MdiWindowManager.cs: Update main form's text when
18546 a form is closed. (fixes #80038)
18548 2006-11-30 Everaldo Canuto <everaldo@simios.org>
18551 - Fix an regression in ButtonSize.
18552 - Get ImeMode default value change to "Disable".
18553 - Get ShowTooltips default value change to true, default value is
18554 "false" but after make a test in .NET we get "true" result as default.
18556 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
18558 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18560 2006-11-29 Chris Toshok <toshok@ximian.com>
18562 * XplatUIWin32.cs (GetWindowTransparency): check return value of
18563 GetLayeredWindowAttributes. if it's 0, return 1.0, as
18564 SetWindowTransparency hasn't been called.
18566 2006-11-29 Chris Toshok <toshok@ximian.com>
18568 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18570 (set_AllowTransparency): reorder things a little so that the
18571 WS_EX_LAYERED style is removed properly.
18573 2006-11-29 Chris Toshok <toshok@ximian.com>
18575 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18577 * Form.cs: only call the XplatUI transparency method (get/set) if
18578 SupportsTransparency says it's supported. Otherwise fallback to
18579 doing nothing (in the set case) or returning the instance field we
18580 cache (in the get case).
18582 * XplatUIStructs.cs: add TransparencySupport flag enum.
18584 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18585 change to SupportsTransparency.
18587 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18588 TransparencySupport.None from SupportsTransparency.
18590 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18591 TransparencySupport.Set from SupportsTransparency.
18593 * XplatUIWin32.cs: implement GetWindowTransparency calling
18594 GetLayeredWindowAttributes, and implement SupportsTransparency by
18595 checking whether or not both
18596 GetWindowTransparency/SetWindowTransparency are available
18597 entrypoints. We need to do this since SetWindowTransparency is
18598 available as of win2k, but GetWindowTransparency requires winxp.
18601 * XplatUI.cs: Add GetWindowTransparency, and change
18602 SupportsTransparency to allow for either/both Get/Set.
18604 2006-11-29 Chris Toshok <toshok@ximian.com>
18606 * DataGrid.cs: keep from going into an infinite loop redrawing a
18607 datagrid that has no datasource. Fixes bug #80033.
18609 2006-11-29 Chris Toshok <toshok@ximian.com>
18611 * MenuItem.cs: fix the NRE when we assign text (and therefore call
18612 Invalidate) before the mainmenu has been assigned to a control.
18614 2006-11-29 Chris Toshok <toshok@ximian.com>
18616 * DataGrid.cs: detect when we should be double the double click
18617 row/column autosize stuff, although that codepath has yet to be
18618 written. part of the work for bug #79891.
18620 2006-11-29 Chris Toshok <toshok@ximian.com>
18622 * Binding.cs (SetControl): fix unit test.
18624 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18626 * PageSetupDialog.cs: Validate the margins and set them in
18628 * NumericTextBox.cs: New class to mimic the behavior of the
18629 textboxes used in the printing dialogs.
18631 2006-11-29 Andreia Gaita <avidigal@novell.com>
18633 * Form.cs: Revert previous change (remove call UpdateBounds
18634 from form constructor), because it messes with the handle creation
18635 order, and that one needs lots and lots of love.
18636 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18637 for valid printer and throw InvalidPrinterException if document
18638 is set but printer not valid), adding a MonoTODO. Once
18639 handle creation is done properly, we can put this back in.
18641 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18643 * MenuItem.cs: Create a invalidate method for menu item, to be
18644 calling from set text, it make text changes to imadiate update
18645 on screen. Fixes #80013.
18647 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18649 * ToolBar.cs: Fixes and simplify toolbar button layout, it
18650 fixes bug #80070 and some other problem on toolbar buttons
18653 2006-11-28 Everaldo Canuto <everaldo@simios.org>
18655 * ThemeWin32Classic.cs: Paint toolbar toggle button background
18656 with dotted brush. Fixes #79564
18658 2006-11-28 Andreia Gaita <avidigal@novell.com>
18660 * Form.cs: Removed call to UpdateBounds on Form
18661 constructor, it was causing a call to CreateHandle
18662 before it was supposed to.
18663 * PrintControllerWithStatusDialog: Applied patch
18664 by Chris Toshok to hide controller when there are
18665 no printers available.
18666 PrintDialog.cs: initialize printer settings to
18667 null - correct DefaultValues test #5
18668 * PrintPreviewControl.cs: Move PrintController
18669 initialization to GeneratePreview
18670 * PrintPreviewDialog.cs:
18671 - Remove Preview generation from Document_set(). It is
18673 - Throw InvalidPrinterException on CreateHandle if
18674 a Document is set but there are no printers or
18675 printer is not valid.
18676 * ThemeWin32Classic: don't paint PrintPreviewControl
18677 if there is nothing to paint
18679 2006-11-28 Miguel de Icaza <miguel@novell.com>
18681 * Form.cs: Add another popular method.
18683 * TabPage.cs: ditto.
18685 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18687 * MenuItem.cs: Fixed a warning.
18688 * InternalWindowManager: Fixed a warning.
18690 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18693 - When cloning a menu also clone MdiList and clone the
18694 window menu items properly (as the forms and menuitems
18695 are kept in an internal hashtable, these need updating
18697 - Rewrote the window menu code, menu items are added in the
18698 order the forms were added to their parent, and they are
18699 updated every time the window menu is shown (before the
18700 list was only generated once, in the current order of the
18701 forms, and would never be updated). A checkmark is shown
18702 next to the item corresponding to the active mdi child.
18704 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18706 * XplatUIStructs.cs:
18707 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18710 - Added TME_NONCLIENT to TMEFlags.
18711 - Handles WM_NCMOUSEMOVE in GetMessage to
18712 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
18714 * MdiWindowManager:
18715 - Now merges mdi child menu to parent menu when maximized.
18716 - Recalculate NC areas of both mdi child and mdi parent.
18718 on window state and size changes.Fixes #79844 (3).
18719 - Handle WM_NCCALCSIZE to properly calculate borders.
18722 - Add/remove to the mdi containers list of mdi children
18723 in the order they are added.
18724 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
18725 to the maximized mdi child.
18727 * InternalWindowManager.cs:
18728 - Only execute a click on the control buttons on the mouse up,
18729 not on the mouse down. Show the state of the button
18730 (was only showing Normal state, never Pressed state). The
18731 pressed button now follows the mouse (if you click the Close
18732 button and move the mouse over the Maximize button, the
18733 Maximize button will be shown as pressed). Since Win32 does
18734 not generate WM_NCLBUTTONUP if you release the button outside
18735 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
18738 * ThemeWin32Classic.cs:
18739 - Draw a missing border around mdi child forms. Fixes #79844 (2).
18742 - Added a list of forms which contains the order the forms are
18743 added to the mdi parent.
18744 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
18745 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
18746 - If the active form changes set the scrollbars to the top
18747 of the Z order, otherwise the form could hide them.
18748 - Scrollbars are now sized according to ClientSize, not
18749 to Size, and they take into account the other scrollbar
18750 to determine maximum.
18752 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18755 * XplatUIDriver.cs:
18759 - Added RequestAdditionalWM_NCMessages for windows to
18760 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
18761 Currently only implemented in XplatUIWin32.
18763 2006-11-27 Chris Toshok <toshok@ximian.com>
18765 * Hwnd.cs: only add the hwnd to the windows hash in
18766 set_WholeWindow and set_ClientWindow if whole_window/client_window
18767 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
18769 2006-11-27 Mike Kestner <mkestner@novell.com>
18771 * ComboBox.cs: remove redundant OnDropDown call. It is called
18772 from the ComboListBox.ShowWindow code. Fixes #79969.
18774 2006-11-27 Chris Toshok <toshok@ximian.com>
18776 * Hwnd.cs: remove the setters for ExposePending and
18777 NCExposePending - noone uses them.
18779 2006-11-27 Jackson Harper <jackson@ximian.com>
18781 * TextControl.cs: new param for ReplaceSelection which determines
18782 whether we select the new selection, or set the cursor to the end
18783 of the new selection.
18784 * TextBoxBase.cs: Use new param for ReplaceSelection. When
18785 pasting, select the new text.
18786 * RichTextBox.cs: Use new param for ReplaceSelection.
18788 2006-11-27 Jackson Harper <jackson@ximian.com>
18790 * TextBoxBase.cs: Set the selection to the caret after the caret
18791 is moved, otherwise they get out of sync.
18793 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18795 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
18798 2006-11-26 Everaldo Canuto <everaldo@simios.org>
18800 * ThemeWin32Classic.cs:
18801 - Fix toolbar drop down arrow position.
18802 - Fix drop down appearance when ToolBar.Appearance is normal,
18805 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
18807 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
18808 * Control.cs: Same.
18809 * UpDownBase.cs: Same.
18810 * ButtonBase.cs: Same.
18811 * ScrollBar.cs: Same.
18812 * TrackBar.cs: Same.
18813 * PictureBox.cs: Same.
18814 * UserControl.cs: Same.
18816 * ListControl.cs: Same.
18817 * TextBoxBase.cs: Same.
18818 * ListView.cs: Same.
18819 * RichTextBox.cs: Same.
18820 * TreeView.cs: Same.
18822 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
18825 - Text label for where
18826 - Text label comment was not shown
18828 2006-11-23 Everaldo Canuto <everaldo@simios.org>
18830 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
18832 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18834 * InternalWindowManager.cs:
18835 - Handle WM_PARENTNOTIFY to activate the form
18836 if any child control is clicked.
18837 - The form is only sizable if not minimized.
18839 * MdiWindowManager.cs:
18840 - Save the IconicBounds if the form is moved.
18841 - Rework SetWindowState, now the window bounds
18842 are stored only if the old window state is Normal.
18845 - In SetWindowStates store the old window state if
18846 the window is maximized and restore window state if
18847 the window looses focus.
18848 - Don't handle any scrollbar value changes if
18849 initializing the scroll bars. Fixes #79771.
18850 - Reworked ArrangeIconicWindows. Current algorithm
18851 tests bounds agains all other minimized windows, if
18852 any intersections create new bounds (going left to
18853 right, bottom to top) and then test again. When
18854 successful the bounds are saved and never computed
18855 again. Fixes #79774.
18857 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18859 * InternalWindowManager.cs: Added HandleTitleBarUp.
18861 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18863 * NumericUpDown.cs: In .NET 1.1, user entered text is still
18864 hexadecimal in ParseUserEdit.
18867 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18869 * MdiWindowManager.cs:
18870 - Handle a click on the form's icon to show the
18871 system menu (when maximized). Fixes #79775.
18872 - Change the existing click handler for the form's
18873 icon when not maximized to show on MouseUp.
18876 * Form.cs: In OnResize only layout the mdi child's
18877 parent if it actually has a parent. Might not if
18878 the window is closing.
18881 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18883 * MdiClient.cs: Ignore active MDI client for text of parent, if
18884 child has no text set.
18886 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
18888 * ToolBar.cs: Fixed ToString to match MS.
18890 2006-11-22 Andreia Gaita <avidigal@novell.com>
18893 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
18894 update inner values on set. Fixes #79966.
18895 - Override OnLostFocus to update value on NET 2. Fixes #79950.
18896 - Fix hexadecimal parsing.
18898 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
18899 parent. Fixes #79957
18901 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18903 * Control.cs: After calling SetWindowsPos in SetBoundsCore
18904 the actual size has to be queried, since if height /
18905 width is negative Win32 changes it to 0.
18906 Fixes #79999 on Windows.
18908 * XplatUIX11.cs: Set height / width to 0 if negative
18909 in SetWindowPos. Fixes #79999 on Linux.
18911 2006-11-22 Everaldo Canuto <everaldo@simios.org>
18913 * ThemeWin32Classic.cs: Fix text redenring when button is
18916 2006-11-22 Everaldo Canuto <everaldo@simios.org>
18918 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
18919 and later navigate by mouse. Fixes #79528.
18921 2006-11-21 Everaldo Canuto <everaldo@simios.org>
18923 * ToolBar.cs: Set default value for TabStop to false in
18924 constructor, it fixes remaining behavior of bug #79863.
18926 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
18928 * MdiWindowManager.cs:
18929 * InternalWindowManager.cs:
18930 - Moved a few methods specific to Mdi from
18931 InternalWindowManager to MdiWindowManager.
18934 2006-11-21 Chris Toshok <toshok@ximian.com>
18936 * XplatUIOSX.cs: stub out InvalidateNC.
18938 * XplatUIWin32.cs: implement InvalidateNC using the call I found
18939 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
18941 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
18943 * XplatUIDriver.cs: add InvalidateNC abstract method.
18945 * XplatUI.cs: add InvalidateNC.
18947 2006-11-21 Everaldo Canuto <everaldo@simios.org>
18949 * ToolBar.cs: Invalidate complete button area when pressed status
18951 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
18952 * ThemeWin32Classic.cs: Increase vertical and horizontal position
18953 by 1 when button is pressed.
18955 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18957 * ToolButton.cs: Invalidate middle of DropDown button when
18958 ToolBar theres DropDownArrows.
18959 * ThemeWin32Classic.cs: Change position of DropDown arrow and
18960 fix DropDown drawing operations.
18962 2006-11-20 Chris Toshok <toshok@ximian.com>
18964 * NativeWindow.cs: fix the formatting of functions ('{' on the
18965 following line), and enable the thread exception dialog.
18967 * Application.cs: remove the duplicate exception catching from
18970 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18972 * Toolbar.cs: Triggers button click event when click on icon
18973 of dropdown ToolBarButton. Fixes #79912.
18975 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18978 * ThemeWin32Classic.cs:
18979 - Added a property WindowBorderFont to enable themeing
18980 of mdi child windows' Text.
18982 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18984 * InternalWindowManager.cs:
18987 * MdiWindowManager.cs:
18988 - If mdi child is maximized, set mdi parent's
18989 text to "Parent - [Child]". Fixes #79770.
18990 - If there is any maximized mdi child windows, only the active
18991 window (and any new windows) is maximized, the rest are normal.
18992 - On a WindowState change only save mdi child's window bounds
18993 if the old window state was normal. Fixes #79774.
18994 - The scroll bars are now calculated on hopefully all
18995 necessary events. Fixed #79771 / #79844->6 / #79906.
18996 - MdiClient.SizeScrollBars() now takes into account docked
18997 controls in the parent when calculating available space.
18998 - InternalWindowManager now always repaints the entire title
18999 area. Fixes #79844->1/4/5.
19000 - Added RequestNCRecalc on mdi child windowstate changes.
19003 2006-11-20 Mike Kestner <mkestner@novell.com>
19005 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
19006 in the MouseUp handler of the listbox and move the return handling
19007 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
19009 2006-11-20 Everaldo Canuto <everaldo@simios.org>
19011 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
19013 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19015 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
19016 working in 1.2.x anymore. So, updated.
19018 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
19020 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
19021 NumberGroupSeparator of current culture instead of assuming en-US.
19024 2006-11-17 Mike Kestner <mkestner@novell.com>
19026 * Control.cs: Add the concept of implicit bounds setting so that
19027 dock/undock round trips preserve explicitly set size/locations.
19030 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
19032 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
19033 can't handle those filters. (Fixes bug #79961)
19035 2006-11-17 Chris Toshok <toshok@ximian.com>
19037 [ fixes the exit/crashes associated with #79835. it's clearly
19038 suboptimal though, we need to figure out a better way to solve
19041 * PrintPreviewControl.cs: deal with the new invalid printer
19044 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
19045 and return false (so CommonDialog.ShowDialog doesn't actually show
19048 * PrintDialog.cs: enable/disable the Ok button depending on
19049 whether or not the printer is valid.
19051 * CommonDialog.cs (ShowDialog): only actually show the form if
19052 RunDialog returns true.
19054 2006-11-17 Jackson Harper <jackson@ximian.com>
19056 * TextControl.cs: When soft splitting a line, mark it as a soft
19057 split line. Also carry over the current line break to the next
19060 2006-11-17 Chris Toshok <toshok@ximian.com>
19062 * XplatUIX11.cs: when scrolling a window with an invalid area, we
19063 only want to shift the part of the invalid area that overlaps the
19064 area we're scrolling. we also don't want to clear the invalid
19065 area unless the invalid area was entirely contained within the
19068 2006-11-16 Chris Toshok <toshok@ximian.com>
19070 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
19071 also make sure to free the memory returned by XGetWindowProperty
19074 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
19076 2006-11-16 Chris Toshok <toshok@ximian.com>
19078 * XplatUI.cs: add a new super secret way to get at the totally
19079 unsupported X11 backend.
19081 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
19083 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
19085 2006-11-16 Jackson Harper <jackson@ximian.com>
19087 * TreeView.cs: Allow more explicit setting of top node position
19088 for scrollbars. Slower algo, but more accurate.
19089 - CollapseAll should maintain the current top node.
19090 * TextBoxBase.cs: When positioning the caret, use the line, pos
19091 method, since the x, y method does not grab the correct tag, and
19092 the caret height never gets set correctly. (Maybe I should just do
19093 away with the caret having its own height, and always use the
19094 carets current tag for height).
19096 2006-11-16 Jonathan Pobst <monkey@jpobst.com
19098 [Fixes 79778, 79923]
19100 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
19101 Parent to the FosterParent instead.
19103 2006-11-16 Jackson Harper <jackson@ximian.com>
19105 * TreeView.cs: Need to recalc the topnode when we expand or
19106 collapse. The scrolling methods can't handle this on their own,
19107 since they use differences between the last scroll position, and
19108 those difference get completely messed up since we are expanding
19109 nodes. This problem should probably be fixed in the scrolling
19110 methods, so they can figure out exactly where they are, but this
19111 will slow things down a little.
19112 * ThemeWin32Classic.cs: Special case for groupboxes with empty
19113 strings, makes nunit-gui look a lot nicer.
19115 2006-11-16 Chris Toshok <toshok@ximian.com>
19117 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
19118 the broken multithreaded event handling we have in here. File
19119 this entry under "Why we should move to the new X11 backend".
19121 Any thread can make it into UpdateMessageQueue, which gets events
19122 from the X socket - some of which could belong to hwnds being
19123 managed by a different thread. We can also have multiple threads
19124 in UpdateMessageQueue at the same time, with each one reading from
19125 the X socket. This leads to many problems, with the following
19128 We can't use hwnd.Queue.Enqueue anywhere in here and must use
19131 The MotionNotify compression we do can't work across threads
19132 (without locking the entire queue, perhaps) since we call
19133 hwnd.Queue.Peek, so we just punt and don't compress motion events
19134 unless the owning thread is the one which got the X event.
19136 ConfigureNotify is another fun one, since it modifies the hwnd's
19137 bounds and then enqueues the event. We add a lock to Hwnd which
19138 is held when setting configure_pending to true (and enqueuing the
19141 There is a race wrt the wake socket. we need to make sure that
19142 only 1 thread is waiting on that socket, or else a thread could
19143 sleep waiting for data that never comes. It's difficult (but not
19144 impossible) to make happen, because it seems to require something
19145 like the following:
19147 1. Thread 1 polls on wake_receive
19149 2. poll returns saying there's data to be read on
19152 3. Thread 2 polls on wake_receive and immediately returns
19153 saying there's data to be read.
19155 4. Thread 2 reads the wakeup byte from wake_receive
19157 5. Thread 1 attempts to read the wakeup byte from
19160 6. Thread 2 exits (due to a form closing, perhaps).
19162 7. Thread 1 blocks forever.
19166 Fixing the Expose handling isn't done yet, and the races inherent
19167 in that piece of code are responsible for the drawing mistakes you
19168 see when generating expose events in a MT app (like NPlot). This
19169 one is the likely to be the hardest to bandaid, and it doesn't
19170 appear to cause anything but drawing problems. The other issues
19171 caused apps to exit or hang.
19173 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
19174 called from a different thread than the one that should be calling
19177 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
19179 2006-11-15 Chris Toshok <toshok@ximian.com>
19181 * Application.cs: null out the context's MainForm when we exit
19182 RunLoop. Fixes a newly checked in unit test as well as the last
19183 ODE from bug #79933.
19185 2006-11-15 Chris Toshok <toshok@ximian.com>
19187 * Form.cs (set_Owner): allow a null value so we can clear the
19189 (Dispose): set all our owned_form's Owner properties to null, and
19190 clear the owned_forms collection.
19191 (WM_CLOSE): clean up this a little bit.. still not right though.
19193 * ApplicationContext.cs: OnMainFormClosed should only call
19194 ExitThreadCore if the main form isn't recreating. Fixes unit
19197 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19201 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
19203 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19207 * Hwnd.cs: Add a flag to show a window, but not activate it, to
19208 keep popup window types from stealing focus from the main form
19211 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
19213 * MenuAPI.cs: Set above flag to true.
19215 2006-11-15 Chris Toshok <toshok@ximian.com>
19217 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
19218 the button being released is not in wParam.
19220 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
19222 * Form.cs: Add the released button to MouseEventArgs.Button
19223 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
19226 2006-11-15 Chris Toshok <toshok@ximian.com>
19228 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
19229 GetText(). untested because it's unused in our implementation.
19230 Control.Text always caches the text, even if
19231 ControlStyles.CacheText is not set.
19235 2006-11-15 Chris Toshok <toshok@ximian.com>
19239 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
19240 message. no hiding, no disposing.
19242 in the WM_CLOSE handler, hide the form if it's modal.
19244 2006-11-15 Chris Toshok <toshok@ximian.com>
19246 * XplatUIX11.cs: use AddExpose instead of sending a message.
19247 fixes textbox border drawing.
19249 2006-11-15 Chris Toshok <toshok@ximian.com>
19251 * PropertyGridView.cs: keep from crashing on mouse move/down when
19252 the property grid is empty.
19254 2006-11-14 Jackson Harper <jackson@ximian.com>
19256 * TextControl.cs: Make PageUp and PageDown more like the MS
19258 * TextBoxBase.cs: When we set the text property position the
19259 cursor at the beginning of the document.
19261 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19263 * Form.cs: if a mdi child's WindowState has changed
19264 before it's creation, it would display wrong control
19267 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
19269 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
19272 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
19274 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
19275 the window gets to paint its borders even if the window is
19278 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
19279 otherwise the old control buttons would still be painted
19280 if the window gets bigger.
19282 * PaintEventArgs.cs: add an internal method so that the clip
19283 rectangle can be changed.
19285 2006-11-13 Chris Toshok <toshok@ximian.com>
19287 [ fixes bug #79745 ]
19289 * NotifyIcon.cs: lots of cleanup.
19291 * X11Structs.cs: add an enum for XEMBED messages.
19293 * XplatUIX11.cs: reindent one of the giant switch statements, it
19294 was taking up an additional tab stop, and this file is already way
19295 too wide for my laptop's screen.
19297 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
19298 we get it, resize the hwnd to the WMNormalHints max_width/height.
19300 2006-11-13 Jackson Harper <jackson@ximian.com>
19302 * TextBoxBase.cs: Compute the value changes for the mouse wheel
19305 2006-11-13 Chris Toshok <toshok@ximian.com>
19307 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
19308 #79898. force a reference to the Region to stick around so the
19309 unmanaged object isn't collected (rendering our handle in the MSG
19312 2006-11-13 Chris Toshok <toshok@ximian.com>
19314 * XplatUIX11.cs: fix #79917 for window managers which support
19316 using XStoreName on the raw utf8, and we need to convert to
19317 COMPOUND_TEXT if it's non-latin1.
19319 2006-11-13 Chris Toshok <toshok@ximian.com>
19321 * Form.cs (set_DialogResult): we need to set closing to false if
19322 we're setting our result to None. fixes bug #79908.
19324 2006-11-13 Jackson Harper <jackson@ximian.com>
19326 * TextControl.cs: When formatting text, compute the adjusted tag
19327 lengths correctly, using FindTag for the end tag instead of trying
19328 to figure it out outselves.
19329 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19330 the item, ItemHeight doesn't work, because trees with large
19331 imagelists use those for their height
19332 * TreeView.cs: ActualItemHeight factors in the image height
19333 - compute left edge of checkboxes correctly
19334 - when expanding/collapsing move the bottom down one pixel, so we
19335 aren't moving part of the node
19337 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19339 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19340 stack in PaintEventStart so that it won't get disposed by the gc
19341 before reaching PaintEventEnd.
19343 2006-11-13 Jackson Harper <jackson@ximian.com>
19345 * TextBoxBase.cs: Don't select the word if we are on a line with
19347 - We don't need to position the caret on mouse up, since the mouse
19348 move handler should be doing this
19349 - When double clicking a blank line, the caret is advanced to the
19352 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
19354 * TreeNodeCollection.cs: Avoid duplicating indexer code.
19356 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
19358 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19359 Fixes part of bug #79910.
19361 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
19363 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19364 (bug #79903). Some minor string updates to match ms.
19366 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19368 * FileDialog.cs: Don't add an extension if the filename
19369 already ends with that extension.
19371 2006-11-10 Jackson Harper <jackson@ximian.com>
19373 * TreeView.cs: Use the currently highlighted node for the
19374 BeforeSelect event.
19375 * TextBoxBase.cs: There is no need to expand selection on
19377 - CanUndo means 'is there any undo operations', not 'is undo
19378 allowed on this textcontrol. Fixed ClearUndo unit test.
19380 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
19382 * Button.cs: only perform click when button is Selectable (so as
19383 not to activate default buttons when they're disabled)
19385 * Control.cs: Rewrite of the SelectNextControl and related
19386 methods. HandleClick now selects next control if the current one
19389 * Form.cs: OnActivated selects next active control only if Load
19390 has already occurred. If Load hasn't run, there's no point in
19391 selecting here, Load might change the state of controls.
19393 * FocusTest.cs: Tests marked as working again for these fixes
19395 2006-11-10 Chris Toshok <toshok@ximian.com>
19397 * XplatUIX11.cs: a couple of fixes.
19399 - use XInternAtoms with almost all the atoms we need to register,
19400 instead of many, many calls to XInternAtom. should help a bit on
19401 startup time, at the expense of making the code look a little
19404 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19405 isn't reparented (which seems to be a clue that we're running fon
19406 compiz) and they have an Owner form. This fixes the tool windows
19407 in paint.net when running under compiz.
19409 - when setting the opacity of a window, support both the case
19410 where the window has been reparented and also when it hasn't been.
19411 Since compiz/beryl doesn't seem to reparent windows, and these are
19412 the only window managers which support translucency, I'm not sure
19413 why we need the hwnd.reparented case at all.. but leave it in.
19414 now we get translucent windows in paint.net under compiz/beryl.
19416 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19418 * FileDialog.cs: Always return the value for FilterIndex that
19419 was set. Internally convert it to values that make sense.
19421 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19423 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19425 2006-11-10 Everaldo Canuto <everaldo@simios.org>
19427 * Toolbar.cs: Change default value of DropDownArrows to true, the
19428 signature still using false to make it compatible with MS but the
19429 initial value is true. Fixes #79855.
19431 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
19433 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19434 only available on Linux.
19436 2006-11-09 Everaldo Canuto <everaldo@simios.org>
19438 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19439 reduce number of calls to redraw method during toolbar creation.
19441 2006-11-09 Mike Kestner <mkestner@novell.com>
19443 * ListView.cs : raise SelectedIndexChanged when an item is selected
19444 programmatically via the Item.Selected property. Gert's nice
19445 ListViewSelectedIndexChanged test fixture now runs clean.
19447 2006-11-09 Mike Kestner <mkestner@novell.com>
19449 * ListView.cs : raise SelectedIndexChanged when a selected item is
19450 removed from the item collection using Remove or RemoveAt.
19452 2006-11-09 Mike Kestner <mkestner@novell.com>
19454 * ListView.cs : raise SelectedIndexChanged once per selected item
19455 for compat with MS. Fixes #79849+.
19457 2006-11-09 Chris Toshok <toshok@ximian.com>
19459 * TabControl.cs: initialize row_count to 0, and set it to 1 when
19460 we need to (if we have any tab pages). Fixes unit test.
19462 2006-11-09 Chris Toshok <toshok@ximian.com>
19464 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19465 width is 0, not 3. Fixes a unit test.
19467 2006-11-09 Mike Kestner <mkestner@novell.com>
19469 * ListView.cs : use Implicit scrollbars so that focus isn't
19470 stolen from the listview when they are clicked. Fixes #79850.
19472 2006-11-09 Chris Toshok <toshok@ximian.com>
19474 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19475 have a root item. Fixes #79879.
19477 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
19481 - An ArgumentException is now thrown if a wrong filter
19482 is applied (matches ms). The previous filter doesn't change
19483 anymore if an exception is thrown.
19484 - Changing the FileName property also affects FileNames
19485 * ColorDialog.cs: The length of the CustomColors array is always
19486 16. It doesn't matter if we use a smaller array or null to update
19487 or change the custom colors property.
19488 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19489 for RootFolder if we get a undefined value.
19491 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19493 * StatusBarPanel.cs:
19494 - Width is set to MinWidth if Width is smaller than
19495 MinWidth. Fixes #79842.
19496 - MinWidth now always overrides Width (MSDN says MinWidth
19497 is set to Width when AutoSize = None, but they do not
19499 - Style has now the the correct default value.
19501 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
19504 - The control is completely invalidated on
19505 Got/LostFocus to draw the focus rectangle correctly.
19506 - When AutoSize then height is always 45 (width for
19507 vertical controls).
19509 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19510 on the mouse when moved and it doesn't move when grabbed
19511 until the mouse moves as well. Also fixed some wrong
19512 calculations when clicking on the thumb (control thought
19513 click was outside of thumb and didn't grab it).
19514 Fixes some of the issues in #79718.
19516 2006-11-08 Everaldo Canuto <everaldo@simios.org>
19518 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19520 2006-11-08 Chris Toshok <toshok@ximian.com>
19522 * PropertyGridView.cs: only call ToggleValue if the item is not
19525 2006-11-08 Jackson Harper <jackson@ximian.com>
19527 * TextBoxBase.cs: The RichTextBox and textbox have very different
19528 word selection methods. Implement the textbox's simple word
19529 selection here, and let the RichTextBox override and provide it's
19531 - Don't do extra selection on mouseup
19532 * RichTextBox.cs: Use the documents word selection algorithm, I
19533 think ideally, this function will be pulled into the
19534 RichTextBox.cs code someday.
19536 2006-11-08 Chris Toshok <toshok@ximian.com>
19538 * RootGridEntry.cs: new class to represent GridItemType.Root.
19540 * CategoryGridEntry.cs: reformat, and add boilerplate.
19542 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19543 returns the UI parent anyway, and we need special handling to
19544 implement the GetTarget method in the face of it. Also, implement
19547 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
19548 a root grid item, and use that instead of PropertyGrid.grid_items.
19549 Also, make use of TypeConverters (and add limitted support for
19550 ICustomTypeDescriptors) when initially populating the grid.
19551 Arrays now show up more or less properly.
19553 2006-11-08 Chris Toshok <toshok@ximian.com>
19555 * Application.cs: set the modal dialog to non modal after we close
19556 it. Fixes bug #79866.
19558 2006-11-08 Jackson Harper <jackson@ximian.com>
19560 * TextControl.cs: When combining lines carry over the line end
19561 style from the end line.
19562 - Invalidate the selected area when setting it, if it is visible.
19563 * TextBoxBase.cs: Only rich text box can do full line selects.
19564 - Make sure to set the cursor position when there is a click,
19565 otherwise two clicks in separate areas could cause a large chunk
19568 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19570 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
19573 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19575 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19576 time. Remove tooltips when ToolButton click events. Fixes #79856.
19578 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19580 * MenuAPI.cs: Ignore right click for menu actions and fixes
19581 menu border when clicked. Fixes #79846.
19583 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19585 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19586 MouseState after create wParam for message, this fixes mouse button
19587 equal none in mouse up events.
19589 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
19591 * Control.cs : Focus() now calls Select to set the Container's
19592 Active Control and to give it focus. To avoid infinite recursion
19593 (because ActiveControl also calls Focus at one point), a check
19594 is made in Focus with the help of a new internal variable
19597 2006-11-07 Mike Kestner <mkestner@novell.com>
19599 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19600 if there's a selection. Fixes #79849.
19602 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
19604 * PropertyGrid.cs: Avoid fixed height of help description label.
19605 Fixes part of bug #79829.
19607 2006-11-07 Chris Toshok <toshok@ximian.com>
19609 * XplatUIX11.cs: fix #79790 again, by using the
19610 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19612 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19614 * ToolBar.cs: Fix left click checking.
19616 2006-11-07 Chris Toshok <toshok@ximian.com>
19618 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
19620 2006-11-07 Chris Toshok <toshok@ximian.com>
19622 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
19623 PropertyManager unit tests.
19625 * PropertyManager.cs: make property_name internal.
19627 2006-11-07 Chris Toshok <toshok@ximian.com>
19629 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19630 pass a unit test. Also, don't set image_index to anything in
19631 response to setting the ImageList property.
19633 2006-11-07 Everaldo Canuto <everaldo@simios.org>
19635 * ToolBar.cs: Ignore click events when mouse button is not a
19636 left button, only accepts other button for dropdown menus.
19639 2006-11-07 Chris Toshok <toshok@ximian.com>
19641 * DataGrid.cs: make the back and parent row buttons a little less
19644 2006-11-07 Jackson Harper <jackson@ximian.com>
19646 * TextBoxBase.cs: When converting to Text don't put line breaks in
19647 for soft line breaks.
19648 * TextControl.cs: There is an initial "fake" line in the document,
19649 this is now a soft break line, so that an extra line feed doesn't
19650 get added to the end of documents.
19652 2006-11-07 Chris Toshok <toshok@ximian.com>
19656 * CurrencyManager.cs: if the list is readonly, don't bother
19657 checking if IBindingList.AllowNew is true.
19659 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19660 for non-DataRowView datasources.. or rather, make it not crash.
19661 (DataGridPaintRelationRow): make sure we limit the row painting to
19662 the area not covered by the row header, and make our cell width at
19663 least large enough to cover the relation area. This allows grids
19664 that have relations but no rows to render correctly.
19665 (DataGridPaintRowContents): same type of changes here.
19666 (SetDataSource): move back to always calling
19667 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
19668 navigating back through relations.
19669 (HitTest): handle the case where we have no cells but have
19670 relations. Right now we generate a hit in cell 0 of whatever the
19671 row is, not sure if this is strictly correct, but it works for our
19674 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19675 bother doing anything.
19677 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
19679 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19680 early version of StatusStrip. Not responsible for eaten
19681 application or firstborn children.
19683 2006-11-06 Chris Toshok <toshok@ximian.com>
19685 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19686 call GetTabRect with a -1 index. Fixes #79847.
19688 2006-11-06 Jackson Harper <jackson@ximian.com>
19690 * TreeNodeCollection.cs: Update scrollbars after clearing.
19692 2006-11-06 Chris Toshok <toshok@ximian.com>
19694 * NumericUpDown.cs: fix the ToString method for some unit test
19697 2006-11-06 Chris Toshok <toshok@ximian.com>
19700 - set the initial SelectedGridItem if we can.
19702 - Exclude non-mergable properties only if we're merging > 1
19703 object. Merging 1 object isn't really merging, obviously.
19705 - Handle PropertySort.NoSort just like Alphabetical, which is
19706 wrong of course, but at least gets things on the screen.
19708 * PropertyGridView.cs:
19709 - Add method "FindFirstItem" which finds the first property grid
19710 item, so we can select it by default.
19712 - make use of GridEntry.CanResetValue.
19714 - Don't call RedrawBelowItemOnExpansion here anymore, the
19715 individual GridEntry's will do that.
19717 - Remove the ITypeDescriptorContextImpl internal class.
19720 - this class needs to implement ITypeDescriptorContext, as it's
19721 what MS's PropertyDescriptorGridEntry does, which means we can
19722 remove the ITypeDescriptorContextImpl internal class from
19723 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
19725 - keep a reference to our PropertyGridView, and move the call to
19726 RedrawBelowItemOnExpansion here from PGV. This means
19727 programmaticly setting Expanded actually does something visible.
19729 - add a CanResetValue() function which takes into account our
19730 possibly multiple "selected_objects" in the merged case. Shifting
19731 PropertyGridView to use this method fixes another unreported
19732 crasher found running the test for #79829.
19734 - when Top or Bounds is updated, make sure the PropertyGridTextBox
19735 is updated to reflect this.
19737 * CategoryGridEntry.cs: the ctor takes the PGV now.
19739 2006-11-06 Jackson Harper <jackson@ximian.com>
19741 * TextControl.cs: These are 1 based.
19742 * TextBoxBase.cs: When setting the selected text, don't change the
19743 selected text tags, this is done by ReplaceText, just position the
19744 cursor at the end of the new text.
19746 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19748 * ListView.cs: Allow label edit only when, when LabelEdit is
19751 2006-11-06 Jackson Harper <jackson@ximian.com>
19753 * TextControl.cs: If a suitable wrapping position isn't found,
19754 just wrap right in the middle of a word.
19756 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
19758 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
19761 2006-11-06 Jackson Harper <jackson@ximian.com>
19763 * TreeView.cs: Can't use the VisibleCount property when setting
19764 scrollbar heights, because this doesn't take into account whether
19765 or not the horz scrollbar just came visible.
19767 2006-11-05 Everaldo Canuto <everaldo@simios.org>
19769 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
19770 activated. Fixes #79369, #79832.
19772 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
19774 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
19775 had to remove support for links that point to a directory. FileInfo
19776 returns no usefull information (means, the directory they point to)
19777 for such links. Replaced some empty string ("") with String.Empty.
19779 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19781 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
19782 NullReferenceException when attempting to remove node that is not in
19783 collection. Throw NullReferenceException when null is passed to
19784 Remove. Allow first element of the collection to be removed. Fixes
19785 bug #79831. In GetEnumerator ().Current return null if positioned
19786 before the first element of the collection. In GetEnumerator ().Reset,
19787 position before first element of the collection.
19789 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
19791 * PropertyGrid.cs: To match MS, remove default title and description
19792 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
19795 2006-11-04 Chris Toshok <toshok@ximian.com>
19797 * Theme.cs: add a Clamp method, just for kicks.
19799 * ThemeWin32Classic.cs: clamp all color components to [0..255].
19801 2006-11-04 Chris Toshok <toshok@ximian.com>
19803 * Form.cs: if the form isn't visible, Close() does nothing.
19805 2006-11-03 Chris Toshok <toshok@ximian.com>
19807 * Form.cs (Close): if the form is modal, don't Dispose of it, only
19809 (WndProc): don't Dispose after handling the WM_CLOSE message.
19811 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
19812 them as such, instead of using casts from Control to Form. Also,
19813 don't Dispose of the modal dialog when we fall out of the loop -
19814 Close() it instead.
19818 2006-11-03 Chris Toshok <toshok@ximian.com>
19820 * Control.cs (Dispose): only go through the dispose thing if we're
19821 @disposing, and we haven't already been disposed. Fixes bug
19824 * Form.cs: no reason to call "base.Dispose()" here instead of
19827 2006-11-03 Mike Kestner <mkestner@novell.com>
19829 * ComboBox.cs : use ToString instead of casts in AddItem for
19830 sorting functionality. Fixes #79812.
19832 2006-11-03 Chris Toshok <toshok@ximian.com>
19834 * Application.cs: pave the way for actually using the thread
19835 exception dialog. it's ifdefed out at the moment.
19837 2006-11-03 Chris Toshok <toshok@ximian.com>
19839 * ThreadExceptionDialog.cs: until we get a better layout, actually
19840 hide the details textbox and label when we shouldn't see them.
19842 2006-11-03 Jackson Harper <jackson@ximian.com>
19844 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
19845 multiline textboxes anymore. This method also determines the
19846 width/height of a textboxes canvas area.
19847 - Sorta a revert of the last patch. For multiline just position
19848 the controls, then bail. This way the scrollbar width won't be
19851 2006-11-03 Everaldo Canuto <everaldo@simios.org>
19853 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
19854 it dont need. Fixes #79537.
19856 2006-11-02 Jackson Harper <jackson@ximian.com>
19858 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
19859 send the status after firing the DndOver event.
19861 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
19863 * TrackBar.cs: Now orientation only switches height / width if
19864 the control's handle is created (Win32 does it like this). Also
19865 fixed a typo in ToString() for a test to pass, changed the
19866 exception thrown in set_LargeChange and set_SmallChange to
19867 match Win32 behaviour, and added TrackBar tests to the unit
19870 2006-11-02 Chris Toshok <toshok@ximian.com>
19872 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
19873 not _NET_WM_STATE_NO_TASKBAR.
19875 2006-11-02 Jackson Harper <jackson@ximian.com>
19877 * TextControl.cs: Increment count by one, since in the update view
19880 2006-11-02 Jackson Harper <jackson@ximian.com>
19882 * TextBoxBase.cs: Use client rectangle not bounds for checking if
19883 the mouse is in the client rectangle (duh).
19885 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
19887 * TrackBar.cs: Fixed trackbar jumping around when clicking
19888 on it - the trackbar was not detecting correctly at which
19889 side of the thumb the click was done. (fixes #79718)
19891 2006-11-02 Everaldo Canuto <everaldo@simios.org>
19893 * ListBox.cs: scroll visible area when change SelectedIndex to
19894 a non visible area. Fixes #79481.
19896 2006-11-01 Jackson Harper <jackson@ximian.com>
19898 * TextControl.cs: When replacing the selection move the selection
19899 start/end/anchor to the end of the new text.
19901 2006-11-01 Jackson Harper <jackson@ximian.com>
19903 * XplatUIWin32.cs: When setting the parent change the controls
19904 visibility to it's visibility flag, not to it's old parents
19905 visibility (.Visible walks the parent chain).
19907 2006-11-01 Chris Toshok <toshok@ximian.com>
19909 * XplatUIX11.cs: revert the #79790 fix, as the simple.
19910 XSetTransientForHint fix breaks paint .net's tool windows. more
19911 work needed for that one.
19913 2006-11-01 Chris Toshok <toshok@ximian.com>
19915 * ScrollBar.cs: throw ArgumentException instead of Exception in
19916 LargeChange/SmallChange setters. fixes unit tests.
19918 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
19920 * ContainerControl.cs: reverted rev.67183 (which was itself
19921 a reversion of rev.66853... eh).
19923 * Control.cs: Fixes Reflector hang by changing Focus() call
19924 to what it was before rev.66643 (calling Select() here sets
19925 ActiveControl, which in some situations calls back Focus and
19926 eventually does a stack overflow). Temp fix.
19927 Changes to GetNextControl() to not look for children to select when
19928 parent cannot be selectable (so it looks for siblings instead)
19930 2006-10-31 Mike Kestner <mkestner@novell.com>
19932 * CheckedListBox.cs : off by one error in returned index from
19933 ObjectCollection.Add. Fixes #79758.
19935 2006-10-31 Chris Toshok <toshok@ximian.com>
19937 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
19938 calls for the textbox/spinner, to keep from recursing to the point
19939 where we crash. Fixes #79760.
19941 2006-10-31 Chris Toshok <toshok@ximian.com>
19943 * ListControl.cs (set_SelectedValue): don't throw exceptions on
19944 null/"" value, just return. matches ms's behavior and fixes some
19947 2006-10-31 Chris Toshok <toshok@ximian.com>
19949 * Control.cs (set_Capture): make a logic a little easier to
19952 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
19953 if it's being destroyed. A necessary fix surely, but a bandaid
19954 also, to fix the stuck capture problem in bug #78413.
19956 2006-10-31 Chris Toshok <toshok@ximian.com>
19958 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
19959 convention of clearing hwnd.ClientRect when we set the
19960 width/height (so it'll be recalculated by Hwnd).
19962 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
19964 * ContainerControl.cs: reversed Contains check from
19965 ActiveControl due to hanging problems. This fix
19966 partly regresses #79667 (button does not have
19967 initial focus), so this might be a symptom for
19968 a larger parenting problem (set_ActiveControl
19969 is being called but the child control does
19970 not have the parent set yet?)
19972 2006-10-31 Mike Kestner <mkestner@novell.com>
19974 * MenuAPI.cs : fix keynav when menu is click activated.
19976 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
19978 * ToolStrip*: Version 0.2.
19980 * MenuStrip.cs: Version 0.1.
19982 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
19984 2006-10-30 Chris Toshok <toshok@ximian.com>
19986 [ fixes the oversized notify icon issue in bug #79745 ]
19988 * NotifyIcon.cs: scale the icon down to the size we're given by
19989 the XplatUI layer (this would be faster if we did it once instead
19990 of whenever we paint..) Also, remove the WM_NCPAINT handling,
19991 since it's never invoked.
19993 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
19994 pixels high by default, so let's hardcode our systray icon to that
19995 size. The SYSTEM_TRAY protocol should really have a way for
19996 client apps to query for the correct icon size.. but oh well. A
19997 couple of patches to deal with the screwy client_window ==
19998 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
19999 instance, and also make sure we don't XSelectInput twice).
20001 2006-10-30 Chris Toshok <toshok@ximian.com>
20003 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
20004 recreating forms. Control recreation is the bane of my existence.
20005 Fix it in a way that keeps everyone happy.
20007 2006-10-30 Chris Toshok <toshok@ximian.com>
20009 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
20010 just non-CHILD ones. otherwise sometimes scrollbars end up with
20011 client_windows not being resized to the proper size (ReportBuilder
20012 shows this extremely well).
20014 2006-10-30 Chris Toshok <toshok@ximian.com>
20016 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
20017 for non-WS_EX_APPWINDOW windows. This is what keeps them from
20018 showing up in the gnome taskbar. Fixes bug #79790.
20020 2006-10-30 Chris Toshok <toshok@ximian.com>
20022 * ApplicationContext.cs: guard against a NRE.
20024 * Application.cs: null out the old MainForm for the context, so we
20025 don't try to use it again once it's disposed. Fixes bug #79783.
20027 2006-10-30 Chris Toshok <toshok@ximian.com>
20029 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
20030 BindingContext, set the data source directly, otherwise do the
20031 lazy approach - the actual ListManager will be created when we get
20032 a BindingContext. Fixes bug #79700.
20034 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20036 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20037 XplatUIX11.cs: Remove old 2 parameter SetVisible.
20039 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
20041 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
20043 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
20044 of SetVisible that allows a window to be shown, but not activated.
20045 This is needed on Windows for MenuStrip, and can probably be used
20046 with MainMenu and ComboBox to fix the focus stealing issues on
20049 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
20051 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
20053 * PictureBox.cs: Fix the output of the ToString method.
20055 2006-10-29 Chris Toshok <toshok@ximian.com>
20057 * Control.cs (get_TopLevelControl): fix bug #79781.
20059 2006-10-29 Chris Toshok <toshok@ximian.com>
20061 * ListControl.cs (set_DataSource): throw Exception here, not
20062 ArgumentException, to match MS behavior.
20064 2006-10-29 Chris Toshok <toshok@ximian.com>
20066 * Form.cs: remove the try-catch's around calls to GetWindowState.
20067 We can just check the return value.
20069 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
20072 * XplatUI.cs: Add note about additional return value for
20075 2006-10-29 Chris Toshok <toshok@ximian.com>
20077 * Control.cs (CreateHandle): when we create our handle, we also
20078 create the handles of our child controls. Fixes one of the
20079 Control unit tests (CH11).
20081 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20083 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
20085 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
20087 * ThemeClearlooks.cs: A little speedup.
20089 2006-10-27 Chris Toshok <toshok@ximian.com>
20091 * Control.cs: implement Control.FromChildHandle in a way that
20092 matches the docs (and fixes the failed test.)
20094 2006-10-27 Chris Toshok <toshok@ximian.com>
20096 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
20099 * DataGrid.cs: implement ResetForeColor such that the tests
20102 2006-10-27 Chris Toshok <toshok@ximian.com>
20104 * ToolBarButton.cs: setting text/tooltiptext to null results in it
20105 being set to "". Fixes bug #79759.
20107 2006-10-27 Jackson Harper <jackson@ximian.com>
20109 * TextControl.cs: We need to clear the entire selection area when
20110 setting the start, otherwise multiline selections are still
20113 2006-10-26 Chris Toshok <toshok@ximian.com>
20115 * PropertyGridView.cs:
20117 - ifdef all the code specific to the double
20118 buffer case, and provide some alternatives in the non-doublebuffer
20119 code, which makes heavy use of XplatUI.ScrollWindow to move things
20120 around without having to invalidate (and cause flicker). There
20121 are still some drawing problems in the non-doublebuffered case, so
20122 DOUBLEBUFFER is defined by default.
20124 - Fix the way dropdowns are handled. now we explicitly watch for
20125 the events which might cause the dropdown to close, and break out
20126 of the nested event loop there. This gets rid of all Capture
20127 code, at the expense of the Msg special casing. Seems to work,
20128 though, and fixes bug #79743.
20130 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
20131 * Control.cs: SetIsRecreating now recreates implicitly added
20132 child controls as well. Finally fixes #79629. The flag passed to
20133 SetIsRecreating has also been removed since it wasn't used.
20135 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20137 * PageSetupDialog.cs: Clean some code, fix some bits,
20138 add some checks, and add a printer sub-dialog.
20140 2006-10-26 Chris Toshok <toshok@ximian.com>
20142 * PropertyGrid.cs: make set_SelectedObject call
20143 set_SelectedObjects, and move the duplicate logic to the
20144 SelectedObjects setter. Also, raise SelectedObjectsChanged.
20146 * PropertyGridView.cs: hide the textbox when we get a
20147 SelectedObjectsChanged event.
20151 2006-10-26 Chris Toshok <toshok@ximian.com>
20153 * PropertyGridView.cs: deal with the type converter not supporting
20154 GetStandardValues() or GetStandardValues() returning null, which
20155 is does in the default case. Fixes #79742.
20157 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20159 * CheckedListBox.cs: nunit no longer crashes when selecting
20160 Project/Edit menu option
20162 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
20164 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
20165 is no menu selected. fixes #79739
20167 2006-10-25 Chris Toshok <toshok@ximian.com>
20169 * PropertyGridView.cs: factor out the splitter invalidation code
20170 into the SplitterPercent setter, and for kicks implement the
20171 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
20172 amount in either direction.
20174 2006-10-25 Chris Toshok <toshok@ximian.com>
20176 * PropertyGridView.cs: do some cleanup of the brush used to draw
20177 text - read only fields should be grayed out. not sure how to do
20178 this with the textbox, though. but the textbox's should also be
20179 readonly now at least. Also, hide/show the textbox when resizing
20182 * CursorConverter.cs: use System.Reflection when getting the
20183 properties of Cursors, as TypeDescriptor.GetProperties isn't
20184 returning static properties.
20186 2006-10-25 Chris Toshok <toshok@ximian.com>
20188 * PropertyGridView.cs: factor out the up/down handling, and reuse
20189 it for page up/down. also add End/Home support.
20191 2006-10-25 Chris Toshok <toshok@ximian.com>
20193 * PropertyGridView.cs:
20195 - ensure the selected grid item is visible in the scrolled area,
20198 - fix Keys.Down handling when you're on the last item in the
20201 2006-10-25 Mike Kestner <mkestner@novell.com>
20203 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
20204 clicks too. Fixes #79725.
20206 2006-10-24 Chris Toshok <toshok@ximian.com>
20208 * PropertyGrid.cs: use property.Converter instead of
20209 TypeDescriptor.GetConverter(property.PropertyType), so we catch
20210 TypeConverters declared on the property as well as on the
20211 PropertyType. Fixes bug #79678.
20213 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
20215 * MimeIcon.cs, Mime.cs:
20216 Fallback to the default platform handler if no shared mime info
20217 stuff exists (fixes #79693).
20219 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20220 * ContainerControl.cs: Incorrect contains check in ActiveControl
20221 from previous fix (duh).
20223 2006-10-20 Chris Toshok <toshok@ximian.com>
20225 * PropertyGridView.cs: the dropdown should be MIN(number of items
20226 in list, 15). Fixes #79551.
20228 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
20229 Fixes #79384, #79394, #79652, #79667
20232 - Modal windows are now destroyed in the proper order for windows
20234 * ContainerControl.cs:
20236 - ActiveControl setter has more conditions on when to return:
20237 - if we're reselecting the active control, but it actually
20238 didn't have focus (window hidden or some such), it runs
20239 - if the active control being selected doesn't actually
20240 exist in the container, it returns
20244 - The ShowDialog now gets the current form as the owner when
20245 invoking without parameters, and correctly activates the owner
20250 - MessageBox now catches the Escape key to exit
20252 2006-10-20 Chris Toshok <toshok@ximian.com>
20254 * PropertyGridView.cs: fix a number of issues (bug #78565, and
20255 most of bug #79676):
20257 - you can navigate around the property grid with the arrow keys.
20259 - the dropdown is sized properly when the pg has a vertical
20262 - fix the indentation for subentries, and properly select the
20265 - fix the gray bar's drawing (only draw it to the last element,
20266 not for the height of the control. Also make sure we draw that
20267 last horizontal grid line.
20269 - use the same mechanism the datagrid uses wrt the editing textbox
20270 when scrolling/resizing/etc. Namely, we hide it first, do the
20271 operation, then show it again (if it's still visible).
20273 - aggressively remove a lot of unnecessary refreshes (and also
20274 calls to Invalidate(). call more limited variants, and only redraw
20279 - when we're populating the merged collection, fill in the UI
20280 parent with either the passed in item, or the category item we
20283 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
20285 * GridItem.cs: drop some fully qualified names.
20287 * GridEntry.cs: add a "UIParent", which is basically the parent
20290 * GridItemCollection.cs: add an IndexOf method.
20292 2006-10-20 Mike Kestner <mkestner@novell.com>
20294 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
20295 a working win32 NC invalidation mechanism, we can't invalidate
20296 menus. [Fixes #79705]
20298 2006-10-20 Mike Kestner <mkestner@novell.com>
20300 * ListBox.cs : don't update the VScrollbar if the list is empty,
20301 just hide it. [Fixes #79692]
20303 2006-10-20 Jackson Harper <jackson@ximian.com>
20305 * RichTextBox.cs: Handle some special chars better, and don't skip
20306 the entire group when we encounter a special char that we don't
20309 2006-10-18 Chris Toshok <toshok@ximian.com>
20311 * PropertyGridView.cs: address a number of issues from bug #79676,
20312 mostly of the cosmetic variety.
20314 - The highlight rectangle for indented items not extends all the
20317 - Indented items aren't indented so much.
20319 - the dropdown is properly sized width-wise if the pg has a
20320 vertical scrollbar.
20322 2006-10-18 Chris Toshok <toshok@ximian.com>
20324 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20325 systray stuff is rather convoluted to begin with.
20327 systray icons are a single window for some reason (that I haven't
20328 figured out yet), and for them, client_window == whole_window.
20329 Given the way the tests are structured elsewhere to determine
20330 which paints are pending (client vs. nc), that situation will
20331 always yield PAINT, not NCPAINT. So, if we have a pending
20332 nc_expose and no pending expose, remove the hwnd from the paint
20333 queue, and also set nc_expose_pending to false, to keep us from
20334 blocking further expose's adding the hwnd to the paint queue.
20336 phew. like i said, a rather convoluted change. Fixes the
20337 notifyicon repaint issues in bug #79645.
20339 2006-10-18 Chris Toshok <toshok@ximian.com>
20341 * Form.cs: when getting the backcolor of the form, don't get
20342 base.BackColor, as this allows parents to influence the background
20343 color. This breaks mdi forms. Instead, if the background_color
20344 is empty, return the default.
20346 2006-10-18 Chris Toshok <toshok@ximian.com>
20348 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20349 to being private instead of internal static.
20351 * Control.cs: remove all the stupid ParentWaitingOnRecreation
20352 crap, it wasn't working for more deeply nested controls anyway,
20353 and we already have the is_recreating flag - use that instead.
20354 Before calling DestroyHandle in RecreateHandle, recurse through
20355 the control tree setting it to true. this returns the recreate
20356 code to much of its original simplicity, while now guaranteeing we
20357 actually recreate everything we're supposed to. This change gets
20358 fyireporting actually showing mdi children.
20360 2006-10-17 Chris Toshok <toshok@ximian.com>
20362 * Form.cs: remove some debug spew, and collapse some duplicate
20363 code at the end of SetClientSizeCore.
20366 - add some more debug spew here too wrt Destroy handling.
20367 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20368 in Control's handling of WM_DESTROY.
20369 - Remove the handling of zombie window DestroyNotifies from the
20370 event loop - we don't need it. Now the only DestroyNotifies we
20371 actually handle are ones generated by X.
20372 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20373 match gtk's (functioning) handling of this. This keep metacity
20374 from leaving droppings in the form of wm borders with no window
20375 contents all over the place.
20378 - add a bunch of debug spew wrt control recreation.
20379 - fix a bug where we weren't tracking Visible properly on
20381 - fixed the WM_PAINT double buffer handling to support re-entrant
20382 calls (yes, i know it's gross, but it's happening to us).
20384 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20385 * ThemeWin32Classic.cs: changed drawing of selected days
20386 to make them look better.
20388 2006-10-16 Chris Toshok <toshok@ximian.com>
20390 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20391 drawing_stack. Nuke the ClientDC/NonClientDC properties.
20393 * XplatUIX11.cs: move away from using hwnd.client_dc and
20394 hwnd.non_client_dc and on to a stack of dc's (and in window's
20395 case, PAINTSTRUCT's), so we can deal with nested Paint calls
20396 without puking or not disposing of Graphics objects.
20398 * XplatUIOSX.cs: same.
20400 * XplatUIWin32.cs: same.
20402 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20404 * FileDialog.cs: Don't call on_directory_changed inside
20405 OnSelectedIndexChanged (it changes the SelectedIndex too).
20406 Instead move it to OnSelectionChangeCommitted.
20408 2006-10-13 Chris Toshok <toshok@ximian.com>
20410 * XplatUIX11.cs: more Destroy work. the current code does the
20411 following things, in order:
20413 1. Enumerates all handles of all controls at or below the one
20414 being destroyed, in pre-order. As it is doing this, it marks the
20415 handles as zombie and clears all references to them.
20417 2. calls XDestroyWindow on the window passed in.
20419 3. SendMessage's WM_DESTROY to all he handles in the accumulated
20422 2006-10-13 Chris Toshok <toshok@ximian.com>
20424 * XplatUIX11.cs: set hwnd.zombie to true before calling
20425 SendMessage (WM_DESTROY). this keeps us from marking the new
20426 window a zombie, and also keeps us from calling sendmessage at
20429 2006-10-13 Jackson Harper <jackson@ximian.com>
20431 * TextControl.cs: Do not show the caret and selection at the same
20432 time. Reduces ugliness by 35%.
20434 2006-10-13 Chris Toshok <toshok@ximian.com>
20436 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20437 zombie after we do the recursive call, so we actually do call
20438 SendMessage on the children controls.
20439 (GetMessage): if we find a pending paint event for a zombie hwnd,
20440 remove the hwnd from the paint queue, or else it will always be
20441 there (and we'll effectively loop infinitely)
20443 2006-10-13 Mike Kestner <mkestner@novell.com>
20445 * MenuItem.cs : add Selected format under keynav too.
20448 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
20450 * PropertyGrid.cs: Fixed some NRE's and small difference between our
20451 implementation and that of MS.
20453 2006-10-13 Chris Toshok <toshok@ximian.com>
20455 * Control.cs (OnInvalidated) only futz with the invalid_region if
20456 the control is double buffered. this fixes the apparent hang in
20457 the ListView unit tests. Someone needs to make the
20458 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20460 2006-10-13 Chris Toshok <toshok@ximian.com>
20462 * PropertyGridView.cs:
20464 - do a little refactoring so that only one place calls
20465 dropdown_form.Hide, and that is CloseDropDown. make everywhere
20466 else call that. Also make it Refresh, since there are redraw bugs
20467 otherwise (we should take a look at that...)
20469 - do a little more refactoring work to share the body of code
20470 involved with the drop down. it was duplicated in the code
20471 dealing with the listbox handling and in the code dealing with the
20474 - add a Capture to the dropdown form's control once it's
20475 displayed, and add a MouseDown handler that checks to make sure
20476 the position is inside the control. If it's not, close the
20477 dropdown. This fixes #78190.
20479 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20480 if the value is different than the initial value.
20482 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
20484 * Control.cs: see #78650
20485 - Fixed GetNextControl for several cases:
20486 - Changed FindFlatForward to return
20487 correct sibling control when more than one
20488 control has same TabIndex as the currently
20490 - Changed FindFlatBackward to loop children
20491 from last to first and apply same logic as in
20493 - Changed FindControlForward to search for
20494 children when control is not a container
20495 but has children, or search for siblings if
20496 control is a container...
20497 - Changed FindControlBackward to continue
20498 searching for child controls when hitting
20501 - Fixed Focus method to update ActiveControl
20502 (FocusTest.FocusSetsActive failure)
20505 - Focus rectangle now refreshes when gaining
20507 - Removed grab for Tab key on IsInputKey that
20508 was keeping tab navigation from working (#78650)
20510 2006-10-13 Chris Toshok <toshok@ximian.com>
20512 * PropertyGridView.cs:
20513 - Rewrite SetPropertyValue to loop over SelectedGridItem's
20516 - Deal with GridItem.Value == null a few places.
20519 - replace the PopulateGridItemCollection with a pair of methods
20520 which compute the intersection of all the properties in the
20521 SelectedObjects array. Fixes #79615.
20523 - Throw ArgumentException from set_SelectedObjects if there's a
20526 - Add GetTarget method which can be used to traverse up the
20527 GridItem.Parent chain. It depends on the assumption that
20528 selected_objects for different GridEntries are always in the same
20529 order (a safe assumption). Use this method and loop over all the
20530 selected objects in the entry when calling RemoveValueChanged and
20533 * GridEntry.cs: Make this handle multiple selected objects.
20534 .Value returns null if not all the selected objects share the same
20537 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
20538 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20539 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20540 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20541 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20542 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20543 add additional functionality.
20545 2006-10-12 Mike Kestner <mkestner@novell.com>
20547 * ErrorProvider.cs : new ToolTipWindow ctor sig.
20548 * HelpProvider.cs : new ToolTipWindow ctor sig.
20549 * ToolTip.cs : remove ToolTip param from Window sig since it is
20551 * ToolBar.cs : add tooltip support. Fixes #79565.
20553 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20555 * ComboBox.cs: move the events in set_SelectedIndex to
20556 after the call to HighlightIndex in order to avoid
20557 possible recursion and subsequent problems with the call
20558 to HighlightIndex and include a range check in
20559 set_HighlightIndex. Fixes #79588
20561 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20563 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
20564 to ui thread's settings instead of sunday.
20565 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20567 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
20569 * DateTimePicker.cs
20571 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20572 and implement missing functionality (selecting different parts
20573 of the date and edit them individually with the keyboard).
20575 2006-10-11 Chris Toshok <toshok@ximian.com>
20577 * Control.cs (OnInvalidated): fix NRE relating to last change.
20579 2006-10-11 Chris Toshok <toshok@ximian.com>
20581 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20582 atoms in _NET_WM_STATE here if the window is maximized. We need
20583 to do this because we're *replacing* the existing _NET_WM_STATE
20584 property, so those atoms will be lost otherwise, and any further
20585 call to GetWindowState will return Normal for a window which is
20586 actually maximized. Fixes #79338.
20588 2006-10-11 Jackson Harper <jackson@ximian.com>
20590 * TextControl.cs: Special case for setting selection end to
20591 selection start, we basically kill the anchor.
20592 - some todo comments.
20594 2006-10-11 Chris Toshok <toshok@ximian.com>
20596 * Control.cs: switch to using an "invalid_region" to track which
20597 parts of the image buffer need updating. This is more code than
20598 the simple fix from r66532. That version just attempted to always
20599 fill the entire buffer on redraw, which turns out to be
20600 inefficient when invalidating small rectangles. This version
20601 simply adds the invalid rectangle to the invalid region. When we
20602 get any WM_PAINT message we see if it can be filled using the
20603 image buffer, and if it can't (if the paint event's clip rectangle
20604 is visible in the invalid region) we first fill the image buffer.
20605 So, the image buffer is still a cache, we just fill it lazily.
20607 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20608 need it any longer.
20610 2006-10-11 Chris Toshok <toshok@ximian.com>
20612 * XplatUIX11.cs (SetWindowPos): we need to update both position as
20613 well as size after calling XMoveResizeWindow. This keeps us from
20614 ignoring future SetWindowPos calls. Fixes the disappearing
20615 DateTimePicker in the ToolBarDockExample from bug #72499.
20617 2006-10-11 Chris Toshok <toshok@ximian.com>
20619 * TextBoxBase.cs: reorder things a bit when it comes to
20620 resizing-causing-recalculation. we were recalculating the
20621 document when our position was changed, which shouldn't happen.
20622 We only care about size changes. Clear up some more redundant
20623 recalculation calls while I'm at it. This makes the toolbar dock
20624 example snappy when you're just dragging toolbars around (since it
20625 causes a relayout whenever you move one.)
20627 2006-10-11 Chris Toshok <toshok@ximian.com>
20629 * ToolBarButton.cs (get_Rectangle): this only returns
20630 Rectangle.Empty if Visible == false, or Parent == null.
20631 Parent.Visible doesn't matter.
20633 2006-10-10 Chris Toshok <toshok@ximian.com>
20635 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20636 by .net 1.1, so switch to an internal method instead.
20638 2006-10-10 Chris Toshok <toshok@ximian.com>
20640 * Control.cs (WM_PAINT): when a control is double buffered we draw
20641 initially to the ImageBuffer and then copy from there. But when a
20642 parent control which has child controls is double buffered, the
20643 initial drawing doesn't encompass the entire ClientRectangle of
20644 the parent control, so we end up with uninitialized bits (this is
20645 easily seen by dragging the top toolbar in
20646 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
20647 manually set the ClipRectangle of the paint_event (only the one we
20648 use to populate the ImageBuffer) to ClientRectangle. Fixes more
20649 of the nastiness in bug #72499.
20651 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20652 which we use in Control.cs's WM_PAINT handling.
20654 2006-10-10 Jackson Harper <jackson@ximian.com>
20656 * TextBoxBase.cs: Finish off the autoscrolling stuff.
20658 2006-10-10 Chris Toshok <toshok@ximian.com>
20660 * Cursor.cs: Apply a slightly different patch to the one suggested
20663 2006-10-10 Jackson Harper <jackson@ximian.com>
20665 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20666 not the parent form.
20667 * TextControl.cs: use difference in old line count vs new count to
20668 calculate how many lines were added, this takes into account soft
20669 line breaks properly.
20671 2006-10-10 Chris Toshok <toshok@ximian.com>
20673 * LinkLabel.cs: don't call MeasureCharacterRanges against a
20674 rectangle located at 0,0 and the size of the text. Use
20675 ClientRectangle instead. This fixes rendering of non-left aligned
20678 2006-10-10 Jackson Harper <jackson@ximian.com>
20680 * TextBoxBase.cs: When we set the selection start position the
20682 * TextControl.cs: Need to update the caret when we decrement it to
20684 - Make sure that the selection_visible flag gets reset to false if
20685 the selection isn't visible. Before this you could get it set to
20686 visible by changing the selection start, then changing the end to
20689 2006-10-09 Jackson Harper <jackson@ximian.com>
20691 * TreeView.cs: Don't update scrollbars when we aren't visible.
20692 * TreeNodeCollection.cs: Only need to update scrollbars if being
20693 added to an expanded visible node or the root node.
20695 2006-10-09 Chris Toshok <toshok@ximian.com>
20697 * XplatUIX11.cs (SendMessage): fix NRE.
20699 2006-10-09 Jackson Harper <jackson@ximian.com>
20701 * TextBoxBase.cs: Implement horizontal autoscrolling.
20702 * TextControl.cs: Add a movement types that allows moving forward
20703 and backwards without wrapping.
20705 2006-10-09 Mike Kestner <mkestner@novell.com>
20707 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20708 with focus "expansion" of labels. Fixes #79532 and then some.
20709 * ThemeWin32Classic.cs : add LineLimit to ListView label format
20712 2006-10-09 Jackson Harper <jackson@ximian.com>
20714 * TextBoxBase.cs: Set the default max values to MaxValue since
20715 we use the scrollbar for autoscrolling and the default value is
20716 100. If we don't do this the caret won't keep up with typing
20717 after about 18 characters.
20718 * TextControl.cs: Make sure the selection is offset by the
20719 viewport x. This fixes selection when using auto scrolling.
20721 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
20723 * Form.cs: The active control should be selected after the
20724 OnLoad so that any child control initialization that affects
20725 the selection is done. Fixes #79406
20727 2006-10-06 Chris Toshok <toshok@ximian.com>
20729 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
20730 to have no evil effects.
20732 - Stop selecting StructureNotifyMask on non-toplevel windows.
20734 The only way children should be resized is by using the SWF api,
20735 and we already send WM_WINDOWPOSCHANGED messages in those cases.
20736 Toplevel windows can be interacted with via the window manager,
20737 and so we keep the input mask there.
20739 The other event StructureNotifyMask gives us (that we care
20740 about) is DestroyNotify. The code is already structured such
20741 that it assumes we won't be getting a DestroyNotify event for
20742 the window we pass to XDestroyWindow (which is what
20743 StructureNotifyMask is supposed to guarantee.) So, that code
20744 shouldn't be affected by this either.
20746 - Stop selecting VisibilityChangeMask altogether.
20748 We weren't doing anything with the resulting events anyway.
20750 This vastly reduces the number of X requests and events we see
20751 when resizing/laying out a large ui.
20753 2006-10-06 Chris Toshok <toshok@ximian.com>
20755 * ScrollableControl.cs (DisplayRectangle): we need to take into
20756 account the DockPadding regardless of whether or not auto_scroll
20757 == true. rework this slightly to this effect, and fix bug #79606,
20758 and part of #72499 (you can now see the drag handles and drag
20761 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
20763 * ListViewItem.cs: Collections of selected and checked items are now
20764 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
20765 we mark the collection "dirty".
20766 * ListView.cs: Marked collections readonly. Modified UpdateSelection
20767 to only clear SelectedItems when a new item is selected and MultiSelect
20768 is enabled. CheckedItems and SelectedItems now subscribe to Changed
20769 event of ListViewItemCollection, and mark its list dirty whenever
20770 that event is fire. This allows us to return selected/checked items
20771 in the same order as they are in the Items collection. This matches
20774 2006-10-06 Chris Toshok <toshok@ximian.com>
20776 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
20777 right mouse clicks. Fixes bug #79593.
20779 2006-10-06 Chris Toshok <toshok@ximian.com>
20781 * Splitter.cs: doh, fix splitters that don't want to cancel the
20782 movement when you drag them. Also, impose the limits on the
20783 values we send to the SplitterMovingEvent. Fixes #79598.
20785 2006-10-06 Jackson Harper <jackson@ximian.com>
20787 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
20788 since we use this for auto scrolling also.
20790 2006-10-05 Chris Toshok <toshok@ximian.com>
20792 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
20793 beginning to think that most datagrid column types don't need this
20794 method. Fixes bug #79392.
20796 2006-10-05 Chris Toshok <toshok@ximian.com>
20798 * DataGrid.cs: move back to a more lazy scheme for creating the
20799 CurrencyManager, so we aren't updating it every time you set
20800 either DataSource or DataMember. Also, don't call
20801 RecreateDataGridRows if the currency manager hasn't changed.
20803 2006-10-05 Chris Toshok <toshok@ximian.com>
20805 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
20806 emitted, SelectedIndex should already be updated. Fixes bug
20809 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
20811 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
20812 ToolStripTextBox.cs: Initial commit.
20813 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
20815 2006-10-05 Jackson Harper <jackson@ximian.com>
20817 * TabControl.cs: We need to invalidate the tab control area when
20818 new ones are added (duh).
20820 2006-10-03 Chris Toshok <toshok@ximian.com>
20822 * Form.cs (ProcessDialogKey): if the focused control is in this
20823 form and is a button, call its PerformClick method here. Fixes
20826 2006-10-04 Jackson Harper <jackson@ximian.com>
20828 * TabPage.cs: Ignore setting of Visible, and add an internal
20829 method for setting the controls visibility. TabPage's Visible
20830 property is a little strange on MS, this seems to make us
20831 compatible, and fixes cases where people set all the tab pages to
20833 * TabControl.cs: Use the new internal setting on tab pages
20836 2006-10-03 Mike Kestner <mkestner@novell.com>
20838 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
20840 2006-10-03 Mike Kestner <mkestner@novell.com>
20842 * ListView.cs : use is_visible instead of Visible to check if
20843 scrollbars should be placed/sized. Also some max_wrap_width
20844 love for LargeIcon view. [Fixes #79533]
20846 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
20849 Make set_TextAlign() do actually update the align. Fixed #78403.
20851 2006-10-03 Chris Toshok <toshok@ximian.com>
20853 * DataGrid.cs: fix a crash when switching datasources if the
20854 vertical scrollbar is at someplace other than Value = 0. Also,
20855 reduce the number of recalculation passes we do in SetDataSource
20858 2006-10-03 Jackson Harper <jackson@ximian.com>
20860 * TextBoxBase.cs: Move the if value the same bail check up, we
20861 don't want to empty the document if it is already empty, this
20862 seems to severly mess up the caret. TODO: I should probably fix
20863 the empty statement to update teh caret somehow.
20865 2006-10-03 Chris Toshok <toshok@ximian.com>
20867 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
20868 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
20869 reflection, an internal row type, properties on said type, etc.)
20870 will work with our datagrid. Fixes #79531.
20872 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
20874 * FileDialog.cs: Don't crash if a path is not accessible
20875 (System.UnauthorizedAccessException). Fixes #79569.
20876 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
20877 a ':' too. Return unknown icon for those paths/files.
20879 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
20881 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
20882 GetContainerControl returns null.
20884 2006-10-02 Chris Toshok <toshok@ximian.com>
20886 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
20887 call to XGetWindowAttributes instead of "handle". fixes an X
20888 error using notifyicon after the NotifyIconWindow to Form base
20891 2006-10-02 Chris Toshok <toshok@ximian.com>
20893 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
20894 server grab and looping we need to do to get down to the most
20895 deeply nested child window.
20896 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
20897 QueryPointer again after the WarpPointer so we can generate a
20898 proper (fake) MotionNotify event to be enqueued in the destination
20900 (GetCursorPos): call QueryPointer.
20904 2006-10-02 Jackson Harper <jackson@ximian.com>
20906 * NotifyIcon.cs: Derive the notify icon from a form, so things
20907 like FindForm work on it.
20908 - Swallow the WM_CONTEXTMENU message, since that is generated on
20909 mouse down, and context menu is a mouse up kinda guy. I believe
20910 the correct fix here is probably to make the notify icon entirely
20911 NC area, but this seems to work fine for anyone not manipulating
20914 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
20916 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
20917 ToolStripItemCollection.cs, ToolStripLabel.cs,
20918 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
20919 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
20920 Initial implementation.
20921 * TextRenderer.cs: Provide padding to MeasureText.
20923 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
20925 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
20926 of ButtonBaseAccessibleObject. Fix bug #79552.
20928 2006-10-02 Jackson Harper <jackson@ximian.com>
20930 * MdiWindowManager.cs: When maximizing use the containers client
20931 rect, not it's bounds, so nc area is accounted correctly.
20932 - Use the parent form's size for the menu position, since the
20933 client isn't always the full form size.
20935 2006-10-01 Chris Toshok <toshok@ximian.com>
20937 * ScrollableControl.cs: make sure neither right_edge or
20938 bottom_edge are < 0, since they're used as LargeChange for the
20939 horiz/vert scrollbars respectively. Fixes #79539.
20941 2006-10-01 Chris Toshok <toshok@ximian.com>
20943 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
20944 the xplatuix11 code can cause us to destroy/recreate our handle.
20948 - this code can be invoked many times for the same Hwnd. Make
20949 sure we only destroy the client window once (the first time this
20950 method is called). This fixes bug #79544.
20951 - Remove the call to the improperly bound XSync. why we had two
20952 bindings to this, I will never know, but this call resulted in
20953 events being discarded from the queue(!).
20954 - correct a misunderstanding of _XEMBED_INFO - the second atom is
20955 not our current state but the state we wish to be in. So, 0 if
20956 we don't want to be mapped. Change it to 1.
20957 (SystrayRemove): The XEMBED spec makes mention of the fact that
20958 gtk doesn't support the reparent of client windows away from the
20959 embedder. Looking at gtksocket-x11.c seems to agree with this.
20960 The only avenue we have for removing systray icons is to destroy
20961 them. We don't want the handle to go away for good, though, so
20962 call InternalRecreateHandle on the NotifyIconWindow. Fixes
20965 2006-10-01 Chris Toshok <toshok@ximian.com>
20967 * Form.cs (WndProc): inline the native_enabled variable usage into
20968 the cases in which it's used. Fixes #79536.
20970 2006-09-29 Mike Kestner <mkestner@novell.com>
20972 * ListView.cs : toggle the selection state for ctrl clicks in
20973 multiselect mode. [Fixes #79417]
20975 2006-09-29 Mike Kestner <mkestner@novell.com>
20977 * ListView.cs : kill CanMultiSelect and refactor the selection
20978 code to support multiselection in the absence of mod keys. Steal
20979 arrow/home/end keys by overriding InternalPreProcessMessage to
20980 restore regressed keynav behavior.
20983 2006-09-29 Jackson Harper <jackson@ximian.com>
20985 * MdiClient.cs: Repaint the titlebars when the active window is
20988 2006-09-29 Chris Toshok <toshok@ximian.com>
20990 * Application.cs: when entering a runloop with a modal, make sure
20991 the hwnd is enabled. Fixes #79480.
20993 2006-09-29 Chris Toshok <toshok@ximian.com>
20995 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
20996 when ListManager.CanAddRows == false, bump us back one.
20998 * DataGridColumnStyle.cs (ParentReadOnly): remove the
20999 listmanager.CanAddRows check. This makes ArrayLists uneditable
21000 using a datagrid, which is not right.
21001 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
21002 is an IEditable, but call property_descriptor.SetValue regardless.
21005 2006-09-29 Chris Toshok <toshok@ximian.com>
21007 * DataGridBoolColumn.cs: we need to test equality in the face of
21008 possible null values (as is the case with the default NullValue).
21009 This patch keeps us from crashing in that case.
21011 2006-09-29 Jackson Harper <jackson@ximian.com>
21013 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
21014 here, since it will get called for every node collection in the
21015 tree. This is now done in the treeview once the sorting is
21017 * TreeView.cs: Recalculate the visible order, and update the
21018 scrollbars after sorting, set the top nope to the root so that the
21019 recalc actually works.
21021 2006-09-29 Chris Toshok <toshok@ximian.com>
21023 * LinkLabel.cs: more handling of the default link collection in
21024 the face of LinkArea manipulation. The default link collection
21025 contains 1 element (start=0,length=-1). If the user sets LinkArea
21026 to anything and the links collection is the default, clear it.
21027 Then only add the link if its nonempty. Fixes #79518.
21029 2006-09-29 Chris Toshok <toshok@ximian.com>
21031 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
21032 piece correctly when we hit a '\n'. Fixes #79517.
21034 2006-09-29 Chris Toshok <toshok@ximian.com>
21036 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
21037 change the binding of gdk_init_check to take two IntPtr's, and
21038 pass IntPtr.Zero for both of them. Fixes #79520.
21040 2006-09-29 Mike Kestner <mkestner@novell.com>
21042 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
21045 2006-09-28 Jackson Harper <jackson@ximian.com>
21047 * XplatUIX11.cs: When translating NC messages make sure we go from
21048 whole window to screen, not client window to screen.
21049 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
21050 method doesn't exist
21051 - Skip over controls that aren't forms when arranging.
21053 2006-09-28 Jackson Harper <jackson@ximian.com>
21055 * XplatUIWin32.cs: Clip the rect to the parent window.
21056 * XplatUIStructs.cs: Add clipping modes struct.
21057 * InternalWindowManager.cs: New private method that factors title
21058 bar heights in when calculating the pos of an NC mouse message.
21059 - Use SendMessage to force a paint when the form's size is changed
21060 instead of painting the decorations immediately.
21061 - Don't let the NC button click messages get to DefWndProc,
21062 because they will attempt to handle windowing themself, and this
21063 messes up z-order (it will put them in front of the scrollbars).
21064 * XplatUIX11.cs: Make sure that we don't reset window managers if
21065 we already have one (ie the window is an MDI window).
21067 2006-09-28 Chris Toshok <toshok@ximian.com>
21069 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
21070 menu code really needs going over.
21072 2006-09-27 Chris Toshok <toshok@ximian.com>
21074 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
21075 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
21076 window is maximizable. So, we need to make sure that even if we
21077 clear the border/wm frame of those functions, they're still
21078 available (basically, we remove the decoration without removing
21079 the function). Half the fix for #79338.
21081 2006-09-27 Chris Toshok <toshok@ximian.com>
21083 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
21086 2006-09-27 Chris Toshok <toshok@ximian.com>
21088 * Splitter.cs: reorder things a bit so that we don't actually
21089 draw/move the splitter until after calling OnSplitterMoving. This
21090 lets users cancel/disallow the movement by explicitly setting
21091 event.SplitX/SplitY. Fixes #79372.
21093 2006-09-27 Jackson Harper <jackson@ximian.com>
21095 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
21096 because it is most likely on a window being destroyed, and that
21097 will give us an X11 error.
21099 2006-09-27 Chris Toshok <toshok@ximian.com>
21101 * PropertyGridView.cs: half of the fix for #78190. Clicking on
21102 the dropdown button now toggles between showing and hiding the
21103 dropdown. Also, get rid of dropdown_form_showing and just use
21104 dropdown_form.Visible. We still don't do a grab, but I'll leave
21105 that part to someone who has handled Capture-fu before.
21107 2006-09-27 Chris Toshok <toshok@ximian.com>
21109 * DataGrid.cs: return false if alt isn't pressed when '0' is
21110 pressed. this keeps the '0' key from being swallowed, and fixes
21113 2006-09-27 Chris Toshok <toshok@ximian.com>
21115 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
21116 Calling Refresh (in response to a scrollbar event) screws up the
21117 scrollbar painting. Fixes bug #78923.
21119 2006-09-27 Chris Toshok <toshok@ximian.com>
21121 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
21122 then insert into hashtable" blocks threadsafe.
21124 2006-09-27 Chris Toshok <toshok@ximian.com>
21126 * MessageBox.cs (CreateParams): the styles should be |'ed with our
21127 baseclass's, since otherwise the
21128 ControlBox/MinimizeBox/MaximizeBox assignments above have no
21129 effect. This gets the close button back in messageboxes.
21131 2006-09-27 Chris Toshok <toshok@ximian.com>
21133 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
21134 flag, not just != 0. this makes flags that are actually multiple
21135 bits (like WS_CAPTION) work. fixes bug #79508.
21137 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
21139 * PageSetupDialog.cs: add support for getting and settings the
21140 paper size, source and orientation.
21142 2006-09-26 Chris Toshok <toshok@ximian.com>
21144 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
21145 and caption == "", we need to remove the resize handles as well as
21148 * Control.cs (set_Text): turns out that setting Text on a form
21149 should change the WM styles on the window, since if ControlBox ==
21150 false, the only way to get a window border is to have a non-""
21151 Text property. check winforms/forms/text.cs for an example. so,
21152 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
21153 update both window styles and title. This fixes a lot of dialogs
21154 (including the preferences dialog in MonoCalendar.)
21156 2006-09-26 Chris Toshok <toshok@ximian.com>
21158 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
21159 control isn't a Form), call Win32ShowWindow to hide the window,
21160 but don't update the control Visible property. When we reparent
21161 back to a parent control, call SetVisible in order for the
21162 window's visibility to be reinstated.
21164 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
21167 * Control.cs (ControlCollection.Remove): remove that value.Hide()
21168 call for good, since it breaks MonoCalendar (and other things I'm
21169 sure.) Also, set all_controls to null *after* the owner calls,
21170 which end up regenerating it.
21171 (ChangeParent): allow new_parent to be == null, passing
21172 IntPtr.Zero down to XplatUI.
21174 this fixes #79294 the right way.
21176 2006-09-26 Mike Kestner <mkestner@novell.com>
21178 * GridEntry.cs : internal SetParent method.
21179 * PropertyGrid.cs : attach to property changed on the proper
21180 target if we have a hierarchical grid with subobjects. Setup
21181 GridItem.Parent for hierarchical items.
21182 * PropertyGridView.cs : Set value on the correct target for
21183 hierarchical grids. [Fixes #78903]
21185 2006-09-26 Chris Toshok <toshok@ximian.com>
21187 * Control.cs (ChildNeedsRecreating): this should return true if
21188 either we're being recreated and the child is in our list, or our
21189 parent is waiting for our recreation.
21191 2006-09-26 Chris Toshok <toshok@ximian.com>
21193 * Control.cs (ControlCollection.Remove): reinstate the
21194 value.Hide() call as suggested in bug #79294.
21196 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
21198 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
21199 coordinates (versus a relative move).
21201 2006-09-26 Chris Toshok <toshok@ximian.com>
21203 * Control.cs: rework child recreation a little bit. It turns out
21204 that we race between the DestroyNotify the WM_DESTROY message. If
21205 the parent gets its DestroyNotify before the child gets the
21206 WM_DESTROY message, the child ends up not recreating (since the
21207 parent finishes its recreation on DestroyNotify, and the child
21208 checks ParentIsRecreating.)
21210 So, instead we store off a list of all the child controls which
21211 need to be recreated when the parent control starts to recreate
21212 itself. Then, when child controls get their WM_DESTROY message we
21213 check to see if they're in the parent's pending recreation list,
21214 and if so, we recreate. This removes all dependency on ordering
21215 from the code and fixes the initial MonoCalendar upgrade dialog.
21217 2006-09-26 Jackson Harper <jackson@ximian.com>
21219 * TextControl.cs: Use the Line to get the length of the line,
21220 since soft line breaks can change the end line.
21222 2006-09-26 Chris Toshok <toshok@ximian.com>
21224 * Control.cs (ControlCollection.AddImplicit): don't add the
21225 control again if it's already in one of our lists. This keeps us
21226 from adding controls over and over again for comboboxes when their
21227 handle gets recreated (as the combobox adds implicit controls in
21228 OnHandleCreated). Fixes the X11 errors in bug #79480.
21230 2006-09-26 Jackson Harper <jackson@ximian.com>
21232 * TextControl.cs: When deleting characters make sure that any
21233 orphaned zero lengthed tags get deleted.
21234 - Fix ToString for zero lengthed tags.
21236 2006-09-25 Jackson Harper <jackson@ximian.com>
21238 * TextControl.cs: When getting a tag at the location there can be
21239 multiple tags at the same spot, these are 0-lengthed tags that
21240 appear when extra formatting has been stuck in a location. We
21241 need to pull out the last of these 0 lengthed tags.
21243 2006-09-25 Jackson Harper <jackson@ximian.com>
21245 * TextControl.cs: Fix print out in debug method.
21246 * TextBoxBase.cs: When text is set bail if we are setting to the
21249 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
21251 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
21252 It is now possible to change the selected index in a FontXXXListBox
21253 with the up and down arrow keys from the FontXXXTextBoxes.
21254 Also, send the FontXXXTextBox mouse wheel event to the corresponding
21255 FontXXXListBoxes to match ms.
21257 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
21259 * SystemInformation.cs: Return a clone of the theme's MenuFont because
21260 anyone can dispose it, anytime. All other properties returns enums,
21261 structs or basic types so they don't need such tricks.
21263 2006-09-22 Jackson Harper <jackson@ximian.com>
21270 * XplatUIDriver.cs: Update interface to add a primary selection
21271 flag, so the driver can use the primary selection buffer if
21273 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
21275 * RichTextBox.cs: We need to supply the data object to paste now
21276 (so we can choose to supply CLIPBOARD or PRIMARY).
21277 * TextBoxBase.cs: Supply data object to paste (see above).
21278 - Middle click uses the primary selection data object.
21280 2006-09-21 Chris Toshok <toshok@ximian.com>
21282 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
21283 of SetWMStyles. It's still a rat's nest and is largely
21284 order-dependent which I dislike immensely. This also fixes the X
21285 button disappearing from toplevel forms.
21287 2006-09-21 Mike Kestner <mkestner@novell.com>
21289 * ListBox.cs: move Jordi's click/dblclick raising code to the
21292 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
21294 * ListBox.cs: Fixes 79450
21296 2006-09-21 Mike Kestner <mkestner@novell.com>
21298 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
21299 to deal with people updating the TreeNodeCollection after the tree
21300 is disposed. "Fixes" 79330.
21302 2006-09-20 Jackson Harper <jackson@ximian.com>
21304 * TextControl.cs: Push the cursor record onto the undo stack
21305 before the delete action. This fixes 78651.
21307 2006-09-20 Jonathan Chambers <joncham@gmail.com>
21309 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21310 CreateParams. Fixes 79329.
21312 2006-09-19 Chris Toshok <toshok@ximian.com>
21314 * XplatUIX11.cs: a couple of blanket code massage passes to clean
21315 things up a bit. First, get rid of the NetAtoms array (and the NA
21316 enum), and just embed the atoms as static fields. Also, add a
21317 couple of functions (StyleSet and ExStyleSet) to clean up all the
21318 bitmask testing of styles.
21320 * X11Structs.cs: remove the NA enum, not needed anymore.
21322 2006-09-19 Chris Toshok <toshok@ximian.com>
21324 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21325 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
21326 added cleanup to get MessageBox titles appearing again, which were
21327 broken by my earlier fix for caption-less/ControlBox-less windows.
21329 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
21331 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21332 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21333 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21334 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21335 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21336 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21337 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21338 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21339 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21340 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21341 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21343 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21344 ToolStripButton.cs: Stubs needed for above.
21345 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21347 2006-09-15 Chris Toshok <toshok@ximian.com>
21350 - make the MessageQueues hashtable Synchronized.
21352 - SendMessage: if the Hwnd is owned by a different thread, use the
21353 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21354 thread. Fixes bug #79201.
21356 2006-09-15 Chris Toshok <toshok@ximian.com>
21358 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
21359 ControlBox == false, we disallow maximize/minimize/close. If the
21360 form Caption is "" we also disallow move (and get rid of the Title
21361 decoration). Unfortunately, regardless of how things are set,
21362 we're stuck with the Title and WM menu.
21364 2006-09-15 Chris Toshok <toshok@ximian.com>
21366 * Application.cs: add locking around the static message_filters
21367 ArrayList, part of #79196.
21369 2006-09-15 Chris Toshok <toshok@ximian.com>
21371 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21372 Form.ControlBox == false, the window has no titlebar nor resize
21373 handles. fixes bug #79368.
21375 2006-09-15 Chris Toshok <toshok@ximian.com>
21377 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21378 >= 0. Fixes bug #79370.
21380 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
21381 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21383 Add properties: LayoutEngine, Margin, DefaultMargin.
21384 Add method: GetPreferredSize.
21385 Move layout logic from PerformLayout to layout engines.
21387 2006-09-13 Chris Toshok <toshok@ximian.com>
21389 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
21390 fix for #79326 broke #78718, so this change addresses that.
21392 - in SendWMDestroyMessages remove the call to
21393 CleanupCachedWindows, since we might be recreating the control and
21394 need to maintain the references to right Hwnd handles. Also, set
21395 the zombie flag to true for each of the children in the hierarchy
21396 instead of calling hwnd.Dispose. This will cause GetMessage to
21397 ignore all events for the window except for DestroyNotify.
21399 - In GetMessage, ignore messages except for DestroyNotify for
21402 * Control.cs: revert the is_recreating fix from the last
21403 ChangeLog. It's definitely "right", but it breaks switching from
21404 an MDI form to a non-MDI form. Will need to revisit that.
21406 * Hwnd.cs: add a zombie flag, which means "the
21407 client_window/whole_window handles are invalid, but we're waiting
21408 for the DestroyNotify event to come in for them". Set the flag to
21409 false explicitly if setting WholeWindow/ClientWindow, and also
21412 2006-09-13 Chris Toshok <toshok@ximian.com>
21414 * XplatUIX11.cs: rework window destruction slightly.
21416 - when destroying the windows associated with a control, we don't
21417 need 2 separate XDestroyWindow calls. Just the one for the
21418 whole_window (or for client_window if whole_window is somehow
21419 IntPtr.Zero -- can this happen?) is enough.
21421 - reworked SendWMDestroyMessages slightly, so we always dispose
21422 the child control hwnd's after sending the messages.
21424 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21425 the two places it was used (one was even using hwnd.Handle and the
21426 other hwnd.client_window. ugh), adding another call in
21427 SendWMDestroyMessages. We need this new call because now the
21428 DestroyNotify events in the queue will be ignored for the child
21429 controls (as their hwnd's were disposed, and the window id's
21430 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21432 - this fixes bug #79326.
21434 2006-09-13 Chris Toshok <toshok@ximian.com>
21436 * Control.cs: don't always set is_recreating to false at the end
21437 of RecreateHandle, since sometimes we're not done (and won't be
21438 until WndProc handles the WM_DESTROY message). Also, set
21439 is_recreating to false in the WM_DESTROY handling code. Part of
21440 the fix for bug #79326.
21442 2006-09-13 Miguel de Icaza <miguel@novell.com>
21444 * X11DesktopColors.cs: Start the droppage of debugging messages.
21446 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21448 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
21450 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21452 2006-09-12 Chris Toshok <toshok@ximian.com>
21454 * DataGrid.cs (get_ListManager): if the list_manager is null, try
21455 to create it using SetDataSource. Fixes bug #79151.
21457 2006-09-11 Chris Toshok <toshok@ximian.com>
21459 * XEventQueue.cs: add a DispatchIdle property.
21461 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21462 either the queue is null, or the queue has DispatchIdle set to
21464 (DoEvents): set queue.DispatchIdle to false around the
21465 peek/translate/dispatch message loop in this method. This keeps
21466 Application.Doevents from emitting idle events. Part of the fix
21469 2006-09-11 Chris Toshok <toshok@ximian.com>
21471 * DataGrid.cs (set_DataSource): make this work for both the
21472 winforms/datagrid test and ReportBuilder. It seems as though when
21473 we've created a ListManager (or maybe it's if we have a
21474 BindingContext?), when we set the DataSource it clears the
21475 DataMember to "". otherwise we reuse the datamember. Fixes bug
21478 2006-09-11 Chris Toshok <toshok@ximian.com>
21480 * XplatUIX11.cs: deal with queue being null, which happens in all
21481 the Clipboard functions. Fixes one of the two problems mentioned
21484 2006-09-11 Chris Toshok <toshok@ximian.com>
21486 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21487 button on various spots (including outside the menu) works closer
21488 to MS, and doesn't crash. Fixes #79343.
21490 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
21492 * ListView.cs: Do not initialize item_sorter in init. To match MS,
21493 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21494 and the internal comparer is set. When a new ListViewItemSorter is set,
21495 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21496 was specified. No further processing is necessary if SortOrder is set
21497 to it's current value. If Sorting is modified to None, and View is
21498 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21499 (either custom or our internal ItemComparer) to null, on 1.0 profile
21500 only set item_sorter to null if its our internal IComparer. If Sorting
21501 is modified to Ascending or Descending, then use our internal IComparer
21502 if none is set, and if the current IComparer is our internal one then:
21503 on 2.0 profile always replace it with one for new Sorting, and on 1.0
21504 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21505 Enum.IsDefined to verify whether a valid View value is specified in
21506 its setter. Automatically sort listview items when listview is
21507 created. In Sort, do nothing if ListView is not yet created, or if
21508 no item_sorter is set (no Sorting was set, Sorting was explicitly set
21509 to None or ListViewItemSorter was set to null). Added Sort overload
21510 taking a bool to indicate whether the ListView should be redrawn when
21511 items are sorted (we use this in ListViewItemCollection to avoid double
21512 redraws). Modified our internal IComparer to take the sort order into
21513 account. In Add and AddRange methods of ListViewItemCollection, also
21514 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21515 view), but use overload with noredraw option to avoid double redraw.
21516 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21517 true when View is Tile, and do the same when attempting to set View to
21518 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21519 for selected/checked indices, as it involves overhead when sorting is
21520 done while these collections are not used all that often. Instead
21521 we'll build the indices on demand. Modified IList implementation of
21522 CheckedIndexCollection to use public methods if object is int.
21523 Modified CheckedListViewItemCollection to hide checked items if
21524 ListView.CheckBoxes is false. Removed LAMESPEC remark in
21525 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21526 IList implementation in SelectedIndexCollection to use public methods
21527 if object is int. Modified SelectedListViewItemCollection to hide
21528 selected items if listview is not yet created.
21529 * ListViewItem.cs: CheckedIndices list no longer needs to be
21530 maintained separately (see ListView changes). Also clone font, fixes
21533 2006-09-11 Mike Kestner <mkestner@novell.com>
21535 * ComboBox.cs: if we are updating the contents of the currently
21536 selected index, refresh the control or the textbox selection.
21539 2006-09-11 Mike Kestner <mkestner@novell.com>
21541 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
21542 the 'specified' logic has been moved there. This seems like a bug
21543 in Control.cs, since our current SetBoundsCore completely ignores
21544 the specified parameter. Peter's commit seems to indicate that is
21545 the way the MS control implementation works. [Fixes #79325]
21547 2006-09-10 Jonathan Chambers <joncham@gmail.com>
21549 * XplatUI.cs: Set default_class_name to be composed
21550 of current domain id. This allows MWF to be loaded in multiple
21553 2006-09-09 Miguel de Icaza <miguel@novell.com>
21555 * X11Keyboard.cs: If we are unable to obtain the input method, do
21556 not call CreateXic to create the input context. Should fix
21559 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
21561 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21562 Simplified gnome support by adding more pinvokes to get the
21563 icon for a file or mime type.
21565 2006-09-08 Jackson Harper <jackson@ximian.com>
21567 * MenuAPI.cs: Deslect popup context menu items before closing the
21568 window, so that you don't see the previously selected item
21569 selected when you reopen the menu.
21570 * TextControl.cs: Update the cursor position even if we don't have
21571 focus. This fixes typing in things like the ComboBox. I'm not
21572 totally sure we should always set the visibility if we don't have
21573 focus, but couldn't find any corner cases where the cursor showed
21574 up when it shouldn't.
21576 2006-09-08 Chris Toshok <toshok@ximian.com>
21578 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21579 our arrays are length 256. & 0xff before indexing. Fixes the
21580 crash in bug #78077.
21582 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21584 * ThemeWin32Classic.cs:
21585 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21586 is true. Handle that check box too.
21588 2006-09-07 Chris Toshok <toshok@ximian.com>
21590 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
21593 2006-09-07 Chris Toshok <toshok@ximian.com>
21595 * Control.cs: in set_BackColor only do the work if
21596 background_color != value.
21598 * XplatUIX11.cs: move the clearing of invalid areas (both client
21599 and nc) to the same block of code where we set (nc_)expose_pending
21600 to false. That is, move it from PaintEventEnd to PaintEventStart,
21601 so things that cause invalidates from within OnPaint will trigger
21602 another call to OnPaint. Fixes bug #79262.
21604 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
21606 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21607 * FileDialog.cs: Fix typo
21609 2006-09-07 Jackson Harper <jackson@ximian.com>
21611 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
21612 for tab pages if they have any.
21614 2006-09-06 Mike Kestner <mkestner@novell.com>
21616 * Splitter.cs: use the "current" rect when finishing drag handle
21617 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
21619 2006-09-06 Mike Kestner <mkestner@novell.com>
21621 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21622 support offset splitters. [Fixes #79298]
21624 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
21626 * Mime.cs: Fixed a bug that could override the global mime type
21629 2006-09-05 Jackson Harper <jackson@ximian.com>
21631 * TabControl.cs: Better calculation method for setting the slider
21632 pos. Prevents crashes on really wide tabs.
21633 - Draw Image on tab pages if an image list is used.
21635 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21637 * MonthCalendar.cs: When Font changes, the Size should be
21638 updated to fit the new font's space requirements.
21640 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
21642 * ListBox.cs: If the items are cleared with Items.Clear set
21645 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21647 * MonthCalendar.cs: Handle arrow keys as input keys. Also
21648 fire DateChanged event instead of DateSelected event when
21649 the date was changed by keyboard interaction.
21651 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21653 * DateTimePicker.cs: Handle DateChanged for the associated
21654 month_calendar control, and set month_calendar.Font from
21655 OnFontChanged method, as well as resize the height of the
21656 control when needed. Make PreferredHeight proportional.
21658 2006-09-01 Chris Toshok <toshok@ximian.com>
21660 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21663 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21665 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
21667 * FileDialog.cs: Set ClientSize instead of window size, to allow space
21668 for decorations (Fixes #79219)
21670 2006-09-01 Mike Kestner <mkestner@novell.com>
21672 * ComboBox.cs: first stab at sorting plus some selection handling
21673 fixes to bring us more in line with MS behavior. Also switches back
21674 to index based selection. Alternative patches for index-based
21675 selection were provided by Jackson Harper, Carlos Alberto Cortez,
21676 and latency@gmx.de on bug 78848. I assume they were similar to this
21677 code I've had simmering in my tree forever.
21680 2006-09-01 Chris Toshok <toshok@ximian.com>
21682 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21683 when setting list position guard against ending up with a -1 index
21684 (the other part of the fix for #78812). Should probably make sure
21685 we don't need the analogous fix in the ItemDeleted case.
21688 - in SetDataSource, work around the fact that the way
21689 OnBindingContextChanged is invoked will cause us to re-enter this
21690 method. I'll remove the hack once I investigate
21691 OnBindingContextChanged.
21693 - fix the logic in set_DataSource and set_DataMember (basically
21694 what to do if the other of the two is null.)
21696 - in OnListManagerItemChanged, we need to take into account the
21697 edit row when deciding whether or not to call RecreateDataGridRows
21698 (part of the fix for #78812).
21700 2006-09-01 Jackson Harper <jackson@ximian.com>
21702 * Splitter.cs: Don't do anything if there is no control to affect
21703 (prevents us from crashing in weird tet cases).
21704 * TreeView.cs: Bounding box for the mouse movement reverting
21705 focus/selection back to previously selected node. This matches
21706 MS, and makes the tree a lot more useable.
21707 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21708 use clipping so they are not drawn. This fixes when the control
21709 is set to have a transparent background, or if it was over an
21712 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
21714 * MimeIcon.cs: Improved handling for reading default icons when
21715 using gnome (2.16 made it necessary). Check and read svg icons
21716 first, then 48x48 and then 32x32 icons.
21718 2006-08-31 Chris Toshok <toshok@ximian.com>
21720 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
21723 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
21724 ProcessKeyPreview. Fixes part of #77806.
21726 * DataGrid.cs: big patch.
21728 - revert the queueing up of DataSource/DataMember if inside
21729 BeginInit/EndInit calls. That's not the way the datagrid achieves
21730 its delayed databinding. Instead, call SetDataSource in
21731 OnBindingContextChanged. This mimic's MS's behavior, and fixes
21734 - Also, it wasn't mentioned in #78811, but the test case exhibits
21735 behavior that was lacking in our datagrid implementation - Columns
21736 that have mapping names that don't exist in the datasource's
21737 properties aren't shown. Yuck. To fix this I added the bound
21738 field to the column style, and basically any calculation to figure
21739 out anything about columns uses a loop to find the bound columns.
21740 still need to investigate if I can cache an array of the bound
21741 columns or if the indices must be the same.
21743 - When setting CurrentCell, we no longer abort if the cell being
21744 edited was in the add row. This fixes the other part of #77806.
21746 - The new code also fixes #78807.
21748 * ThemeWin32Classic.cs: perpetrate the same disgusting
21749 column.bound field hack, and only render bound fields.
21751 2006-08-31 Chris Toshok <toshok@ximian.com>
21753 * DataGridColumnStyle.cs: add bound field. this field is true if
21754 the datasource has a property corresponding to the mapping name.
21756 * DataGridTableStyle.cs: set the bound field on the column styles
21757 depending on whether or not we have a column for that property.
21759 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
21761 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
21762 splitter control (fixes #79228)
21764 2006-08-31 Chris Toshok <toshok@ximian.com>
21766 * DataGridColumnStyle.cs: we need to delay the assignment of
21767 property descriptor until the last possible moment due to the lazy
21768 databinding stuff in the datagrid. Also, fix the exceptions
21769 thrown by CheckValidDataSource to match MS.
21771 2006-08-31 Jackson Harper <jackson@ximian.com>
21773 * Form.cs: When activated select the active control, if there is
21774 no active control, we select the first control.
21775 * XplatUIX11.cs: If there is no focus control when we get a
21776 FocusIn event, find the toplevel form and activate it. This
21777 occurs when you popup a window, it becomes the focus window, then
21778 you close that window, giving focus back to the main window.
21780 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21782 * MonthCalendar.cs:
21783 * ThemeWin32Classic.cs: Cache Font in bold style, as well
21784 as StringFormat with Center alignments in MonthCalendar,
21785 instead of creating new ones when drawing the control.
21786 Also, draw the month name in bold style.
21788 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
21791 - PerformLayout(): It would seem MS performs the fill even if the
21792 control is not visible (part of #79218 fix)
21793 - ResetBackColor(): Use the setter to reset the color, to allow
21794 overriders to catch the change.
21796 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
21797 - CreateHandle(): dito (part of $79218 fix)
21798 - Don't set an icon if we have a dialog
21799 * ScrollableControl.cs:
21800 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
21801 - ScrollIntoView(): No need to scroll if control is already visible
21802 (resolves fixme and fixes #79218)
21804 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21806 * MonthCalendar.cs: Change proportions in SingleMonthSize
21807 to match the aspect of the original control.
21809 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
21811 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
21812 get updated when they get maximized.
21814 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
21816 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
21818 2006-08-29 Chris Toshok <toshok@ximian.com>
21820 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
21822 2006-08-29 Jackson Harper <jackson@ximian.com>
21824 * TreeView.cs: Need to track selected node and highlighted node,
21825 they aren't always the same thing, when the mouse is down on a
21826 node it is hilighted, but not selected yet.
21827 - Do the HideSelection stuff right
21828 - Need to focus on rbutton mouse down. And redraw selection when
21829 right click is mouse upped.
21831 2006-08-29 Mike Kestner <mkestner@novell.com>
21833 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
21834 when SubItems.Count < Columns.Count. [Fixes #79167]
21836 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21838 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
21840 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
21842 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
21843 from X. Only send based on ConfigureNotify if we don't have the
21844 correct location in hwnd (if the window manager moved us)
21846 2006-08-28 Mike Kestner <mkestner@novell.com>
21848 * ListView.cs: remove a TODO.
21849 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
21850 [Fixes ListView part of #79166]
21852 2006-08-28 Mike Kestner <mkestner@novell.com>
21854 * ListView.cs: move wheel handler to parent since it is focused
21855 instead of the item_control now. [Fixes #79177]
21857 2006-08-28 Mike Kestner <mkestner@novell.com>
21859 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
21860 when the control is focused. [Fixes #79171]
21862 2006-08-28 Mike Kestner <mkestner@novell.com>
21864 * ListView.cs: size the item and header controls for empty and
21865 unscrollable views.
21866 * ThemeWin32Classic.cs: draw disabled backgrounds.
21869 2006-08-28 Chris Toshok <toshok@ximian.com>
21871 * Form.cs: remove unused "active_form" static field.
21873 * Hwnd.cs: lock around accesses to static windows collection.
21875 * Application.cs: lock threads in Exit ().
21877 2006-08-28 Chris Toshok <toshok@ximian.com>
21879 * NativeWindow.cs: lock around accesses to window_collection.
21881 2006-08-28 Chris Toshok <toshok@ximian.com>
21883 * Control.cs: err, fix this the right way, by locking on controls
21884 when using it. not by making it synchronized.
21886 2006-08-28 Chris Toshok <toshok@ximian.com>
21888 * Control.cs: make the static "controls" field synchronized, as it
21889 gets updated from multiple threads.
21891 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
21893 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
21894 Prevent other threads from exiting when calling thread sets quit state.
21895 * XEventQueue.cs: Added PostQuitState property
21897 2006-08-27 Chris Toshok <toshok@ximian.com>
21899 * AsyncMethodData.cs: add a slot for the window handle.
21901 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
21902 window (the destination control's window, not the foster window).
21904 * Control.cs (BeginInvokeInternal): store the window's handle in
21905 the AsyncMethodData.
21908 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
21911 - PostQuitMessage: Removed resetting S.D display handle, we might have
21912 another loop started after calling PostQuitMessage (Fixes #79119)
21913 - Created destructor to reset S.D handle
21915 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
21917 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
21919 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21921 * TextControl.cs (Insert): Update the caret position even if we don't
21922 have a handle yet, just don't call the driver in that case.
21923 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
21924 to the end of the new selection text (Fixes #79184)
21926 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21928 * Form.cs (Activate): Only activate if the handle is created)
21930 - Mark window as invisible when it's disposed
21931 - Check if window handle is created when setting window visible,
21932 instead of relying just on the is_created variable
21933 - Check if object is disposed when creating the control (Fixes #79155)
21935 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21937 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
21938 when allowing layout again. Otherwise we re-generate the anchoring
21939 distance to the border again and actually alter what the user wanted
21940 This is ugly, it'd be better if we used DisplayRectangle instead of
21941 ClientRectangle for Control.UpdateDistances, but that causes us to
21942 have other problems (initial anchoring positons would be wrong)
21945 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21948 - The size and location setters shouldn't go directly to
21949 SetBoundsCore, but to SetBounds, which triggers layout on the
21950 parent, then calls SetBoundsCore. (Related to fix for #78835)
21951 - SetBounds: Moved actual location update code into this function
21952 from SetBoundsCore, to match MS. Added call to PerformLayout if
21953 we have a parent (to trigger resizing of anchored parents if the
21954 child size has changed (see testcase for #78835)
21955 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
21957 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
21959 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21961 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
21962 System.Drawing when a toplevel window gets closed; there might
21963 be other toplevel windows belonging to the same app (Fixes #78052)
21965 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
21967 * FileDialog.cs: After reading FileDialog settings from mwf_config
21968 use Desktop prefix only if a real folder doesn't exist anymore.
21969 * FontDialog.cs: Added char sets.
21970 It is now possible to select the font, size or style with the
21973 2006-08-25 Kornél Pál <kornelpal@gmail.com>
21975 * PrintPreviewDialog.cs: Use assembly name constants.
21977 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21979 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
21980 scrollbar from whacking it's buttons)
21982 2006-08-24 Chris Toshok <toshok@ximian.com>
21984 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
21985 in this patch (aggregating setting Left/Top/Width/Height to
21986 setting Bounds on the scrollbars), but the crux of the fix is in
21987 Recalculate, where we scroll by the remaining scroll_position if
21988 we're hiding a scrollbar. The 2*$5 reward in the comment is
21991 2006-08-24 Jackson Harper <jackson@ximian.com>
21994 * MdiWindowManager.cs: If the form is made a non-mdi window we
21995 need to remove the form closed event so that closing forms works
21998 2006-08-24 Jackson Harper <jackson@ximian.com>
22000 * Control.cs: Make IsRecreating internal so that the driver can
22002 - Temporarily remove the Hide when controls are removed, its
22003 making a whole bunch of things not work because visibility isn't
22004 getting reset elsewhere correctly
22005 * Form.cs: Need to do a full handle recreation when the mdi parent
22007 * XplatUIX11.cs: If we are recreating handles don't dispose the
22008 HWNDs. What was happening is the handles were being recreated in
22009 SendWMDestroyMessages, but then flow continued on in that method
22010 and destroyed the new handles.
22012 2006-08-23 Jackson Harper <jackson@ximian.com>
22014 * Form.cs: MdiClient is always at the back of the bus
22015 * Control.cs: When the order of items in the collection is changed
22016 we need to reset the all_controls array
22017 - do the same sorta setup thats done when adding a control when a
22018 control is set on the collection.
22020 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22022 * TextBoxBase.cs (get_Text): Return an empty array if our document
22023 is empty (fixes #79052)
22025 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22027 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
22028 on WM_SYSCHAR messages (fixes #79053)
22030 2006-08-23 Chris Toshok <toshok@ximian.com>
22032 * DataGrid.cs: fix flickering when scrolling vertically.
22034 2006-08-23 Chris Toshok <toshok@ximian.com>
22036 * DataGrid.cs (EndEdit): only invalidate the row header when we
22039 2006-08-23 Chris Toshok <toshok@ximian.com>
22041 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
22042 methods. fixes the flicker when scrolling around.
22044 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22046 * FileDialog.cs: Making sure the control is created before we get a
22047 chance to use it with BeginInvoke (Fixes #79096)
22049 2006-08-23 Chris Toshok <toshok@ximian.com>
22051 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
22052 width to use when painting the rows.
22054 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
22057 - Throw ArgumentException if a negative value is passed to SelectionLength
22058 - Update the selection end if start is moved. end needs to be always
22059 after start. (Fixes #79095)
22060 - Track selection length; MS keeps the selection length even if start
22061 is changed; reset on all other operations affection selection
22063 2006-08-22 Jackson Harper <jackson@ximian.com>
22065 * TreeView.cs: Make sure both scrollbars get displayed and sized
22066 correctly when the other bar is visible.
22067 - Use the original clip rectangle for checking if the area between
22068 the two scrollbars is visible, not the viewport adjusted clipping
22071 2006-08-22 Jackson Harper <jackson@ximian.com>
22073 * Binding.cs: We don't use IsBinding because it requires the
22074 control to be created, which really shouldn't be necessary just to
22075 set a property on the control.
22077 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22079 * ComboBox.cs: Some CB.ObjectCollection methods must throw
22080 ArgumentNullReferenceException when the argument is null.
22082 2006-08-21 Jackson Harper <jackson@ximian.com>
22084 * Timer.cs: Track the thread that the timer is started in (NOT
22085 CREATED), this way messages for it will only be triggered on its
22087 * XEventQueue.cs: Track the timers here, this makes timers per
22089 * XplatUIX11.cs: The timers are moved to the XEventQueue.
22091 2006-08-19 Chris Toshok <toshok@ximian.com>
22093 * XplatUIX11.cs: after further communication with pdb, we get the
22094 best of both worlds. SetZOrder working for un-Mapped windows, and
22095 no X errors for un-mapped windows.
22097 2006-08-19 Chris Toshok <toshok@ximian.com>
22099 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
22100 as it was causing pdn toolbars to not have the correct stacking.
22102 2006-08-18 Mike Kestner <mkestner@novell.com>
22104 * ListView.cs : guard against negative ClientArea.Width in scrollbar
22105 calculation. Not sure why control should ever be setting a negative
22106 width though. Fixes #78931.
22108 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22110 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
22111 null items in ObjectCollection class.
22112 * ListBox.cs.: Likewise.
22114 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
22116 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
22117 as the base method in ThemeWin32Classic should work fine.
22120 2006-08-18 Jackson Harper <jackson@ximian.com>
22122 * Binding.cs: When validating if the value entered doesn't convert
22123 properly reset to the old value.
22124 * RadioButton.cs: Don't fire click when we get focus.
22126 2006-08-18 Jackson Harper <jackson@ximian.com>
22128 * FileDialog.cs: Paint the selection on the directory combobox the
22131 2006-08-17 Jackson Harper <jackson@ximian.com>
22133 * ErrorProvider.cs: Don't allow the error control to be selected.
22134 * Control.cs: Don't send the SetFocus messages, the control
22135 activation will do this, and if we do it blindly here validation
22138 2006-08-17 Jackson Harper <jackson@ximian.com>
22141 * ContainerControl.cs: Make validation events fire in the correct
22142 order. TODO: For some reason the first validation event is not
22145 2006-08-17 Mike Kestner <mkestner@novell.com>
22147 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
22149 2006-08-17 Mike Kestner <mkestner@novell.com>
22151 * ComboBox.cs : implement scroll wheel support for popped-down
22152 state. Fixes #78945.
22154 2006-08-17 Jackson Harper <jackson@ximian.com>
22156 * TreeView.cs: Specify treeview actions (old patch that didn't get
22157 committed for some reason).
22158 - Don't let the mouse wheel scroll us too far. Just want to make
22159 the bottom node visible, not scroll it all the ways to the top.
22161 2006-08-17 Jackson Harper <jackson@ximian.com>
22163 * XplatUIX11.cs: Mouse wheel events go to the focused window.
22165 2006-08-17 Mike Kestner <mkestner@novell.com>
22167 * ComboBox.cs : don't do mouseover selection in simple mode.
22169 2006-08-16 Jackson Harper <jackson@ximian.com>
22171 * Form.cs: Fire the closing events for all the mdi child windows
22172 when a window is closed. If the cancel args are set to true, the
22173 main window still gets the event fired, but it doesn't not close.
22174 * MdiWindowManager.cs: Do this closing cleanup in a Closed
22175 handler, instead of when the button is clicked, so cancelling the
22176 close works correctly.
22177 * ComboBox.cs: Send the mouse down to the scrollbar.
22179 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22181 * ListBox.cs: When passing 'null' to SelectedItem,
22182 set SelectedIndex to -1, to unselect items. This is the
22183 observed behaviour in .Net.
22185 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
22187 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
22188 MS flags saying there won't be any. (fixes #78800)
22189 * Control.cs (HandleClick): Made virtual
22191 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
22193 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
22194 cultures. Fixed bug #78399.
22196 2006-08-16 Jackson Harper <jackson@ximian.com>
22198 * Form.cs: Use the MdiClients MdiChildren property to access
22199 MdiChildren instead of creating the array from the child controls.
22200 * MdiClient.cs: Maintain a separate array of the mdi children, so
22201 that insertion order is maintained when the Z-order is changed.
22203 2006-08-16 Mike Kestner <mkestner@novell.com>
22205 * ListView.cs : add an ItemComparer and default to it for sorting.
22206 Fixes #79076, but sorting needs a complete overhaul to be compat with
22209 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22211 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
22213 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22215 * Hwnd.cs (Mapped): Properly traverse the tree
22217 2006-08-15 Chris Toshok <toshok@ximian.com>
22219 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
22220 pass manager.Current.GetType() to ParseData. It has to be the
22221 property type. So, hold off doing the ParseData until we're in
22222 SetPropertyValue where we know the type. This fixes the crash in
22223 #78821 but the textbox is still empty.
22225 2006-08-15 Chris Toshok <toshok@ximian.com>
22228 - when we're scrolling, only call Edit() again if the
22229 current cell is still unobscured. Fixes bug #78927.
22230 - when handling mousedown on a cell, ensure the cell is visible
22231 before calling Edit.
22232 - remove the properties from DataGridRow, and remove the
22233 DataGridParentRow class altogether.
22236 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22238 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
22239 fire OnTextChanged by ourselves. There's no point calling base,
22240 we don't set the base value anywhere else. Fixes #78773.
22242 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22244 * ListBox.cs: Call CollectionChanged when modifying
22245 an item from Items indexer, to update the actual items
22248 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22250 * PrintDialog.cs: Small fixes for focus and a pair of checks,
22251 to match .Net behaviour.
22253 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22255 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
22257 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22259 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
22261 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
22263 * MessageBox.cs: Prevent potential NRE exception.
22264 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
22266 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22268 * MessageBox.cs: Calculate the owner of a messagebox, also make
22269 it topmost. Fixes #78753
22271 2006-08-14 Chris Toshok <toshok@ximian.com>
22273 * XplatUIX11.cs: A couple of fixes so that metacity will let us
22274 programmatically move windows. first, set the PPosition hint as
22275 well as the USPosition hint. Second include some code from pdb
22276 that sets the window type to NORMAL when we set the transient for
22277 hint. This is because, in the absence of a window type, metacity
22278 thinks any window with TransientFor set is a dialog, and refuses
22279 to let us move it programmatically. fascists.
22281 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
22283 * XplatUIX11.cs: When setting normal hints, take into consideration
22284 an different hints previously set so we don't delete them (fixes #78866)
22286 2006-08-12 Chris Toshok <toshok@ximian.com>
22288 * ToolBarButton.cs: make Layout return a boolean, if something to
22289 do with the button's layout changed.
22292 - add another parameter to Redraw, @force, which all existing
22294 - make the Layout function return a boolean which is true if the
22295 layout has actually changed. Redraw now uses this (and @force)
22296 to determine when to invalidate. At present the only place
22297 where @force can be false is the call from OnResize, when
22298 background_image == null. So, resizing a toolbar when the
22299 layout doesn't change results in no drawing.
22301 2006-08-12 Chris Toshok <toshok@ximian.com>
22303 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
22304 the VScrollBar and HScrollbar reversed. oops.
22306 * DataGrid.cs: fix the logic that assigns sizes to the implicit
22307 scrollbars. we were assigning them twice (once in
22308 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
22309 therefore causing two scrollbar resizes (and redraws?) to happen
22312 2006-08-12 Chris Toshok <toshok@ximian.com>
22314 * ToolBarButton.cs: redraw the entire button if the theme tells us
22317 * Theme.cs: add ToolBarInvalidateEntireButton.
22319 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22320 buttons, just the border.
22322 * ThemeNice.cs: redraw the entire toolbar button since we need to
22323 draw the highlight image.
22325 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22326 we need to redraw the entire button (not just the border).
22328 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22330 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22331 for vertical bars. Fixes the mismatches shown by #78513
22333 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
22335 * FileDialog.cs: If a saved/remembered path doesn't exist
22336 anymore, fall back to "Desktop".
22338 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
22340 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22341 parent. It's apparently legal to not have one
22343 - SetZOrder: Don't try to set Z-Order on an unmapped window
22344 - CreateWindow: 0,0 are legal coordinates for a window. don't move
22345 it unless the coordinates are negative
22347 2006-08-10 Mike Kestner <mkestner@novell.com>
22349 * ListControl.cs: allow null for DataSource. Clear DisplayMember
22350 when setting to null per msdn docs. Fixes #78854.
22352 2006-08-10 Chris Toshok <toshok@ximian.com>
22354 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22355 flickering by setting a clip rectangle on the Graphics when we
22356 need to redraw just a particular menuitem. Also, rename "OnClick"
22357 to "OnMouseDown" to reflect what it actually is.
22359 * Form.cs: track the OnMouseDown change.
22361 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
22363 * CommonDialog.cs: Properly inherit the CreateParams from the form
22364 and only change what we need. Fixes #78865
22366 2006-08-10 Chris Toshok <toshok@ximian.com>
22368 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22369 flickering in flat mode (and most of the flickering in general) by
22370 only invalidating the button border (and not the entire rectangle)
22371 when the state changes. A couple of cases still flicker:
22372 ToggleButtons, and the dropdown arrow case when the user mouse
22375 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
22377 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22378 for german keyboards. Numlock state shouldn't affect the behaviour
22379 of the Del key. Fixes bug #78291.
22381 2006-08-10 Chris Toshok <toshok@ximian.com>
22383 * ListControl.cs: remove the items.Clear line from BindDataItems,
22384 as this is the first thing done by both subclasses in their
22385 SetItemsCore overrides. Also, add a ItemChanged handler, and when
22386 passed -1, refresh the list. This gets databinding working when
22387 the datasource is set on the list before the datasource is
22388 populated (as in wf-apps/ReportBuilder.)
22390 * ComboBox.cs: remove the argument to BindDataItems. This call
22391 should really go away, and be initiated by the ListControl code.
22393 * ListBox.cs: same.
22395 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22397 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22398 if no data is in the document when the control is displayed
22400 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22402 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22405 - PositionCaret: Allow positioning of caret but don't call methods
22406 requiring a handle if the window isn't created yet
22407 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22408 - owner_HandleCreated: Don't position the caret, just update it's
22409 location. User might have already set a different position
22411 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
22413 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22414 windows. Screws up the returned coordinates for child windows.
22415 Fixes #78825. I'm hoping this doesn't break something, since the
22416 code was explicitly put in 8 months ago, but no bug was attached.
22417 Menus still seem to work properly.
22419 2006-08-08 Chris Toshok <toshok@ximian.com>
22421 * DataGrid.cs: make BeginInit/EndInit actually do what they're
22422 supposed to do - delay data binding until the EndInit call. Also,
22423 make the table style collection's CollectionChangeAction.Refresh
22426 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22427 (with action = Refresh) when a consituent table's MappingName is
22430 2006-08-08 Chris Toshok <toshok@ximian.com>
22432 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22433 Invalidate, since changing the text can change the size of the all
22436 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22438 * Form.cs (AddOwnedForm): Still need to add the form to our listif
22439 we don't have it yet
22441 2006-08-08 Chris Toshok <toshok@ximian.com>
22443 * PrintControllerWithStatusDialog.cs: don't .Close() the status
22444 dialog, as this causes X errors later on, since we actually
22445 destroy the window. Instead, .Hide() it.
22447 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
22449 * ComboBox.cs: Added focus reflection for popup window
22451 - Removed transient setting for non-app windows for now, not sure it
22453 - Fixed logic checking if we have captions when deciding
22454 override_redirect, WS_CAPTION is two bits and a 0 check was not
22456 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22459 - AddOwnedForm: Don't just add the form to the list, call the property
22460 to ensure the driver is informed about the ownership as well
22461 - CreateHandle: Set the TopMost status in the driver if we have an owner
22462 * XplatUI.cs: Fixed debug statement
22464 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
22465 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22466 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22467 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
22468 TrackBarRenderer.cs: Make constructor private.
22469 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22470 * ProfessionalColorTable.cs: Make properties virtual.
22472 2006-08-06 Duncan Mak <duncan@novell.com>
22474 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22477 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22478 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22479 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22480 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22481 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22482 Initial import of new 2.0 classes.
22484 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22485 * Application.cs: Add 2.0 VisualStyles properties.
22487 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
22488 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22489 XplatUIX11.cs: Create property to allow access to existing private
22490 variable "themes_enabled"
22492 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22494 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22495 file size, as otherwise our class libraries fail using windows. Fixes
22498 2006-08-04 Jackson Harper <jackson@ximian.com>
22501 * XplatUIX11.cs: Move the toolwindow window manager creation into
22502 the X11 driver, this way on win32 we can let windows create/handle
22505 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22507 * PrintDialog.cs: Remove some redundant checks, add some others,
22508 clean some code, and move the focus to the text boxes when the
22509 values are incorrect.
22511 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
22513 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22515 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22517 * NumericUpDown.cs: Setting the Minimum and Maximum is now
22518 handled correctly. Fixes bug #79001.
22520 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22522 * PrintDialog.cs: The "Copies" numeric up down must have
22523 set the Minimum property to 1; only if the value is bigger
22524 than 1, activate "Collate" check box. This is the behaviour of .Net.
22525 Also modify the Document elements only if it is not null.
22527 2006-08-03 Jackson Harper <jackson@ximian.com>
22529 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22530 length. (We have a larger array then actual node count).
22532 2006-08-03 Jackson Harper <jackson@ximian.com>
22534 * ComboBox.cs: Don't show selection by default.
22535 - The SelectAll isn't needed here, since the focus code should do
22537 - DDL style lists to manual selection drawing, so when they
22538 get/lose focus they have to invalidate.
22540 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
22542 * TextBoxBase.cs: Don't always show all selections by default.
22544 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
22545 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22546 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22547 Fixed various typos.
22549 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
22551 * Control.cs: Removing the controls in a ControlCollection with
22552 Clear now hides the controls as expected. Fixes bug #78804.
22554 2006-08-03 Jackson Harper <jackson@ximian.com>
22556 * Control.cs: Revert previous focus patch, it breaks reflector.
22558 2006-08-03 Jackson Harper <jackson@ximian.com>
22560 * ComboBox.cs: Cleanup selection and focus with the combobox.
22561 This also eliminates some duplicated keyboard code, since now
22562 everything is handled by the main class.
22563 - Make list selection work on mouse up instead of down, to match
22566 2006-08-02 Jackson Harper <jackson@ximian.com>
22568 * Control.cs: Setting focus needs to go through the whole
22569 selection mechanism.
22571 2006-08-02 Chris Toshok <toshok@ximian.com>
22573 * PrintPreviewDialog.cs: change MinimumSize to use
22574 base.MinimumSize so it works.
22576 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
22579 - UpdateCaret: Added sanity check in case caret isn't defined yet
22580 - Line.Delete: Now updating selection and caret markers if we're
22581 transfering a node (Properly fixes #78323)
22582 - SetSelectionEnd: Added sanity check
22583 * TextBoxBase.cs: Removed broken attempt to fix #78323
22585 2006-08-01 Chris Toshok <toshok@ximian.com>
22587 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22588 Close() call is handled in Form, not here.
22590 2006-08-01 Chris Toshok <toshok@ximian.com>
22592 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22595 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22596 for sizes < 100% zoom. The code now aggressively attempts to keep
22597 from calling document.Print (), and tries not to use the scaling
22598 g.DrawImage whenever possible (it still does if you scale to >
22599 100%, since usually that involves huge images).
22601 * PrintPreviewControl.cs: hook up the close button.
22603 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
22604 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22605 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22606 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22607 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22608 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22609 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22610 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22611 Removed [Serializable] for 2.0 Event Handlers.
22613 2006-07-31 Jackson Harper <jackson@ximian.com>
22615 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22616 * TextControl.cs: Uncomment out the body of this method.
22618 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
22620 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22623 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22625 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22626 that embed TextBox and need selections visible even if textbox is not
22627 focused to enforce that behaviour.
22628 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22631 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22634 - Added new SetSelectionStart/SetSelectionEnd overloads
22635 - Fixed viewport width assignment to be accurate
22636 - Adjusted alignment line shift calculations to allow cursor on right
22637 aligned lines to be always visible at the right border (like MS)
22639 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22640 - TextBoxBase_SizeChanged: recalculating canvas on size changes
22641 - CalculateScrollBars: Use ViewPort size instead of window size, to
22642 properly consider space occupied by the border and scrollbars
22644 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
22645 calculations; no longer leaves artifacts
22646 - CaretMoved: Adjusted window scrolling to match MS and fixed several
22647 calculation bugs (Still missing right/center align calculations)
22649 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22651 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22652 use of both scroll rect and clip rect, as they do the same.
22654 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
22656 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
22657 in the event handler (fixes #78912)
22659 2006-07-31 Chris Toshok <toshok@ximian.com>
22661 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22662 grid.ListManager.Count, since grid.ListManager might be null.
22663 This of course begs the question "why are we drawing rows for a
22664 grid with no list manager (and therefor no rows)?" Fixes the
22665 crash in bug #78929.
22667 2006-07-31 Chris Toshok <toshok@ximian.com>
22669 * RelatedPropertyManager.cs: Don't always chain up to the parent
22670 ctor. instead, call SetDataSource if the parent's position is !=
22671 -1. Fixes the crash in #78822.
22673 2006-07-31 Chris Toshok <toshok@ximian.com>
22675 * DataGrid.cs (get_ListManager): use field instead of property
22676 accessors for datasource and datamember.
22677 (RowsCount): make internal again.
22678 (OnMouseDown): end edits before resizing columns/rows.
22679 (OnMouseUp): restart edits after resizing columns/rows.
22681 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
22683 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22684 This fixes the situation where the last set cursor is displayed
22685 whenever the mouse is over scrollbars.
22687 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22689 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22690 Document properties, as well as initial values.
22692 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
22694 * XplatUIWin32.cs (SetBorderStyle): Setting both border
22695 and ClientEdge results in a 3-pixel border, which is
22698 2006-07-28 Jackson Harper <jackson@ximian.com>
22700 * TreeNodeCollection.cs: Fix the clear method.
22701 - Fix the Shrink also
22703 2006-07-27 Jackson Harper <jackson@ximian.com>
22705 * TreeView.cs: Make sure the visible order is computed when we
22706 attempt to size the scrollbars (for trees that mess with the
22707 scrolling when they shouldn't.
22708 - Make sure to give the scrollbars valid values.
22710 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22712 * XplatUIX11.cs: Move motion compression code to where it
22713 has less performance impact
22715 2006-07-26 Jackson Harper <jackson@ximian.com>
22717 * UpDownBase.cs: When the control is selected make the child
22718 controls non selectable, so that a click on them won't do a
22719 focus/unfocus cycle.
22720 - Don't give focus to the text box when the spinner is selected.
22721 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
22723 2006-07-26 Chris Toshok <toshok@ximian.com>
22725 * ThemeWin32Classic.cs: add print preview rendering. I'm not
22726 satisfied with this solution. If the bitmaps are small, we should
22727 just cache them in the PrintPreviewDialog and draw them here.
22728 Also, the layout is broken for the 2-up and 3-up cases.
22730 * Theme.cs: add PrintPReviewControlPaint.
22732 * PrintPreviewDialog.cs: first pass implementation.
22734 * PrintPreviewControl.cs: first pass implementation. No
22737 * PrintDialog.cs: only validate fields if that particular portion
22738 of the UI is enabled. Also, set the document's controller to a
22739 PrintControllerWithStatusDialog wrapping the document's print
22742 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
22743 bring up a SaveFileDialog (i hope we don't want to match the
22744 behavior of the crappy windows file entry) and set the
22745 PrinterSettings.PrintFileName accordingly.
22747 2006-07-26 Jackson Harper <jackson@ximian.com>
22749 * ContainerControl.cs: Add a field that disables auto selecting
22750 the next control in a container when the container is activated.
22751 * UpDownBase.cs: Don't select the text box when the up down is
22754 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
22756 * XEventQueue.cs: Added methods for peeking (used for compression
22757 of successive events)
22758 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
22759 mouse move events (fixes #78732)
22761 2006-07-25 Jackson Harper <jackson@ximian.com>
22763 * UpDownBase.cs: Use an internal class for the textbox so that we
22764 can control focus. the updown control should always have focus,
22765 if either the text area or the buttons are clicked.
22766 - Send the key messages to the textbox, since it never actually
22768 - Activate and decativate the textbox caret.
22770 2006-07-24 Jackson Harper <jackson@ximian.com>
22772 * Control.cs: Use the directed select when selecting a control,
22773 this way the container controls override will get called and the
22774 whole ActiveControl chain will get triggered. TODO: probably need
22775 to make sure this gets done everywhere instead of the old
22777 * ContainerControl.cs: Implement the directed Select method to
22778 find and activate the correct child control.
22780 2006-07-22 Mike Kestner <mkestner@novell.com>
22782 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
22783 menu handling code so that clicks without a grab work too.
22786 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
22788 * FileDialog.cs: Enable the BackButton when dirstack has one element.
22789 Added some small optimizations.
22791 2006-07-21 Matt Hargett <matt@use.net>
22793 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
22795 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
22797 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
22798 tests pass and match MS in some strange border cases.
22800 2006-07-21 Chris Toshok <toshok@ximian.com>
22802 * ThemeWin32Classic.cs: handle drawing of the relation links and
22803 parent row buttons.
22805 * Theme.cs: change args to DataGridPaintParentRow.
22807 * DataGrid.cs: Don't use controls for the relation links and
22808 parent buttons, so we have to handle all their interactions in
22809 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
22810 when we're navigating through child tables, so we can reinstate
22811 selection, expanded state, current cell, etc.
22813 2006-07-20 Chris Toshok <toshok@ximian.com>
22815 * ToolBar.cs: When we redraw a button, for whatever reason,
22816 there's no reason to redraw the entire toolbar. Also, don't call
22817 Control.Refresh from within Redraw, as it's much heavier than
22818 Invalidate (which is really what we want).
22820 2006-07-20 Chris Toshok <toshok@ximian.com>
22822 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
22823 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
22824 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
22825 traces from within a debug IBindingList datasource
22826 (in mono/winforms/datagrid) for *days*, I've finally gotten things
22827 to work in a similar fashion.
22829 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22831 * ListBox.cs: Don't call Sort () when setting
22832 the Sorted property to false (avoid an unnecessary sort).
22834 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22836 * ListControl.cs: DataSource should throw an ArgumentException
22837 instead of a normal exception when the argument is not of the
22840 2006-07-20 Mike Kestner <mkestner@novell.com>
22842 * Control.cs: add InternalPreProcessMessage to allow us to steal
22843 key events before MWF gets its paws on them. Adapted from a
22845 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
22846 up/down/left/right navigation. Override the new internal control
22847 method to steal the events since they never make it to WndProc.
22848 * ToolBarButton.cs: don't worry about pushed when setting hilight
22849 since the drawing code prefers pushed to hilight. Invalidate on
22850 Hilight changes. Fixes #78547 and #78525.
22852 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22854 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
22855 the canvas size. Fixes #78868
22857 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22859 * Splitter.cs: Track requested split position until first layout
22860 is performed. Fixes #78871
22862 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
22864 * Application.cs: Removed code that forces 1.x for the version
22865 number if the version started with 0. Not sure why that code was
22866 there and I couldn't find any bugs that indicated we needed it.
22869 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
22871 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
22872 ResetDefaults(), just write some output to the console until it's
22873 implemented. Fixes bug #78907 for now. Eliminated two warnings.
22875 2006-07-19 Jonathan Chambers <joncham@gmail.com>
22877 * PropertyGridView.cs: set StartPosition of drop down forms
22878 so they appear in correct initial spot. Fixes #78190.
22880 2006-07-19 Mike Kestner <mkestner@novell.com>
22882 * ThemeWin32Classic.cs: use parent background color when drawing
22883 flat toolbars. Restructure the conditionals to make sure non-flat
22884 non-Divider toolbars are filled too. Fixes #78837.
22886 2006-07-19 Mike Kestner <mkestner@novell.com>
22888 * ListBox.cs: Sort on collection changes even if the handle
22889 isn't created yet. Fixes #78813.
22891 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22893 * ListControl.cs: DisplayMember should never be null,
22894 and now we assign String.Empty when null is passed to it (this
22897 2006-07-17 Mike Kestner <mkestner@novell.com>
22899 * ListViewItem.cs: restructure Font and subitem Font handling
22900 to hold a specific font and refer back to owner on null.
22903 2006-07-17 Mike Kestner <mkestner@novell.com>
22905 * ToolBar.cs: bandaid for side-effect of previous patch which was
22906 discarding explicit heights for non-AutoSize toolbars. Need to
22907 extend my format tester to deal with AutoSize=false. Fixes #78864.
22909 2006-07-15 Jackson Harper <jackson@ximian.com>
22911 * LabelEditTextBox.cs:
22912 * TreeView.cs: Use a new LabelEdit class for node editing, this
22913 class automatically 'closes' itself when it gets the enter key or
22915 - Use the client rectangle when setting the trees scrollbars, so
22916 border style is taken into account.
22918 2006-07-14 Jackson Harper <jackson@ximian.com>
22921 * TreeView.cs: Make the editing work similar to MSs, firing the
22922 events correctly and ending edits correctly.
22924 2006-07-14 Mike Kestner <mkestner@novell.com>
22926 * ToolBarButton.cs:
22927 * ToolBar.cs: layout restructuring and redraw enhancements to support
22928 formatting changes gracefully, like setting TextAlign, ImageList,
22929 ButtonSize, and Appearance. Handles explicit button sizing quirks
22930 of the MS controls. Things like flat toolbars ignoring button size
22931 but becoming constant sized at the largest button's size. Normal
22932 toolbars with an image set cannot be shrunk smaller than the image,
22933 but text can be clipped/ignored.
22934 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
22935 is zero. Seems like DrawString should be smart enough to not put
22936 anything on screen though. Also trim labels and ellipsize at the char
22937 boundary, not word.
22938 Fixes #78711 and #78483.
22940 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22942 * FolderBrowserDialog.cs: Disable "New Folder" button and
22943 "New Folder" contextmenu menuitem if a folder like "My Computer"
22946 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22948 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
22949 * FolderBrowserDialog.cs:
22950 - Use MWFConfig to store and read size and position settings
22951 - Added code to create a new folder (button or context menu).
22952 Use TreeView labeledit to change the name of the new folder.
22954 2006-07-14 Jackson Harper <jackson@ximian.com>
22956 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
22957 when the tree is scrolled we end editing.
22959 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22961 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
22964 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
22966 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
22967 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
22968 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
22969 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
22970 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
22971 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
22972 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
22973 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
22974 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
22975 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
22976 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
22977 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
22978 ListViewItemSelectionChangedEventHandler.cs,
22979 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
22980 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
22981 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
22982 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
22983 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
22984 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
22985 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
22986 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
22987 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
22988 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
22989 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
22990 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
22991 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
22992 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
22993 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
22994 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
22995 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
22996 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
22997 WebBrowserNavigatingEventHandler.cs,
22998 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
23000 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
23002 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
23003 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
23004 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
23005 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
23006 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
23007 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
23008 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
23009 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
23010 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
23011 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
23012 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
23013 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
23014 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
23015 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
23016 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
23017 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
23018 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
23019 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
23020 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
23021 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
23022 ListViewItemStates.cs, MaskFormat.cs: Added
23024 2006-07-13 Jonathan Chambers <joncham@gmail.com>
23026 * PropertyGridView.cs: Fix keyboard navigation of drop down.
23027 Patch from eno for bug 78558.
23029 2006-07-13 Jackson Harper <jackson@ximian.com>
23031 * TreeView.cs: When an edit is finished make sure that the
23032 selected node is visible.
23033 - When setting the top/bottom use the scrollbars is_visible, so
23034 everything will be set correctly even if the tree isn't visible
23037 2006-07-13 Jackson Harper <jackson@ximian.com>
23039 * ComboBox.cs: Revert the item->index part of my previous patch.
23040 * TreeView.cs: Use LostFocus instead of Leave for detecting when
23041 the edit box has lost focus (duh).
23042 - Just make the edit box not visible when we get return, that will
23043 take the focus, which will call EndEdit
23044 * TreeNode.cs When we start editing, notify the treeview.
23046 2006-07-12 Jackson Harper <jackson@ximian.com>
23048 * ComboBox.cs: Clear out old items before setting the item list.
23049 This prevents databound controls from having their items added
23051 - Switch the combobox to use indices whereever possible instead of
23052 using Item's. This allows usto navigate through lists that have
23053 more then one item with the same string value (ie a, b, b, a).
23054 - Scroll the listboxes scrollbar when a non visible item is
23056 - Allow keypress to cycle through all the possible values. For
23057 example if you have b1, b2, b3 and hold down the B key all the
23058 values will be cycled through.
23060 2006-07-12 Jackson Harper <jackson@ximian.com>
23063 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
23064 this using the internal methods.
23065 * Control.cs: Add OnGotFocusInternal. A new method that allows
23066 controls to "override" OnGotFocus and change focus behavior if
23068 - Same thing for LostFocus
23069 * ComboBox.cs: Pass off focus to the text control properly.
23071 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
23073 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
23074 * FolderBrowserDialog.cs: Almost a complete rewrite.
23075 - Better support for Environment.Specialfolders
23076 - Added support for MWFVFS
23077 - Made setting SelectedPath work
23079 2006-07-12 Jackson Harper <jackson@ximian.com>
23081 * Control.cs: Optimze getting all the controls.
23083 2006-07-11 Jackson Harper <jackson@ximian.com>
23085 * ContainerControl.cs: Override SETFOCUS in the container control,
23086 so that it is not selected on mouse click.
23088 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23090 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
23091 Hopefully we will have a better way once all of focus is complete.
23093 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
23095 * ThemeWin32Classic.cs: Commented out some debug code and fixed
23096 a compile error with csc.
23098 2006-07-11 Jackson Harper <jackson@ximian.com>
23100 * Control.cs: When hiding a control only select the next control
23101 if the current control was focused.
23102 - Don't handle enter/leave when setting/killing focus, this is
23103 done by the container control.
23104 - Remove is_selected, it's not needed anymore.
23105 - Add utility methods for selecting a child control, and for
23106 firing the Enter/Leave events.
23107 * ContainerControl.cs: When a control is activated fire the
23108 enter/leave events.
23109 - Don't wrap when processing the tab key, so that focus can be
23110 moved outside of the container.
23111 - Use the correct active control
23113 2006-07-11 Jackson Harper <jackson@ximian.com>
23115 * ComboBox.cs: Remove some debug code that was blinding me.
23116 * UpDownBase.cs: These controls actually aren't implicit, they are
23117 visible to the user.
23119 2006-07-10 Chris Toshok <toshok@ximian.com>
23121 * DataGrid.cs: move back to the is_adding boolean field. god i
23122 hate this is_editing/is_adding/is_changing stuff.
23124 2006-07-10 Chris Toshok <toshok@ximian.com>
23126 * DataGridTableStyle.cs: just check if the property type is bool.
23127 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
23128 Don't use CanRenderType.
23130 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
23131 if our text == NullText. Remove CanRenderType.
23133 * DataGridBoolColumn.cs: nuke CanRenderType.
23135 * DataGrid.cs: reenable some code to end the current edit inside
23136 of set_CurrentCell. This fixes the other 1.1.16 regression.
23137 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
23138 Also, remove the visible_row_count arg from CalcRowHeaders, since
23139 we don't need to worry about the actual height of the area.
23141 2006-07-10 Chris Toshok <toshok@ximian.com>
23143 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
23146 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
23147 the real sense of the IsInEditOrNavigateMode property (true =
23148 navigate, false = edit). Also, update OnKeyPress to reflect this.
23150 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
23151 column style exists, we still need to set its property descriptor
23152 to match up with our list manager.
23154 2006-07-10 Chris Toshok <toshok@ximian.com>
23156 * ThemeWin32Classic.cs: implement the new row/header painting
23157 approach. The parent row painting will likely go away and
23158 replaced with label controls, but the rest seems to work ok (and
23161 * Theme.cs: change the way we draw datagrid rows. we don't draw
23162 the row headers as a block now. Instead we draw them in the
23163 normal draw-row loop. Add some calls for drawing parent rows and
23166 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
23167 a default table style. Set the defaults from ThemeEngine.Current,
23168 not SystemColors. Fix lots of misc issues with property setters.
23170 * DataGrid.cs: move loads of style information out of this class
23171 as it's being duplicated with DataGridTableStyle. keep track of a
23172 special DataGridTableStyle for the properties we used to mirror
23173 here. Switch all the style properties to access this table style
23174 instead of instance fields of this class. Also add a internal
23175 class to represent parent rows (more needs to be stored here, like
23176 the selection state from the parent table, as well as the
23177 expansion state.) Also, for datasources with relations, do the
23178 right thing for collapse/expand, and add support for the
23179 navigation/parent row buttons.
23181 Lastly, fix the crash in the 1.1.16 build.
23183 * GridTableStylesCollection.cs: make the explicit interface
23184 implementations call the class's methods as opposed to duplicating
23187 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
23188 0 so the text doesn't jump around when we move the cursor.
23190 2006-07-10 Jackson Harper <jackson@ximian.com>
23193 * ListBox.cs: Match MS's ToString (this makes debugging focus
23194 stuff infinitely easier).
23196 2006-07-10 Jackson Harper <jackson@ximian.com>
23198 * Control.cs (SelectNextControl): When checking the control's
23199 parent use this instead of ctrl.parent so that null can be passed
23200 to SelectNextControl. (I have unit tests for this).
23201 - Remove unused var.
23203 2006-07-10 Chris Toshok <toshok@ximian.com>
23205 * CurrencyManager.cs: correct one regression, the removal of the
23206 finalType field. Also, add a MonoTODO on CanAddRows, implement
23207 Refresh() correctly, and fix some event emission in
23208 ListChangedHandler.
23210 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23212 * FileDialog.cs: Don't use brackets for new folders if they exist
23213 under *nix. Instead use -(number of existing folders +1).
23215 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
23218 - Fixed really nasty bug #78771
23219 - Don't block the whole GUI when reading directories with a lot of
23220 entries. Use an other thread instead and call BeginInvoke to
23221 update the ListView in MWFFileView
23223 2006-07-07 Chris Toshok <toshok@ximian.com>
23225 * Control.cs (Dispose): release any Capture when disposing.
23227 2006-07-07 Chris Toshok <toshok@ximian.com>
23229 * LinkLabel.cs (Select): if we chain up to the parent, set
23230 focused_index to -1 so we'll search for the first available link
23231 the next time the user tabs into us. Also, if the direction is
23232 backward and focused_index == -1, start the search from the last
23235 2006-07-07 Chris Toshok <toshok@ximian.com>
23237 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
23238 is beyond the end of the text, don't do anything.
23239 (CreateLinkPieces): set our ControlStyles.Selectable based on
23240 whether or not we have any links.
23241 (Link.Invalidate): use a loop instead of foreach.
23242 (Link.set_Start): null out owner.sorted_links so it'll be
23243 recreated by CreateLinkPieces.
23245 2006-07-06 Chris Toshok <toshok@ximian.com>
23247 * LinkLabel.cs: revert the SetStyle change.
23249 2006-07-06 Chris Toshok <toshok@ximian.com>
23251 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
23252 (OnEnableChanged): s/Refresh/Invalidate
23253 (OnGotFocus): if we have a focused index already, refocus it (so
23254 if we mouse out/in to the window it'll focus the right link).
23255 (OnKeyDown): move the tab handling out of here.
23256 (OnLostFocus): don't set focused_index to -1, so we can refocus it
23257 when we lose focus.
23258 (OnMouseDown): don't Capture here - Control handles it. Also,
23259 focus the active link.
23260 (OnMouseUp): don't deal with Capture.
23261 (OnPaintBackgroundInternal): remove.
23262 (OnTextAlignChanged): CreateLinkPieces before calling the
23263 superclass's method.
23264 (OnTextChanged): call CreateLinkPieces before calling superclass's
23266 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23268 (Select): implement this, moving the selection between different
23269 links, and call parent.SelectNextControl if we don't have another
23270 link to focus in the given direction.
23271 (CreateLinkPieces): call Invalidate instead of Refresh.
23273 2006-07-06 Chris Toshok <toshok@ximian.com>
23275 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
23276 new LinkLabel internals.
23278 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
23279 over pieces looking for active/focused/etc links. also, deal with
23280 runs of text (and links) with embedded \n's in them, and use
23281 MeasureCharacterRanges instead of MeasureString to figure out the
23282 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
23285 2006-07-04 Jackson Harper <jackson@ximian.com>
23287 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
23288 XKB or key auto repeat, do it manually. Without key auto repeat,
23289 when a key is held down we get key press, key release, key press,
23290 key release, ... with auto repeat we get key press, key press, key
23291 press ..., and then a release when the key is actually released.
23293 2006-07-03 Jackson Harper <jackson@ximian.com>
23296 * ThemeWin32Classic.cs: Tabs do not obey normal background color
23297 rules, they are always control color regardless of the background
23300 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
23302 * FileDialog.cs: Added internal class MWFConfig.
23303 Removed Registry support and replaced it with support for the new
23304 MWFConfig class. See MWFConfig comments for more information.
23306 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
23308 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
23309 rectangle. Added some patches from eno from bug #78490 and fixed
23310 the arrow position for small up and down CPDrawScrollButtons.
23312 2006-06-30 Jackson Harper <jackson@ximian.com>
23314 * InternalWindowManager.cs: Remove some debug code.
23315 * Form.cs: When an MdiParent is set to null, the window is
23316 "detatched" and becomes a normal window.
23317 * MdiClient.cs: Don't bring the new child form to the front until
23318 it is activated (setting it as active does this), this makes the
23319 previously active forms titlebar get redrawn as inactive.
23321 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
23323 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23324 with later controls
23326 2006-06-29 Mike Kestner <mkestner@novell.com>
23328 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23329 arrow in keynav state. Fixes #78682.
23331 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23333 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
23334 order (fixes #78393)
23336 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
23338 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
23339 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23340 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23341 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23342 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23343 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
23344 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23345 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23346 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23347 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23348 enumerations (FlagsAttribute, SerializableAttribute, added/removed
23351 2006-06-28 Mike Kestner <mkestner@novell.com>
23353 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23355 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
23358 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23359 item lines from other area (It also makes BackColor consistent and
23360 compatible with .NET). Fixed bug #78564.
23362 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
23364 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23365 Patch from Eno for #78555.
23367 2006-06-27 Chris Toshok <toshok@ximian.com>
23369 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23371 * DataGridColumnStyle.cs: same.
23373 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23375 * DataGridDrawingLogic.cs: nuke.
23377 2006-06-27 Chris Toshok <toshok@ximian.com>
23379 * DataGridTableStyle.cs: clean up the constructors, and build the
23380 list of child relations for this table. I have no idea if this is
23381 where we should be doing it (it probably isn't), but since we're
23382 already iterating over the properties..
23384 * DataGrid.cs: add row resizing. for now we add a DataGridRow
23385 struct and array for keeping track of row information, similar to
23386 what's shown in a hack on
23387 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23389 * Theme.cs: be consistent about the naming of DataGrid methods,
23390 prefering ColumnWidths and RowHeights over columnsWidths and
23393 * ThemeWin32Classic.cs: same, and also add support for variable
23394 sized rows (and the +/- expansion icons for related rows).
23396 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23398 * TextBoxBase.cs: Applied Eno's patch from #78660
23400 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23402 * Form.cs (ScaleCore): We don't want to scale our form if it's
23403 state is minimized or maximized, but we still need to scale our
23404 child windows. Also, added try/finally block to ensure layout
23405 gets reset (Fixes #78697)
23407 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23409 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23411 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
23413 * Form.cs: Fixed c+p error and added check to resize form if minimum
23414 size is bigger than current size (Fixes #78709)
23416 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
23418 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23420 2006-06-26 Mike Kestner <mkestner@novell.com>
23422 * ComboBox.cs: only do Keypress handling in the combo when there
23423 are items in the collection. Fixes #78710.
23425 2006-06-26 Chris Toshok <toshok@ximian.com>
23427 * Binding.cs: make this work bi-directionally. also, clear up
23428 other mixups between Push/Pull Data (e.g. we're supposed to pull
23429 data when validating).
23431 * BindingManagerBase.cs: trim some fully qualified collection
23434 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23436 2006-06-23 Chris Toshok <toshok@ximian.com>
23438 * PropertyManager.cs: It appears (according to the unit tests)
23439 that PropertyManager doesn't use
23440 PropertyDescriptor.AddValueChanged to track propery value changes
23441 in its datasource, but uses the same scheme as Binding, where it
23442 looks for a <Property>Changed event and binds to it.
23444 Also, according to the docs, IsSuspended always returns false for
23445 a property manager with a non-null datasource.
23447 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23449 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23450 need to update the actual DialogResult. (Fixes #78613)
23452 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
23454 * Form.cs (ShowDialog): Release any captures before running the
23455 new message pump (fixes #78680)
23457 2006-06-22 Mike Kestner <mkestner@novell.com>
23459 * ListView.cs: Layout column widths properly in details mode even
23460 if HeaderStyle.None is set. Fixes #78691.
23462 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23464 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23466 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
23468 * Control.cs (ContainsFocus): Using new driver method to get focused
23469 window, instead of trying to use internal tracking var, which can
23470 recursion issues (Fixes #78685)
23471 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23472 XplatUIWin32.cs: Added GetFocus method to return focused window
23474 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23476 * ColorDialog.cs: when the mouse button is pressed inside the color
23477 matrix, don't let the cursor move out of it until the button is
23478 released, which is the behavior on windows. Changed 'colours' by
23479 'colors' to use the same word consistently.
23481 2006-06-21 Chris Toshok <toshok@ximian.com>
23483 * DataGrid.cs: add in some basic navigation stuff (navigating to a
23484 child relation and back, using a stack). Also, remove
23485 GetDataSource and the code that calls it - it's not needed. Also,
23486 track CurrencyManager.ListName's removal.
23488 2006-06-21 Chris Toshok <toshok@ximian.com>
23490 * CurrencyManager.cs: push some of the original type checking from
23491 BindingContext.CreateBindingManager to here, and remove some of
23492 the finalType stuff. Need more tests to make sure I've got the
23493 ListName part right, and we might need more in SetDataSource.
23495 * PropertyManager.cs: add a ctor that takes just the datasource,
23496 and no property name. Make SetDataSource work with a null
23497 property_name, and make Current return the data_source if the
23498 property descriptor is null. this makes 'string foo = "hi";
23499 BindingContext[foo].Current' return "hi" as it should.
23501 * RelatedCurrencyManager.cs: make this code more generic - there's
23502 no reason the parent manager has to be CurrencyManager, and
23503 there's no reason to pass the DataRelation. It suffices to use a
23504 BindingManagerBase and PropetyDescriptor.
23506 * RelatedPropertyManager.cs: make a similar change here.
23508 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23509 flower I knew it could be.
23511 2006-06-20 Chris Toshok <toshok@ximian.com>
23513 * PropertyManager.cs: the PropertyChangedHandler is invoked when
23514 data in the source has changed and we need to update the control,
23515 so s/PullData/PushData.
23517 * CurrencyManager.cs: Refresh is meant to update the control from
23518 data in the datasource. So, s/PullData/PushData.
23520 * BindingContext.cs: add more ugliness (we weren't handling the
23521 case where data_source = DataTable and data_member = column_name).
23523 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
23524 from the perspective of the datasource. PullData pulls from the
23525 control, PushData pushes to the control.
23527 2006-06-20 Chris Toshok <toshok@ximian.com>
23529 * BindingContext.cs: rewrite the CreateBindingManager code to
23530 handle navigation paths more or less properly. This could
23531 definitely stand some more work, in particular to push the
23532 recursion up to the toplevel. But that relies on fixes in other
23533 places (System.Data comes to mind).
23535 Also, move to a flat hashtable (and encode the twolevel nature of
23536 the dictionary into the hash key). This lets us implement the
23537 IEnumerable.GetEnumerator method.
23539 * RelatedCurrencyManager.cs: new class. Update our view based on
23540 our relation and our parent CurrencyManager's position.
23542 * CurrencyManager.cs: split out some logic from the ctor into
23543 SetView, so it can be called from the new RelatedCurrencyManager
23546 * RelatedPropertyManager.cs: new class. Update our datasource
23547 based on the position of our parent CurrencyManager.
23549 * PropertyManager.cs: split out some logic from the ctor into
23550 SetDataSource, so it can be called from the new RelatedDataSource
23551 subclass. Also, make the Current getter return the value
23552 of the PropertyDescriptor, not the data_source.
23554 * Binding.cs: no need to duplicate the string splitting code here.
23556 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23559 - set_Enabled: OnEnabledChanged is not called if the inherited state
23560 of the control is not altered, even though we might be changing the
23561 internal state of the control (#78458)
23562 - set_Enabled: (Re)Moved the enabling/disabling of the window to
23563 OnEnabledChanged, to allow easy altering of any child window state
23564 - OnEnabledChanged: Added code to enable/disable driver window state
23565 - OnParentEnabledChanged: Instead of firing the event, call
23566 OnEnabledChanged, which will fire the event and also a) set driver
23567 window state and pass the enabled state to any grandchildren (#78458)
23569 2006-06-19 Jackson Harper <jackson@ximian.com>
23571 * InternalWindowManager.cs: We don't set the cursor explicitly
23572 thats done via the response to NCHITTESTs.
23573 - Don't need to adjust for titlebar heights anymore, the
23574 coordinates are coming in the correct coordinates now (see peters
23578 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
23580 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23581 being translated relative to whole window, instead of client window.
23582 That caused broken offsets on mouseclick (and caused gas for our
23583 InternalWindowManager)
23585 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23588 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23589 - Undo(): Added replay of cursor move on DeleteChars action; added
23590 calling Undo() again if a recorded cursor move is invalid (to
23591 ensure that some action is performed on Undo)
23592 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23594 2006-06-16 Jackson Harper <jackson@ximian.com>
23596 * MdiClient.cs: Instead of just sizing maximized windows when
23597 there is a resize we also have to adjust the Y of minimized
23598 windows, so they stay pinned to the bottom of the mdi container.
23599 - Eliminate separate tracking of the active control, we can just
23600 get this from the controls collection.
23601 - Paint the decorations for the newly activated titlebar so we get
23603 * InternalWindowManager.cs:
23604 * ThemeWin32Classic.cs: Minimized windows get all three buttons
23605 even if they are a tool window.
23607 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
23609 * TextControl.cs (Undo): Handle non-existent cursor locations in the
23610 undo buffer, these can happen when text was deleted and the cursor
23611 was recorded first. Since we will also have a recorded cursor
23612 after the delete this is not an issue. (Fixes #78651)
23614 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
23616 * AccessibleObject.cs: Remove dependence on Control.is_selected;
23617 instead properly track control states internally (allows us to
23618 remove is_selected from Control)
23620 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23622 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23623 whose width is not a multiple of 8.
23625 2006-06-13 Jackson Harper <jackson@ximian.com>
23627 * MdiClient.cs: Only maximize the next child if the current one
23630 2006-06-13 Chris Toshok <toshok@ximian.com>
23632 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23633 modified. Also, guard against grid or grid_drawing being null in
23636 * DataGrid.cs: Reformat tons of getters/setters. In the
23637 DataMember setter, just call SetNewDataSource instead of
23638 duplicating some of its functionality. In SetNewDataSource, don't
23639 check ListManager for null, since the property getter creates the
23642 * DataGridTableStyle.cs: don't set TableStyle or call
23643 SetDataGridInternal on the column here, it's done in
23644 GridColumnStylesCollection.Add.
23646 * GridColumnStylesCollection.cs: fix all the explicit interface
23647 implementations to just call our methods. Nuke AddInternal() and
23648 move the body of it to Add(). Also, add a call to
23649 column.SetDataGridInternal to Add().
23651 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23652 base()+duplicate code. Also, use the Format property instead of
23653 format to generate an Invalidate ala MS. Lastly, create the
23654 textbox here, unconditionally.
23655 (set_Format): call Invalidate.
23656 (get_TextBox): no need to call EnsureTextBox.
23657 (Commit): remove the message box.
23658 (Edit) remove the call to EnsureTextBox.
23659 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23660 (EnterNullValue): no need to check textbox for null.
23661 (HideEditBox): no need to check textbox for null.
23662 (SetDataGridInColumn): add the textbox to the grid's controls.
23663 (EnsureTextBox): nuke.
23665 2006-06-13 Jackson Harper <jackson@ximian.com>
23667 * MdiWindowManager.cs: Hook up to the maximized menus paint event
23668 and redraw the buttons when needed. Unhook when the window is
23670 * MainMenu.cs: Add an internal Paint event, the mdi window manager
23671 needs this so that it can redraw its buttons when the menu is
23673 * InternalWindowManager.cs:
23674 * Form.cs: The method order has changed for DrawMaximizedButtons,
23675 so that it can be a PaintEventHandler.
23677 2006-06-13 Jackson Harper <jackson@ximian.com>
23679 * MdiClient.cs: When we close a maximized mdi window, the next mdi
23680 window is activated and maximized, even if it wasn't before.
23681 - When a new window is activated repaint the decorations of the
23682 old one, so that it no longer has the Active "look" (the blue
23684 * InternalWindowManager.cs: Open up CreateButtons to base classes
23685 so they can recreate the buttons on state changes.
23686 - If a window is maximized give it all three buttons
23687 * MdiWindowManager.cs: Create the titlebar buttons when the state
23688 is changed, this is needed because a toolwindow will not have all
23689 three buttons until it is maximized.
23691 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
23693 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23696 2006-06-12 Jackson Harper <jackson@ximian.com>
23698 * KeysConverter.cs: Make sure we handle the Ctrl special case
23699 if its the only key.
23701 2006-06-12 Jackson Harper <jackson@ximian.com>
23703 * Theme.cs: Add a method to get the size of a managed window
23705 * InternalWindowManager.cs: Remove the ButtonSize property, this
23706 should be retrieved from the theme.
23707 * MdiWindowManager.cs: Get the button size from the theme
23708 * ThemeWin32Classic.cs: Make the method to get the managed window
23709 titlebar button size public.
23710 - Handle the different button sizes of maximized toolwindows
23711 (should match any maximized window).
23712 - Get the titlebar height from the theme, not the WM (which gets
23713 it from the theme).
23715 2006-06-12 Jackson Harper <jackson@ximian.com>
23717 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
23718 event down to the mdi window manager.
23719 - Expose some extra stuff to base classes
23720 - Make sure to end the Capture on an NC Mouse up, so that we can
23721 get double clicks properly, and the sizing doens't stick.
23722 - When doing PointToClient contain it in the workable desktop
23723 area, this prevents windows from changing size when the cursor is
23724 pulled outside of the working area while sizing.
23725 * MdiWindowManager.cs: When we get a double click maximize the
23727 - Reset the cursor after handling mode changes.
23729 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
23731 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
23732 current desktop, instead of just assuming a 0, 0 origin. This
23733 is needed for our internal window manager, to know the top
23734 margin of the desktop
23736 2006-06-12 Chris Toshok <toshok@ximian.com>
23738 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
23739 we need this to get rid of the selected background in the bool
23741 (CancelEditing): move the ConcedeFocus call to above the Abort
23742 call. Also, set is_changing to false and invalidate the row
23743 header if we were changing before.
23744 (ProcessKeyPreviewInternal): remove, since noone outside this
23745 class calls it anymore. Roll the code into ProcessKeyPreview.
23746 (EndEdit): remove the internal version.
23747 (InvalidateCurrentRowHeader): make private.
23749 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
23750 Keys.Escape handling (and with it the last call to
23751 DataGrid.EndEdit from outside the class.)
23754 2006-06-12 Chris Toshok <toshok@ximian.com>
23756 * DataGridTextBox.cs (.ctor): isedit defaults to false.
23757 (OnKeyPress): set isedit to true.
23758 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
23759 already handled by the grid.
23761 * DataGrid.cs (set_CurrentCell): more work here. it's still not
23763 (set_DataSource): SetDataSource always returns true, so stop
23764 putting it in an if statement.
23765 (EndEdit): get rid of some {}'s
23766 (ProcessGridKey): return true in case Keys.Escape.
23767 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
23768 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
23769 PositionChanged, stopped connecting to CurrentChanged.
23770 (GetDataSource): simplify this a bunch.
23771 (SetDataSource): change return type from bool to void.
23772 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
23773 to this, and make sure we don't set ListManager.Position inside
23775 (OnListManagerItemChanged): if we're passed an actual index,
23778 * CurrencyManager.cs (set_Position): don't call PullData here.
23780 2006-06-09 Jackson Harper <jackson@ximian.com>
23782 * TreeNode.cs: Recalculate the visible order before doing the
23783 Expand/Collapse Below calls, because those calls generate an
23785 - Reduce calls to the TreeView property, which is mildly expensive
23786 by using a local var.
23787 * Form.cs: Layout the MDI child windows when creating the parent
23789 - Don't use the internal constructor anymore
23790 * MdiClient.cs: use the parent form width/height (if available)
23791 when laying out the child windows, we do this because the
23792 mdiclient isn't docked yet when the initial layout is done.
23793 - Don't need an internal constructor anymore.
23795 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23797 * FileDialog.cs: handle access errors when trying to create a folder
23798 or changing to a directory. No need to initialize out parameters.
23800 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23802 * FileDialog.cs: Append a number when creating a new folder if the
23803 folder already exists (use parenthesis instead of square brackets)
23805 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23808 - Disabled registry support for windows and added better registry
23809 error checking for other systems (need to investigate why it
23810 works perfectly on my system)
23811 - If a folder already exist show an error MessageBox instead of
23812 trying to create an indexed name.
23813 - Fixed a non intentional typo.
23815 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23817 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
23819 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23821 * FileDialog.cs: When creating a new folder don't crash if the
23822 folder already exists.
23824 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23826 * FileDialog.cs: Allmost a complete rewrite.
23827 - added a "virtual" file system that handles the differences
23828 between unix and windows file systems (especially the directory
23829 structure). Moved most of the directory and file handling code
23831 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
23832 UnixFileSystem and FSEntry.
23833 - Recently used folder/directory, size, location and used file names
23834 (file name ComboBox) are now stored in the registry and get read
23835 before the dialog shows up (fixes part 6 of bug #78446).
23836 - Creation of new folders/directories is now possible (context menu
23837 or ToolBar). Added TextEntryDialog for this that fills in the gap
23838 until ListView.LabelEdit works.
23839 - Fixed cursor handling (bug #78527) and focus handling for
23841 - Various "Search in" ComboBox enhancements. The content of the
23842 dropdown listbox now almost matches ms.
23843 - Changed the behaviour when the user switches to SpecialFolder
23844 Recent to show the ListView in View.Details.
23845 - Beside using the ToolBar to change the View property of the
23846 file ListView it is now possible to use the context menu too.
23848 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
23850 * ComboBox.cs: Don't create a new ObjectCollection when an item
23851 gets inserted. Just insert the item in the existing object_items
23854 2006-06-08 Jackson Harper <jackson@ximian.com>
23856 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
23857 that the treeview and root node checks are done also, this fixes a
23858 regression i caused in the unit tests.
23860 2006-06-07 Wade Berrier <wberrier@novell.com>
23862 * RichTextBox.cs: More ISO8859-1 -> unicode
23864 2006-06-07 Mike Kestner <mkestner@novell.com>
23866 * ComboBox.cs : use items to hold highlight/selection so that
23867 collection insertions don't require synchronization.
23869 2006-06-07 Jackson Harper <jackson@ximian.com>
23871 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
23872 routine. We now always keep the sized edge at the cursor instead
23873 of computing movement and adjusting rects. There is one buglet
23874 with this method though when the cursor is moved over area that
23875 the window can not expand too (such as the toolbars on the desktop).
23877 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23879 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
23880 here. Fixes crash on startup in AlbumSurfer.
23882 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
23884 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
23887 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23889 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
23890 statement to avoid calling XNextEvent which will block if another thread
23891 took the event that we were expecting. Fixes bug #78605.
23893 2006-06-07 Mike Kestner <mkestner@novell.com>
23895 * ListView.cs : isolated checkbox clicking from the selection logic.
23896 Toggle check state on item doubleclicks. Really fixes #78454 part2.
23898 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23900 * Form.cs: Check that the value passed to Form.DialogResult
23901 is a valid enum value.
23903 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23905 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
23906 Computer'. Clicking it in the network view goes to 'My Computer'.
23907 Added CIFS filesystem type. Display the mount point of filesystems.
23908 Avoid duplicate mount points (happens for me with CIFS);
23910 2006-06-06 Jackson Harper <jackson@ximian.com>
23912 * InternalWindowManager.cs: Draw the maximized windows buttons
23915 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23917 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
23918 all other dialogs. Fixes bug #78585.
23920 2006-06-06 Mike Kestner <mkestner@novell.com>
23922 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
23923 Only invalidate checkbox on checkstate changes to avoid flicker.
23924 * ListBox.cs : avoid unselect/select when clicking selected item.
23925 avoid reselection flicker for already multiselected items.
23928 2006-06-06 Jackson Harper <jackson@ximian.com>
23930 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
23931 the parent form so that the menu is removed if needed.
23933 2006-06-06 Mike Kestner <mkestner@novell.com>
23935 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
23936 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
23938 2006-06-06 Mike Kestner <mkestner@novell.com>
23940 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
23943 2006-06-06 Jackson Harper <jackson@ximian.com>
23945 * Control.cs: Use the property (instead of the field) to get the
23946 default cursor so it is instantiated correctly.
23947 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
23948 resizes so we need to manually repaint the window decorations here.
23949 - Set the titlebar button locations as soon as they are created,
23950 otherwise they are not set correctly on win32.
23952 2006-06-06 Chris Toshok <toshok@ximian.com>
23954 * CurrencyManager.cs (set_Position): call PullData before
23956 (AddNew): after calling IBindingList.AddNew, update our
23957 listposition, and call OnCurrentChanged/OnPositionChanged (without
23959 (OnCurrentChanged): remove the call to PullData from here.
23960 (OnItemChanged): remove the call to PushData from here.
23961 (OnPositionChanged): change the test from == null to != null to
23962 match the other methods.
23963 (ListChangedHandler): the grossest part of the patch. Implement
23964 this such that it passes the unit tests in CurrencyManagerTest and
23965 the output more or less matches that of MS's implementation.
23967 2006-06-06 Mike Kestner <mkestner@novell.com>
23969 * ListView.cs : only update check state on single click.
23970 * ThemeWin32Classic.cs : fix focus drawing for details view without
23971 fullrowselect. Fixes #78454.
23972 * XplatUIX11.cs : fix for double click emission.
23974 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
23976 * PropertyGridView.cs : Applied Atsushi's patch to fix
23977 font dialog bug (#78197).
23979 2006-06-05 Jackson Harper <jackson@ximian.com>
23981 * TreeNode.cs: Compute the next node for expanding/collapsing
23982 correctly. We now factor in nodes without a NextNode
23983 correctly. (Fixes somes cases in nunit-gui).
23984 * InternalWindowManager.cs: Set the bounds when updating the
23985 virtual position of a tool window.
23987 2006-06-05 Chris Toshok <toshok@ximian.com>
23989 * DataGrid.cs: rename cached_currencymgr to list_manager.
23990 (set_CurrentCell): move SetCurrentCell code here, and clean it up
23992 (CurrentRow, CurrentColumn): single accessors so we can make the
23993 cursor movement code a lot easier to understand.
23994 (CurrentRowIndex): implement this in terms of CurrentRow.
23995 (BeginEdit): clean this up a bit.
23996 (CancelEditing): sort out the is_editing/is_changing/is_adding
23998 (EndEdit): minor changes.
23999 (OnKeyDown): add a comment about a (most likely) unnecessary
24001 (OnMouseDown): cancel editing when we click on a row header. And
24002 use the CurrentRow setter, not CurrentCell.
24003 (ProcessDialogKey): directly call ProcessGridKey.
24004 (UpdateSelectionAfterCursorMove): factor out this common block of
24005 code (it's used everywhere that we move the cursor by updating row
24007 (ProcessGridKey): pretty substantial overhaul. Use the
24008 CurrentRow/CurrentColumn properties to make the code a lot more
24009 readable. Only use the CurrentCell property when we have to
24010 modify both row and column at once. Tab behavior is still broken,
24011 and Delete is untested.
24012 (Select): if we have no selected rows, set selection_start to
24014 (EditCurrentCell): rename EditCell this. It was only ever invoked
24015 with CurrentCell as the arg, so drop the arg and rename it.
24017 * DataGridColumnStyle.cs: clean up the constructors a little, and
24018 drop CommonConstructor().
24020 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
24021 actually get notified when the user hits it.
24022 (ProcessKeyMessage): *substantially* simplify this method.
24023 There's no reason (that I can see) for the textbox to be making
24024 calls into the datagrid at all. Remove all of them but the ones
24025 for Enter handling. those will take some more work.
24027 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
24028 calling HideEditBox.
24029 (HideEditBox): if we have an active textbox, render it invisible
24030 without causing a re-layout of the datagrid.
24032 2006-06-05 Mike Kestner <mkestner@novell.com>
24034 * ListView.cs : fix NRE crasher when focuseditem is cleared by
24035 collection changes by resetting it to Items[0]. Fixes #78587.
24037 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24039 * MessageBox.cs: if the height of the text is larger than the icon_size,
24040 use that. Fixes bug #78575.
24042 2006-06-05 Jackson Harper <jackson@ximian.com>
24044 * TreeView.cs: Fix line drawing when scrolling. To do this each
24045 node is basically responsible for drawing its entire horizontal
24046 area. When drawing a node it draws its parent node lines if
24048 - Adjust the clip area to the viewport rectangle
24049 - Fix Left/Right key handling to match MS. (It expand/collapses
24050 and moves to parents/first child but does not move selection to
24052 - Fix SetTop to work with new bound calculation code
24053 - When scrollbars are no longer needed we need to reset scrolling
24054 vars and recalculate the visible order so the redraw is correct
24055 * TreeNode.cs: We can't expand/collapse nodes with no children.
24057 2006-06-03 John Luke <john.luke@gmail.com>
24059 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
24060 so the colors work without dev packages
24062 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
24065 - Select: Implemented to just use activate. Seems to match MS
24066 behaviour closest. Documented to only do actual control walking
24067 based on it's parameters if in a container control so I moved
24069 - Removed selection check logic from our internal Select() method
24070 * ContainerControl.cs:
24071 - Select: Moved selection logic from Control here, since MS documents
24072 that containers obey the bool arguments. No longer calling base
24074 2006-06-02 Jackson Harper <jackson@ximian.com>
24076 * TreeView.cs: If the selected node isn't changed when we get
24077 focus update the previously selected node so that we see the
24080 2006-06-02 Mike Kestner <mkestner@novell.com>
24082 * ComboBox.cs: restructure grab and general mouse event handling.
24083 Make the composite control raise mouse events like it was a single
24084 control for leaves/enters/motion/up/down events. fix dropdown list
24085 coordinate mangling and refactor it into the scrollbar subclass to
24086 reduce code duplication. Fixes #78282 #78361 and #78457.
24088 2006-06-02 Mike Kestner <mkestner@novell.com>
24090 * ScrollBar.cs: remove Capture setting/clearing, as it happens
24091 automatically in the Control.WndProc.
24093 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24095 * FileDialog.cs: fix crash when running SharpChess, which sets the
24096 FilterIndex to 2 with only one Filter.
24098 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24100 * ToolBar.cs: add SizeSpecified property.
24101 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
24102 try to figure out our real size, otherwise fallback to what the
24105 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24107 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
24108 * Control.cs (WndProc): MS always calls the DefWndProc to pass
24111 2006-06-01 Mike Kestner <mkestner@novell.com>
24113 * ListView.cs: revamp the focus management in ListView. It still
24114 causes churn of LostFocus/GotFocus emissions on clicks, but it's
24115 better than not handling focus at all. Will revisit when pdb feels
24116 the general focus handling is solid. Fixes #78526.
24118 2006-06-01 Jackson Harper <jackson@ximian.com>
24120 * TreeView.cs: Set the default border style in the constructor.
24121 - Move painting to use OnPaintInternal instead of capturing
24122 WM_PAINT, this is the correct way of doing things
24123 - UpdateBelow shouldn't invalidate the scrollbar area
24124 - Cap the top on update below in case the node was above the top
24125 of the viewport rectangle.
24126 - ExpandBelow and Collapse below need to obey Begin/End Update.
24127 * TreeNode.cs: Make is_expanded internal so the treenode
24128 collection can change it without firing the whole event chain.
24129 * TreeNodeCollection.cs: When clearing all the child nodes make
24130 sure to recalc the visible order.
24131 - Improve algo for remove the top node
24133 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24135 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
24136 SendMessage directly calling window procedures, which in turn might
24139 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
24141 * Control.cs: Don't handle WM_SETFOCUS if the same window already
24142 has focus (works around X11 sending a FocusIn after our SetFocus)
24143 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
24145 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
24147 * Mime.cs: Fix for the NET_2_0 build.
24148 NameValueCollection needs StringComparer now.
24150 2006-05-31 Chris Toshok <toshok@ximian.com>
24152 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
24153 return (via an out parameter) the starting X of the column.
24154 (UpdateVisibleColumn): track change to FromPixelToColumn.
24155 (HitTest): add a ColumnResize case here.
24156 (DrawResizeLine): new function, probably poorly named.
24158 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
24159 only need to keep one reference.
24160 (set_ListManager): same.
24161 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
24162 Also, add support for HitTestType.ColumnResize.
24163 (OnMouseMove): add column resize behavior here, and change the
24164 cursor to the correct one as we move around the datagrid.
24165 (OnMouseUp): terminate the column resize if we're resizing.
24166 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
24167 for the current cell.
24168 (ConnectListManagerEvents): use cached_currencymgr.
24169 (DisconnectListManagerEvents): fill this in, using
24170 cached_currencymgr.
24171 (SetCurrentCell): remove cached_currencymgr_events handling.
24172 (SetDataMember): only call DisconnectListManagerEvents if
24173 cached_currencymgr is != null.
24174 (SetDataSource): same.
24175 (OnListManagerCurrentChanged): cached_currencymgr_events ->
24176 cached_currencymgr.
24178 2006-05-31 Jackson Harper <jackson@ximian.com>
24180 * BindingManagerBase.cs: Remove somedebug code that creeped into
24182 * TreeNode.cs: We get the indent level dynamically right now, so
24183 don't track it as a member.
24184 * TreeNodeCollection.cs: Make sure all nodes added to the list
24185 have parents, treeviews/topnodes setup properly.
24186 - Don't attempt to track indent level.
24188 2006-05-30 Jackson Harper <jackson@ximian.com>
24190 * BindingContext.cs: Create the currency manager tables here.
24191 This allows us to more easily create null tables (when bad data
24192 members are used), and more easily create related currency
24194 * CurrencyManager.cs: All the table creation stuff is done by the
24195 binding context now.
24196 - Current should throw an exception if listposition is -1.
24197 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
24200 2006-05-30 Mike Kestner <mkestner@novell.com>
24202 * ListView.cs: allow reexpansion of zero-width column headers.
24205 2006-05-28 Chris Toshok <toshok@ximian.com>
24207 * CurrencyManager.cs (get_Current): after the late binding
24208 listposition = -1 fix, we need to guard against it here and return
24209 null, otherwise we raise an exception (which is swallowed
24210 elsewhere, and breaks datagrid databinding.)
24212 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24214 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
24215 than WM_SYSKEY, don't throw if get something unexpected (#78507)
24217 2006-05-26 Jackson Harper <jackson@ximian.com>
24220 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
24221 values, it's faster and it's all we care about (we don't care if
24222 the names aren't equal).
24223 * KeyboardLayouts.cs: Eliminate some dead code.
24225 * X11Keyboard.cs: Lazy init keyboard detection.
24226 - Cleanup access modifiers a little.
24228 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24230 * XplatUIX11.cs: Once again, attempting to get layout just right.
24232 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
24234 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
24235 the sizes of each link section, that will result in sizes that
24236 match DrawString's layout (Fixes #78391)
24238 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
24240 * FileDialog.cs: If AddExtension property is true autocomplete the
24241 extensions in SaveFileDialog correctly. Fixes bug #78453.
24242 Set MyNetwork and MyComputer to "C:\" for windows. This should
24243 fix part 8 of bug #78446 for now.
24245 2006-05-26 Chris Toshok <toshok@ximian.com>
24247 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
24248 invalidate the current row header if we need to, but presumably
24249 we'll invalidate the row corrsponding to the bounds or
24251 (GridHScrolled): switch back to this method, as it's part of the
24252 public api. *sigh*.
24253 (GridVScrolled): same.
24254 (OnMouseWheel): hack up something that more or less works. Call
24255 GridHScrolled/GridVScrolled directly, instead of duplicating much
24256 of their code here.
24257 (EnsureCellVisibility): reinstate a bunch of this code, since we
24258 can't just set the scrollbar Value and expect to do all the work
24259 in the ValueChanged handler. Also, Call Update() after scrolling
24260 in one direction so the other XplatX11.ScrollWindow call has the
24261 proper stuff in the proper places.
24262 (EditCell): set is_editing to true before calling .Edit.
24264 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
24265 don't bother comparing first.
24266 (OnKeyPress): call grid.ColumnStartedEditing before calling
24267 base.OnKeyPress. this will set is_changing and invalidate the row
24268 header if necessary.
24269 (ProcessKeyMessage): for WM_CHAR messages, call
24270 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
24273 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
24274 it's done in the DataGrid.
24275 (NextState): call grid.ColumnStartedEditing, which takes care of
24276 invalidating the row header (and setting is_changing).
24278 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
24279 here. it's done in the DataGrid.
24281 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24283 * Control.cs: allow changing the cursor when the mouse position is
24284 out of bounds but Capture is set.
24285 * LinkLabel.cs: handle the case when the mouse button is pressed on the
24286 linklabel but released somewhere else.
24288 2006-05-25 Jackson Harper <jackson@ximian.com>
24290 * TreeView.cs: When we get focus if there is no selected node make
24292 - Remove some uneeded setup code from Draw.
24293 * TreeNodeCollection.cs: If the tree doesn't have a top node when
24294 a new node is inserted make the new node the top.
24296 * Timer.cs: Use Utc time so that no local time zone stuff needs to
24297 be used (should be faster).
24299 2006-05-25 Chris Toshok <toshok@ximian.com>
24301 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
24302 problem with the last commit.
24304 2006-05-25 Chris Toshok <toshok@ximian.com>
24306 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
24307 need the invalidate call here, while scrolling right-to-left via
24308 the left arrow key (i.e. moving the editing cell while scrolling).
24310 * DataGrid.cs (.ctor): remove the initialization of
24311 ctrl_pressed/shift_pressed. We no longer track them using key
24312 up/down handlers, but by using Control.ModifierKeys. Also, switch
24313 to using ValueChanged handlers on the scrollbars instead of
24314 Scrolled event handlers. This simplifies a bunch of the scrolling
24316 (GridHValueChanged): rename from GridHScrolled, and change it to
24317 work with the new event args.
24318 (GridVValueChanged): same.
24319 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24320 (OnMouseWheel): actually scroll the datagrid. Don't change the
24322 (ProcessGridKey): correct all the keyboard navigation stuff I
24323 could find. Ctrl up/down/left/right/home/end work now.
24324 (EnsureCellVisibility): correct method name spelling. Also,
24325 simplify this a touch by not explicitly calling the
24326 ScrollToRow/ScrollToColumnInPixels methods. We just set the
24328 (OnKeyUpDG): no need for this method now.
24330 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24332 * LinkLabel.cs: display the OverrideCursor when hovering the label.
24335 2006-05-25 Chris Toshok <toshok@ximian.com>
24337 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24340 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24342 * Application.cs: Moved setting of is_modal and closing to before
24343 we create the control, to allow the event handlers called as a
24344 result of creation affect closing. Also removed Gonzalo's previous
24345 change to setting DialogResult, the behaviour has been moved to
24348 - ShowDialog(): Removed explicit creation of the form, let RunLoop
24350 - ShowDialog(): If no dialog result is set, we need to return Cancel
24351 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24352 the close is cancelled
24354 2006-05-25 Jackson Harper <jackson@ximian.com>
24356 * StatusBar.cs: We only need to update the sizes of the other
24357 panels when we have auto size contents. Also we are only updating
24358 the contents of the panel, not the borders, so compensate for the
24359 border width (TODO: get this width from the theme somehow).
24360 * TreeView.cs: Scrollable is true by default
24361 - Use invalidate instead of refresh where needed
24362 - Factor the scrollable value into scrollbar updating
24363 - Update the scrollbars if the Scrollable property is altered
24364 - Update the selected node if its ImageIndex is changed
24365 - Handle null nodes in UpdateNode (mainly so we don't have to
24366 check if selected is null when updating it
24367 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24368 are factored into the visible count
24369 - Use VisibleCount for clarity in the code
24370 - When the font is changed we need to recurse through all the
24371 nodes and invalidate their sizes
24373 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24375 * Application.cs: set the DialogResult to fixed when the main form is
24376 hidden or destroyed while being modal.
24378 2006-05-25 Miguel de Icaza <miguel@novell.com>
24380 * Theme.cs: Use Tangoified messagebox icons.
24382 (GetSizedResourceImage): Also cope with width = 0 and do not
24383 trigger a warning in that case (0 means "give me your icon from
24384 the resouce, no special size needed).
24386 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
24388 * Application.cs: Leave runloop if the the main modal form is
24389 hidden (fixes #78484)
24391 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
24393 * BindingContext.cs : reject null datasource in Contains() and
24395 * CurrencyManager.cs : check data_member validity when data_source
24396 is dataset. When it is late binding, the initial position is -1.
24398 2006-05-24 Jackson Harper <jackson@ximian.com>
24400 * TreeNodeCollection.cs: Dont't recalculate the visible order on
24401 inserted nodes that aren't visible. This changes the
24402 max_visible_order which confuses scrollbar settings.
24403 - Use the enumerator to get the prev node instead of duplicating
24405 * TreeView.cs: Use new method for setting scrollbar values
24406 - Don't set the bounds every time the scrollbar is updated
24407 - When updating below the root node use an invalidate instead of a
24408 refresh to prevent the child controls (scrollbars) from being
24409 refreshed. (UpdateBelow still needs to be reworked anyways).
24410 - Reenable SetBottom now that visible orders are set correctly,
24411 added some debug code incase we ever get bad values there again.
24412 - Set the scrollbar max to 2 less then the max value, this
24413 compensates for the max value being one above the node count, and
24414 for scrollbars adding one extra "notch".
24415 - When drawing image nodes if there is an imagelist we draw the
24416 first image in the list if the supplied image index is out of the
24417 image list's bounds.
24419 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24421 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
24422 we receive a size change from the WM (Fixes #78503)
24424 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24426 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
24427 rectangle (Fixes #78501)
24429 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
24432 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
24434 - Fixed MouseMove to no longer switch pressed state unless the left
24435 mouse button is pressed. Atsushi provided the original patch (#78485)
24437 2006-05-24 Jackson Harper <jackson@ximian.com>
24439 * ScrollBar.cs: New internal methods that allow us to change a
24440 couple values on the scrollbar (the most common case is maximum
24441 and large change) without getting multiple invalidates.
24443 2006-05-24 Chris Toshok <toshok@ximian.com>
24445 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24446 (Edit): save off the original state in oldState, and set
24447 grid.is_editing to true.
24448 (OnKeyDown): abort editing if escape is pressed. also, call
24449 NextState if space is pressed.
24450 (OnMouseDown): call NextState.
24451 (NextState): factor out shared code from OnKeyDown and OnMouseDown
24452 here. Also, only invalidate the row header once (on the initial
24453 is_changing switch) to save on redraws.
24455 2006-05-24 Chris Toshok <toshok@ximian.com>
24457 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24458 if the value in the cell is different than it was before. This
24459 keeps us from triggering a layout when we move around a datarid
24460 with a highlighted cell.
24461 (Edit): suspend layout when creating/positining the text box, and
24462 resume passing false so we don't ever actually re-layout.
24463 (ReleaseHostedControl): same.
24464 (EnsureTextBox): reformat slightly, and set WordWrap to false.
24466 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24467 control-key sequences should go to the datagrid - remove that
24468 lock. Also, modify the conditions under which we move between
24469 cells when moving the cursor within a cell, and remove the "this"
24470 and "base" from field accesses. We weren't even consistent, given
24471 they all were in the base class.
24473 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
24475 * Binding.cs : (.ctor)
24476 An obvious NRE fix for BindingTest.CtorNullTest().
24478 2006-05-23 Chris Toshok <toshok@ximian.com>
24480 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24481 them between lines. This fixes some quirks editing cells in the
24484 2006-05-23 Jackson Harper <jackson@ximian.com>
24486 * TreeView.cs: Use begin/end update when doing expand/collapse all
24487 so that we don't get flicker on the scrollbar.
24489 2006-05-23 Jackson Harper <jackson@ximian.com>
24491 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
24492 treenode calculations to be independant of the painting code. To
24493 do this nodes track a visible order which is calculated by the
24495 - Call new methods for expanding/collapsing nodes. These methods
24496 use scrollwindow so we don't have to update everything below the
24498 * TreeView.cs: Refactored drawing and scrolling code. We don't
24499 need to update nodes when drawing anymore or calculate scrollbar
24501 - Added new methods for expanding/collapsing nodes. These methods
24502 use ScrollWindow so as to not have to redraw all the nodes below.
24503 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24504 we add/remove nodes or sort.
24505 - Handle removing the selected and the top node properly.
24507 2006-05-23 Chris Toshok <toshok@ximian.com>
24509 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24510 maybe this should actually happen in the datagrid code?
24511 (EndEdit): no need to invalidate anything, given that
24512 ReleaseHostedControl causes the datagrid to relayout, which
24513 invalidates everything anyway.
24515 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24516 in SetCurrentCell).
24517 (set_SelectionBackColor): call InvalidateSelection instead of
24519 (set_SelectionForeColor): same.
24520 (BeginEdit): Flesh this out a bit.
24521 (CancelEditing): only do any of this if we're editing/adding.
24523 (OnMouseDown): there's no need to cancel editing here, it's done
24525 (SetCurrentCell): only invalidate the current row header if it's a
24526 different row than the new one.
24527 (ShiftSelection): fix this to work like MS does.
24528 (ResetSelection): factor out the invalidation of selected_rows to
24529 InvalidateSelection.
24530 (SetDataSource): cancel any editing that's going on.
24532 * DataGridColumnStyle.cs
24533 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24534 call the non-interface version.
24536 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24537 header rectangle with the clip rectangle so we don't redraw the
24538 entire header for just a small area. Gets rid of the last flicker
24539 when horizontally scrolling.
24540 (DataGridPaintRow): same.
24542 2006-05-23 Mike Kestner <mkestner@novell.com>
24544 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24545 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
24546 poorly placed checkbox on the MS control. Fixes Alex's unfiled
24547 Critical bug report.
24549 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24551 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24552 and this fixes #78493
24554 2006-05-23 Miguel de Icaza <miguel@novell.com>
24556 * Theme.cs (GetSizedResourceImage): Scale images if the proper
24559 * FileDialog.cs: Do not change the background for the side bar as
24560 it wont work nicely with the theme, and also reduces the artifacts
24561 in rendering the icons (which I want to fix too).
24563 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24564 resources, not resgen resources.
24566 (PlatformDefaultHandler): Pull images using the new API.
24568 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
24570 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24571 a reference to the hwnd and will not remove it unless there are
24572 no pending exposures (fixes #78341)
24573 * XplatUI.cs: Improved debug
24575 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
24577 * MenuAPI.cs : don't handle OnClick event when it was not the left
24578 button. Fixed bug #78487.
24580 2006-05-23 Mike Kestner <mkestner@novell.com>
24582 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24583 prefer submenus to the top menu for item lookup, to avoid popping down
24586 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
24588 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24589 Graphics.FillRectangle as the visual results are really bad (even
24590 on win). We now draw perfect arrows (and perfect shadows when the
24591 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24592 Pen.DashPattern to draw the dots of each line.
24594 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
24596 * FileDialog.cs: Update the filename combobox when navigating through
24597 the ListView with the cursor keys. Fixes part 7 of bug #78446.
24599 2006-05-22 Mike Kestner <mkestner@novell.com>
24601 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24604 2006-05-22 Mike Kestner <mkestner@novell.com>
24606 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24607 requests. Fix a misspelled parameter and a copy paste exception error
24610 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
24612 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24613 to get the same width/height (5/13) on X11 as the default font has on
24614 win32. This means that our DefaultFont emSize is smaller than the
24615 the MS SWF equivalent (even thought the width/height stays the same)
24617 2006-05-20 Jackson Harper <jackson@ximian.com>
24620 * MdiWindowManager.cs:
24621 * InternalWindowManager.cs: Make sure to use the border width from
24624 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
24626 * PrintDialog.cs: Implements printer details
24628 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
24630 * FileDialog.cs: Added focus handling for PopupButtonPanel.
24631 Fixes part 1 and 2 of bug #78446
24633 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
24635 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24636 instead of sticking to the first ever calculated value
24638 2006-05-19 Mike Kestner <mkestner@novell.com>
24640 * ComboBox.cs: fix mouse motion selection to use MousePosition and
24641 PointToClient, since Capture is set. Fixes #78344.
24643 2006-05-19 Mike Kestner <mkestner@novell.com>
24645 * ListView.cs: match MS behavior in Details view where items are not
24646 drawn if Columns.Count == 0.
24647 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24648 Use a separate pen to draw the check, since changing the width affects
24649 the box as well. Fixes #78454.
24651 2006-05-18 Miguel de Icaza <miguel@novell.com>
24653 * ListView.cs: ArgumentOutOfRangeException, single versions of the
24654 exception should throw the name of the invalid argument.
24656 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24657 there are no files listed.
24659 2006-05-18 Jackson Harper <jackson@ximian.com>
24661 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24664 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24666 * Control.cs: Brought back our old UpdateZOrder method as a private
24667 function and switched our calls from UpdateZOrder to the new one.
24668 This fixes the Paint.Net canvas disappearing bug.
24670 2006-05-18 Jackson Harper <jackson@ximian.com>
24673 * ThemeWin32Classic.cs:
24674 * InternalWindowManager.cs: Move the drawing into the theme,
24675 expose everything the theme should need from the window manager.
24677 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24679 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
24680 from the call to NativeWindow to avoid walking up the parent chain
24681 further than needed (speeds up setting cursors and avoids setting
24682 the wrong cursor if a parent has another cursor defined)
24683 * Cursor.cs: When loading an icon as cursor, MS uses the center of
24684 the icon as hotspot, not what's contained as hotspot in the icon
24685 file. This fixes the perceived drawing offset seen with Paint.Net
24687 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24690 - Store the calculated rectangle in Hwnd object and use it when
24691 setting the client size
24692 - Force Toolwindows to always be type Dock, to ensure they're on top
24694 2006-05-18 Mike Kestner <mkestner@novell.com>
24696 * ComboBox.cs: first pass at ComboBox rework. Layout is more
24697 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
24698 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
24699 Substantial refactoring to remove confusing nested classes. Coding
24700 standard and Get+Set->property refactorings. Shift to index based
24701 highlighting in ComboListBox instead of constantly using IndexOf and
24702 Items[]. Add invalidations on resize for DropDownList to fix ugliness
24703 in FileDialog growth. Draw borders manually since Simple mode needs
24704 to look like two independent controls. Make listbox border
24705 conditional to DropDownStyle. Improved OwnerDraw support.
24707 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
24709 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
24710 Don't set the disposed graphics to null, so we can throw the "right"
24711 exception if the graphics is reused later (added a flag to avoid
24712 double disposing). Some behaviours are different under 2.0 and are
24713 filled under bug #78448.
24715 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
24717 * Control.cs: When double-buffering is enabled, we need to reset
24718 our graphics context between paint calls. Otherwise, any
24719 transformations and other alterations on the context will
24720 become cumulative (#77734)
24722 2006-05-18 Mike Kestner <mkestner@novell.com>
24724 * ListView.cs: do focused item selection like MS on clicks.
24725 Rework focus handling for ItemControl so LostFocus invalidates as
24727 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
24728 the ListView ItemControl has focus.
24730 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
24732 * XplatUIX11.cs: If client_window ends up being width or height zero
24733 due to border settings, move it off window inside whole_window (#78433)
24735 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24737 * Mime.cs: Shrink the mime file cache correctly.
24739 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
24741 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
24743 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24745 * XplatUIX11.cs (AddExpose): More sanity checks
24747 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24750 - AddExpose: Don't add expose ranges outside the size of our
24752 - Cast opacity values to Int32 to avoid crashes with certain
24754 - Added disabled code paths that protect against illegal cross-
24755 thread painting (Developers.exe)
24757 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24759 * ProgressBar.cs: Invalidate the control when it's resized
24760 since block size is based on control size. (#78388)
24762 2006-05-16 Miguel de Icaza <miguel@novell.com>
24764 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
24765 of setting the incoming argument to the "reset" value, we set the
24766 this.datamember to string.empty (before we were invalidating the
24771 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24773 * Form.cs: Only apply transparency settings after the form
24774 is created. (Fixes #77800)
24776 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24778 * ApplicationContext.cs: Grab the HandleDestroyed event so
24779 we know when to fire OnMainFormClosed
24781 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24783 * Application.cs: Introduced sub-class to allow tracking of
24784 threads and centralized triggering of the event mess for
24785 ThreadExit, AppExit, etc.. (#76156)
24787 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
24790 - Do not return a null icon index value for a mime subclass.
24791 Instead try the main mime type class too.
24792 - Seems that some newer distributions don't have a link to some
24793 gnome default icons anymore. So check the default gnome dir too.
24796 2006-05-16 Jackson Harper <jackson@ximian.com>
24798 * MdiClient.cs: Don't paint the parent background image if we have
24799 our own background image.
24801 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
24804 - PerformLayout: Do not shrink space filled by DockStyle.Fill
24805 controls, all filled controls are supposed to overlap (#78080)
24806 - UpdateZOrder is supposed to update the control's z-order in the
24807 parent's z-order chain. Fixed to behave like that
24808 - BringToFront: Removed obsolete code
24809 - SendToBack: Simplyfied
24810 - SetChildIndex: Trigger layout calculations when Z-order changes
24811 since layout is done by z-order
24813 2006-05-16 Chris Toshok <toshok@ximian.com>
24815 [ fixes bug #78410 ]
24816 * DataGrid.cs (set_AlternatingBackColor): use
24817 grid_drawing.InvalidateCells instead of Refresh().
24818 (set_BackColor): call grid_drawing.InvalidateCells.
24819 (set_BackgroundColor): use Invalidate instead of Refresh.
24821 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
24822 invalidate the cell area.
24824 2006-05-15 Chris Toshok <toshok@ximian.com>
24826 [ fixes bug #78011 ]
24827 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
24828 on to DataGridPaintRow.
24829 (DataGridPaintRow): take a clip argument, and only draw the cells
24830 which intersect it. same with the not_usedarea.
24832 * Theme.cs (DataGridPaintRow) add @clip parameter.
24834 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
24835 XplatUI.ScrollWindow.
24836 (ScrollToRow): same.
24838 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
24839 with last column which was causing a gray swath to appear with the
24840 XplatUI.ScrollWindow code.
24842 2006-05-15 Chris Toshok <toshok@ximian.com>
24844 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
24845 use XplatUI.ScrollWindow.
24846 (VerticalScrollEvent): use XplatUI.ScrollWindow.
24848 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24850 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
24852 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24854 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
24855 file since there are no equivalent X11 cursors
24857 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
24859 * MonthCalendar.cs : DateTimePicker should reflect selected date
24860 on mouse*up*, not mouse*down*. Fixed originally reported part of
24863 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
24865 * TabControl.cs : When argument index is equal or more than tab
24866 count, just ignore. Fixed bug #78395.
24868 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
24870 * Control.cs: Dispose all child controls when control is diposed (#78394)
24872 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24874 * ColorDialog.cs: Finally it is possible to select the color with
24877 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24879 * PrintDialog.cs: Fix typo
24881 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
24883 * PrintDialog.cs: PrintDialog is not resizable
24884 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
24885 color. Made some ToolBar drawing methods protected virtual.
24887 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
24889 * PrintDialog.cs: Implementation of the PrintDialog
24891 2006-05-12 Chris Toshok <toshok@ximian.com>
24893 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
24894 thumb, instead use MoveThumb. This has the side effect of making
24895 most of the other thumb moving machinery use MoveThumb as well.
24896 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
24897 need to actually invalidate the rectangle where the new thumb will
24899 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
24900 We force an Update() after, so it's not as fast as it could be,
24901 but at least there's zero flicker and no droppings.
24902 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
24903 (UpdateThumbPos): add another argument (dirty), which says whether
24904 or not to calculate/add dirty regions which we later invalidate.
24905 For cases where we know we're going to use MoveThumb, we pass
24906 false for this. Otherwise, pass true.
24908 2006-05-12 Jackson Harper <jackson@ximian.com>
24910 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
24913 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
24915 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
24916 and GetClipRegion methods and UserClipWontExposeParent property.
24917 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
24918 overriding UserClipWontExposeParent property, setting to false, since
24919 Win32 handles the required expose messages to draw our clipped parent
24921 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
24922 PaintEventStart to set the user clip region if set.
24924 - Now internally tracking the Region for the control since we need to
24925 store it if the handle is not yet created and only set it when it
24926 becomes created. Before setting the region forced handle creation
24927 - Added code to draw the parents underneath a user-clipped region
24928 * Hwnd.cs: Added UserClip property
24930 2006-05-12 Chris Toshok <toshok@ximian.com>
24932 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
24933 (set_Maximum): same.
24934 (set_Minimum): same.
24935 (set_SmallChange): same.
24936 (OnMouseUpSB): remove the call to refresh when releasing the
24937 thumb. We shouldn't need it.
24939 2006-05-12 Miguel de Icaza <miguel@novell.com>
24941 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
24942 AutoSize set to None, we do not need to relayout everything, we
24943 just need to invalidate the current region.
24945 (Draw): Do not draw the entire ClientArea, just redraw the
24946 clip area being passed.
24948 * MdiClient.cs: Make MdiClient constructor with the Form argument
24951 2006-05-12 Jackson Harper <jackson@ximian.com>
24953 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
24954 parents background image, but strangely not their own.
24955 - (DrawStatusBarPanel): Take into account horizontal alignment
24956 when drawing the strings and icons.
24958 2006-05-12 Mike Kestner <mkestner@novell.com>
24960 * ListBox.cs: avoid invalidations for focus when the collection is
24963 2006-05-12 Chris Toshok <toshok@ximian.com>
24965 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
24966 invalidate the entire thumb area. Call InvalidateDirty which
24967 limits the redraw to the thumb itself and surrounding pixels.
24969 * XplatUIX11.cs (ScrollWindow): optimize copying.
24971 2006-05-12 Chris Toshok <toshok@ximian.com>
24973 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
24974 Figure out the positioning/layout in a single pass instead of
24975 multiple recursive invocations. Speeds up the initial display of
24976 the data grid. Also, make many things private that were
24977 originally public but unused outside this class.
24979 2006-05-11 Jackson Harper <jackson@ximian.com>
24981 * MdiClient.cs: Improved layout code.
24983 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
24985 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
24986 not SelectedObject.
24988 2006-05-11 Chris Toshok <toshok@ximian.com>
24990 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
24991 union of that will always be {0,0,width,height}.
24993 2006-05-11 Jackson Harper <jackson@ximian.com>
24995 * Form.cs: Match MS's DefaultSize for forms (they must have
24996 changed the size in sp2).
24998 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25000 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
25002 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
25004 * TextControl.cs : Fixed bug #78109. This incorrect position
25005 comparison caused crash on automatic line split.
25006 * TextBoxBase.cs : reduce duplicate code.
25008 2006-05-10 Jackson Harper <jackson@ximian.com>
25010 * MdiClient.cs: Active form is only sent to the back when using
25011 the Next form functionality, when a form is clicked the current
25012 active shouldn't be sent to the back.
25013 - Layout the mdi windows when the container is first made visible.
25014 * Form.cs: Give the MdiClient a ref to the containing form when we
25017 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25019 * LinkLabel.cs : link_font could be uninitialized, so populate one
25020 before actual use. Fixed bug #78340.
25022 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
25024 * XplatUIX11.cs : clipboard format native value is IntPtr.
25027 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25030 - Instead of showing context menus directly we send WM_CONTEXTMENU,
25031 which is passed up the parent chain by DefWndProc
25032 - We now handle WM_CONTEXTMENU to display any menu, or pass it
25033 to DefWndProc (#77956)
25034 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
25036 2006-05-10 Jackson Harper <jackson@ximian.com>
25038 * MdiClient.cs: We need to remove the controls from the mdi
25039 collection, when we close the window.
25040 * MdiWindowManager.cs: Special handling of closing mdi windows.
25041 * InternalWindowManager.cs: Make the close method virtual so the
25042 mdi window manager can handle it specially.
25044 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
25047 - Recalculate grid when the data source has changed
25048 - Matches styles provided by user from all data sources types
25049 * DataGridTableStyle.cs: For columns that provided by the user set the
25050 with the preferred value is there was unassigned.
25051 * CurrencyManager.cs: throw OnItemChanged event
25053 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25055 * PictureBox.cs: Don't animate until handle is created. Start animation
25056 when handle is created.
25058 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25060 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
25062 * XEventQueue.cs: We don't need to provide the extra info
25064 2006-05-10 Jackson Harper <jackson@ximian.com>
25066 * MdiClient.cs: If the mdi clients parent form has a background
25067 image set, we draw that background image for the mdi area's
25070 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
25072 * TextBoxBase.cs: Set IBeam cursor (#78347)
25074 2006-05-10 Mike Kestner <mkestner@novell.com>
25076 * ToolBar.cs: fix some text padding issues with ButtonSize
25077 calculation. Update the default size to match MS documentation.
25078 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
25079 button size. Fixes #78296.
25081 2006-05-10 Mike Kestner <mkestner@novell.com>
25083 * ListBox.cs: use is_visible for scrollbar positioning in case the
25084 control isn't on screen yet. Fix off by one with Right vs Width
25085 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
25087 2006-05-10 Jackson Harper <jackson@ximian.com>
25089 * X11Dnd.cs: Drop to a control with another control on top of it.
25090 * ToolBar.cs: Work on a copy of the buttons list, so that it can
25091 be modified in click handlers. TODO: Look for similar problems in
25094 2006-05-09 Jackson Harper <jackson@ximian.com>
25096 * Form.cs: Window managers need the old window state when setting
25098 * InternalWindowManager.cs: Allow the base mdi window manager to
25099 handle more of the MDI only stuff (like maximize buttons).
25100 * MdiWindowManager.cs: Fix some snafus in changing the window
25101 state. Add all the menu functionality, for both popup and
25103 * MdiClient.cs: When a new form is selected the currently
25104 activated form is sent to the back, this matches MS.
25105 - Implement a new method to activate the next mdi child window.
25107 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25110 - Added new InternalCapture method to allow controls to prevent
25111 the capture behaviour on the click handlers
25112 - Switched to use InternalCapture
25114 - Using InternalCapture to prevent mouse captures from being released
25115 on mouse button release (Fixes #78100)
25116 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
25117 returns Form borders if a caption is present. (Fixes #78310)
25119 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
25121 * TreeNode.cs: Changed serialization .ctor to not require every field
25122 to be present. (#78265)
25123 * OwnerDrawPropertyBag.cs: Added serialization .ctor
25125 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
25127 * MimeIcon.cs: for is faster than foreach for strings.
25129 2006-05-05 Mike Kestner <mkestner@novell.com>
25131 * CheckedListBox.cs: update check handling code to not use selected.
25132 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
25133 behavior for visual feedback, motion response, shift/ctrl handling,
25134 and properly deal with all 4 selection modes. Updates to bounds
25135 handling logic. Add scroll wheel support. [Fixes #77842]
25137 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25140 - Moved adding of Implicit controls into .ctor. That way, subsequent
25141 creation of the controls will not cause them to think they are
25142 toplevel windows (fixes #78200 header problem)
25143 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
25144 - Switched visibility setting of header control to use internal field
25145 to avoid triggering handle creation
25146 - Now checking if handle is created before causing a refresh when items
25147 are added (This makes us now match handle creation time with MS)
25148 * Splitter.cs: Removed loading of private splitter cursor, switched to
25149 Cursors version now that that is loading the right ones
25150 * Cursors.cs: Load proper splitter cursors from resources
25151 * Cursor.cs: Added second method of loading resource cursors for the
25152 VS.Net users amongst us
25154 2006-05-05 Mike Kestner <mkestner@novell.com>
25156 * ListView.cs: give header_control a minimum size based on the
25159 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
25161 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
25162 window seems to do that with metacity, so set that type. (#78120)
25164 2006-05-05 Mike Kestner <mkestner@novell.com>
25166 * ListViewItem.cs: fix Details mode checkbox layout bug.
25167 * ThemeWin32Classic.cs: draw a ListView column header for unused space
25168 at the end of the header, if it exists. [Fixes for #78200]
25170 2006-05-04 Jackson Harper <jackson@ximian.com>
25172 * MdiClient.cs: Add a helper property to get the container form.
25173 * MdiWindowManager.cs: We have to make sure to use the menu origin
25174 when drawing the icons and buttons, this fixes maximized window
25175 icons/buttons on win32.
25176 * InternalWindowManager.cs: Reset the restore captions when a
25177 window goes from Maximized to Minimized and vice versa. Move the
25178 DrawMaximizedButtons into the MdiWindowManager source, tool
25179 windows can't be maximized. NOTE: This could use a little
25180 refactoring if time ever permits.
25182 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25184 * TextBox.cs: Add MWFCategoryAttributes
25185 * TextBoxBase.cs: Add MWFCategoryAttributes
25186 * Form.cs: Add MWFCategoryAttributes
25188 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
25190 * Control.cs: Add MWFCategoryAttributes
25191 * ScrollableControl.cs: Add MWFCategoryAttributes
25193 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
25195 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
25196 Divider is true. Fix a little glitch in PropertyToolBar
25199 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
25202 - Dispose: Call base.Dispose, this causes the disposed event
25203 to be fired (and probably other, more important stuff)
25204 - SetVisibleCore: Set is_visible to true after creating the
25205 window so that the window still gets created invisible (if
25206 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
25207 to generate a WM_ACTIVE message
25208 * Form.cs: Call Dispose when we want to destroy the window, instead of
25209 just destroying the handle (Dispose will do that for us)
25211 - RootWindow also needs a queue, so we can properly process the
25212 property change events from RootWindow (like Activate)
25213 - Generatic synthetic WM_ACTIVE message when the active window is
25216 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25218 * LinkLabel.cs: Trigger a recalc of our label dimensions when
25221 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25223 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
25224 for determining width and height (image might not be assigned if
25225 we're drawing an imagelist)
25227 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
25229 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
25230 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
25232 * Theme.cs: No longer returns hardcoded menu height, instead calls
25234 * Form.cs (OnLoad): Scaling happens before triggering Load events
25237 2006-05-01 Mike Kestner <mkestner@novell.com>
25239 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
25241 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25243 * TextBoxBase.cs: Removed Fixme
25244 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
25246 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
25249 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
25250 the rectangle relative to the parent, considering borders. We
25251 don't really want that.
25252 - ScrollWindow: Fixed warning to be more understandable
25253 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
25254 scrollbars and scroll only the visible area
25255 * RichTextBox.cs: Removed debug output
25257 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25259 * NumericUpDown.cs (Text): Just use base
25260 * UpDownBase.cs: Ensure txtView is created before using it
25262 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25264 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
25265 casting to IntPtr to avoid 64bit overflow errors
25267 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25270 - AllowDrop: Don't force handle creation.
25271 - CreateHandle: Added call to tell driver if we're allowed to drop
25273 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25275 * FileDialog.cs: Remember the last directory not only for the
25276 current instance but also for new FileDialog instances.
25278 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25280 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
25281 broke sending async messages
25283 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
25286 - ScrollWindow: Fixed method. We finally generate expose events again
25287 for scrolled areas. This was causing 'garbage' when scrolling
25288 textbox and other controls that used ScrollWindow
25289 - Switched from using the regular queue for paint events to the MS
25290 model of 'generating' paint events when the queue is empty.
25291 We use the new XQueueEvent.Paint subclass to store which windows
25293 - AddExpose now takes the x/y/width/height of the exposed area
25294 and inserts the window into the paint queue if not already there
25295 - InvalidateWholeWindow: Switched to use new AddExpose method
25296 - UpdateMessageQueue: Added which queue to monitor for paint events
25297 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
25298 the unlikely case nothing above handles it. We reset the expose
25299 pending states to get them off the queue.
25300 - GetMessage: Now pulls a paint event if no other events are in the
25302 - Invalidate: Switched to new AddExpose method
25303 - PeekMessage: Updated to understand pending paint events
25304 - UpdateWindow: Fixed logic bug. We were only updating if the window
25305 didn't need updating. Also switched to sending WM_PAINT directly,
25307 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
25308 and random access Remove(). The random access is needed to handle
25309 UpdateWindow() where a WM_PAINT is sent directly without accessing
25311 * ScrollBar.cs: Added Update() calls to cause immediate updates to
25312 allow for better feedback when scrolling. Scrollbars are small and
25313 the immediate update should make it 'feel' more responsive without
25314 slowing things down. ScrollBar still needs it's invaliate logic
25315 updated to not always invalidate the whole bar on certain changes.
25317 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25320 (BackColor): if the control does not support a transparent background,
25321 return the default backcolor when the parent backcolor is transparent.
25323 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
25325 * Application.cs: Updated to new StartLoop/GetMessage API
25326 * RichTextBox.cs: Provide some output on RTF parsing errors
25327 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25328 new queue_id argument to GetMessage and PeekMessage to allow faster
25329 handling of per-thread queues in drivers.
25330 * Hwnd.cs: Added Queue tracking and property
25331 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25332 * XEventQueue.cs: Added thread trackingA
25333 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25335 - Implemented new per-thread queue
25336 - GetMessage: Fixed return/break behaviour on several cases. We were
25337 returning stale messages in some cases, instead of just processing
25340 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25342 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25344 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
25346 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25347 fixed off-by-one comparisons between Width/Height and Right/Bottom.
25349 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
25351 * PropertyGridView.cs: Fix drop down width.
25353 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25355 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25356 a mess in DrawToolBar, so I removed one of them.
25358 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
25360 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25361 needed (clip). Otherwise we get artifacts.
25363 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25365 * FixedSizeTextBox.cs: Added constructor to allow specifying which
25367 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25368 and switched FixedSizeTextBox to only be fixed vertical (#78116)
25369 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25370 if it matches the scale base font (avoids unneeded scaling)
25372 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25374 * X11DesktopColors.cs: One gtk_init_check should be enough
25376 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25378 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25381 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
25384 - Generate OnTextChanged for Backspace even if we're only deleting
25385 the current selection
25386 - When setting the Text property, only select all text if the
25387 control does not have focus when it is being set. Otherwise
25388 just place the cursor at the beginning of the control
25390 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
25392 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25393 Added a little helper to draw PropertyGrid ToolBar with a different
25394 border and a different BackColor.
25395 * PropertyGrid.cs: Some background parts didn't get painted with the
25396 correct background color. Added a class that helps us to draw the
25397 correct border for PropertyGridView and a class that helps us to
25398 draw ToolBars with a different backcolor
25399 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25401 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
25403 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25404 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25406 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25408 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25409 into the palette entries. Also, since we're working on a copy
25410 we needed to copy the palette back onto the bitmap.
25411 * Cursor.cs: Same fix as XplatUIWin32.cs.
25413 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25415 * ImageListStreamer.cs: Need to read the var (or we're off)
25417 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
25419 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
25420 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25421 TextBoxBase.cs: Unused var fixes
25422 * AxHost.cs: Small 2.0 fix
25423 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
25424 as it seems that is what at least Metacity expects. This will make
25425 icons show up on 64bit platforms. We still have some 64bit size
25426 issues, though, since the startup app window size still won't match.
25428 2006-04-25 Mike Kestner <mkestner@novell.com>
25430 * *.cs: cleanup newly reported exception var unused warnings.
25432 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25434 * ThemeWin32Classic.cs: Button image alignment now matches exactly
25437 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25439 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25440 image. The image position is always the same, no matter if the
25441 button is pressed or not.
25443 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
25445 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25446 selection and set the correct filename for SaveFileDialog.
25447 Patch by Emery Conrad.
25449 2006-04-24 Mike Kestner <mkestner@novell.com>
25451 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25452 check for item.X outside the ClientRect instead of item.Y. Fixes
25455 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25457 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25458 trust that value blindly and do some sanity check. Fixes bug #77814.
25460 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25462 * ImageListStreamer.cs: save the mask as a 1bpp image.
25464 2006-04-21 Mike Kestner <mkestner@novell.com>
25466 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25467 pass Checked and Indeterminate to the Theme Engine. Improve
25468 encapsulation with ListBox.
25469 * ListBox.cs: Keep a StringFormat instead of calculating it every item
25470 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25471 nested types. Move all CheckState functionality to CheckedListBox.
25472 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
25473 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
25474 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25475 single base list. Fix scrollbar sizing and placement to mirror MS.
25476 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25478 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25479 for CheckedListBox by using new DrawItemState info. Center the
25480 checkboxes on the items. Use new StringFormat property.
25482 2006-04-18 Jackson Harper <jackson@ximian.com>
25484 * Form.cs: MdiChildren don't do default locations the same way as
25485 regular forms. This prevents a crash when trying to position the
25488 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
25490 * PropertyGridTextBox.cs: Formatting, copyright
25491 * PropertiesTab.cs: Formatting
25492 * PropertyGrid.cs: Formatting
25493 * PropertyGridView.cs: Formatting, fix drop down, enabled double
25494 click toggling of values
25496 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
25498 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25499 * Control.cs (.ctor): verify_thread_handle is static, don't reset
25500 every time a control is created
25501 * Application.cs: Removed obsolete EnableRTLMirroring method
25503 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
25505 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25506 SelectedIndex to -1. Fixes bug #78121.
25508 2006-04-17 Jackson Harper <jackson@ximian.com>
25510 * Binding.cs: Handle null values for Current and BindingContext.
25511 This occurs when binding is a little delayed.
25512 * CurrencyManager.cs: return null for Current when there are no
25514 - Hookup to the listchanged event on the DataView and update
25515 bindings when the list is changed. This fixes late binding of
25518 2006-04-17 Jackson Harper <jackson@ximian.com>
25521 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25524 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
25526 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25528 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25529 with the correct ButtonState
25531 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
25533 * XplatUIX11.cs: Improved distinguishing between window types to
25534 tell the WM a type closer to what the app wants (Fixes #78107)
25536 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25538 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25541 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
25543 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25544 drawing code to reflect the size grip changes
25546 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25548 * ImageListStreamer.cs: fix handling of the mask that follows the main
25549 bitmap when deserializing and serialize it properly. The generated mask
25550 should better be a 1bpp image, but I'll do that later.
25552 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25554 * FileDialog.cs: Show something in the DirComboBox on *nix if the
25555 path doesn't fit into some of our Current.Places
25557 2006-04-13 Jackson Harper <jackson@ximian.com>
25559 * ComboBox.cs: Use borders instead of drawing our own decorations,
25560 try to obey correct rules for heights.
25563 * ThemeClearLooks.cs:
25564 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25565 this is now handled by borders.
25566 - Remove unused DrawListBoxDecorationSize method.
25568 2006-04-13 Mike Kestner <mkestner@novell.com>
25570 * MenuAPI.cs: null guarding for the disbled click check fixes crash
25573 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
25575 * ThemeWin32Classic.cs:
25576 - Fixed CPDrawStringDisabled
25577 - Corrected drawing of disabled menu items
25578 - Fixed drawing of disabled radio buttons (bug #78095)
25579 - Draw check in a disabled CheckBox with color ControlDark
25581 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25583 * Form.cs: Use the provided width when calculating the menu size;
25584 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25585 and ClientSize.Width won't be updated yet
25586 * Application.cs: Use Visible instead of Show() to make form visible,
25587 this way we create the handle later and menusize is considered
25589 2006-04-12 Mike Kestner <mkestner@novell.com>
25591 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25594 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25596 * TextBox.cs: Implemented context menu
25598 2006-04-12 Mike Kestner <mkestner@novell.com>
25600 * ListView.cs: implement box selection. fixes #77838.
25601 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25603 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25605 * XplatUIX11.cs: Added setting of window type when transient window
25606 is created (metacity would move it otherwise)
25607 * X11Structs.cs: Added WINDOW_TYPE atoms
25608 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25609 background (the control is Opaque but still wants transparent
25612 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25614 * Control.cs: Added OnPaintBackgroundInternal to allow controls
25615 that set Opaque but don't mean it (like all ButtonBase-derived
25616 controls) to still draw their background
25617 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25620 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25622 * Control.cs (PaintControlBackground): Set the graphics object
25623 on our PaintEvent to null to prevent it from being disposed
25624 when the PaintEvent gets disposed
25626 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
25628 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25629 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25631 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
25634 - Added transparency check to BackColor property. Transparent
25635 backgrounds are only allowed if the control styles permit it
25636 - Added recursive painting of parent control background and
25637 foreground if a control with a transparent backcolor is drawn
25638 (Thanks to Tim Ringenback for providing his 'hack' as a base
25639 for this patch) Fixes #77985 and #78026.
25640 - Added Opaque style check before calling OnPaintBackground, no
25641 need to draw the background if the control is opaque
25642 - Removed ControlAccessibleObject owner variable (inherited from
25643 base, no need to define again)
25644 - Added some documentation links explaining the drawing events
25647 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25649 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25650 that the affected control is the located at the left border of our
25651 parent (Fixes #77936)
25653 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25655 * TextBoxBase.cs: When rendering disabled or readonly controls,
25656 draw the background with 'Control' instead of 'Window' color as
25657 long as the user hasn't specifically set a color
25659 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25661 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25662 since that won't be updated if the user types text (only if it's
25663 programatically set)
25665 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25667 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25668 layout changes do to app-triggered resizes will have the proper
25669 display rectangle for layout
25671 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
25673 * ThemeWin32Classic.cs:
25674 - Make use of the SystemBrushes and SystemPens wherever possible
25675 - Corrected some highlight colors
25676 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25678 * Theme.cs: Added Empty field to CPColor struct
25680 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
25682 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25683 is displayed when calculating the display rectangle. Thanks to Mike
25684 for teaching me the err of my ways.
25686 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
25688 * ScrollableControl.cs:
25689 - Rewrote DisplayRectangle code, now returning the proper x/y coords
25690 (instead of 0,0) and we now return the real width/height instead of
25691 just the clientrectangle, adjusted for padding. The rectangle is
25692 now cached and created by the new CalculateDisplayRectangle method.
25693 - Created new CalculateDisplayRectange method, which basically does
25694 what get_DisplayRectangle() did originally, but now using the
25695 right edge instead of DisplayRectangle to determine the size of
25697 - get_Canvas(): Fixed it to properly calculate canvas for
25698 right/bottom controls which seem to be placed to the right/bottom
25699 of any controls that have a fixed location
25700 - Removed TODO that's taken care of
25701 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25702 and SetDisplayRectLocation according to new MSDN2 docs
25703 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25704 event when that is called, this is added for compatibility
25705 - ScrollControlIntoView(): Implemented.
25706 - Switched scrollbars to be implicit, they shouldn't be selectable
25707 * ContainerControl: Now that ScrollControlIntoView is implemented, we
25708 call it when the active control is set/changed
25709 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25710 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
25711 implicit_control variable (used for native Win32 message generation)
25712 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
25713 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
25714 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
25715 * XplatUIStructs.cs: Added ScrollBarCommands enum
25717 2006-04-10 Jackson Harper <jackson@ximian.com>
25720 * CheckedListBox.cs:
25727 * PrintPreviewControl.cs:
25733 * UpDownBase.cs: Fixup base event overrides.
25735 2006-04-06 Mike Kestner <mkestner@novell.com>
25737 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
25738 all user-initiated value changes to min <= value <= max-thumbsz+1.
25739 (set_Value): check for vert/horiz when calculating new thumb position.
25740 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
25742 (OnMouseMoveSB): refactor the thumb dragging code and refine
25743 invalidation logic to reduce flicker.
25744 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
25745 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
25746 (UpdateThumbPosition): small code readability cleanup
25748 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
25750 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
25753 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25755 * ThemeNice.cs: Use a better graphics effect when a button is pressed
25757 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
25759 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
25760 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
25761 This dramatically reduces the number of Pen.Dispose calls.
25762 Where possible call ResPool methods only once instead of calling it
25763 over and over again (for example for the same color).
25765 2006-04-06 Mike Kestner <mkestner@novell.com>
25767 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
25768 Also remove an unused private field on the collection. Fixes #77972.
25770 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25772 * ThemeNice.cs: Added ToolBar drawing code
25774 2006-04-06 Mike Kestner <mkestner@novell.com>
25776 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
25777 I'm assuming that means we need to look up the toplevel for the
25778 provided control. Fixes the crash trace in #77911 but exposes another
25779 crash in some strange reflection usage in NDocGui.
25781 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
25783 * ThemeNice.cs: Gave it a little silver touch and added Images
25785 * FontDialog.cs: FontDialog is not resizable
25786 * FileDialg.cs: Added SizeGripStyle.Show
25788 2006-04-05 Jackson Harper <jackson@ximian.com>
25790 * KeyboardLayouts.cs: Remove warning.
25792 2006-04-05 Jackson Harper <jackson@ximian.com>
25794 * Control.cs: Enable OnPaintInternal so we can use it for drawing
25795 all of our controls instead of Paint +=.
25810 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
25811 use OnPaintInternal. Remove Width/Height and Visible checks in
25812 paint handler, this is done at a higher level now.
25813 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
25814 * PaintEventArgs.cs: Add a handled flag so controls that don't
25815 want anymore painting after OnPaintInternal can make sure OnPaint
25818 2006-04-05 Mike Kestner <mkestner@novell.com>
25820 * Form.cs: fix the menu WndProc hacks to respect the native enabled
25821 state of the form, so that we don't process events when Modal dialogs
25822 are up. Fixes #77922.
25824 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
25826 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
25829 2006-04-05 Mike Kestner <mkestner@novell.com>
25831 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
25833 2006-04-05 Mike Kestner <mkestner@novell.com>
25835 * ListView.cs (HeaderMouseMove): null guarding for the over column
25836 when setting up the drag_to_index. Fixes #78015.
25838 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25840 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
25841 in the taskbar. Transient windows seem to accomplish that.
25843 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
25846 - Re-enabled CreateParams.X/Y code for FormStartPosition
25847 - Added code for manual placement when creating the Control
25848 - Incomplete patch to treat MDI forms differently when
25849 setting the ClientSizeCore. (Still need to figure out handling
25852 - When we're explicitly setting the X/Y position of a non-Child
25853 window, let the WM know. Metacity really wants this.
25855 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25857 * ThemeNice.cs: Added CPDrawButton
25859 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25861 * ThemeNice.cs: Changed the color for focused buttons and activated
25862 the arrows for small scroll buttons.
25864 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
25866 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
25867 anymore. Changed some method modifiers to protected (virtual)
25868 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
25870 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
25871 Updated drawing of menus, buttons and progressbars; added
25874 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25876 * ImageListStreamer.cs: implemented serialization/deserialization
25879 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
25881 * ThemeWin32Classic.cs:
25882 - Removed all the DrawFrameControl stuff; CPDrawButton,
25883 CPDrawCheckBox and CPDrawRadioButton are now handled directly
25885 - Updated and corrected the drawing code of CPDrawButton,
25886 CPDrawCheckBox and CPDrawRadioButton to better match ms
25887 - Updated theme checkbox and radiobutton code to use the CP*
25890 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25892 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
25895 2006-03-31 Jackson Harper <jackson@ximian.com>
25897 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
25899 * UpDownBase.cs: Don't CreateGraphics manually, use a
25900 Refresh. Ideally we would invalidate the correct areas here.
25902 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25905 - We now track the mapping state of windows. If a window (or
25906 one of it's parents) is not mapped we no longer permit
25907 WM_PAINT messages to be generated since we'd otherwise get
25908 lots of BadMatch X errors. Jackson did all the work figuring
25910 - Destroying the caret if the window it's contained in is
25911 destroyed. Can't use regular DestroyCaret method since it
25912 might fall into a drawing function (trying to remove the
25913 caret) and with that generate new BadMatch errors. Again,
25914 Jackson tracked this down.
25915 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
25916 make sure we send the messages to all windows. (The old code
25917 would send the WM_DESTROY to the window, and then all child
25918 windows would be 'gone' because the WM_DESTROY handle lookup
25919 would no longer find the destroyed window)
25920 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
25921 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
25923 2006-03-31 Jackson Harper <jackson@ximian.com>
25925 * ScrollableControl.cs: Dont recalc if we are not visible.
25927 2006-03-31 Mike Kestner <mkestner@novell.com>
25929 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
25930 the visibility branch.
25932 2006-03-31 Jackson Harper <jackson@ximian.com>
25934 * ScrollBar.cs: Cap values when incrementing/decrementing.
25936 2006-03-31 Mike Kestner <mkestner@novell.com>
25938 * MenuAPI.cs: setup menu.tracker for popup/context menus.
25939 * ToolTip.cs: guard against timer expirations with no active control.
25940 Not sure why it happened.
25942 2006-03-31 Mike Kestner <mkestner@novell.com>
25944 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
25946 * ToolTip.cs: Position the tooltip based on where the cursor is at
25947 popup time, not at MouseEnter time. Add a Down state so that we don't
25948 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
25949 positioning offset. Lookup DisplaySize at positioning time, since it
25950 can theoretically change during invocation.
25951 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
25952 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
25954 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25956 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
25957 Fixes behaviour when the Text property of the box is String.Empty
25959 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25961 * XplatUIX11.cs: Only send mouseleave for our client windows, not
25962 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
25965 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25967 * FileDialog.cs: Visual enhancement for the popup buttons in
25970 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25972 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
25975 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
25977 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
25978 highlighted menu items to match ms
25980 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
25982 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
25984 2006-03-30 Mike Kestner <mkestner@novell.com>
25986 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
25987 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
25988 go active to account for HotLight to Selected transition.
25989 * MenuItem.cs: add internal Selected prop. Fill out the Status
25990 property by calculating it from item info. Add HotLight,
25991 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
25993 2006-03-30 Mike Kestner <mkestner@novell.com>
25995 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
25997 2006-03-29 Jackson Harper <jackson@ximian.com>
25999 * Form.cs: Implement TODO.
26001 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26003 * PrintPreviewDialog.cs: Implemented missing methods and events; still
26004 missing proper dialog setup in the constructor
26006 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
26008 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
26010 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
26011 - Fixed ResetBindings and removed TODO
26012 - Added check for cross-thread calls to get_Handle()
26013 - Added Marshaller attribute for set_Font to satisfy class status
26014 * FontDialog.cs: Removed TODOs that seemed implemented
26015 * UpDownBase.cs: Removed unneeded TODO and Fixme
26016 * MessageBox.cs: Implemented support for Default button and removed TODO
26017 * FileDialog.cs: Removed obsolete TODO
26018 * DomainUpDown.cs: Removed obsolete TODO
26019 * ButtonBase.cs: Removed obsolete TODO
26020 * XplatUIWin32.cs: Removed obsolete TODO
26022 - Removed obsolete TODO
26023 - Calling CheckAcceptButton when the acceptbutton is changed to allow
26024 internal status updates
26025 - Making sure the active control is selected when the control is created
26026 * CurrencyManager.cs: Removed obsolete TODO
26028 2006-03-29 Mike Kestner <mkestner@novell.com>
26030 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
26031 of PrintPreviewDialog and RichTextBox.
26033 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26035 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
26036 DarkDark, Light and LightLight colors for a specific color
26037 * ThemeWin32Classic.cs:
26038 - Use Button drawing code to draw RadioButtons and CheckBoxes with
26039 Appearance = Button
26040 - Make use of the new ResPool helper CPColor
26041 - Draw ProgressBar and StatusBar with correct 3D borders
26043 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
26045 * ColorDialog.cs: Return selected color. Fixes bug #77940.
26047 2006-03-28 Mike Kestner <mkestner@novell.com>
26049 * ListView.cs: fix Icon layout to plan for scrollbar widths when
26050 calculating col/row counts.
26052 2006-03-28 Mike Kestner <mkestner@novell.com>
26058 switch to explicit interface method implementation for some methods
26059 corcompare identifies as inconsistent with MS.
26061 2006-03-28 Mike Kestner <mkestner@novell.com>
26065 add a few missing methods from the class status output.
26067 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
26069 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
26072 2006-03-28 Mike Kestner <mkestner@novell.com>
26074 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
26076 2006-03-27 Mike Kestner <mkestner@novell.com>
26078 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
26079 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
26081 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
26083 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
26085 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26087 * ThemeWin32Classic.cs:
26088 - GroupBox: Inserted a little gap between the text and the lines
26090 - Made the code in CPDrawBorder3D more readable
26091 - Corrected the drawing location of the up and down arrows in
26094 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26096 * ControlPaint.cs: Corrected line widths in DrawBorder for
26097 ButtonBorderStyle Inset and Outset
26099 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26101 * ThemeWin32Classic.cs:
26102 - Rewrote the totally broken CPDrawBorder3D method. That was
26103 one of the main problems for the terrific ThemeWin32Classic
26105 - Updated and corrected Button drawing
26106 - Correct the dimensions of the SizeGrip to match ms ones
26107 - Removed a small drawing glitch in DrawComboBoxEditDecorations
26108 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
26109 Border3DStyle.Sunken to match ms.
26111 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
26113 * ThemeWin32Classic.cs: First small part of the "de-uglify
26114 ThemeWin32Classic" effort, SizeGrip
26116 2006-03-24 Jackson Harper <jackson@ximian.com>
26118 * XplatUIX11.cs: Give a max idle time of one second, this matches
26119 MS and forces an Idle event every second when there are no other
26120 events in the queue.
26122 2006-03-24 Mike Kestner <mkestner@novell.com>
26124 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
26125 * ListView.Item.cs: fix layout issues with null image lists and images
26126 smaller than checkbox size.
26127 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
26128 mode like MS does. It's weird, but consistent. ;-)
26131 2006-03-24 Mike Kestner <mkestner@novell.com>
26133 * ListView.cs: Scroll wheel support for the item control. Fixes
26136 2006-03-23 Jackson Harper <jackson@ximian.com>
26138 * ScrollableControl.cs: Special case negative sized areas, not
26140 * MonthCalendar.cs: Save the rect of the clicked date so we can
26141 use it for invalidation.
26142 - Try to cut down on the number of invalidates
26143 - Invalidate the rect the mouse is over and was over when moving
26144 the mouse, so we get the focus box following the cursor.
26146 2006-03-23 Mike Kestner <mkestner@novell.com>
26148 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
26149 focus rectangle drawing. Fixes #77835.
26151 2006-03-23 Mike Kestner <mkestner@novell.com>
26153 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
26154 the if and else if and reverting back to the original == check on the
26157 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26159 * FontDialog.cs: Update the example panel if the selected index of
26160 the fontListBox changes.
26162 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
26164 * FileDialog.cs: Make FileDialog remember which directory it was in
26165 last in the same execution.
26167 2006-03-22 Mike Kestner <mkestner@novell.com>
26169 * FileDialog.cs: make the DropDownMenu on the toolbar display
26170 RadioChecks since they are mutually exclusive and that's what MS does.
26172 2006-03-22 Mike Kestner <mkestner@novell.com>
26174 * Theme.cs: add Color param to CPDrawMenuGlyph.
26175 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
26176 checks and radio marks and arrows are visible on highlighted items.
26177 * ControlPaint.cs: update to use new Theme signature.
26179 2006-03-22 Mike Kestner <mkestner@novell.com>
26181 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
26182 is active. Fixes #77870.
26184 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26186 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
26187 to be focused/selected after startup
26189 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
26192 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
26193 CustomColors and ShowHelp properties
26194 - Some internal rewrites to get better results when using the
26197 2006-03-22 Mike Kestner <mkestner@novell.com>
26199 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
26200 HoverSelection. Fixes #77836.
26202 2006-03-22 Mike Kestner <mkestner@novell.com>
26204 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
26205 ToggleButtons. (De)Sensitize the Back button around a stack count of
26206 1, not 0. Update ButtonSize based on a pixel count of the win32
26207 control. Adjust the toolbar size/location for new button size.
26209 2006-03-22 Jackson Harper <jackson@ximian.com>
26211 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
26213 * ScrollBar.cs: When doing increments and decrements we need to
26214 set the Value property so that ValueChanged gets raised. A
26215 possible optimization here would be to make an internal SetValue
26216 that doesn't invalidate immediately.
26217 * ToolTip.cs: Tooltips get added to their container (when
26218 supplied) so they get disposed when the container is disposed.
26219 - Don't create tooltips for String.Empty. This prevents all these
26220 little 2-3 pixel windows from showing up when running nunit-gui
26221 and driving me mad.
26222 * Form.cs: Don't set topmost when setting the owner if the handles
26223 haven't been created yet. The topmost set will happen when the
26224 handles are created.
26226 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
26229 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
26230 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
26231 visible (to allow them to recalculate their sizes)
26233 2006-03-21 Mike Kestner <mkestner@novell.com>
26235 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
26236 methods. Removed a ton of redundant code. Still not really happy with
26237 the border rendering, but I think that's mainly because of the
26238 ControlDarkDark being black instead of a dark grey. Depending on how
26239 close we want to be, we might want to revisit those color choices.
26240 Among the new features added during the refactor were DropDownArrow
26241 pressed rendering, Disabled image rendering. Proper flat appearance
26242 boundary rendering. Removed the Divider and Wrapping dividers since I
26243 can't figure out any combination of themes and conditions to make the
26244 MS control draw a horizontal line on a toolbar despite what the
26245 Divider property docs indicate.
26246 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
26247 conditions and incorrect layout. Updated to coding standard.
26248 * ToolBarButton.cs: refactored layout and positioning code from
26249 ToolBar to here. Invalidate wherever possible instead of forcing
26250 redraws of the whole toolbar.
26251 (Known remaining issues: explicit ButtonSize smaller than provided
26254 2006-03-21 Mike Kestner <mkestner@novell.com>
26256 * ContextMenu.cs (Show): use the position parameter instead of just
26257 showing at the MousePosition.
26259 2006-03-21 Jackson Harper <jackson@ximian.com>
26261 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
26262 control handle this.
26263 * TreeNodeCollection.cs: If we are clearing the root node we need
26264 to reset top_node so calcs can still happen.
26265 * ThemeWin32Classic.cs: This is a Flags so we need to check
26268 2006-03-21 Jackson Harper <jackson@ximian.com>
26270 * DataGrid.cs: Create columns when the binding context has been
26272 * X11Structs.cs: Keysyms are uints.
26273 - Add size to fix build.
26275 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
26277 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26279 - Added ResetMouseHover method to allow controls to retrigger
26280 hovering if they need it more than once
26281 - Implemented MouseHoverTime and MouseHoverSize properties
26282 * Timer.cs: Start() must reset the interval
26283 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
26286 2006-03-21 Jackson Harper <jackson@ximian.com>
26288 * X11Keyboard.cs: improved layout detection. Move the nonchar
26289 tables into this file.
26290 * KeyboardLayouts.cs: Move the tables into resource files.
26292 2006-03-21 Mike Kestner <mkestner@novell.com>
26294 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
26296 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
26298 * Mime.cs: Various speed optimizations. Looking up mime types
26299 is now 2 times faster than before
26301 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26303 * CreateParams.cs: Added internal menu field
26305 - Switched call order for UpdateBounds; now we always call
26306 the one that also takes ClientSize, and we're calculating the
26307 client size via driver method in the others. The previous
26308 method of tracking client size by difference wasn't working
26309 for forms where even the starting client size wouldn't match
26310 the overall form size (due to borders) (Part of fix for #77729)
26311 - CreateParams(): Do not use parent.Handle unless the handle is
26312 already created. Causes havoc with Nexxia and throws off our
26313 creation of controls
26315 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26316 - Switched handling of ConfigureNotify over to new PerformNCCalc
26317 method (consolidates code)
26318 - Changed RequestNCRecalc to use new PerformNCCalc method
26319 - Added calls to RequestNCRecalc when menus and borders are changed
26320 to allow app to set NC size. (Part of fix for #77729) This matches
26321 when MS send a WM_NCRECALC on Win32 windows.
26322 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26323 (Part of fix for #77729). This matches what MS does, they also
26324 send that message when the form is made visible.
26325 - XException.GetMessage: Improved usability of X errors by including
26326 a translation of the window into Hwnd and Control class
26327 - Improved debug info for window creation, reparenting and destruction
26328 - Created helper method WindowIsMapped() [Currently not used]
26329 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26331 - CreateParams: Now setting our menu on the new internal menu field
26332 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26333 avoid calculating the same property twice
26335 - Improved usability of ToString() for debugging purposes
26336 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26337 determine the height of the menu, instead of just the font. This
26338 required to also create a graphics context and to keep a bmp
26339 around (for performance reasons)
26341 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
26343 * MenuAPI.cs: Added OnMouseUp method
26345 - Now remembering the requested client size, avoids size errors
26346 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26347 instead of base if the menu is active. This is required due to
26348 control now capturing and releasing on down/up and it would
26349 prematurely release our menu capture
26351 2006-03-17 Jackson Harper <jackson@ximian.com>
26353 * KeyboardLayouts.cs: Add the czech layouts.
26355 2006-03-16 Jackson Harper <jackson@ximian.com>
26357 * Control.cs: Use the viewport space when sizing not the controls
26358 client size, so things like ScrollableControl that effect the
26359 viewport size (when scrollbars are added) are computed correctly.
26360 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26362 - Handle creating BindingManagers for null data sources.
26363 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26364 source, otherwise when rows are added they are added to the 'fake'
26365 datasource and we will crash when trying to set the position in
26367 - Use Implicit scrollbars on the datagrid so they arent
26370 2006-03-16 Jackson Harper <jackson@ximian.com>
26373 * InternalWindowManager.cs:
26374 * MdiWindowManager.cs:
26375 * X11Keyboard.cs: I really want Mike to love me again (fix
26376 compiler warnings).
26378 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26381 - OnMouseDown: Switch to editing mode when clicking on the cell
26382 even if we're clicking on the cell that's currently
26384 - ProcessGridKey: Left/Right now wrap like MS.Net does
26385 - ProcessGridKey: Tab now knows to add a new row when tab is
26386 pressed in the cell of the last column of the
26388 - ProcessGridKey: Enter now adds another row if pressed in the last
26389 row and selectes the new row, same column cell
26390 - ProcessGridKey: Home/End navigate columns, not rows, like
26391 originally implemented
26392 - Broke ProcessKeyPreview code out into an extra Internal method
26393 so it can be called from the edit code
26394 * DataGridTextBox.cs (ProcessKeyMessage):
26395 - Switched to accept Tab keypresses
26396 - Added F2 handling to allow jumping to the end of the edited cell
26397 - Added logic to allow moving caret left/right inside edited cell
26398 and making the edited cell jump when the caret hits cell borders
26399 - Tab and Enter are now passed to the datagrid after being handled
26401 - Removed capture code now that Control handles it
26402 - set_SelectionStart now ensures caret is visible
26404 2006-03-16 Jackson Harper <jackson@ximian.com>
26406 * TrackBar.cs: Debackwards the increment/decrement for handling
26407 mouse clicks on the bar with vertical trackbars.
26408 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26409 bottom to match MS.
26411 2006-03-16 Mike Kestner <mkestner@novell.com>
26413 * ListView.cs: make shift/ctrl keyboard and mouse selection
26414 consistent with the MS control. Fix a bug in
26415 SelectedListViewItemCollection.Clear that was pissing me off for the
26416 better part of a day because the collection was being altered
26417 underneath us as we walked the list.
26419 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
26421 * Control.cs: Not sure how we could miss this so long, but it seems
26422 that MS.Net has Capture set all the way from before calling
26423 OnMouseDown through sending the mouse events until after
26424 OnMouseUp. This will fix DataGrid's selection being set to end
26425 at the location of the MouseUp.
26427 2006-03-15 Jackson Harper <jackson@ximian.com>
26429 * BindingContext.cs: Check the binding after its added so that it
26430 can initialize the binding managers and hookup to events.
26431 * Binding.cs: Data members seem to sometimes include rows/cols in
26432 the format Row.Column we now take this into account.
26433 - Hookup to the position changed event so we can update the
26434 control when the position has changed in the data set.
26435 * CurrencyManager.cs: Take into account the row/col naming
26436 convention when creating dataset tables.
26437 * BindingContext.cs: Using a newer better way of storing
26438 datasource/datamember pairs. Hopefully this better matches MS for
26439 looking up binding managers.
26442 2006-03-15 Jackson Harper <jackson@ximian.com>
26444 * BindingContext.cs: The currency manager needs the data member
26445 name, if the member is a data set we use the name to find the
26447 * CurrencyManager.cs: When creating the list prefer an IList over
26449 - Attempt to create a DataTable from a DataSet (TODO: might need
26450 some better error checking here, although MS doesn't seem to have much)
26451 - If we have a DataTable create a view and use it as our list.
26453 2006-03-15 Mike Kestner <mkestner@novell.com>
26455 * ListView.cs: keep a matrix of the icon mode layout to facilitate
26456 keyboard navigation. Support Up/Down/Left/Right selection correctly
26457 for all 4 View modes.
26458 * ListViewItem.cs: add internal row/col fields for icon layouts.
26460 2006-03-15 Jackson Harper <jackson@ximian.com>
26462 * TabControl.cs: Redraw the tabs when we resize so their newly
26463 calculated sizes are drawn on screen.
26464 * X11Keyboard.cs: Begginnings of XIM support. We also now support
26465 composite characters.
26466 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26467 - filter events so that composite characters can be created
26469 * X11Structs.cs: Add XIMProperties enum.
26471 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26473 * Control.cs (BringToFront, SendToBack): Don't use window or handle
26474 unless it's created
26476 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26478 * Control.cs (PerformLayout): We don't need to consider visiblity
26479 for anchoring, only for docking. This fixes 'whacky' alignment
26480 in listbox and other controls that use implicit scrollbars after
26481 the previous PerformLayout patch
26482 * ListBox.cs: Switched to use implicit scrollbars
26484 2006-03-14 Mike Kestner <mkestner@novell.com>
26488 - chain up the "new event" overrides to base and use
26489 OnEvent to raise them. Part of fix for bug #76509.
26491 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
26493 * FileDialog.cs: Do not select an item in the parent directory
26496 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26498 * Control.cs (PerformLayout): It would seem that we considered
26499 invisible windows for our layout. Not quite the right thing
26500 to do. Now we don't any longer, thereby fixing bug #76889.
26502 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
26504 * Control.cs (CanFocus): I goofed. A control can have focus
26505 even though it's not selectable. Made it match MS docs.
26507 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26509 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26510 center by default (fixes #76895)
26511 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
26512 all uses of Border3DSides.All with the explicit ORd together
26513 Left|Right|Top|Bottom because I assume that nobody was aware
26514 that All also implies a center fill. Most places I checked had
26515 a fill right above.
26516 * ProgressBarStyle.cs: Added
26518 2006-03-13 Mike Kestner <mkestner@novell.com>
26520 * ListView.cs: fix breakage in drag shadow header positioning
26521 from Peter's csc compilation fix.
26523 2006-03-13 Mike Kestner <mkestner@novell.com>
26525 * ListView.cs: fix NRE produced by backspacing twice in a focused
26528 2006-03-13 Mike Kestner <mkestner@novell.com>
26530 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26532 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26534 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26536 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26537 the allowed size before making programmatic size changes
26539 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26541 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
26542 set, metacity is broken and will still use the emty sizes in
26543 the struct. (Fix for #77089)
26545 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
26547 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
26548 WindowExStyles and marked both enums as Flags
26549 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26550 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26551 to match WindowStyles split
26553 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26554 - Updated to match WindowStyles split
26556 - Fixed FosterParent creation, was using ExStyle on the Style field
26557 (This should help with Popup focus issues)
26558 - Updated to match WindowStyles split
26560 2006-03-13 Jackson Harper <jackson@ximian.com>
26562 * MdiWindowManager.cs: Use the system menu height. Fixes some
26563 strange sizing issues.
26565 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26567 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26569 - Scroll to caret after inserting text (#77672)
26570 - Make scroll range one pixel higher, fixes off-by-one error (and
26571 makes underlines visible on the last line)
26573 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26575 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26576 the keyboard state from being stuck with keys in 'pressed' state when
26577 focus is switched away via keyboard
26578 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26579 reset the keyboard if no X11 KeyUp events are expected to come
26580 * X11Structs.cs: Switched type of Visible to bool to match driver
26582 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
26585 - Switched caret to be just 1 pixel wide, matches MS and looks less
26587 - Moved caret display 1 pixel down from the top of the control
26589 - InsertCharAtCharet: Update the selection start if moving the caret
26590 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26591 - No longer always creating the caret when the caret methods are
26592 called. Only the actual ShowCaret/HideCaret will do that now
26593 - Only setting caret visible if the owner control has focus
26594 - UpdateView: Added invalidation-shortcut logic for center and right
26595 aligned text. Previously we'd update all according to the left
26596 logic which caused drawing errors. Also fixed height of invalidated
26597 areas, now properly invalidating the whole area (was off-by-one)
26598 - owner_HandleCreated: Always generate the document when the
26599 handle is created; this ensures that
26601 - Fixed situation where caret would disappear under the right
26602 window border, also improved scrolling behaviour on left-
26604 - Fixed right-aligned textboxes to have a border to the
26605 right instead of the caret being under the right border
26607 - Switched from 'nested' to simple visible/not visible tracking
26608 for caret (part of fix for #77671)
26609 - No longer passing through translated FocusIn/FocusOut messages
26610 since we were notifying too often and the wrong windows. Instead
26611 we just notify our focussed window of receiving or loosing focus
26612 * XplatUIWin32.cs: Switched from 'nested' show/hide
26613 counting for caret to simple visible yes/no behaviour (part of
26616 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26618 * Mime.cs: Remove debug code...
26620 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
26622 * MimeGenerated.cs: Removed
26623 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26624 and subclasses) from /usr/(local/)share/mime and
26625 $HOME/.local/share/mime.
26627 2006-03-10 Jackson Harper <jackson@ximian.com>
26629 * MdiWindowManager.cs: Recalc the NC area when a window is
26630 maximized/restored so that the menu area is drawn on forms that
26633 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26635 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26636 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26637 us to force a WM_NCCALCRESIZE message being sent. This is needed
26638 for MDI maximizing.
26640 2006-03-10 Jackson Harper <jackson@ximian.com>
26642 * Form.cs: We need to use the ActiveMenu when calculating menu
26644 - Fix nullref when the window manager hasn't been created yet.
26645 * Control.cs: Fix nullref when we try to bring a control to the
26646 front that has no parent.
26647 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26649 - Add a dummy item to the maximized menu so it always has the
26650 correct height. Otherwise when there are no menus we don't get our
26654 2006-03-10 Jackson Harper <jackson@ximian.com>
26656 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26658 * Form.cs: Make the window_state internal so the window managers
26660 - When an MDI child is maximized let its window manager create the
26661 main menu (so it can add its icon).
26662 - Notify the window managers of state changes
26663 - Let the window manager paint its buttons and handle button
26664 clicks on the menu when it is maximized.
26665 * InternalWindowManager.cs: Move the prev_bounds into the mdi
26666 window manager, since tool windows don't use it, only mdi windows.
26667 - Tell the main form that we don't want it to handle NCPAINT
26668 itself to avoid extra painting.
26669 - Handle clicks on a maximized windows menu.
26670 - Handle window state changes
26671 - Handle minimize/maximize clicks correctly by setting the window state.
26672 * MdiWindowManager.cs: Add an icon menu that (the menu you get
26673 when clicking on the forms icon).
26674 - New method to create a forms maximized menu. This is its normal
26676 - Handle window state changes.
26677 - Handle sizing of maximized windows. Maximized windows are just
26678 drawn bigger then the parent visible area. All controls are still
26679 there, they are just outside the visible area (this matches windows).
26680 * MdiClient.cs: No scrollbars when a child window is maximized.
26681 - Let the children windows figure out how big they should be when
26682 sizing maximized windows.
26683 - Implement a version of ArrangeIconicWindows somewhat similar to
26684 Windows version. There are some little differences, but I don't
26685 think any app will rely on the layout of minimized mdi windows.
26687 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26689 * Padding.cs: Several fixes to allow compiling with csc 2.0
26691 2006-03-09 Jackson Harper <jackson@ximian.com>
26694 * MenuItem.cs: Cheap hack so we can add items to the list without
26695 the events being raised. This allows adding mdi items during
26696 drawing. TODO: Should probably find a better time to add the items.
26698 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26700 * ThemeWin32Classic.cs:
26701 - CheckBox_DrawText: Added logic to not wrap if not enough space
26702 is available (Fix for bug #77727)
26703 - RadioButton_DrawText: Added logic not to wrap if not enough
26704 space is available (Fix for bug #77727). Also removed some
26705 duplicate code, DrawString always drawing the regular text
26706 before hitting the if statement.
26708 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26710 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
26712 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
26714 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
26715 * ContainerControl.cs: Partial implementation of some 2.0 scaling
26716 methods. Moved the new 2.0 properties into alphabetical order with
26717 other properties and added MonoTODO tags
26719 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26721 * AutoScaleMode.cs: Added. Fix build.
26723 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26725 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26726 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
26727 and was requiring premature handle creation for calls from above
26728 * Form.cs, Control.cs: Removed handle arguments from calls to
26729 CalculateClientRect()
26731 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26733 * ListView.cs (HeaderMouseMove): Fix csc compilation.
26734 drag_column.column_rect is MarshalByRef and can't be used that way
26736 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26738 * AxHost.cs: Added deserialization constructor for
26739 AxHost+State (fixes 77743)
26741 2006-03-09 Mike Kestner <mkestner@novell.com>
26744 - Added column drag reordering for details view.
26745 - fixed behavior when mouse is dragged off column and
26746 AllowColumnReorder is false.
26747 * ColumnHeader.cs: clone the format too in Clone.
26748 * Theme.cs: add DrawListViewHeaderDragDetails method.
26749 * ThemeWin32Classic.cs:
26750 - impl new method for drawing drag column shadows and targets.
26751 - support column offset for details mode in DrawListViewItem.
26753 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26755 * TextControl.cs: Reset the char_count when the document is cleared
26756 (Fixes bug reported on mono-winforms mailing list)
26758 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26760 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
26761 of calling base we simply process the key ourselves, since both
26762 DefWindowProc and the handled method would set m.Result.
26765 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
26767 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
26768 method also moves the window; instead implemented a copy of
26769 Control.ScaleCore (Part of fix for #77456)
26771 - Created new CreateGraphicsInternal method to allow providing
26772 a graphics context when no handle is created without triggering
26773 handle creation. (Part of fix for #77456)
26774 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26776 - Switched Constructor to require TextBoxBase instead of Control (to
26777 allow uncast access to CreateGraphicsInternal)
26778 - Safeguarded use of owner.Handle property. No longer accessing it
26779 unless the handle is already created.
26780 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26781 - Now triggering a recalc when owning control becomes visible
26782 * TextBox.cs, RichTextBox.cs: Switched to use new internal
26783 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
26784 premature handle creation (Part of fix for #77456)
26786 - We now only destroy our double-buffering buffers when the
26787 control is resized or disposed, but not when visibility
26788 changes. (The code even re-created them twice every time)
26789 - Now requiring a redraw of the buffer on visibility changes
26790 (fixes bug 77654 part 2)
26791 - Not passing OnParentVisibleChanged up unless the control
26793 - CanFocus: Fixed to match MS documentation
26794 - Focus: Fixed to return actual focus state and to check if
26795 setting focus is legal before setting it
26797 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
26799 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
26800 when to draw focus rectangle by looking at parent focus and
26801 selected state instead. This fixes TabPages on Linux sometimes
26802 having none or multiple focus rectangles.
26803 * XplatUIX11.cs (SetFocus):
26804 - Don't set the focus if the same window already has focus
26805 - Use SendMessage instead of PostMessage (like it's Win32
26806 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
26807 to match MS behaviour
26808 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
26809 are not selectable.
26811 2006-03-07 Jackson Harper <jackson@ximian.com>
26813 * PictureBox.cs: Revert line I accidently committed last week.
26815 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
26818 - Added new IsRecreating and ParentIsRecreating properties to
26819 allow testing if RecreateHandle has been called on ourselves
26820 or one of our parents
26821 - WndProc(WM_DESTROY): If our control handle is being recreated
26822 we immediately need to create the handle when receiving the
26823 destroy, that way our child windows find a valid parent handle
26824 when they themselves are being recreated upon WM_DESTROY receipt
26825 (fix for bug #77654 part 1)
26827 - DestroyWindow: WM_DESTROY must be sent to our own window before
26828 notifying any child windows. MS documents that child windows
26829 are still valid when WM_DESTROY is received. (Control now relies on
26831 - Added some fine-grain debug options
26833 2006-03-06 Jackson Harper <jackson@ximian.com>
26835 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
26836 box and base calculations off this.
26837 * MdiChildContext.cs:
26838 * MdiWindowManager.cs: Don't need to ensure scrollbars here
26841 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
26843 * Splitter.cs: In situations where the affected control is added
26844 to the parent's control list after the splitter, we would not
26845 populate affected. Now we try populating it on mousedown, if
26846 it's not already set, and force it to be re-set whenever our
26849 2006-03-03 Matt Hargett <matt@use.net>
26851 * Control.cs: implement Control.Padding
26852 * Padding.cs: -Padding.All returns -1 when constructing with the
26853 implicit default ctor
26854 -Padding.ToString() matches MS.NET
26855 * ContainerControl.cs: implement
26856 ContainerControl.AutoScaleDimensions
26857 * ListControl.cs: implement ListControl.FormattingEnabled
26858 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
26860 * TabPage.cs: Implement UseVisualStyleBackColor.
26861 * PictureBox.cs: Implement PictureBox.InitialImage.
26863 2006-03-03 Mike Kestner <mkestner@novell.com>
26865 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
26866 event declarations to proxy to base event.
26867 * ListViewItem.cs: update to use ItemControl.
26868 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
26869 * ThemeWin32Classic.cs: update to new ListView theme API and fix
26870 column header label rendering for 0 width columns.
26872 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
26874 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
26875 that causes the control to be created. Fixes #77476.
26877 2006-03-02 Jackson Harper <jackson@ximian.com>
26879 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
26882 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
26884 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
26885 passed in for the EventArgs (fixes #77690)
26887 2006-03-01 Jackson Harper <jackson@ximian.com>
26889 * ScrollBar.cs: Refresh afterbeing resized.
26891 2006-02-28 Mike Kestner <mkestner@novell.com>
26893 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
26894 Clean up a tracker compile warning.
26895 * MenuItem.cs: add internal PerformPopup method.
26898 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
26900 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
26901 implicit expose) when the text is set to null
26903 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
26905 * RichTextBox.cs (FlushText): When newline is true, we always
26906 need to split the line, even if no text is on it and we may
26907 never eat newlines. (Fixes #77669)
26909 2006-02-28 Mike Kestner <mkestner@novell.com>
26911 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
26912 and set Selected instead.
26913 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
26916 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
26918 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
26920 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
26923 - Got rid of the panel. All controls are now directly added to
26925 - It is now possible to set a font with the Font property
26926 - MinSize and MaxSize property do now what they should
26927 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
26928 - Searching and selecting a font with the font textbox works now,
26929 the same applies to the style and size textbox
26930 - Draw the correct 3D border in the example panel
26931 - Fixed a little mem leak (unused fonts didn't get disposed)
26932 - Many other internal updates/rewrites...
26935 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
26938 - InsertRTFFromStream: Added 'number of characters inserted' argument
26939 - set_SelectedRTF: Now using the number of characters to calculate
26940 the new location for the selection and cursor (x/y cannot be used
26941 due to potentially already wrapped text)
26943 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
26945 * TextControl.cs: Added property and implemented means to allow
26946 disabling recalculation of a document (can be used to speed up
26947 multiple inserts and is needed to make RTF inserts predictable, see
26949 * RichTextBox.cs: Using the new NoRecalc property of Document to
26950 keep x/y insert locations predictable. Also makes it faster inserting
26951 large chunks of RTF
26953 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
26955 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
26956 it's easier for a child control to handle the other messages without
26957 having to duplicate the special functionality
26959 - WndProc: Removed calling base handler for WM_KEYDOWN and added
26960 code to handle processing the key ourselves, in order to get
26961 access to the result of KeyEventArgs.Handled. We now only call
26962 ProcessKey if they key hasn't been handled already. Fixes #77526.
26963 - set_Text: If null or empty string is given, just clear the
26964 document. Fixes part of #77526
26966 2006-02-27 Jackson Harper <jackson@ximian.com>
26968 * SizeGrip.cs: Paint the background color before painting the grip
26969 so things look right.
26970 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
26972 2006-02-27 Mike Kestner <mkestner@novell.com>
26975 - Restructure layout and invalidation model to remove a ton of
26976 flicker from the control and speed up performance in general.
26977 - Add manual column resize, flickers like crazy, but I already have
26978 some ideas on how I'll fix that. (#76822)
26979 - Merge the three Icon-based views into a single layout method.
26980 - Move item selection interaction logic from the item since
26981 interaction with the collections is more appropriate to the view.
26982 - Deselection on non-item clicks.
26984 - Encapsulate most of the layout. Add some internal props to trigger
26985 layout. Move to a model where Items invalidate themselves instead
26986 of just invalidating the whole control every time something changes.
26987 - Invalidate on Text/Caption changes.
26988 - switch to an offset based layout model to avoid having to absolute
26989 position every element on item moves.
26990 - correct checkbox layout to conform to MS layout.
26991 * ThemeWin32Classic.cs:
26992 - refactor some column header drawing code.
26993 - fix string justification for column headers (#76821)
26994 - make SmallIcon labels top justified for compat with MS impl.
26995 * ThemeClearlooks.cs:
26996 - adjust to new ListViewItem internal checkbox bounds api.
26998 2006-02-27 Jackson Harper <jackson@ximian.com>
27000 * Control.cs: Change where implicit controls fall in the zorder.
27001 They are now on top of all children.
27002 - Synced AddImplicit code with Add
27003 - Removed unused enumerator.
27004 * SizeGrip.cs: Remove the TODO as its been TODONE.
27006 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27008 * TextControl.cs(Insert): Combine the last lines unless the insertion
27009 string ends with \n\n, otherwise we leave one line too many (Fixes
27010 something I noticed with the testapp for #77526; the bug itself was
27011 already fixed in the previous checkin)
27013 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
27016 - SelectionColor and SelectionFont methods no longer set absolute
27017 styles. Instead, the keep font or color respectively (This
27018 resolves a long-standing FIXME in the code)
27019 - When flushing RTF text, the insert code now considers text trailing
27020 behind the insertion point (Fixes the bug where when replacing
27021 the selected text via SelectedRTF the remainder of the line behind
27022 the selection would stay on the first insertion line)
27024 - AppendText now updates the selection points after inserting text
27025 - AppendText now ensures that the last tag (sometimes 0-length) of
27026 the document is used for the style information (Fixes part of
27029 - Created new FontDefiniton class to allow describing partial style
27031 - StreamLine() now takes a lines argument, to allow it to decide
27032 whether an encountered zero-length tag is the last in the document
27033 (which must be kept to not loose the font/color contained in it,
27035 - Created Combine() and Split() methods for Marker structs, to
27036 support marker updates due to reformatted documents (soft line
27038 - Implemented Document.CaretTag setter
27039 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
27040 of the last line (Not the cause, but also exposed by bug #77220)
27041 - Added LineTag argument to InsertString method, to allow callers
27042 to force a certain tag to be used (required to force use of the
27043 trailing zero-length tag of a document)
27044 - Now updating markers in Combine(), to avoid stale tag markers
27045 - Added some method descriptions to aid maintenance
27046 - Implemented new FormatText concept, allowing additive/subtractive
27047 formatting by only specifying the components that are to be
27048 changed. This was needed for resolving the RTB.SelectedColor/
27049 RTB.SelectedFont fixmes
27050 - Added Break() support method to allow breaking up linetags (used
27051 for partial formatting)
27052 - Added GenerateTextFormat() method. It is used for partial
27053 formatting and allows to generate a full font/color from given
27054 attributes and an existing tag.
27056 2006-02-26 Jackson Harper <jackson@ximian.com>
27058 * XplatUIX11.cs: Use the correct caption height.
27059 - Translate hittest coordinates to screen coords to match MS.
27060 * XplatUIWin32.cs: When we create MDI windows we need to reset
27061 some of the style flags, so we get a nice blank window, and can
27062 draw all the decorations ourselves.
27063 - Set a clipping rectangle on the non client paint event, the
27064 window manager drawing code needs one.
27065 * Form.cs: The window manager needs to know when the window state
27067 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
27068 don't need to factor in border and title sizes in these
27069 methods. TODO: Remove the args and fix the call points.
27070 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
27072 - Let the driver set the cursors.
27073 - Improve active window handling
27074 - Correct sizes for title bars and buttons.
27075 - Match MS drawing better
27076 * MdiWindowManager.cs: We don't need to handle border style
27077 updates specially anymore.
27078 - Check for scrollbars when windows are done moving
27079 - Handle Active properly.
27080 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
27081 correctly. I am spewing the exception though, so we don't hide the
27084 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
27086 * DataGridViewRowPostPaintEventArgs.cs,
27087 DataGridViewCellPaintingEventArgs.cs,
27088 DataGridViewRowCollection.cs,
27089 DataGridViewRowPrePaintEventArgs.cs,
27090 DataGridViewCell.cs: Clear a few warnings and implement a few
27091 exceptions that should be thrown.
27093 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27095 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
27096 'inheriting' our parent's (non-default) cursor. (Part of
27097 the fix for #77479)
27099 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27101 * XplatUIX11.cs: Fixed cast to make csc happy
27103 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
27105 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
27106 it's for the client area (part of fix for #77479 and needed
27107 for MDI window cursor handling)
27109 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
27110 the appropriate default cursors and also passing the message
27111 up the parent chain
27112 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
27113 for non-client areas
27115 2006-02-15 Jackson Harper <jackson@ximian.com>
27117 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
27118 is a real MDI window
27120 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
27122 * X11DesktopColors.cs: Instead of checking the desktop session
27123 string for "KDE" check if it starts with "KDE"
27125 2006-02-10 Jackson Harper <jackson@ximian.com>
27127 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
27130 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27132 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
27135 - Got rid of the panel. All controls are now directly added to
27137 - Changed to mono coding style
27139 2006-02-10 Jackson Harper <jackson@ximian.com>
27141 * InternalWindowManager.cs: We don't need the set visibility to
27142 false hack anymore now that peter has written beautiful shutdown
27145 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
27147 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
27148 where already explicitly destroyed
27150 2006-02-10 Jackson Harper <jackson@ximian.com>
27152 * MdiClient.cs: Handle the case where windows are too high or to
27153 the left and we need scrollbars.
27155 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
27157 * MimeIcon.cs: Added some icons
27160 - Got rid of the panel. All controls are now directly added to
27162 - Changed to mono coding style
27163 - On Linux "My Computer" and "My Network" will now show some
27164 more usefull information. A new class, MasterMount, gathers
27165 this information from /proc/mount. Updated MWFFileView to make
27166 use of this information
27167 - Fixed a bug that caused FileDialog to crash when
27168 ".recently_used" file had a zero size
27169 - FilterIndex does now what it should
27171 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
27174 2006-02-09 Jackson Harper <jackson@ximian.com>
27176 * ComboBox.cs: Don't touch if null.
27178 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
27180 * Cursor.cs: 64bit safeness fix
27181 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
27183 2006-02-09 Jackson Harper <jackson@ximian.com>
27185 * Form.cs: If a form is made into an MDI form update the styles so
27186 all the props can get set correctly.
27187 - Kill the mdi_container when we dont need it anymore.
27188 * InternalWindowManager.cs: Add missing NOT
27190 2006-02-08 Jackson Harper <jackson@ximian.com>
27192 * InternalWindowManager.cs: Respek clipping when drawing MDi
27195 2006-02-08 Jackson Harper <jackson@ximian.com>
27197 * Hwnd.cs: Add bits to track non client expose events.
27198 * XplatUIX11.cs: Track non client expose events on the hwnd. This
27199 gives us a proper invalid rect and will allow for some nice
27200 optimizations with NC client drawing
27201 - MDI windows are children windows, so move their style handling
27202 into the child window block.
27203 * InternalWindowManager.cs: Remove a state reset that was
27204 getting invoked at the wrong time. Fixes managed windows getting
27205 into a 'stuck' captured state.
27207 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27209 * TextControl.cs (Document.ctor): Now initializing
27210 selection_anchor. Fixes #77493
27212 2006-02-07 Jackson Harper <jackson@ximian.com>
27214 * TrackBar.cs: The increment/decrements were backwards.
27216 2006-02-07 Mike Kestner <mkestner@novell.com>
27218 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
27219 to the instance itself.
27221 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
27223 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
27224 on ulongs and pointers, the size differs between 32bit and 64bit
27227 2006-02-07 Mike Kestner <mkestner@novell.com>
27229 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
27230 for 64 bit platforms to work around a metacity bug.
27232 2006-02-07 Jackson Harper <jackson@ximian.com>
27234 * TrackBar.cs: Process the input keys we need, and hookup to
27235 KeyDown instead of using WndProc, so we get key messages.
27237 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27239 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
27241 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
27242 we need to translate the XdndVersion atoms array before sending it
27244 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
27247 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
27248 number of bits for the property, not the number of bytes. The
27249 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
27250 but would not crash since it specified 8 bits instead of 4 bits)
27251 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
27252 defined as XID -> long in the C headers)
27253 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
27254 references since those are now IntPtr to begin with
27255 - Switched all Atom.XXX 'int' casts to IntPtr casts
27256 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
27257 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
27258 - Added XChangeActivePointerGrab DllImport (for X11DnD)
27260 - Changed 'int' type for Atoms in XEvent structures to IntPtr
27261 - Changed atom in HoverStruct to be IntPtr
27263 - Removed local DllImports, switched code to use those from XplatUIX11
27264 - Removed/fixed casts related to the switch of Atom to be a IntPtr
27266 2006-02-06 Mike Kestner <mkestner@novell.com>
27268 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
27269 method signatures in the import region. There may still be some
27270 lingering struct marshaling issues, as I didn't drill down into those.
27273 2006-02-06 Jackson Harper <jackson@ximian.com>
27275 * ComboBox.cs: Dont manually set the top_item, this is computed
27276 when the scrollbar position is set.
27278 2006-02-06 Mike Kestner <mkestner@novell.com>
27280 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
27281 startup crashes on amd64. There's other fixes needed. All pinvoke
27282 usage of Atom needs to be mapped to IntPtr for example. And there are
27283 likely other int/long issues to be addressed.
27285 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
27287 * FileDialog.cs: One more...
27289 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27291 * FileDialog.cs: Next try
27293 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27295 * FileDialog.cs: First part of fix for #77464
27297 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
27299 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
27300 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
27301 AcceptButton border drawing.
27303 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27305 * Form.cs: Moved positioning of form after auto scaling is applied,
27306 otherwise it would possibly use wrong form size.
27308 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
27310 * Control.cs (RecreateHandle): No need to re-create any child
27311 controls, the child windows will get destroyed automatically by
27312 the windowing system or driver, and re-created when the handle
27313 is being accessed the first time. Fixes #77456
27314 * Form.cs: No longer setting the form to closing if the handle is
27315 being recreated. This seems like the right thing to do, don't
27316 have a bug or testcase for this, though.
27318 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27320 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27321 controls to avoid unwanted side effects
27323 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27326 - ScaleCore needs to scale the bounds, not the ClientSize of the
27327 control. Fixes #77416.
27328 - DefaultSize is 0,0 for control
27330 - DefaultSize is 100, 20
27331 - SetBoundsCore: Now enforcing the height, no matter if the provided
27332 height is more or less than the preferred one, as long as AutoSize
27334 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27336 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
27339 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27340 call unless both performLayout is true *and* we have a pending
27342 - ResumeLayout: MS does not completely nest Suspend and Resume,
27343 they bottom out at 0, fixed our code to match that.
27344 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27345 SetBoundsCore, we were updating even when we shouldn't. This fixes
27346 swf-anchors mis-anchoring when resizing the app fast and lots.
27347 - UpdateDistances: Now only setting the left and top distance if
27348 we have a parent and are not suspended, this is based on
27349 a suggestion by Don Edvaldson in bug #77355.
27350 - OnVisibleChanged: Fixed logic when to create the control. We may
27351 not create the control if we have no parent or if it's not visible;
27352 switched to using Visible property instead of is_visible field
27353 since the property also considers parent states. This fixes a bug
27354 when starting Paint.Net
27356 2006-02-02 Jackson Harper <jackson@ximian.com>
27358 * Form.cs: If the forms handle hasn't been created yet don't call
27359 into xplatui to make it top most, just set the topmost flag on the
27360 form in CreateParams
27361 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27363 2006-02-01 Jackson Harper <jackson@ximian.com>
27365 * ScrollableControl.cs: Refactored the Recalculate method a
27366 little, this wasn't handling all the variants of bottom and right
27367 bars needed to be added and added/removed based on their
27368 counterparts being added/removed (which changes the drawable
27369 size). Also we special case client widths and heights of 0 and
27370 don't add the scrollbar for those.
27372 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
27375 - Added method to get AbsoluteGeometry(); currently unused, but might
27376 be used in the future, if we try again to figure out toplevel
27377 coordinates with some more crappy window managers
27378 - Added FrameExtents() method to retrieve the WM set decoration size
27379 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
27380 to deal with at least KDE, FVWM and metacity (Fixes #77092)
27382 - Added whacky_wm tracking var for metacity
27383 - Added logic to have default menu height if the actual menu height
27384 has not yet been calculated (part of fix for #77426)
27385 * Form.cs: Keep track whether client size has been set and re-set
27386 it if a menu is added/removed afterwards (Fixes #77426)
27388 2006-01-31 Jackson Harper <jackson@ximian.com>
27390 * Control.cs: When a new Site is set on the component attempt to
27391 pull the AmbientProperties from it.
27393 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
27395 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27396 in the background of the owning form. Fixes #77332
27398 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27400 * MimeIcon.cs: Fix for #77409
27402 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
27404 * XplatUIX11GTK.cs: Initial import
27406 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
27408 * FixedSizeTextBox: fixes class signature
27410 2006-01-30 Jackson Harper <jackson@ximian.com>
27412 * FixedSizeTextBox.cs: New internal class that represents a
27413 textBox that will not be scaled.
27416 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27419 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27421 * XplatUIX11.cs: Retrieve default screen number instead of
27422 assuming 0. Attempted fix for #77318
27424 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
27427 - GetWindowPos: When a window is parented by FosterParent, use
27428 the desktop instead of FosterParent as the base to get coordinates
27429 - CreateWindow: Don't make FosterParent the parent window for Popups
27430 if we don't want a taskbar entry, Popups automatically don't get one
27431 * Hwnd.cs: Need to call remove to actually remove the key from the
27434 2006-01-30 Mike Kestner <mkestner@novell.com>
27436 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27438 2006-01-30 Jackson Harper <jackson@ximian.com>
27441 * TreeNode.cs: Raise events no matter how the treenode is
27442 checked. Patch by Don Edvalson.
27444 2006-01-30 Jackson Harper <jackson@ximian.com>
27446 * TreeNode.cs: Signature fix.
27448 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
27450 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27452 2006-01-20 Mike Kestner <mkestner@novell.com>
27454 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27455 event forwarding when menus are active.
27456 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
27457 Most of the patch is pdb's with a little rework.
27459 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27461 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
27462 Removed GetMenuDC and ReleaseMenuDC methods; replaced
27463 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27464 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27465 * InternalWindowManager.cs: Added use of PaintEventStart/End to
27466 handling of WM_NCPAINT message, now passing the PaintEventArgs to
27467 the PaintWindowDecorations method
27468 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27469 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27470 * MenuAPI.cs: Made tracker window invisible
27472 - Removed GetMenuDC and ReleaseMenuDC methods
27473 - Implemented the client=false path for PaintEventStart and
27476 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27478 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27479 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27482 - MaximizeBox, MinimizeBox: Recreate the handle when setting
27484 - CreateParams: Reworked the styles to match MS look'n'feel,
27485 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27486 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27488 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27490 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
27491 window is not mapped, since otherwise every form that's being
27492 created is considered minimized, which is wrong.
27493 * Form.cs: Catching the exception and returning our internal value
27496 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
27498 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27499 SetWindowMinMax() to have means to tell the driver about the minimum,
27500 maximum and maximized state window sizes. (Part of the fix for #76485)
27502 - Implemented tracking of minimum and maximum window size, now calling
27503 new SetWindowMinMax() driver method to tell the driver (Part of the
27505 - Finished handling of WM_GETMINMAXINFO method, now setting all values
27506 (Completes fix for #76485)
27507 - Calling new SetWindowMinMax driver method when the handle for a
27508 form is created, to make sure the driver knows about it even if
27509 the values have been set before the window was created
27510 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27511 to avoid messing up our anchoring calculations (partial fix
27513 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27515 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27516 - Improved GetWindowState() to detect 'Minimized' state on Metacity
27517 (and presumably other freedesktop.org compliant WMs). Left the
27518 assumption unmapped=minimized, needed for SetVisible to work.
27519 - Now setting the window state when creating windows
27520 - Fixed SetVisible to consider/set the window state when mapping
27521 a Form. We cannot set the state before it's mapped, and we cannot
27522 use Form.WindowState once it's mapped (since it would ask the
27523 driver and get 'normal'. Therefore, we grab the state before
27524 mapping, map, and then set state.
27525 - Implmemented SetWindowMinMax method; Metacity does not seem to
27526 honor the ZoomHints, though.
27528 - Removed MINMAXINFO (moved to XplatUIStructs)
27529 - Added SetWindowMinMax stub (on Win32 the only way to set that
27530 information is in response to the WM_GETMINMAXINFO message, which
27531 is handled in Form.cs)
27532 - Added logic to SetVisible to set the proper window state when a
27533 form is made visible (fixes #75720)
27535 2006-01-26 Jackson Harper <jackson@ximian.com>
27537 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27538 same way we handle them with Invoke.
27540 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
27543 - Added tracking of window state so CreateParams can return
27544 the appropriate style
27545 - Moved setting of WS_CAPTION style in CreateParams to allow
27546 styles without caption
27547 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
27548 control if the TextBox property is accessed. Fixes #77345
27550 - get_Created: now uses is_disposed and is_created to determine
27551 return value (suggested by Jackson)
27552 - CreateHandle: No longer exits if the handle is being recreated
27553 - RecreateHandle: If the handle is not yet created call the
27554 appropriate method to create either control or handle. If the
27555 control is already created CreateHandle will simply exit instead
27556 of just creating the handle
27557 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27558 now SendMessage WM_DESTROY directly to the control when DestroyWindow
27561 - When DestroyWindow is called, instead of waiting for the
27562 DestroyNotification from X11, we directly post it to the WndProc
27563 and immediately dispose the hwnd object.
27564 Same applies to DestroyChildWindows, and this obsoletes the
27565 expose_pending tracking. Contrary to Win32 behaviour we destroy our
27566 child windows before our own, to avoid X11 errors.
27567 - Removed the direct sending of WM_PAINT on UpdateWindow
27569 - Reworked DoEvents and GetMessage to allow access to internal queue
27570 even when trying non-blocking access to the queue. Fixes #77335.
27571 Based on a patch suggestion by Don Edvalson. The new private
27572 GetMessage can now also be used as a backend for a PeekMessage
27574 * XplatUI.cs: Improved debug output for CreateWindow
27576 2006-01-25 Jackson Harper <jackson@ximian.com>
27578 * Help.cs: Allow param to be null. Patch by Don Edvalson.
27580 2006-01-24 Jackson Harper <jackson@ximian.com>
27582 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27583 when we have a MaxDropItems lower then the selected index.
27585 2006-01-24 Jackson Harper <jackson@ximian.com>
27587 * Control.cs: Don't allow selection of non visible controls, allow
27588 selection of controls without parents.
27590 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27592 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27593 * DataGridDrawingLogic.cs: Add editing row only when is necessary
27595 2006-01-23 Jackson Harper <jackson@ximian.com>
27597 * UpDownBase.cs: Make the textbox handle all the selection and
27598 tabbing. This fixes tabing to updown controls.
27600 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
27602 * TextBoxBase.cs: fixes exception thown the object was null
27604 2006-01-23 Jackson Harper <jackson@ximian.com>
27606 * ButtonBase.cs: Just use the base CreateParams. They set
27607 visibility and enabled correctly.
27610 * MonthCalendar.cs: Lets let the base set as much of the
27611 createparams as possible so we don't have duplicate code all over
27614 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
27616 * ThemeGtk.cs: Added TrackBar and some experimental code to
27617 get double buffering back
27619 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
27621 * DataGrid.cs: Allows row number set internally higher than the last
27622 when creating a new row. Restores the editing functionality.
27624 2006-01-20 Mike Kestner <mkestner@novell.com>
27626 * MimeIcon.cs: delay Image creation until the icons are accessed
27627 instead of creating 190 scaled images on GnomeHandler startup.
27629 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27631 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27632 first call base before processing the event. Fixes #77279
27634 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
27636 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27637 that the stride for the GDI bitmap would match the stride of
27640 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
27642 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27644 2006-01-19 Jackson Harper <jackson@ximian.com>
27646 * ComboBox.cs: Hookup the text controls keydown event so we get
27647 those when the text control has the focus.
27649 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27651 * Label.cs: Now using the base events instead of defining new ones;
27652 this allows us to just call the base properties without having to
27653 duplicate all base property logic
27655 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27657 * Label.cs: A label by default is not a tabstop (Fixes one of our
27658 failing nunit tests)
27660 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27662 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27663 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27665 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
27667 * Cursor.cs: Reimplemented creating cursor bitmaps without using
27668 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27671 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
27672 constructor creates images that can't be saved. Part of the fix
27674 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27675 - SetWindowState: Switched ShowWindow flags (part of an upcoming
27676 bug fix for handling window state in forms properly)
27678 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27680 * ThemeGtk.cs: Simplify ScrollBar drawing
27682 2006-01-18 Jackson Harper <jackson@ximian.com>
27684 * Splitter.cs: Set the default dock style for the splitter control
27685 in the constructor.
27687 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27689 * ThemeGtk.cs: Corrected StateType and ShadowType for
27692 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27694 * Control.cs: Make use of Theme.DoubleBufferingSupported
27696 - Added drawing for flat style buttons
27697 - Added ScrollBar drawing
27699 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
27701 * ThemeClearlooks.cs: Removed some unneeded code.
27702 * ThemeGtk.cs: First part of ThemeGtk enhancements.
27704 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27706 * LinkLabel.cs: We need to update the hover drawing when
27707 leaving the control as well.
27709 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
27711 * DataGrid.cs: Clicking on non empty areas in the columns
27712 area was giving an exception
27714 2006-01-17 Jackson Harper <jackson@ximian.com>
27716 * ThemeWin32Classic.cs:
27717 * ListView.cs: Do not draw/clip the headers when the header style
27720 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27722 * DataGrid.cs: Fixes 77260
27724 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
27726 * DataGrid.cs: Clicking on a column on a empty grid was giving
27729 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
27731 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
27732 or any keypress will crash the grid.
27734 2006-01-17 Mike Kestner <mkestner@novell.com>
27736 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
27737 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
27738 invisible/previously-visible items.
27741 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
27743 * ThemeClearlooks.cs:
27744 - Added CL_Draw_Button method; now other theme controls that are
27745 not derived from button or do not have a button can draw buttons
27747 - Updated ComboBox drawing
27748 - Beautified RadioButton drawing
27749 - Corrected drawing of bottom and left tabs
27750 - Beautified DateTimePicker and MonthCalendar
27751 - Added CPDrawButton and CPDrawRadioButton
27753 2006-01-16 Jackson Harper <jackson@ximian.com>
27755 * ComboBox.cs: Set the initial value of the scrollbar to the
27756 current index. Reduce the numbers of refreshs and IndexOfs called.
27758 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
27760 * FileDialog.cs: When the file listview is focused hitting the
27761 backspace key moves the fileview to the parent directory
27763 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27766 - Added RecreateHandle call when changing taskbar visibility to
27767 trigger reparenting in Win32 driver (Fixes #75719)
27768 - If a window has minimize or maximize buttons, it cannot have
27771 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
27772 the toplevel form with FosterParent (A toolwindow not on the
27773 taskbar) (Fixes #75719)
27774 - Made FosterParent a toolwindow
27776 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27778 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
27780 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27782 * ToolTip.cs: If SetToolTip is called from a control and the mouse
27783 is currently over that control, make sure that tooltip_window.Text
27786 2006-01-13 Mike Kestner <mkestner@novell.com>
27788 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
27790 2006-01-13 Jackson Harper <jackson@ximian.com>
27792 * TreeView.cs: On MS GetNodeAt never actually factors in the X
27793 value passed. Also redraw the selected node when we recieve
27794 focus, so tabbing between trees works correctly.
27796 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
27798 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
27799 ~/.gconf/%gconf-tree.xml, so use
27800 .gconf/desktop/gnome/interface/%gconf.xml
27802 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27804 * TextControl.cs: Draw text in gray if control is disabled
27806 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27808 * TreeView.cs: Draw the focus rectangle outside the highlight, to
27809 make sure it's always visible. Fixes #76680.
27811 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
27813 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
27815 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
27817 * PageSetupDialog.cs: Added.
27818 * PrintDialog.cs: Attributes.
27819 * PrintPreviewControl.cs: Updates.
27820 * PrintPreviewDialog.cs: Updates.
27822 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27824 * Control.cs: Undid my selection check fix, since it's not needed
27826 - Now considering the presence of hscroll/vscroll when sizing
27827 vscroll/hscroll respectively. Fixed bug #77077
27828 - Added Left/Up/Down/Right to IsInputKey list to prevent
27829 ContainerControl from stealing them. This fixes what I broke
27830 with my last checkin.
27832 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27834 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
27835 I finally understand how the property can be set without a setter :-)
27837 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27840 - Switched RunLoop to use static Message.Create to create a
27842 - Added PreProcessMessage call in runloop for keyboard events; this
27843 is part of the fix for #77219, I overlooked this originally in the
27844 MSDN doc for PreProcessMessage
27846 - Removed call to PreProcessMessage from handling of keyboard
27847 messages; it's supposed to be done in the message pump
27848 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
27849 per MSDN documentation.
27850 - IsInputChar: All chars are input chars by default; removed the
27851 parent calling chain, MS does not document that
27852 - PreProcessMessage: If IsInputChar is true, we want to return false
27853 to allow dispatching of the message
27854 - When selecting the next control, now also check that we're not
27855 selecting ourselves again and therefore return a false positive.
27857 - Tried to match return values for IsInputKey and ProcessDialogKey
27858 to what MS returns; moved processing of our special keys outside
27859 ProcessDialogKey since MS does not seem to return true on those.
27860 - Moved code that previously was in ProcessDialogKey into new private
27861 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
27862 - Reworked handling of WM_CHAR to not have to duplicate code from
27863 Control.cs anymore, instead we simply call down to base.
27865 2006-01-12 Jackson Harper <jackson@ximian.com>
27867 * ComboBox.cs: We always need to refresh the text area when
27868 EndUpdate is called. Fixes the combobox in the file dialog.
27869 * Control.cs: Don't create the creator_thread until the controls
27870 handle is created. Also in InvokeRequired we check if the
27871 creator_thread is null. This gives the effect of InvokeRequired
27872 returning true if the controls handle is not created yet, and
27875 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27878 - Added StartLoop() driver method. This is used to allow drivers to
27879 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
27880 loop for a particular thread
27881 - Added EndLoop() driver method. This is called once the message
27882 pump for the thread is shut down
27883 - Added SupportsTransparency method to allow the driver to indicate
27884 opacity support for windows
27886 - Removed TODO attribute, completed AllowTransparency property
27887 - Added documented logic to Opacity
27888 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
27889 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
27890 versions of CompatibleTextRendering
27891 * X11Structs.cs: Added opacity atom to our atom enumeration
27892 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
27893 of a form might be set before it's reparented by the WM, and we need
27894 the opacity value without calling up to Form)
27895 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
27896 SupportsTransparency() driver methods
27897 * Application.cs: Now calling StartLoop and EndLoop driver methods
27899 - Added opacity atom registration
27900 - Added StartLoop()/EndLoop() methods. They're empty right now but
27901 will need to get implemented when we switch to a per-thread queue
27902 - Implemented SupportsTransparency() method
27903 - Implemented SetWindowTransparency() method
27904 - Added support for setting the opacity value when a window is
27905 reparented (since the opacity needs to be set on the WM frame)
27906 * XplatUIOSX.cs, XplatUIWin32.cs:
27907 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
27909 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
27911 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
27913 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
27915 * FileDialog.cs: Added ToolTip for MWFFileView
27916 * MimeIcon.cs: Rewrote GnomeHandler.
27917 - Get currently used gnome icon theme from
27918 ($HOME)/.gconf/%gconf-tree.xml
27919 - Make use of inherited icon themes
27920 - Support SVG icon themes like Tango via librsvg
27922 2006-01-12 Miguel de Icaza <miguel@novell.com>
27924 Revert's Jackson's revert which broke 2.0 builds. Fix both
27927 * Application.cs: Move the use_compatible_text_rendering outside
27928 the NET_2_0 define. If we ever need to use the
27929 use_compatible_text_rendering on the individual controls they will
27930 access the variable from the common shared code paths.
27932 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
27935 - Added more granular debug options
27936 - Added method to print both window text and id
27937 - Switched debug output to use new Window() debug method
27938 - Added IsEnabled() driver method
27939 - Added EnableWindow() driver method
27941 - Removed end_modal; no longer needed, new loop handles termination
27942 via 'closing' variable
27943 - If form is modal, setting DialogResult will now initiate loop
27944 termination via 'closing' variable
27945 - Added support for is_enabled/WS_DISABLED to CreateParams
27946 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
27948 - Removed code that's now in RunLoop from ShowDialog()
27949 - Added various documented sanity checks to ShowDialog()
27950 - Added handling of WM_DESTROY message; we set 'closing' on getting
27951 the message to indicate the message pump to terminate
27952 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
27953 send by the Application.ExitThread method. (We send the message
27954 to destroy the window after all other events have been
27955 processed through the queue, instead of destroying the handle
27957 - Moved code from Close() method to WM_CLOSE handler; added logic
27958 to only send close-related events if the form is not displayed
27960 * Splitter.cs (..ctor): Fixed typo in resource name
27962 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
27964 - set_Cursor: Now only setting calling into XplatUI if the handle for
27965 the control is already created; this avoids implict handle creation
27966 or crashes if it's not created
27967 - set_Enabled: Now setting the enabled state via the new driver method
27968 instead of just tracking it
27969 - CreateParams: Added logic to set WS_DISABLED based on enabled state
27970 - CreateControl: Reordered event firing and method calls to more
27971 closely fire events in the order MS does. Now setting the
27972 enabled state in the driver when creating the control.
27973 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
27975 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
27976 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
27977 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
27979 - Added tracking of window enabled state (get_Enabled/set_Enabled)
27980 - Added EnabledHwnd property to easily allow a driver to find the
27981 handle of the first enabled window in the parent chain (this is
27982 used by drivers to pass up input events of disabled windows)
27983 * XplatUIDriver.cs: Added IsEnabled() method
27985 - Removed crude and obsolete exiting tracking variable
27986 - Removed internal ModalRun(); replaced by RunLoop()
27987 - Implemented private CloseForms() method to allow closing all
27988 windows owned by a particular (or all) threads
27989 - Exit() now properly closes all windows without forcing the message
27991 - Removed obsolete InternalExit() method
27992 - Changed Run() methods to use new RunLoop() message pump
27993 - Implemented new RunLoop() method for both modal and non-modal forms
27995 - get_CreateParams: Added setting of WS_DISABLED
27996 - Simplified ShowDialog(); now all the work is done in RunLoop(),
27997 invoked via Form.ShowDialog()
27998 * NativeWindow.cs: We don't remove the window from the collection when
27999 the handle is destroyed; there might still be messages for it in the
28000 queue (mainly the resulting WM_DESTROY); instead it will be removed
28001 when Control calls InvalidateHandle in the WM_DESTROY handler
28003 - CreateWindow: Added logic to handle the WS_DISABLED window style
28004 - EnableWindow: Implemented based on Hwnd.Enabled
28005 - GetMessage: Reset PostQuitState so the method can be called again
28006 - Implemented support for disabled windows (passing messages to the
28007 first enabled parent) in handling all input messages
28008 - Added optimizations for handling Expose events
28009 - Implemeted new driver method IsEnabled()
28010 - Now always resetting paint pending tracking vars when we start paint
28011 - Re-implemented UpdateWindow via just sending a WM_PAINT message
28012 * XplatUIOSX.cs: Added IsEnabled method stub
28013 * XplatUIWin32.cs: Implemented new IsEnabled() method
28015 2006-01-11 Jackson Harper <jackson@ximian.com>
28017 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28018 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
28019 variables a little.
28020 * ColorDialog.cs: Clear out the old form before adding the new
28023 2006-01-11 Jackson Harper <jackson@ximian.com>
28025 * X11Dnd.cs: Make sure to add all the text formats when adding
28026 strings to the data object.
28027 * TreeNodeCollection.cs: When adding to a sorted tree we need to
28028 do some redrawing too. Also change the UpdateNode to an
28029 UpdateBelow so the newly added node gets painted.
28031 2006-01-11 Miguel de Icaza <miguel@novell.com>
28033 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
28034 LinkLabel.cs, PropertyGrid.cs: Implement the
28035 UseCompatibleTextRendering property for 2.x
28037 * Application.cs (SetCompatibleTextRenderingDefault): Add.
28039 2006-01-11 Jackson Harper <jackson@ximian.com>
28041 * TreeView.cs: Use the property for setting the selected node so
28042 the correct events get raised.
28043 * TreeNode.cs: Update the tree when the fore/back colours of a
28046 2006-01-10 Jackson Harper <jackson@ximian.com>
28048 * TreeView.cs: Allow setting SelectedNode to null.
28050 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28052 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
28054 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28056 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
28058 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28060 * PrintDialog.cs: Added attributes and set default property values.
28062 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28064 * PrintControllerWithStatusDialog.cs:
28065 Added PrintControllerWithStatusDialog.
28067 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28069 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28070 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
28072 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
28074 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
28076 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28078 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
28079 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
28081 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28083 * MimeIcon.cs: Added internal class SVGUtil.
28085 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
28087 * FileDialog.cs: Don't crash if there are two files with the
28088 same name but different locations.
28090 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
28092 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
28093 dates across multiple month grids. Used to not highlight entire
28094 month, but does now.
28096 2006-01-06 Jackson Harper <jackson@ximian.com>
28098 * MonthCalendar.cs: Removed DoEvents call to prevent a running
28099 message loop. Change timer intervals to numbers that seem more
28102 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
28104 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
28105 object for location info since screen object is now implemented.
28107 2006-01-05 Jackson Harper <jackson@ximian.com>
28109 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
28110 * AsyncMethodResult.cs: We no longer use a WeakReference for the
28111 AsyncMethodResult, this is because we ALWAYS want the
28112 ManualResetEvent to get set.
28113 * Control.cs: When disposing use an async invoke to call shutdown
28114 code, so that thigns don't block on the finalizer thread. Also
28115 check if we even have a message loop before trying to send
28116 messages, if we don't then don't bother sending messages.
28117 - No more weak references for async methods
28118 * XplatUIDriver.cs: No more weak references for async methods.
28120 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28122 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
28123 returns two FontFamily with the same name
28125 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28127 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
28128 drawing disabled text. Instead using the ColorGrayText color
28130 2006-01-04 Jackson Harper <jackson@ximian.com>
28132 * TreeNode.cs: redraw the node when its image index is changed.
28134 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
28136 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
28137 time I checked there are no others like it.
28139 2006-01-04 Jackson Harper <jackson@ximian.com>
28141 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
28142 this gives the behavoir I was looking for.
28143 * Control.cs: Special case Invoking EventHandlers, this matches MS
28144 and fixes part of bug #76326.
28146 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28148 * ThemeClearlooks.cs, FileDialog.cs:
28149 - Reflect the latest Theme class changes
28150 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
28153 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
28155 * Theme.cs: Cache UI resource images and resize them if needed
28157 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28159 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
28160 is called. This fixes the crash in Nexxia when setting the font
28161 attributes in the chat. [However, RTF needs a look-over to make sure
28162 that all SelectionXXX methods handle the special case that selection
28163 is empty and therefore the change must be applied to all text starting
28164 at the cursor/selection start]
28166 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28168 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28169 XplatUIOSX.cs: Added SendMessage and PostMessage methods
28170 * X11Keyboard.cs: Switched to new way of calling PostMessage
28172 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
28174 * Theme.cs: Added theme interface for images to allow the theme to
28175 control what images are used for things like FileDialog, MessageBox
28177 * MessageBox.cs: Now uses the new Theme icon/image interfaces
28179 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
28182 - Removed some dead code
28183 - Opening a recently used file does work now
28184 - Small UI enhancements
28187 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28189 * FileDialog.cs: Forgot too add __MonoCS__
28191 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
28193 * FileDialog.cs: We are able to read recently used files now let's
28194 go on and write them.
28196 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
28198 * FileDialog.cs: Breathe some life into "last open"/"recently used"
28200 * MimeIcon.cs: Do a check for the top level media type also
28202 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28204 * ThemeClearlooks.cs:
28205 - Added CPDrawStringDisabled
28206 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
28207 some chars if the text doesn't fit into text_rect
28208 - DrawListViewItem: If View = View.LargeIcon center the image;
28209 rewrote the drawing of ListViewItem.Text if View =
28212 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
28214 * MimeIcon.cs: Use default KDE icon theme if there is no
28215 "48x48" directory for the current icon theme, fixes #77114
28216 * Mime.cs: Disable not working and actually not used code.
28217 * ThemeWin32Classic.cs:
28218 - Replace "new SolidBrush" in GetControlBackBrush and
28219 GetControlForeBrush with ResPool.GetSolidBrush
28220 - Changed DrawListViewItem from private to protected virtual
28222 - Added form.MaximizeBox = true
28223 - Don't throw an exception if there is a broken symbolic link
28225 2005-12-23 Jackson Harper <jackson@ximian.com>
28227 * TabControl.cs: Give the panels focus, keyboard navigation is
28228 fixed so this works correctly now.
28229 - We need these key events also.
28230 * ToolBar.cs: Remove some of the poor mans double buffering.
28232 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
28234 * ComboBox.cs: The internal TextBox now returns the focus.
28236 2005-12-23 Jackson Harper <jackson@ximian.com>
28238 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
28240 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28242 * Control.cs: Removed debug code
28243 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
28246 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28248 * Control.cs: When creating the control, update the Z-order after
28249 all it's children are created, too. (Fixes nexxia not showing
28252 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
28254 * Control.cs: Do not update the anchoring distances if layout is
28255 suspended, instead do it once layout is resumed
28257 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28260 - After many hours of debugging, for both Jackson and
28261 myself, it turns out that it helps to set the parent of a control
28262 if you want to actually see it onscreen. In the spirit of that
28263 discovery, we're now setting the parent of the control and
28264 it's children when the control's handle is created. This fix
28265 will make Lutz Roeder's Reflector run happily.
28266 - now just creating the handle instead of the whole control when
28267 getting a graphics context for the control.
28269 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28271 * ScrollableControl.cs: When calculating the canvas, don't consider
28272 the scrollbar widths. Instead, predict if horizontal scrollbar
28273 will affect canvas when deciding on vertical display and vice versa.
28275 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
28277 * RichTextBox.cs: Set default RTF font for documents that don't
28278 have a font table (Fixes #77076)
28280 2005-12-22 Jackson Harper <jackson@ximian.com>
28282 * TextBoxBase.cs: It's difficult to do, but you can have an empty
28283 clipboard. This prevents a NullRef in that case.
28284 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
28285 clipboard. PRIMARY is for the currently selected text only. (We
28286 should implement PRIMARY at some point.
28288 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28290 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
28291 a Unicode function with a structure that was defined in Ansi way.
28294 2005-12-21 Jackson Harper <jackson@ximian.com>
28296 * StatusBar.cs: Statusbar handles its fore/back colours on it's
28297 on. Because thats how it rolls. (and this avoids it using ambient
28299 * ThemeWin32Classic.cs: Use the proper back color for filling.
28300 * Menu.cs: Use the system menu bar color for drawing menu
28301 bars. Using the window back color will bring ambient colours into
28304 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
28306 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
28307 Bitmaps were created and not disposed.
28309 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28311 * Control.cs (CreateControl): Don't do anything if the control is
28312 already created, otherwise we'd fire the OnCreated event more than
28315 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28317 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28318 will always match. Instead return -1. Fixes #76464.
28320 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28322 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28323 neither the beginning nor the end of the line (Fixes bug #76479)
28325 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
28328 - ControlNativeWindow.ControlFromHandle(): Now handling situation
28329 where handle is invalid
28330 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28331 instead of slower linear search
28332 * NativeWindow.cs: Don't remove the window from the hashtable until
28333 after the driver has destroyed it (since the driver might use
28334 Control.FromHandle to lookup the control object
28335 * Hwnd.cs: Added DestroyPending property to track if a window is
28336 already destroyed as far as the driver is concerned and only hasn't
28337 yet notified the control
28339 - Activate(): Check if the window is still valid before using the
28341 - Implemented DestroyChildWindow() method to mark child windows as
28342 destroyed when a window is destroyed. This prevents situations
28343 where we might call an X method based on queued events for a
28344 window that already has been destroyed but we haven't yet pulled
28345 the destroy method from the queue.
28346 - Added a call to the new DestroyChildWindow() method to the drivers
28347 DestroyWindow code. Also now marking the destroyed window itself
28350 2005-12-20 Jackson Harper <jackson@ximian.com>
28353 * StatusBarPanel.cs: Don't calculate panel sizes on draw
28354 anymore. Just do them when needed, also track the rects of panels
28355 so that we can optimize refreshing more in the future.
28357 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
28359 * ColorDialog.cs: Fixed focus drawing in small color controls
28361 2005-12-19 Jackson Harper <jackson@ximian.com>
28363 * InternalWindowManager.cs:
28364 * MdiWindowManager.cs: Cleanup some coordinate system changes so
28365 moving windows works properly.
28367 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
28370 - Removed call to InitLayout() from SetBoundsCore(); doc says
28371 it's only called when a control is added to a container
28372 - Split InitLayout logic, moved to separate UpdateDistances() method
28373 since we need to perform those calculations more often than just
28374 when adding the control to a container. (Needed to fix #77022)
28375 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28376 - Reduced the OnBindingContextChanged events count, don't send them
28377 unless the control is created, we still aren't totally matching
28378 MS, but I can't quite figure out some of their rules
28380 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28382 * ThemeClearlooks.cs: Corrected distance between ProgressBar
28385 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28387 * ThemeClearlooks.cs:
28388 - Updated ProgressBar drawing
28389 - Corrected drawing of ScrollBars and scroll buttons
28390 - Some temporary fixes for minor pixel artefacts
28392 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
28395 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28396 cause events to be sent in the same order as MS does.
28397 - Added ChangeParent() method to trigger various OnXXXChanged events
28398 that need to be fired when a parent changes (This is a reworking
28399 of the patch from r54254, with the X11 errors fixed)
28400 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28401 since on MS we get OnLayoutChanged events when calling Clear()
28402 - Changed Enabled property to consider parent state as well, if a
28403 parent is not enabled, the control will not be either
28404 - Changed Parent property to simply call Controls.Add() since that
28405 now does all the work required, this way we avoid code duplication
28406 - Threw in a few OnBindingsContextChanged calls to try and match
28407 when MS sends them. We seem to send a few too many, though.
28408 - Added call to CreateControl when adding the control to a parent.
28409 We were never calling CreateControl. Still needs some work, in
28410 some places we treat HandleCreated and ControlCreated as equal,
28412 - Removed obsolete commented out code from UpdateZOrder()
28414 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
28416 * ThemeClearlooks.cs: Updated TrackBar drawing.
28418 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28420 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28422 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
28424 * FileDialog.cs: Add the Help button and the open readonly
28425 checkbox only if needed
28427 2005-12-16 Jackson Harper <jackson@ximian.com>
28429 * Control.cs: Make sure we have an active menu before trying to
28430 process commands on it. Prevents menu-less forms from crashing
28431 when Alt is pressed.
28432 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28434 * RichTextBox.cs: Expand statement to help out gmcs and fix the
28437 2005-12-16 Jackson Harper <jackson@ximian.com>
28439 * InternalWindowManager.cs: Don't translate tool windows screen
28440 coordinates. This fixes windows 'bouncing' around when being moved.
28442 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28445 - MaxLength now treats 2^31-1 equal to unlimited length (this is
28446 not quite MS compatible, MS uses that number only for single line
28447 and 2^32-1 for multi-line, but I figure it won't hurt keeping
28449 - Now enforcing the MaxLength limit when entering characters
28450 - Added argument to internal Paste() method to track if it's called
28451 from programatically or via keyboard, since keyboard driven pastes
28452 need to enforce max-length
28453 - Added logic to Paste to only paste as many chars as MaxLength
28455 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28457 - Added Length property to return number of characters in document
28458 - Added private CharCount property which only tracks actual chars
28459 in the document (no linefeeds) and fires event when CharCount
28461 - Added tracking of character count to all methods that alter it
28462 - Added LengthChanged event to allow applications to subscribe
28463 to any changes to the document
28465 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
28468 - Removed local password_char field (moved to TextBoxBase)
28469 - Now setting the document's password var when password is
28472 - Added password_char field (needed here so MultiLine can
28474 - Added logic to MultiLine property setter to set the document's
28475 variable when password display is allowed
28476 - Removed debug code and made some debug code conditional
28478 - Added RecalculatePasswordLine() method to handle special password
28480 - Added PasswordChar property, also added related tracking vars
28481 - Draw() method now uses local text var for grabbing text to draw,
28482 this var is set to line.text unless we're doing password display,
28483 then it is set to the pre-generated all-password-chars line
28484 - Added calling RecalculatePasswordLine() method for password lines
28486 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28489 - Added Reparented property to allow tracking of Window Manager
28490 reparenting actions (which affect X/Y calculations of toplevel
28492 - Made ToString() print window handles in hex
28494 - AddConfigureNotify(): Now uses reparented state off Hwnd to
28495 determine if X/Y needs offsetting
28496 - AddConfigureNotify(): Fixed offset calculations
28497 - Now adds ReparentNotify messages into the queue
28498 - Now processes ReparentNotify messages and causes a
28499 WM_WINDOWPOSCHANGED message to be sent upstream if a window
28500 is reparented (as most likely it's X/Y coordinates are changed
28503 2005-12-14 Jackson Harper <jackson@ximian.com>
28505 * XplatUIX11.cs: Tool windows still need to respek focus.
28507 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
28509 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28510 have a working release
28512 2005-12-13 Jackson Harper <jackson@ximian.com>
28514 * Form.cs: Update styles after setting the border style regardless
28515 of whether or not the window is using a window manager.
28517 2005-12-13 Jackson Harper <jackson@ximian.com>
28519 * Form.cs: We now hook into an internal window manager instead of just an
28520 MDI subsystem, this is so we can have properly behaving tool windows.
28521 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28522 * InternalWindowManager.cs: New internal class that acts as a
28523 window manager for tool windows and as a base for mdi windows.
28524 * MdiWindowManager.cs: New class that acts as a window manager for
28527 2005-12-12 Jackson Harper <jackson@ximian.com>
28529 * Control.cs: Updates so we match behavoir for for implicit
28530 controls. Fixes explosions in MDI.
28532 2005-12-12 Jackson Harper <jackson@ximian.com>
28534 * Control.cs: Implement Invalidate (Region).
28536 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
28539 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
28540 the same events as MS does. MS fires events for each property
28541 except, for unknown reasons, Cursor, when the control is reparented.
28542 I can't seem to totally match add/remove since MS also fires some
28543 VisibleChanged events, which makes no sense. Consolidated the
28544 parenting code into a separate method so it can be called from
28545 both Add and Remove. set_Parent no longer needs any special logic
28546 as it calls the parent's add method which implicitly fires
28548 - Removed some obsolete code and debug output
28549 - Enabled state is inherited from parents, if this is enabled
28551 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28553 * Form.cs: Removed commented out code
28555 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
28558 - Added internal version of Invoke, with additional argument
28559 indicating if we're calling it from a Dispose() handler. That
28560 way we can avoid BeginInvoke throwing an exception if we're
28561 calling for an already destroyed window.
28562 - Added a dispose argument to BeginInvokeInternal, and made the
28563 check if a valid window handle chain exists conditional on
28564 it not being a dispose call
28565 - Removed code in DestroyHandle to destroy our children. Since we
28566 now handle the WM_DESTROY message we will catch all our children
28568 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28570 - Added a field to track the application context of the form.
28571 - No need to set closing variable as response to WM_CLOSE, instead
28572 we destroy the window. We also call PostQuitMessage if the form
28573 has an application context (which makes it the main app form,
28574 which, when closed terminates the app)
28576 - Dropped Exit() method, it's naming was confusing
28577 - Added PostQuitMessage() which causes GetMessage to return false
28578 once the message queue is empty
28579 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
28581 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28582 no longer a valid XplatUI method, but left it in since it's used
28583 internally. Added empty PostQuitMessage() method.
28584 * MenuAPI.cs: Replaced call to Exit() with call to
28585 PostQuitMessage, even though this is probably no longer needed.
28586 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28587 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28589 - Replaced call to XplatUI.Exit() with PostQuitMessage()
28590 - Removed old debug code that would call XplatUI for exception
28591 display, enabled standard exception handling (Still not enabled
28592 though, until NativeWindow's ExternalExceptionHandler define
28595 - Added internal method to allow control to update NativeWindow
28596 after a window has been destroyed
28597 - Added handling of already destroyed windows when calling i
28599 - Added removal of handle from list on ReleaseHandle
28601 - Dropped GetMessageResult var and related code
28602 - Added PostQuitState to field to track if PostQuitMessage has been
28604 - Dropped Exit() method
28605 - Added PostQuitMessage() method
28606 - GetMessage now will return false if PostQuitState is set and no
28607 more messages are in the queue.
28608 - Expose handler will no longer generate WM_PAINT messages if we are
28609 in PostQuitState since it's very likely any windows have already
28610 been destroyed, and since Hwnd won't get updated until we have
28611 processed the DestroyNotify we'd be causing X errors.
28613 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28615 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28616 Thanks to Mike for pointing out the err of my ways.
28618 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28620 * Control.cs(PreProcessMessage): Moved menu handling back, but
28621 after all other key handling, to match MS (who handles Menu in
28623 * Menu.cs (WndProc): Removed my brainfart
28625 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28627 * Control.cs(PreProcessMessage): Removed special menu handling
28628 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28630 2005-12-07 Mike Kestner <mkestner@novell.com>
28632 * Control.cs : special case SYSKEYUP so that we can adjust keynav
28633 state according in tracker.
28634 * Menu.cs : promote tracker field to base class and provide a tracker
28635 lookup capability. Add/Remove shortcuts dynamically if the top menu
28636 has a tracker. Unparent items that are removed from the collection.
28637 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28638 * Theme*.cs: add always_show_hotkeys field to support configurability
28639 of mnemonic display. win32 doesn't show mnemonics until Alt is
28642 2005-12-07 Jackson Harper <jackson@ximian.com>
28644 * MdiChildContext.cs: Use Control.ResetCursor.
28645 * Control.cs: ResetCursor needs to set the property so that the
28646 correct XplatUI call gets made.
28648 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28650 * Control.cs: More fixes to make our key events match MS. We
28651 were not setting the modifier state on KeyData, and we were
28652 not generating any events when Alt was pressed with a key
28653 since handling of WM_SYSxxx was missing for the OnKey methods.
28655 2005-12-07 Jackson Harper <jackson@ximian.com>
28657 * MdiChildContext.cs: reenable the sizing code.
28658 - When the mouse leaves a window reset its cursor.
28660 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28662 * ThemeClearlooks.cs: Reflect latest Hwnd changes
28664 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
28666 * Hwnd.cs: Now using the theme 3d bordersize to calculate
28667 widths of Fixed3D borders
28669 2005-12-07 Jackson Harper <jackson@ximian.com>
28671 * MdiClient.cs: Fix warnings. Earn Mike's love.
28673 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
28675 * ThemeClearlooks.cs:
28676 - Adjusted mouse over button color
28677 - Added first parts of CheckBox drawing
28678 - Added correct color for selected text background
28679 - Fixed ComboBox drawing
28680 - Added CPDrawBorder3D and CPDrawBorder
28682 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28684 * XplatUIX11.cs: Added call to XBell for AudibleAlert
28686 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28688 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28689 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28690 alert users via sound. We could add an enum arg with different
28691 types of alerts in the future
28693 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
28695 * Control.cs: Fix behaviour problems pointed out by Mike
28697 2005-12-05 Mike Kestner <mkestner@novell.com>
28699 * StatusBarPanel.cs: add Invalidate method and hook it into all the
28700 prop setters. Calls parent.Refresh for now, but could be maybe be
28701 optimized with an internal method on StatusBar at some point.
28704 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
28706 * RichTextBox.cs: Implemented get_SelectionColor
28708 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
28710 * ThemeClearlooks.cs:
28711 - Removed dead code
28712 - Draw black button border only if button is Form.AcceptButton
28713 - Draw correct button color for pressed RadioButton if the mouse
28714 has entered the button
28715 - Updated ProgressBar drawing!
28716 - Updated CPDrawSizeGrip drawing
28717 - Updated StatusBarPanel drawing
28719 2005-12-05 Mike Kestner <mkestner@novell.com>
28721 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
28722 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
28724 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
28726 * ThemeClearlooks.cs: Initial check-in, activate with
28727 export MONO_THEME=clearlooks
28728 * ThemeEngine.cs: Added ThemeClearlooks
28730 2005-12-03 Mike Kestner <mkestner@novell.com>
28732 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
28735 2005-12-02 Jackson Harper <jackson@ximian.com>
28737 * Form.cs: If the child form has no menu the default main menu is
28738 used as the active menu.
28740 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28742 * ListBox.cs: Check if any items exist before trying to resolve
28743 coordinates into items
28745 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28747 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
28748 as the second color for the background hatch
28750 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
28752 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
28753 * RichTextBox.cs: FormatText position arguments are 1-based, now making
28754 sure that what we pass to FormatText is always 1-based. Fixes #76885
28756 2005-11-29 Miguel de Icaza <miguel@novell.com>
28758 * NumericUpDown.cs (EndInit): When we are done initializing,
28759 reflect any updates on the UI.
28761 2005-12-02 Jackson Harper <jackson@ximian.com>
28763 * ImplicitHScrollBar.cs:
28764 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
28765 their container controls.
28766 * TreeView.cs: Use the new implicit scrollbars.
28768 2005-12-02 Jackson Harper <jackson@ximian.com>
28770 * TreeView.cs: Make top_node internal so the TreeNodeCollections
28772 * TreeNodeCollection.cs: If we remove the topnode we need to
28773 update topnode to the next node in line.
28774 - When clearing nodes go through the same process as removing
28775 them, so they get depareneted and checked if they are top node.
28777 2005-12-01 Jackson Harper <jackson@ximian.com>
28779 * TreeView.cs: When imagelists are used the image area is
28780 selectable as well as the text.
28781 - If there are no selected nodes select the first one.
28782 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
28783 so don't do it more then we need to.
28785 2005-12-01 Jackson Harper <jackson@ximian.com>
28787 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
28788 that arrows can be scaled.
28790 2005-12-01 Jackson Harper <jackson@ximian.com>
28792 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
28793 fail. Patch by Dieter Bremes
28795 2005-11-30 Jackson Harper <jackson@ximian.com>
28797 * Form.cs: Property is 2.0 only
28798 * PrintDialog.cs: Signature fix.
28800 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28803 - No longer artificially moves text 2 pixels down (now that we have
28804 borders this is no longer needed)
28805 - Added calcs for left, hanging and right indent
28807 2005-11-23 Mike Kestner <mkestner@novell.com>
28809 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
28811 2005-11-30 Jackson Harper <jackson@ximian.com>
28813 * MdiChildContext.cs: Set the cloned menus forms, as these don't
28814 get cloned as part of CloneMenu ().
28815 * Menu.cs: Make sure the parent of the items get set correctly
28816 when they are added. And the owners are notified of the changes.
28817 * Form.cs: Create an ActiveMenu property, so that when MDI is used
28818 we can change the menu being displayed/handled by the form without
28819 changing the menu assosciated with the form.
28820 - Don't let Mdi children draw/handle menus.
28822 2005-11-30 Jackson Harper <jackson@ximian.com>
28824 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
28825 a MenuChanged event. Just to make the API a little more
28828 * MenuItem.cs: Use the new OnMenuChanged
28829 * MdiChildContext.cs: Handle menu merging.
28830 * Form.cs: Implement MergedMenu.
28832 2005-11-30 Jackson Harper <jackson@ximian.com>
28834 * Menu.cs: We were misusing Add. Add goes behind the specified
28835 index according to the docs, and does not replace the specified
28836 index. So I added an Insert method.
28838 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
28840 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
28841 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
28843 * RichTextBox.cs: Added calls to base for DnD events
28845 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
28848 - Fixed drag-selection related crash; style fixes
28849 - Implemented undo class
28850 o Implemented method to capture document state for specified
28851 range in document tree
28852 o Implemented method to restore captured document state
28853 o Implemented cursor tracking
28854 o Implemented basic undo stack
28855 - Added undo cursor tracking to methods altering cursor location
28856 - Added undo tracking to selection deletion (still missing
28857 other text-altering hookups)
28859 - Added SelectionLength property
28860 - Implemented CanPaste()
28861 - Implemented Paste()
28862 - Added missing protected methods
28863 - Fixed RTF->Document conversion; now uses font index 0 and color
28864 index 0 as the default font for the parsed text
28865 - Fixed RTF<->Document font size translation
28866 - Fixed RTF generation, now properly handles cross-tag boundaries
28867 for single line selection
28868 - No longer always appends blank line to generated RTF
28870 - Added missing attributes
28871 - Hooked up undo-related methods
28873 - Implemented Copy()
28874 - Implemented Paste()
28875 - Implemented Cut()
28876 - Fixed caret mis-behaviour on backspace across line-boundaries
28878 2005-11-29 Jackson Harper <jackson@ximian.com>
28880 * MdiClient.cs: Add a method for activating mdi children. Very
28881 basic right now. I imagine someday it might need more girth.
28882 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
28883 children windows names are added to the menu item.
28884 * ThemeWin32Classic.cs: Draw the arrow if the item is an
28885 mdilist. This happens regardless of whether or not there are any
28886 mdi windows to see in the list, and according to my tests happens
28887 before the items are even added. Also happens if there isn't even
28888 an mdi client to get windows from.
28890 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
28892 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
28893 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
28895 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
28897 * DataGridTableStyle.cs:
28898 - Create always the styles for the missing columns even if they are
28899 provided by the user (not default table style)
28902 - Fixes SetDataBinding (always re-attach source)
28903 - Fixes SetNewDataSource (only clear styles if they are not for
28905 - Expands OnTableStylesCollectionChanged to handle style refresh
28906 and remove properly
28908 2005-11-29 Jackson Harper <jackson@ximian.com>
28910 * FileDialog.cs: Implement missing bits, remove some dead
28912 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
28913 creation of the panel so that the options set on the dialog are
28914 seen when the panel is created.
28915 * TreeView.cs: raise a click when items are clicked.
28917 2005-11-29 Jackson Harper <jackson@ximian.com>
28919 * MdiClient.cs: Pass some signature methods through to base.
28921 2005-11-28 Jackson Harper <jackson@ximian.com>
28923 * ListView.cs: Raise the click event when items are clicked.
28925 2005-11-28 Jackson Harper <jackson@ximian.com>
28927 * MdiClient.cs: Make this algorithm even more beautiful. And fix
28930 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
28932 * ThemeNice.cs: - Removed 1 pixel bitmaps
28933 - Use SmoothingMode.AntiAlias where it makes sense
28934 (ScrollButton arrow for example)
28935 - Enhanced Button focus drawing
28936 - Fixed ComboBox drawing (no artefacts anymore, focus
28937 rectangle is back again, reduced size of ComboButton, etc.)
28938 - Fixed RadioButton focus drawing for Appearence.Button
28939 - Slight ScrollButton redesign
28940 - Some LinearGradientBrush size fixes
28941 - GroupBoxes have now rounded edges
28942 - Fixed StatusBar drawing
28944 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
28946 * ThemeNice.cs: - Remove dead code
28947 - use correct background colors for menus, etc.
28948 - Fake pixel drawing with 1 pixel bitmaps
28950 2005-11-24 Jackson Harper <jackson@ximian.com>
28952 * MdiClient.cs: Size the scrollbars when resizing the window.
28953 - Resize the maximized windows when the client is resized
28954 * Form.cs: Make the child context available
28956 2005-11-23 Jackson Harper <jackson@ximian.com>
28958 * MdiChildContext.cs: Don't size windows if they are maximized.
28960 2005-11-23 Mike Kestner <mkestner@novell.com>
28962 * ContextMenu.cs: use MenuTracker.
28963 * Control.cs: remove menu handle usage.
28964 * Form.cs: remove menu handle usage.
28965 * Hwnd.cs: remove menu handle usage.
28966 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
28967 motion and clicks to the new Tracker handlers.
28968 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
28970 * MenuAPI.cs: refactored to combine popup and menubar event handling.
28971 Killed the MENU and MENUITEM data types and associated collections
28972 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
28973 MenuTracker class that exposes the leftovers from the old MenuAPI
28974 static methods. Restructured Capture handling so that only one grab is
28975 done for the entire menu hierarchy instead of handing off grabs to
28976 submenus. Tracker now has an invisible control to Capture when active.
28977 * MenuItem.cs: add sizing accessors, kill Create
28979 * Theme.cs: remove menu handle and MENU(ITEM) usage.
28980 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
28981 MENU(ITEM). remove menu handle usage, use Menu directly.
28982 * XplatUIDriver.cs: remove menu handle usage.
28983 * XplatUIOSX.cs: remove menu handle usage.
28984 * XplatUIWin32.cs: remove menu handle usage.
28985 * XplatUIX11.cs: remove menu handle usage.
28987 2005-11-22 Jackson Harper <jackson@ximian.com>
28989 * Hwnd.cs: Don't compute the menu size for
28990 DefaultClientRectangle.
28991 - Reenable menu sizes being computed for GetClienRectangle.
28992 * Form.cs: Remove comment of trechery
28994 2005-11-22 Jackson Harper <jackson@ximian.com>
28996 * Hwnd.cs: The adjustments for the menu bar are made when it is
28997 attached to the form.
28999 2005-11-19 Jackson Harper <jackson@ximian.com>
29001 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
29002 (just like on windows).
29004 2005-11-19 Jackson Harper <jackson@ximian.com>
29006 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
29007 use real buttons anymore because they are in non client area. The
29008 one TODO here is that I need to somehow invalidate a section of
29009 the non client area.
29011 2005-11-18 Jackson Harper <jackson@ximian.com>
29013 * Control.cs: Put the enum check back in now that MDI doesnt have
29014 to use this to set border styles.
29015 * Form.cs: Only set mdi child windows borders if the handle has
29017 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
29018 this directly on to the driver.
29019 - Get the move start position before adjusting for the titlebar
29020 height, this fixes the windows "skipping" when they are first
29023 2005-11-18 Jackson Harper <jackson@ximian.com>
29025 * XplatUIX11.cs: Just compute the mdi borders separately as they
29026 don't totally match up with normal form borders.
29028 2005-11-18 Jackson Harper <jackson@ximian.com>
29030 * Control.cs: Set WS_ styles for borders, so that the driver does
29031 not have to retrieve the control instance to figure out what kind
29032 of borders it should have.
29033 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
29034 driver can know its an mdi child easily.
29035 * XplatUIX11.cs: Get the border styles and whether the window is
29036 MDI from the Styles and ExStyles params instead of having to get a
29037 control. This prevents a chicken and egg problem.
29039 2005-11-18 Jackson Harper <jackson@ximian.com>
29041 * MdiClient.cs: Fix typo so scrollbars show up correctly.
29043 2005-11-18 Jackson Harper <jackson@ximian.com>
29045 * MdiClient.cs: Calculate when to add and remove scrollbars
29047 * MdiChildContext.cs: Adjust the y position to take the titlebar
29049 - No height for FormBorderStyle.None
29051 2005-11-18 Jackson Harper <jackson@ximian.com>
29053 * Control.cs: Allow non enum values to be used for
29054 InternalBorderStyle. MDI does this to set a special border style.
29055 - New utility methods for converting points to/from client coords
29056 - Add the newly created control to the Controls collection before
29057 updating its style. This way UpdateStyle can walk the control
29058 heirarchy to find the control if needed.
29059 so I don't need to create a new Point object all the time.
29060 * Form.cs: Let MDI windows handle their border styles.
29061 - Set styles on MDI windows so the correct title style is derived.
29062 * MdiChildContext.cs: Move all the painting and window handling
29063 into the non client area.
29064 - Use correct sizing and put correct buttons on frames based on
29065 the FormBorderStyle.
29066 - Notify the mdi client about scrolling
29067 - Need to handle the buttons ourselves now, because they are all
29068 in non client areas and we can't add controls there.
29069 * MdiClient.cs: Halfway to scrolling, this implementation is
29070 somewhat broken though, we need to check to make sure other
29071 windows aren't causing scrolling before removing the bars. Also
29072 the bars need to be drawn on top, maybe I can switch implicit
29073 controls to be on top.
29074 * Hwnd.cs: caption_height and tool_caption_height are now
29075 properties of an hwnd, this way they can be set by the driver
29076 based on the type of window they are. In X11 the window manager
29077 handles the decorations so caption_height is zero unless its an
29079 - Add 3 pixel borders for MDI windows (0xFFFF).
29080 - Get rid of some code duplication, have DefaultClientRectanle
29081 just call GetClientRectangle.
29082 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
29084 - Set border styles differently for mdi windows.
29085 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
29088 2005-11-15 Mike Kestner <mkestner@novell.com>
29090 * Menu.cs: when adding an item to the collection, if item is already
29091 parented, remove it from the parent.
29093 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
29095 * X11DesktopColors.cs: Added KDE support
29097 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
29100 - Clipboard methods now can translate Rtf format
29101 - No longer removes clipboard contents whenever a new format is added
29102 to allow placing multiple formats on the clipboard
29103 * Clipboard.cs: Clipboard now supports getting a IDataObject and
29104 will place all formats contained in it onto the clipboard. Also
29105 now cleans the clipboard before placing a new object onto it
29107 - Implemented set_Rtf
29108 - Implemented set_SelectedRtf
29109 - Created InsertRTFFromStream() method to allow single code base
29110 for all properties and methods that insert RTF into document
29111 - Removed debug output
29113 - Fixed Delete(int) to fix up line numbers
29114 - Fixed ReplaceSelection to combine start and end line
29115 - Fixed serious DeleteChars bug that would leave the document tree
29117 - Improved DumpTree with several logic checks to detect broken
29119 - Removed debug lines
29120 - Fixed Caret.WordForward/WordBack moving code, now always also
29121 updates caret.tag (fixes crash when word-selecting across tag
29122 boundaries via keyboard)
29123 - Added Insert() method for inserting multiline text into documents
29124 - Fixed DeleteChars() calculation errors that would cause a broken
29125 tag chain with multiple tag lines
29126 - DeleteChars() no longer crashes on multi-tag lines if not all tags
29127 - Split() no longer moves caret if split is at caret location
29128 - ReplaceSelection() now updates the cursor and re-displays it
29129 - ReplaceSelection() now uses new Insert() method to avoid code
29131 - FormatText() can now handle formatting partial lines
29133 - Append now uses new TextControl.Insert() method (this avoids
29135 - Implemented Ctrl-X (Cut) (
29136 - Implemented Ctrl-C (Copy)
29137 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
29138 regeneration when pasting text; roundtripping Copy&Paste within
29139 edit control still fails due to some calculation bugs in GenerateRTF)
29140 - The Delete key will now remove the current selection if it is visible
29141 * TextBox.cs: Removed debug lines
29142 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
29143 driver to be initialized and can't therefore be done via a static ctor)
29145 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
29147 * TextControl.cs: Added backend code for finding char arrays and strings
29149 - Added mouse wheel scroll support
29150 - Added support for VScroll and HScroll events
29152 - Implemented all seven Find() variants
29153 - Implemented GetCharFromPosition()
29154 - Implemented GetCharIndexFromPosition()
29155 - Implemented GetLineFromIndex()
29156 - Implemented GetPositionFromCharIndex();
29157 - Implemented SaveFile for PlainText and UnicodeText
29158 - Fixed set_Font, now setting a new font applies that font to
29160 - Implemented generic Document to RTF converter
29161 - Implemented SaveFile for RichText format (still missing unicode
29162 conversion for non-ansi chars)
29163 - Implemented get_Rtf
29164 - Implemented get_SelectedRtf
29166 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
29168 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
29169 to allow any captures to be released before triggering OnClick. This
29170 way a click handler may capture the mouse without interference.
29171 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
29172 This way we send them even though X may not allow a grab (if the window
29173 isn't visible, for example)
29175 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
29177 * DataGridViewRowEventArgs.cs: DataGridView implementation
29178 * DataGridViewElement.cs: DataGridView implementation
29179 * DataGridViewComboBoxCell.cs: DataGridView implementation
29180 * DataGridViewDataErrorContexts.cs: DataGridView implementation
29181 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
29182 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
29183 * ImageLayout.cs: DataGridView implementation
29184 * DataGridViewComboBoxColumn.cs: DataGridView implementation
29185 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
29186 * DataGridViewSelectionMode.cs: DataGridView implementation
29187 * IDataGridViewEditingControl.cs: DataGridView implementation
29188 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
29189 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
29190 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
29191 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
29192 * DataGridViewColumnSortMode.cs: DataGridView implementation
29193 * DataGridView.cs: DataGridView implementation
29194 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
29195 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
29196 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
29197 * Padding.cs: DataGridView implementation
29198 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
29199 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
29200 * DataGridViewRowEventHandler.cs: DataGridView implementation
29201 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
29202 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
29203 * DataGridViewButtonCell.cs: DataGridView implementation
29204 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
29205 * DataGridViewEditMode.cs: DataGridView implementation
29206 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
29207 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
29208 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
29209 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
29210 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
29211 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
29212 * DataGridViewCellEventHandler.cs: DataGridView implementation
29213 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
29214 * DataGridViewCellStyleConverter.cs: DataGridView implementation
29215 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
29216 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
29217 * DataGridViewColumnEventArgs.cs: DataGridView implementation
29218 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
29219 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
29220 * QuestionEventArgs.cs: DataGridView implementation
29221 * IDataGridViewEditingCell.cs: DataGridView implementation
29222 * DataGridViewTriState.cs: DataGridView implementation
29223 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
29224 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
29225 * DataGridViewColumnCollection.cs: DataGridView implementation
29226 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
29227 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
29228 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
29229 * DataGridViewColumn.cs: DataGridView implementation
29230 * DataGridViewCellBorderStyle.cs: DataGridView implementation
29231 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
29232 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
29233 * DataGridViewRow.cs: DataGridView implementation
29234 * DataGridViewImageCellLayout.cs: DataGridView implementation
29235 * DataGridViewImageCell.cs: DataGridView implementation
29236 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
29237 * DataGridViewCheckBoxCell.cs: DataGridView implementation
29238 * DataGridViewHeaderCell.cs: DataGridView implementation
29239 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
29240 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
29241 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
29242 * DataGridViewTextBoxColumn.cs: DataGridView implementation
29243 * QuestionEventHandler.cs: DataGridView implementation
29244 * DataGridViewCellStyleScopes.cs: DataGridView implementation
29245 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
29246 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
29247 * DataGridViewCell.cs: DataGridView implementation
29248 * DataGridViewCellEventArgs.cs: DataGridView implementation
29249 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
29250 * DataGridViewCellStyle.cs: DataGridView implementation
29251 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
29252 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
29253 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
29254 * TextFormatFlags.cs: DataGridView implementation
29255 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
29256 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
29257 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
29258 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
29259 * DataGridViewButtonColumn.cs: DataGridView implementation
29260 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
29261 * HandledMouseEventArgs.cs: DataGridView implementation
29262 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
29263 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
29264 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
29265 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
29266 * DataGridViewRowCollection.cs: DataGridView implementation
29267 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
29268 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
29269 * DataGridViewHitTestType.cs: DataGridView implementation
29270 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
29271 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
29272 * DataGridViewColumnEventHandler.cs: DataGridView implementation
29273 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
29274 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
29275 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
29276 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
29277 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
29278 * DataGridViewContentAlignment.cs: DataGridView implementation
29279 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
29280 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
29281 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
29282 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
29283 * DataGridViewPaintParts.cs: DataGridView implementation
29284 * DataGridViewCellCollection.cs: DataGridView implementation
29285 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
29286 * DataGridViewImageColumn.cs: DataGridView implementation
29287 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
29288 * DataGridViewElementStates.cs: DataGridView implementation
29289 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
29290 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
29291 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
29292 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
29293 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
29294 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
29295 * DataGridViewRowHeaderCell.cs: DataGridView implementation
29296 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
29297 * DataGridViewTextBoxCell.cs: DataGridView implementation
29298 * DataGridViewBand.cs: DataGridView implementation
29299 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
29300 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
29301 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
29302 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
29303 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
29304 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
29305 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
29306 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
29307 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
29308 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
29309 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29311 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
29313 * ThemeWin32Classic.cs:
29314 - Draw the outside focus rectangle around buttons
29315 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29316 doesn't use end caps for every dash of a line anymore. This
29317 workaround ignores the forecolor.
29319 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
29321 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29324 2005-11-07 Jackson Harper <jackson@ximian.com>
29326 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29328 2005-11-07 Jackson Harper <jackson@ximian.com>
29330 * ScrollableControl.cs: Calculate the maximum and change vars
29331 (more) correctly so that scrollbars appear as a sensible size.
29333 2005-11-04 Jackson Harper <jackson@ximian.com>
29335 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29337 * TreeView.cs: When the tree is sorted null out the top_node so
29338 that it is recalculated.
29339 - Use dotted lines instead of dashed lines to match MS better.
29341 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
29344 - Implements key search for items. Useful when browsing files with FileDialog
29345 - When changing view mode or when clear the items reset scrollbar positions
29347 2005-11-04 Jackson Harper <jackson@ximian.com>
29349 * CurrencyManager.cs: Implement the MetaDataChanged event, the
29350 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29351 as to what the method may do as there is no real way of creating a
29352 derived CurrencyManager and calling the method.
29354 2005-11-03 Jackson Harper <jackson@ximian.com>
29356 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29357 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29358 method which seems to just be used internally to refresh the tabs.
29360 2005-11-03 Jackson Harper <jackson@ximian.com>
29362 * TabControl.cs: Implement the remove method. Fix some broken
29365 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29367 * DateTimePicker.cs:
29368 - Added missing DateTimePickerAccessibleObject class
29369 - Added missing events
29370 - Added OnFontChanged method
29371 * Form.cs: Added missing attributes
29372 * TreeView.cs: Added missing attributes
29374 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29376 * GridItemCollection.cs: Fix signatures
29378 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29380 * XplatUI.cs: Updated build rev/date
29381 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
29382 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29383 * Application.cs: Trigger context-specific ExitThread events
29385 2005-11-03 Jackson Harper <jackson@ximian.com>
29389 * GridTableStylesCollection.cs:
29394 * MonthCalendar.cs: Signature fixes
29396 2005-11-03 Jackson Harper <jackson@ximian.com>
29398 * TreeNodeCollection.cs: Remove should not be virtual.
29399 * TreeView.cs: Implement the last of the missing methods.
29401 2005-11-03 Jackson Harper <jackson@ximian.com>
29403 * TreeNodeConverter.cs: Implement to get off my class-status back.
29405 2005-11-03 Jackson Harper <jackson@ximian.com>
29407 * TreeView.cs: Hookup the bits for drag and drop.
29408 * TreeNode.cs: Don't cache the tree_view or index anymore, now
29409 that nodes can be moved from tree to tree easily this just causes
29410 all sorts of problems.
29411 * TreeNodeCollection: Don't need to give treenodes an index and
29412 treeview anymore when they are added, these are computed on the
29413 fly. Also make sure to remove a node before its added.
29415 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
29418 - Added CaretSelection enum
29419 - Added comparison methods to Marker struct, makes selection code
29421 - Added SelectionStart and SelectionEnd as 'moveable' location for
29422 the CaretDirection enum and handler
29423 - Added selection_prev variable to track optimized invalidation for
29424 word and line selection
29425 - Added SelectionVisible property (returns true if there is a valid
29427 - Switched CaretHasFocus to only display the caret if there is no
29429 - Avoiding StringBuilder.ToString to retrieve a single char, instead
29430 using the direct character index; should be much faster
29431 - Added various conditional debug statements
29432 - Fixed invalidation calculation for selection ranges
29433 - Added ExpandSelection() method to support word and line selection
29434 - Switched SetSelectionToCaret to use new Marker compare overloads
29435 - Added central IsWordSeparator() method to determine word
29436 separators/whitespace and FindWordSeparator() to streamline common
29437 usage of IsWordSeparator()
29439 - Removed unneeded grabbed variable, it was just mirroring
29441 - No longer firing OnTextChanged event when Text setter is called,
29442 since the base will fire the event for us
29443 - Added handling of Ctrl-Up/Down selection
29444 - Added handling of Shift-Cursorkey selection
29445 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29447 - Added handling of Shift and Ctrl-Shift-Home/End selection
29448 - Removed some debug output
29449 - Added handling for single/double/tripple-click to place caret/
29450 select word/select line respectively (Fixes bug #76031)
29451 - Added support for drag expansion of word/line selection
29452 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29455 2005-11-02 Jackson Harper <jackson@ximian.com>
29457 * X11Dnd.cs: If the drag is going to and from a MWF window just
29458 copy the data instead of sending it out through the X Selection
29461 2005-11-02 Jackson Harper <jackson@ximian.com>
29464 * XplatUIX11.cs: When in a drag we don't want motion notify
29465 messages to get passed on to the other controls. This prevents
29466 mouse move messages from showing up in the drag source.
29468 2005-11-02 Jackson Harper <jackson@ximian.com>
29470 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
29471 the correct button is release to end a drag.
29472 * XplatUIX11.cs: Make the button state internal so the drag system
29473 can access it. Dragging needs to know about all button releases,
29474 not just left button.
29476 2005-11-02 Miguel de Icaza <miguel@novell.com>
29478 * Form.cs (Icon): If the icon is null, reset the icon to the
29481 * Cursor.cs: When writing the AND-mask bitmap do not include the
29482 number of colors, but hardcode those to two (black and white),
29483 fixes the loading of color cursors (Paint Dot Net).
29485 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29486 turn off autoscaling.
29488 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29490 2005-11-02 Jackson Harper <jackson@ximian.com>
29492 * X11Dnd.cs: Make sure to send a status message if the pointer
29493 enters a control that can not accept a drop, otherwise the cursor
29494 isn't updated correctly. Also tried to compress the lines of code
29497 2005-11-02 Jackson Harper <jackson@ximian.com>
29499 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29500 set actions correctly. This isn't perfect as XDND and win32 have
29501 some differences on how you allow actions. I'll clear this up by
29502 adding a path for drag from MWF to MWF windows.
29503 * XplatUIX11.cs: Hook into the dnd system.
29505 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
29507 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29508 previously shown but they are no longer need it. Very obvious when
29509 browsing files with FileDialog.
29511 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
29513 * Control.cs: We always need to call OnPaintBackground. We pretty much
29514 ignore AllPaintingInWmPaint and always do the painting there, whether
29515 it's set or not, since we always ignore the WM_ERASEBKGND message
29516 (which we don't generate on X11). This fixes #76616.
29517 * Panel.cs: Removed unneeded background painting. This happens properly
29518 in Control.cs already
29520 2005-10-31 Mike Kestner <mkestner@novell.com>
29522 * Menu.cs: Add items to collection before setting their index.
29523 * MenuItem.cs : add range checking with ArgumentException like MS.
29526 2005-10-31 Jackson Harper <jackson@ximian.com>
29528 * ListBox.cs: Invalidate if the area is visible at all not just
29529 contained in the visible rect. Fixes unselection of semi visible
29532 2005-10-31 Jackson Harper <jackson@ximian.com>
29534 * Control.cs: Consistently name the dnd methods. Make them
29535 internal so we can override them to match some MS behavoir
29537 * Win32DnD.cs: Use the new consistent names.
29539 2005-10-31 Jackson Harper <jackson@ximian.com>
29541 * TreeView.cs: Don't draw the selected node when we lose focus.
29543 2005-10-31 Jackson Harper <jackson@ximian.com>
29545 * X11Dnd.cs: We still need to reset the state even though a full
29546 reset isn't being done, otherwise status's still get sent all over
29549 2005-10-31 Jackson Harper <jackson@ximian.com>
29551 * Control.cs: Make the dnd_aware flag internal so the dnd
29552 subsystem can check it. Catch exceptions thrown in dnd handlers to
29554 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29555 * X11Dnd.cs: Handle null data in the converters. Set the XDND
29556 version when sending a XdndEnter. Use the control/hwnd dnd_aware
29557 flags to reduce the number of dnd enters/status's sent.
29559 2005-10-31 Jackson Harper <jackson@ximian.com>
29561 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29563 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
29565 * PictureBox.cs: Fixes 76512
29567 2005-10-28 Jackson Harper <jackson@ximian.com>
29569 * X11Dnd.cs: Early implementation to support winforms being a drag
29570 source for data on X11. Also restructured the converters so they
29571 can go both ways now.
29572 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29574 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
29576 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29579 2005-10-27 Jackson Harper <jackson@ximian.com>
29581 * TreeNode.cs: Implement serialization so my DnD examples will work.
29583 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
29585 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29586 TreeView.cs: Don't dispose objects that are not owned.
29588 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
29590 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29591 should retrieve the current cursor and report that, but XplatUI
29592 doesn't (yet) have an interface for that (and I'm not sure I even
29594 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29595 until any message loop processing is done (and the WM_SETCURSOR
29596 replaces the cursor to the proper one)
29598 - Fixed override behaviour, we can't set the cursor globally on X11,
29599 just for our windows.
29600 - Invalidating the System.Drawing X11 display handle when we are
29602 * Control.cs: Fix to make csc happy
29604 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
29607 - get_Text: Add last line (without trailing newline) to returned
29608 value (Fixes 76212)
29609 - get_TextLength: Count last line in returned length
29610 - ToString: Call Text property instead of duplicating code
29612 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
29614 * ImageList.cs: Dispose ImageAttributes objects.
29616 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
29618 * ImageList.cs: Use attribute constructors with less arguments where
29621 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
29623 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29624 Use typeof instead of strings when assembly is referenced. Added
29625 some more comments.
29627 2005-10-21 Jackson Harper <jackson@ximian.com>
29629 * ListView.cs: Raise a double click event. Also tried to somewhat
29630 fix when the selectedindexchanged event is raised. Its still
29633 2005-10-21 Jackson Harper <jackson@ximian.com>
29635 * TreeView.cs: New method to invalidate the plus minus area of a
29636 node without invalidating the whole node (maybe this can be used
29637 in some more places).
29638 * TreeNodeCollection.cs: When adding to an empty node we need to
29639 invalidate its plus minus area so the little block shows up.
29641 2005-10-21 Jackson Harper <jackson@ximian.com>
29643 * TreeView.cs: Make sure that when we invalidate a node the bounds
29644 are big enough to cover the selected box and the focus
29645 rectangle. Use a different colour for the lines connecting nodes
29646 so they show up with all themes.
29648 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29650 * NativeWindow.cs: Don't call anything that could call into the driver,
29651 we might be on a different thread.
29653 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29655 * Control.cs(Dispose): Since Dispose might run on a different thread,
29656 make sure that we call methods that could call into the driver via
29657 invoke, to avoid thread issues
29659 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
29661 * XplatUI.cs: Removed finalizer
29662 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29663 not allowing to be called on the finalizer thread.
29665 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
29668 - Reverted r51889 and r51891.
29669 - Added ImageListItem class that stores unmodified image items and image
29670 properties required to create list images until handle is created.
29671 - Added AddItem and moved image creation logic to AddItemInternal.
29672 - Added CreateHandle method that creates images based on unmodified items.
29673 - Added DestroyHandle that changes state to store unmodified items.
29674 - Add and AddStrip methods no more create handle.
29675 - ReduceColorDepth has no return value.
29676 - Dispose destroys handle.
29677 - Modified other methods to reflect the above changes.
29678 - Implemented key support.
29679 - Added profile 2.0 members and attributes.
29680 - Added private Reset and ShouldSerialize methods that provide the same
29681 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29682 them as they are private.
29683 - Added some more comments about implementation details.
29685 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29687 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29689 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29691 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29693 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
29695 * DataGridDrawingLogic.cs: Fixes column hit calcultation
29696 * DataGridColumnStyle.cs: Remove debug message
29698 2005-10-20 Jackson Harper <jackson@ximian.com>
29700 * TreeView.cs: We can always get input keys regardless of whether
29701 or not editing is enabled. They are used for navigation.
29703 2005-10-20 Jackson Harper <jackson@ximian.com>
29705 * TreeNode.cs: Use the viewport rect for determining if a node
29706 needs to be moved for visibility. Don't use Begin/End edit. This
29707 calls a full refresh when its done.
29708 * TreeView.cs: New SetBottom works correctly. Make the viewport
29709 rect property internal so the treenodes can see it. When clicking
29710 on a node we need to ensure that its visible because it might just
29711 be partly visible when clicked.
29713 2005-10-20 Jackson Harper <jackson@ximian.com>
29715 * TreeNodeCollection.cs: Remove debug code.
29717 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29719 * Datagrid.cs: Implements column sorting in Datagrid
29720 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
29722 2005-10-20 Jackson Harper <jackson@ximian.com>
29724 * TreeNodeCollection.cs: Remove items properly. Update the correct
29725 area after removing them.
29727 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
29729 * Datagrid.cs: Should not call base.OnPaintBackground
29731 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29733 * XplatUIX11.cs (GetMessage):
29734 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
29735 window instead of client window
29736 - Now properly calculates NC_xBUTTONUP message coordinates
29737 - ScreenToMenu now properly calculates it's coordinates of whole
29738 window, since menus are in the whole window, not in the client
29740 - Added WholeToScreen coordinate translation method
29742 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29744 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
29745 want to return a message, loop back to the beginning of the function
29746 and grab the next real message to process instead.
29748 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
29750 * Splitter.cs: Properly set limits if no filler control is used
29752 2005-10-19 Jackson Harper <jackson@ximian.com>
29754 * ColorDialog.cs: Don't show the help button if it is not enabled
29755 instead of disabling it (this is what MS does). Don't create the
29756 panel until the dialog is run, otherwise the vars (such as
29757 ShowHelp) are not set yet.
29759 2005-10-19 Jackson Harper <jackson@ximian.com>
29761 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
29762 are reduced when adding nodes.
29764 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
29767 2005-10-19 Jackson Harper <jackson@ximian.com>
29769 * FolderBrowserDialog.cs: End editing our treeview so the window
29770 actually gets refreshed.
29772 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29774 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
29775 Obsoleted handling of WM_ERASEBKGND, now always draws our background
29778 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29780 * MenuAPI.cs: Returns after Hidding window
29781 * XplatUIX11.cs: Added TODO found while debugging menu issues
29783 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
29785 * XplatUIX11.cs: Do not re-map the whole window when it's size
29786 becomes non-zero unless it's supposed to be actually visible
29788 2005-10-18 Jackson Harper <jackson@ximian.com>
29790 * TreeView.cs: We don't need to keep a count anymore.
29791 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
29792 use the Grow method.
29794 2005-10-18 Jackson Harper <jackson@ximian.com>
29796 * TreeNodeCollection.cs: Insert is not supported on arrays, so
29797 implement it manually here.
29799 2005-10-18 Jackson Harper <jackson@ximian.com>
29801 * ImageList.cs: Dont kill the list when the colour depth is
29802 changed, just change the colour depth of all the images.
29803 - Same goes for setting the image size. Just resize them all
29804 instead of killing the list softly.
29806 2005-10-18 Jackson Harper <jackson@ximian.com>
29808 * Control.cs: Don't invalidate empty rectangles.
29810 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29813 - Adds checked item to the Checked/Item lists (where empty before)
29814 - Do not add items to the Selected lists if they are already present
29816 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
29817 - When deleting items make sure that we delete them for the Selected
29818 and Checked list also.
29820 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
29822 * Label.cs: Dispose objects no longer used
29823 * ThemeWin32Classic.cs: Dispose objects no longer used
29825 2005-10-18 Jackson Harper <jackson@ximian.com>
29827 * TabControl.cs: Don't refresh the whole control when the tabs are
29828 scrolled, we just need to refresh the tab area.
29830 2005-10-17 Jackson Harper <jackson@ximian.com>
29832 * XplatUIX11.cs: Compress code a little bit. Only calculate the
29833 after handle when we need it.
29835 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29837 * Control.cs: When the parent size changes, recalculate anchor
29838 positions. Partial fix for #76462
29840 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
29842 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
29843 drawn. Fixes #76462
29845 2005-10-17 Jackson Harper <jackson@ximian.com>
29847 * MonthCalendar.cs: Don't create the numeric up down until our
29848 handle is created. Otherwise our handle is created in the
29849 constructor and we don't know if we are a WS_CHILD or WS_POPUP
29852 2005-10-17 Jackson Harper <jackson@ximian.com>
29854 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
29857 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29858 * TreeNode.cs : small logical fix (was using local var instead of field)
29860 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
29862 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
29864 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
29866 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
29868 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
29871 - Re-implemented anchoring code. My first version was really broken.
29872 This fixes bug #76033. Unlike the previous implementation we will
29873 no longer have round errors since all numbers are calculated from
29874 scratch every time. Removed various anchor-related obsolete vars.
29875 - InitLayout no longer causes layout event firing and layout to be
29878 2005-10-16 Jackson Harper <jackson@ximian.com>
29880 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
29883 2005-10-16 Jackson Harper <jackson@ximian.com>
29885 * TabControl.cs: Remove debug code.
29887 2005-10-16 Jackson Harper <jackson@ximian.com>
29889 * XEventQueue.cs: Increase the default queue size (very simple
29890 apps needed to grow the queue).
29891 * Hwnd.cs: No finalizer so we don't need to suppress
29892 finalization. Compute the invalid area manually so a new rectangle
29893 does not newto be created.
29894 * ScrollableControl.cs: Don't set any params (otherwise visibility
29895 isn't set correctly).
29896 * MdiChildContext.cs: New constructor takes the mdi parent so it
29897 doesn't have to be computed and avoids a crash on windows. Draw
29898 the window icon properly, and allow the text to be seen.
29899 * Form.cs: Use new MdiChildContext constructor. Make sure the
29900 child context isn't null in wndproc.
29901 * TabControl.cs: Don't set focus, this is muddling keyboard
29902 behavoir. Expand the tab rows when a window size increase will
29903 allow extra tabs to be seen. Don't allow tabs smaller than the
29904 width of a window to be scrolled out of view.
29906 * TreeView.cs: Use measure string to calculate a nodes width, the
29907 width is cached and only updated when the text or the font is
29908 changed. Don't check for expand/collapse clicks on the first level
29909 nodes if root lines are disabled.
29911 2005-10-16 Ritvik Mayank <mritvik@novell.com>
29913 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
29915 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
29917 * DataGridBoolColumn.cs: fixes warning
29919 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
29921 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
29922 to match more to match more precisely the MS Net behavior
29924 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29926 * Hwnd.cs: Added field to track if window is mapped
29928 - Unmap windows if they become 0-size, re-map when
29929 they are >0 again; fixes #76035
29930 - Re-set our error handler after initializing X11Desktop
29931 to override any error handlers Gtk or whatever was called
29934 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29936 * CheckedListBox.cs: Removed unused vars
29937 * ListView.cs: Fixed signatures
29938 * RichTextBox.cs: Removed unused vars
29939 * TextBoxBase.cs: Removed unused vars
29940 * XplatUIWin32.cs: Removed unused vars
29941 * XplatUIX11.cs: Removed unused vars
29942 * XplatUI.cs: Updated version and date to latest published
29944 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29946 * Cursor.cs: Added private .ctor to work around a bug in
29947 resourceset (Thanks to Geoff Norton for the help on this)
29948 * SplitterEventArgs.cs: Made fields accessible so we don't
29949 waste boatloads of objects and can reuse the same one
29951 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
29952 any captions and borders when generating screen coordinates
29953 * Splitter.cs: Reimplemented control, now fully complete, uses
29954 rubberband drawing, supports and obeys all properties, has
29957 2005-10-13 Miguel de Icaza <miguel@novell.com>
29959 * Form.cs (Form): Setup default values for autoscale and
29960 autoscale_base_size; Make these instance variables, not static
29963 (OnLoad): on the first load, adjust the size of the form.
29965 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29967 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
29968 width argument to DrawReversibleRectangle()
29969 * XplatUIWin32.cs, XplatUIX11.cs:
29970 - Implemented width for DrawReversibleRectangle()
29971 - Added logic to DrawReversibleRectangle that recognizes a zero
29972 width or height and only draws a line in that situation
29974 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
29976 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
29977 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
29978 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
29979 method (it uses our FosterParent window to get a graphics context)
29981 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
29983 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
29984 and SetWindowBackground methods
29986 - Setting proper ControlStyles
29987 - We no longer call XplatUI.SetWindowBackground and XplatUI.
29988 EraseWindowBackground, instead we draw the window background
29989 ourselves in PaintControlBackground. This behaviour is
29990 required to match MS, where, when OnPaintBackground is not
29991 called, the background is not drawn.
29992 - Removed unneeded Refresh() in set_Text
29993 * Hwnd.cs: Dropped the ErasePending support. No longer needed
29995 - Created DeriveStyles method to translate from CreateParams to
29996 FormBorderStyle and TitleStyle, also handles BorderStyle (which
29997 matches FormBorderStyle enum values)
29998 - Consolidated SetHwndStyles and CalculateWindowRect border/title
29999 style calculations into single DeriveStyles method
30000 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
30001 from redrawing the whole window on any resize or expose.
30002 - Fixed CreateWindow usage of SetWindowValuemask. Before not
30003 all styles were applied to our whole/client window appropriately
30004 - Removed EraseWindowBackground() and SetWindowBackground() methods
30005 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
30006 no longer clear/redraw the background through X
30007 - Removed handling of erase_pending bit, we have no use for it (or
30010 - Removed generation and handling of WM_ERASEBKGND message
30011 - Removed EraseWindowBackground() and SetWindowBackground() methods
30012 - Removed handling of hwnd.ErasePending flag
30014 - Removed EraseWindowBackground() and SetWindowBackground() methods
30015 - We no longer call EraseWindowBackground on PaintEventStart, we
30016 ignore the fErase flag, erasing is handled in Control in the
30018 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
30019 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
30020 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
30021 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
30022 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
30023 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
30024 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
30026 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
30028 * PropertyGrids.cs: Get sub properties
30029 * PropertyGridView.cs: Fix drawing code
30031 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30033 * ListBox.cs: Fixes 76383
30035 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30037 * DataGridTextBoxColumn.cs: Sets location and size before attachment
30038 * ThemeWin32Classic.cs: Fixes border drawing and calculations
30039 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
30042 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30044 * ComboBox.cs: Fixes border drawing
30046 2005-10-10 Miguel de Icaza <miguel@novell.com>
30048 * MimeIcon.cs: Ignore errors if the file can not be read.
30050 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
30052 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
30053 - Fixed border calculations
30054 - Fixed horizontal scrolling in single column listboxes
30055 - Fixed drawing issues
30057 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
30059 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
30060 FormBorderStyle enum
30061 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
30062 code to determine FormBorderStyles from CreateParams
30064 - Fixed bug where we'd set the wrong window styles if we were
30065 not creating an MDI window
30066 - Added call to XplatUI.SetBorderStyle when form borders are set
30067 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
30069 - Removed obsolete edge style
30070 - Switched from BorderStyle to FormBorderStyle
30072 2005-10-10 Jackson Harper <jackson@ximian.com>
30074 * Form.cs: Use the property to get the window handle instead of
30075 accessing it directly. Prevents a null reference exception.
30077 2005-10-10 Jackson Harper <jackson@ximian.com>
30079 * TreeView.cs: Don't adjust the rect given to DrawString now that
30080 our libgdiplus draws correctly.
30082 2005-10-08 Jackson Harper <jackson@ximian.com>
30084 * TreeView.cs: Don't try to find the clicked on node if there are
30085 no nodes in the tree.
30087 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30093 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
30095 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
30096 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
30098 Use ResPool for brushes and dispose System.Drawing objects that
30099 are not used anymore.
30101 2005-10-07 Jackson Harper <jackson@ximian.com>
30103 * MdiChildContext.cs: Use the new borders instead of drawing them
30106 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30108 * Calling UpdateBounds after changing the window's BorderStyle
30109 since the style can change the ClientSize
30111 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30113 * Control.cs: Made PaintControlBackground virtual
30114 * Panel.cs: Overriding PaintControlBackground instead of using paint
30115 event; paint event method was interfering with 'real' users of the
30118 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
30120 * ThemeWin32Classic.cs: remove border drawing since it is handled
30121 by the base control class now and was causing double border drawing.
30123 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30125 * Panel.cs: Redraw our background on paint. Not a pretty solution,
30126 but it does seem to match MS behaviour. This fixes bug #75324
30128 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30130 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
30131 somewhat hackish looking
30133 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30136 - We now accept Enter even if AcceptEnter is false, if the containing
30137 form does not have an AcceptButton configured (fixes bug #76355)
30138 - Calculations are now fixed to no longer use Width/Height, but
30139 ClientSize.Width/Height, since we now support borders (this was
30140 a result of fixing borders and therefore bug #76166)
30141 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
30142 true (fixes bug #76354)
30144 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30147 - Defaulting BorderStyle and setting it in XplatUI when our window
30149 - Added enum check to InternalBorderStyle setter
30151 - Added drawing of window borders
30152 - Now properly calculates WM decorations offset for toplevel
30153 windows (fixes bug #74763)
30155 - Implemented BorderStyles for windows (we're letting win32 draw
30157 - Fixed the signature for SetWindowLong
30158 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
30159 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
30161 * UpDownBase.cs: Remove drawing of borders, this is handled by
30162 the driver, outside the client area
30163 * ListView.cs: Removed bogus border calculations. The control should
30164 be oblivious to borders, since those are not part of the client
30166 * X11DesktopColors.cs: Commented out (currently) unneeded variables
30167 * ThemeWin32Classic.cs: Removed border calculations from ListView
30170 2005-10-06 Jackson Harper <jackson@ximian.com>
30172 * MdiChildContext.cs: Clear out the old virtual position remove
30173 all the unneeded calls to CreateGraphics.
30175 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30177 * TextControl.cs: Use proper color for highlighted text; fixes #76350
30179 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30182 - Added loading and setting of our new default icon
30183 - Only set icon if window is already created
30185 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
30188 - Do not explicitly set the foreground and background colors, to
30189 allow inheriting from parents (fixes #76302)
30190 - Use Control's InternalBorderStyle property to deal with borders
30192 2005-10-06 Jackson Harper <jackson@ximian.com>
30194 * MdiChildContext.cs: Use the new xplatui function to draw a
30197 2005-10-06 Jackson Harper <jackson@ximian.com>
30199 * Form.cs: Add the parent before creating the child context cause
30200 we need the parent when setting up the child.
30202 2005-10-06 Jackson Harper <jackson@ximian.com>
30204 * FolderBrowserDialog.cs: redo the tree population code so a
30205 second thread isn't used. Should be a lot faster and more stable
30208 2005-10-05 Jackson Harper <jackson@ximian.com>
30210 * TreeView.cs: There are no expand/collapse boxes if the node has
30213 2005-10-05 Jackson Harper <jackson@ximian.com>
30215 * X11DesktopColors.cs: Get menu colours for the gtk theme.
30217 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
30219 * FileDialog.cs: Fix InitialDirectory
30221 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30224 - Fixes changing between styles
30225 - Fixes simple mode
30226 - Fixes last item crashing when navigating with keyboard
30228 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
30230 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
30232 2005-10-05 Jackson Harper <jackson@ximian.com>
30234 * TreeView.cs: If updating the root node do a full refresh.
30235 * TreeNode.cs: The root node should be expanded by default. Also
30236 added a utility prop to tell if we are the root node.
30237 * TreeNodeCollection.cs: Only refresh if the node we are being
30238 added to is expanded. Also added a comment on a potential
30241 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
30243 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
30244 in dispose method. Fixes #76330
30246 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
30248 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
30250 - Implements vertical and horizontal scrolling using XplatUI
30251 - Fixes keyboard navagation
30252 - Fixes EnsureVisible
30254 - Handles and draws focus properly
30257 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
30259 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
30260 Create handle. NET_2_0: Destroy handle when value is null.
30262 2005-10-03 Jackson Harper <jackson@ximian.com>
30264 * ScrollBar.cs: My last scrollbar patch was broken. This is a
30265 revert and a new patch to prevent the thumb from refreshing so
30268 2005-10-02 Jackson Harper <jackson@ximian.com>
30270 * ScrollBar.cs: Don't update position if it hasn't actually
30271 changed. This occurs when you hold down the increment/decrement
30272 buttons and the thumb gets to the max/min.
30274 2005-10-01 Jackson Harper <jackson@ximian.com>
30277 * MdiChildContext.cs:
30278 * MdiClient.cs: Implement ActiveMdiChild in Form.
30280 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
30282 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
30284 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
30286 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
30289 2005-09-30 Jackson Harper <jackson@ximian.com>
30291 * ListBox.cs: Don't do a full refresh unless some data has
30294 2005-09-30 Jackson Harper <jackson@ximian.com>
30296 * TreeView.cs: Make sure that the checkboxes size is factored in
30297 even when not visible.
30299 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30301 * FileDialog.cs: Fix Jordi's build break
30303 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30306 - Use standard the Windows colours for the combobox as espected
30307 - Dispose objects that use resouces when no longer need them
30309 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30311 * X11DesktopColors.cs: Initial incomplete implementation
30312 * XplatUIX11.cs: Added call to initialize X11DesktopColors
30314 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
30317 - Switched Theme color names to match the names defined in
30318 System.Drawing.KnownColors. Life's hard enough, no need to make
30320 - Added setters to all theme color properties so themes can set
30321 their color schemes. The setters also propagate the color changes
30322 to System.Drawing.KnownColors via reflection
30323 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30324 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30325 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30326 use the new, more logical theme color names
30327 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30329 * ThemeWin32Classic.cs:
30330 - Removed code to set the old classic Windows colors. Instead it
30331 now relies on the colors returned by System.Drawing.KnownColors
30332 which will be either modern static colors (Unix) or colors
30333 read from the user's configuration (Win32)
30334 - Updated to use the new, more logical theme color names
30335 - Switched DataGrid drawing code to use only Theme colors instead of
30336 a mix of System.Drawing.KnownColors and Theme colors
30337 - DrawFrameControl(): Removed code that fills the button area, the
30338 fill would overwrite any previous fill done by a control. This
30340 - Added DrawReversibleRectangle() stub
30341 * ScrollableControl.cs: Set visible state to false when scrollbars
30342 are removed (pdn fix)
30343 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
30344 DrawReversibleRectangle() method to allow drawing primitive
30346 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30348 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30350 * ImageList.cs: Add(Icon): Create handle.
30352 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
30355 * ThemeWin32Classic.cs:
30356 - Fixes detail mode
30358 - Issues with drawing
30360 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30362 * ImageList.cs: Moved RecreateHandle back to ImageList as event
30363 source has to be the ImageList.
30365 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30367 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30369 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30371 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30373 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30375 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30377 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
30378 * GridItem.cs: Fixed TODOs
30379 * GridItemCollection.cs: Added ICollection interface
30381 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
30383 * ImageList.cs: Resize icons when needed.
30385 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
30388 - Fixes GetBounds and returns on screen rects
30390 - Fixes vertical and horzintal scrolling of items
30391 * ThemeWin32Classic.cs:
30394 2005-09-29 Raja R Harinath <harinath@gmail.com>
30396 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30398 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
30400 * ImageList.cs: Added comments about handle creation. Moved Handle,
30401 HandleCreated and OnRecreateHandle implementations to ImageCollection.
30402 Handle is created in Add methods.
30404 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30406 * DataGridDrawingLogic.cs:
30407 - Takes rows into account on Colum calculations
30408 - Returns the column when clickig
30410 - Fixes default HitTestInfo values
30411 - Fixes HitTestInfo.ToString
30412 - Fixes ResetBackColor
30414 2005-09-28 Jackson Harper <jackson@ximian.com>
30416 * MdiChildContext.cs: Obey rules for fixed sized windows (no
30417 sizing or cursor changes). Also added some temp code to draw the
30418 titlebars text (Makes dev a little easier).
30420 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
30422 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30424 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
30426 * ListBox.cs: Fixes bug 76253
30428 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
30430 * ImageList.cs: Added comments about the current implementation. Added
30431 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30432 Format32bppArgb to preserve transparency and can use Graphics.FromImage
30433 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30434 with Bitmap.LockBits for better performance. Revised the whole file to
30435 match MS.NET behaviour and provide better performance. Non-public
30436 interface members are calling public members even when they throw
30437 NotSupportedException for better maintainability. Moved ColorDepth,
30438 ImageSize, ImageStream and TransparentColor implementations to
30439 ImageCollection for better performance as these properties are not used
30441 * ImageListStreamer.cs: Added a new internal constructor that takes an
30442 ImageList.ImageCollection and serializes Images based on
30443 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30444 match ImageList property name.
30446 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
30448 * ListBox.cs: Fixes IndexFromPoint for last item
30450 2005-09-27 Jackson Harper <jackson@ximian.com>
30452 * Form.cs: Set the position of new mdi children correctly.
30454 2005-09-27 Jackson Harper <jackson@ximian.com>
30456 * MdiClient.cs: New mdi children need to be added to the back of
30457 the controls collection so the zorder is set correctly. Also add a
30458 count of all the child windows that have been created.
30460 2005-09-27 Jackson Harper <jackson@ximian.com>
30462 * Form.cs (CreateParams): Setup MDI forms correctly.
30464 2005-09-27 Jackson Harper <jackson@ximian.com>
30466 * MdiChildContext.cs:
30467 * MonthCalendar.cs:
30473 * ScrollableControl.cs:
30474 * ComboBox.cs: Add implicit controls using the new implict control
30475 functionality in ControlCollection. Also try to block multiple
30476 control add in a suspend/resume layout to save some cycles.
30478 2005-09-27 Jackson Harper <jackson@ximian.com>
30480 * Control.cs: Add functionality to the controls collection to add
30481 'implicit controls' these are controls that are created by the
30482 containing control but should not be exposed to the user. Such as
30483 scrollbars in the treeview.
30484 * Form.cs: The list var of the ControlsCollection is no longer
30485 available because of the potential of implicit controls getting
30486 ignored by someone accessing the list directly.
30488 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
30490 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30491 loose it's parent. (Fixed bug introduced in r49103 when we added
30492 setting the child parent to null on Remove)
30494 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
30496 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30497 * Splitter.cs: Added missing attributes for BorderStyle property.
30498 * TextBoxBase.cs: Marked Calculate* methods internal.
30499 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30502 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
30504 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30506 2005-09-25 Jackson Harper <jackson@ximian.com>
30508 * TreeView.cs: Update the node bounds correctly regardless of
30509 whether the node is visible.
30511 2005-09-25 Jackson Harper <jackson@ximian.com>
30513 * ImageList.cs: Don't dispose the image after it is added to the
30514 image list. Only reformat images that need to be resized.
30516 2005-09-25 Jackson Harper <jackson@ximian.com>
30518 * ImageList.cs: Don't set the format when changing the image.
30520 2005-09-25 Jackson Harper <jackson@ximian.com>
30522 * TreeView.cs: We can't just assume the node has a font. Use the
30523 treeviews font if no node font is available.
30525 2005-09-25 Jackson Harper <jackson@ximian.com>
30527 * TreeView.cs: Allow the scrollbars to be reset with negative
30529 - Don't add scrollbars to negative sized windows.
30531 2005-09-23 Jackson Harper <jackson@ximian.com>
30533 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30534 old Mono.Posix. Also remove some stray code that shouldn't have
30537 2005-09-23 Jackson Harper <jackson@ximian.com>
30539 * TreeView.cs: Attempt at proper sizing of the horizontal
30540 scrollbar. Also don't resize the scrollbars unless they are
30543 2005-09-23 Jackson Harper <jackson@ximian.com>
30545 * TreeView.cs: We don't need to expand the invalid area when the
30546 selection changes, as this is all drawn in the node's bounding
30547 box. The area needs to be expanded (previous typo was contracting
30548 it) when the focus rect moves.
30550 2005-09-23 Jackson Harper <jackson@ximian.com>
30552 * TreeView.cs: Display the selection box under the correct
30553 circumstances. We were rendering white text with no selection box
30556 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
30558 * TextControl.cs(Split): Now updates selection start/end if it points
30559 into a line that's being split. Fixes a FIXME and bug #75258
30561 2005-09-23 Jackson Harper <jackson@ximian.com>
30564 * ListControl.cs: Don't use the path when retrieving binding
30565 managers from the binding context. My bat sense tells me that the
30566 path is only used on insertion.
30568 2005-09-22 Jackson Harper <jackson@ximian.com>
30570 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30572 2005-09-22 Jackson Harper <jackson@ximian.com>
30574 * Splitter.cs: There are special cursors used for splitting.
30575 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30577 2005-09-22 Jackson Harper <jackson@ximian.com>
30579 * Splitter.cs: Change the cursor appropriately when the splitter
30580 is moused over, so the user actually knows there is a splitter
30583 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30585 * Label.cs : Fix ToString method to give same output as MS.NET
30587 2005-09-22 Jackson Harper <jackson@ximian.com>
30589 * TreeView.cs: Create the scrollbars when the handle is created
30590 and add them right away, just make them invisble. Also account for
30591 the window being shrunk vertically to the point that the vert
30592 scrollbar needs to be added.
30593 - Remove some 0.5 adjustments to get around anti aliasing issues.
30595 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
30597 * MainMenu.cs: Fixes default value
30598 * MenuItem.cs: Fixes default value
30600 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
30602 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30604 2005-09-21 Jackson Harper <jackson@ximian.com>
30606 * Control.cs: Don't try to set the border style on the window if
30607 it hasn't been created. When the window is created the border
30608 style will be used.
30610 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30612 * Control.cs (Update): Don't call XplatUI if we don't have a
30615 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30617 * ContainerControl.cs: Instead of throwing an exception, print
30618 a one-time warning about Validate not being implemented
30619 * XplatUIWin32.cs: Removed debug output
30621 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30623 * Control.cs: Only set XplatUI background if we expect the windowing
30624 system to handle the background. This stops controls that draw their
30625 own background from flickering
30627 * XplatUIX11.cs: Support custom visuals and colormaps for window
30628 creation. This allows, amongst other things, using MWF X11 windows
30631 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
30633 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30634 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30635 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30636 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30637 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30638 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30639 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30640 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30641 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30642 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30643 GridColumnStylesCollection.cs,
30644 IDataGridColumnStyleEditingNotificationService.cs,
30645 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30646 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30647 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
30648 TreeNodeCollection.cs, AmbientProperties.cs,
30649 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30650 DataObject.cs, ErrorProvider.cs, Splitter.cs,
30651 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30652 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30653 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30654 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30655 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30656 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30657 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30658 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30659 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30660 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30661 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30662 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30663 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30664 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30665 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30666 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30667 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30668 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30669 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30670 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30671 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30672 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30673 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30674 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30675 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30676 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30677 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30678 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30679 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30680 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30681 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30682 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30683 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30684 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30685 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30687 2005-09-21 Jackson Harper <jackson@ximian.com>
30689 * TreeNode.cs: Call Before/After Expand not Collapse when
30692 2005-09-20 Jackson Harper <jackson@ximian.com>
30694 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30696 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30700 - Fixes proper storing of subitems
30701 - Fixes not updated items
30703 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30705 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30706 things if our window handle isn't created yet. Also disabled
30707 debug for TextBoxBase
30709 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
30711 * MenuAPI.cs: Remove filtering of events to allow menu usage
30713 2005-09-20 Miguel de Icaza <miguel@novell.com>
30715 * Cursor.cs: Allow null to be passed to Cursor.Current.
30717 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
30719 * ThemeWin32Classic.cs:
30720 - Change some private methods/fields to protected virtual so that
30721 they can be accessed and overriden in derived classes
30722 - First refactoring of some methods. Derived themes now don't
30723 need to duplicate the complete code from ThemeWin32Classic
30725 - Added nice StatusBar
30726 - Derive from ThemeWin32Classic and not Theme
30727 - Removed duplicate ThemeWin32Classic code
30729 2005-09-20 Miguel de Icaza <miguel@novell.com>
30731 * Control.cs (ControlCollection.Add): If the value null is passed
30732 the control is ignored.
30734 Optimize this loop.
30736 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30738 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
30739 PostQuitMessage state.
30740 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
30742 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
30744 * Application.cs: Our constructor will never get called, move
30745 initialization to fields; fixes bug #75933
30747 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30750 - Allow files to be selected properly using file name
30752 - Add ability to change diretory (absolute / relative)
30753 using file name combo box.
30755 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
30758 - Fixes Multicolumn listboxes item wrong calculations
30759 - Allows to click when only one item is in the listbox
30760 - Fixes crash when no items using keyboard navigation
30762 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
30764 * ComboBox.cs: Reverted almost everything from the latest patch which
30767 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
30770 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
30772 - When DropDownStyle is Simple, it does not show scrollbar
30773 to the last item of the list.
30774 - When DropDownStyle is Simple, it crashed when the list was
30775 scrolled down with the down cursor key.
30776 - Fixed a bug that when DropDownStyle is DropDownList, the
30777 selected item was not shown.
30778 - The position of the selected item was not preserved when
30779 the next dropdown happened.
30780 * ThemeWin32Classic.cs:
30781 - Items were wrapped at the right end.
30782 * CheckedListBox.cs:
30785 - Items should be fully shown.
30786 - When resizing and vertical scrollbar disappeared, the item
30787 of index 0 should be on the top of the list.
30788 - GetItemRectangle should consider the size of ver. scrollbar
30790 - SizingGrip area should not be allocated when it is not
30792 - Now it reflects MinWidth of the containing panel and
30793 fixed a crash that happens when its width becomes so small.
30795 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30797 * CheckedListBox.cs: Fixes bug 76028
30798 * ListBox.cs: Fixes bug 76028
30800 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
30802 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
30803 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
30805 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
30807 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
30809 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30811 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
30813 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30815 * IRootGridEntry.cs: Added
30816 * PropertyGridCommands.cs: Added
30817 * PropertiesTab.cs: Added missing methods and property
30818 * PropertyGridView.cs: Made class internal
30819 * PropertyGridTextBox.cs: Made class internal
30821 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30823 * MimeIcon.cs: Try to check some other environment variables
30824 if "DESKTOP_SESSION" returns "default"
30826 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30828 * ThemeNice.cs: Corrected background colors (e.g. menus)
30829 * ColorDialog.cs: Use correct background colors for controls
30831 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
30833 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
30835 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
30837 * RichTextBox.cs: Added initial implementation
30838 * lang.cs: Removed. Was accidentally checked in long time ago
30839 * TODO: Removed. Contents were obsolete
30841 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30843 * PropertiesTab.cs : Added
30845 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
30847 * PropertyGrid.cs : Update
30848 * PropertyGridView.cs : Update
30849 * System.Windows.Forms.resx : Added images and strings
30851 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
30853 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
30855 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
30857 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
30858 a busy loop right after the Ungrab the X11 display is otherwise
30861 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
30863 * ThemeWin32Classic.cs: Optimise the use of clipping
30865 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
30867 * DataGrid.cs: fixes recursion bug
30869 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
30872 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
30875 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
30877 * ThemeNice.cs: Draw nice ProgressBars
30879 2005-09-01 Miguel de Icaza <miguel@novell.com>
30881 * VScrollBar.cs: Another buglet found by Aaron's tool.
30883 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
30886 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
30889 - Added nicer menu drawing
30893 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30895 * CreateParams.cs (ToString): Made output match MS
30896 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
30897 handle is already created (to avoid forcing window creation)
30898 * XplatUIX11.cs: Set window text to caption after creating window,
30899 in case Text was set before window was created
30900 * Form.cs: Use this.Text instead of a static string as caption
30902 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30904 * NotifyIcon.cs: Don't set the window to visible; this screws
30905 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
30906 OnPaint without a bitmap)
30907 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
30908 happen very often anyway; we could add the check to the WM_PAINT
30909 event generation code
30911 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30913 * NotifyIcon.cs: Fill the icon area with a background color, to
30914 avoid 'residue' when transparent icons are drawn
30916 - Handle whole_window == client_window when destroying windows
30917 - SystrayAdd(): Set client_window to whole_window value to
30918 get mouse and other events passed to NotifyIcon
30920 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
30922 * Form.cs: Set proper default for Opacity property
30924 - ShowSystray(): Don't bother creating telling the OS
30925 about the systray item if no icon is provided
30926 - Now handles WM_NCPAINT message to deal with whole/client window
30928 - Create window as visible to not get caught by Expose optimization
30929 * Hwnd.cs: Removed debug message
30930 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
30931 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
30932 PaintEventStart/End to use new client argument
30934 - Commented out debug messages
30935 - Switched PaintEventStart/End to use new client argument
30936 * XplatUI.cs: Added client window bool to PaintEventStart()/
30937 PaintEventEnd() calls, to support drawing in non-client areas
30938 * XplatUIDriver.cs:
30939 - Added client window bool to PaintEventStart()/PaintEventEnd()
30940 calls, to support drawing in non-client areas
30941 - Added conditional compile to allow using MWF BeginInvoke
30944 - Added some conditional debug output
30945 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
30946 whole/client window split
30947 - Implemented handling of client argument to PaintEventStart()/End()
30949 - Throw exception if BeginInvoke() is called and the window handle
30950 or one of the window's parent handles is not created
30951 - Added conditional compile to allow using MWF BeginInvoke on
30953 - get_Parent(): Only sets parent if handle is created. This avoids
30954 forcing window handle creation when parent is set.
30955 - Now fires Layout and Parent changed events in proper order
30956 - Switched to use Handle instead of window.Handle for Z-Order setting,
30957 the get_Parent() patch above causes us to possibly get null for 'window'
30958 - Implemented handling of client argument to PaintEventStart()/End()
30959 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
30961 - Now sends a Refresh() to all child windows when Refresh() is called
30963 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
30965 * Form.cs: Added (non-functional) Opacity property
30966 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
30968 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
30969 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
30970 use export MONO_THEME=nice to activate it.
30971 Currently supported controls:
30975 - TabControl (TabAlignment.Top only, other will follow)
30976 * ThemeEngine.cs: Add theme nice
30977 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
30980 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
30982 * Splitter.cs: Resize docked control and its neighbor.
30984 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30985 -- Making Windows with Menus layout correctly --
30986 * Form.cs : The first leg of the fix
30987 Menu setter - adjust Client Size as needed to make space for the menu
30988 SetClientSizeCore - doesn't call base version to be able to pass the
30989 menu handle to XplatUI.CalculateWindowRect
30990 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
30991 * XplatUIX11.cs: The critical second leg of the fix
30992 GetWindowPos needs to use a recalculated client_rect
30993 so that resizing the window doesn't break layout of child controls.
30994 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
30995 Lots of \t\n killed
30997 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
30999 * Label.cs: Now properly recalculates width and height on Font and Text
31000 changes if AutoSize is set
31002 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31003 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
31005 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
31007 * ImageList.cs: Makes ToString method compatible with MS
31009 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
31011 * MenuAPI.cs: fixes bug 75716
31013 2005-08-11 Umadevi S <sumadevi@novell.com>
31014 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
31016 2005-08-11 Umadevi S <sumadevi@novell.com>
31017 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
31019 2005-08-10 Umadevi S <sumadevi@novell.com>
31020 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
31022 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
31024 * Menu.cs: fixes bug 75700
31025 * MenuAPI.cs: fixes navigation issues
31027 2005-08-09 Umadevi S <sumadevi@novell.com>
31028 * CheckedListBox.cs - simple fix for GetItemChecked.
31030 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
31032 * ComboBox.cs: Serveral fixes
31033 * ListBox.cs: Serveral fixes
31035 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31037 * ComboBox.cs: Fixes FindString methods and GetItemHeight
31038 * ListBox.cs: Fixes FindString methods
31040 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
31042 * DataGrid.cs: fixes bugs exposed by new tests
31044 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
31046 * Mime.cs: Compile Mono assembly references only if compiling
31047 with Mono (Allows to build with VS.Net again)
31049 2005-07-28 Marek Safar <marek.safar@seznam.cz>
31051 * Control.cs (PaintControlBackground): Draw background image
31053 (CheckForIllegalCrossThreadCalls): Stubbed.
31055 * Form.cs (OnCreateControl): Center when should be centered.
31057 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
31059 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
31061 * Binding.cs: Binding to properties should be case unsensitive
31063 2005-07-18 vlindos@nucleusys.com
31065 * DataGrid.cs: fixes setmember order
31067 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
31069 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
31070 * FileDialog.cs: FileDialog is now resizable and uses the new
31073 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
31075 * DataGridTextBoxColumn.cs: default value
31076 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
31077 * GridTableStylesCollection.cs: fixes checking MappingName
31078 * DataGridDrawingLogic.cs: fixes drawing logic issues
31079 * DataSourceHelper.cs: rewritten to make compatible with more data sources
31080 * DataGrid.cs: fixes
31082 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
31084 * MimeGenerated.cs: Use case sensitive comparer for
31085 NameValueCollections
31087 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
31089 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
31090 * ThemeWin32Classic.cs: bug fixes, code refactoring
31091 * DataGridDrawingLogic.cs: bug fixes, code refactoring
31092 * DataGrid.cs: bug fixes, code refactoring
31093 * DataGridTextBox.cs: bug fixes, code refactoring
31094 * DataGridColumnStyle.cs: bug fixes, code refactoring
31095 * Theme.cs: bug fixes, code refactoring
31097 2005-07-01 Peter Bartok <pbartok@novell.com>
31099 * TextControl.cs: Quick fix for the reported crash on ColorDialog
31100 and other text box usage
31102 2005-07-01 Jackson Harper <jackson@ximian.com>
31104 * TabControl.cs: Make sure the bottom of the tab covers the pages
31107 2005-06-30 Peter Bartok <pbartok@novell.com>
31109 * Form.cs (ShowDialog): Assign owner of the dialog
31110 * TextBoxBase.cs: Always refresh caret size when deleting, caret
31111 might have been moved to a tag with different height
31113 2005-06-30 Jackson Harper <jackson@ximian.com>
31115 * Form.cs: Don't create an infinite loop when setting focus
31116 * MenuItem.cs: Don't dirty the parents if we don't have any
31118 2005-06-29 Ben Maurer <bmaurer@ximian.com>
31120 * LibSupport.cs: Rename
31122 2005-06-29 Peter Bartok <pbartok@novell.com>
31124 * TextBoxBase.cs: Re-align caret after deleting a character
31126 - DeleteChars(): Ensure that tag covers the provided position
31127 - StreamLine(): Drop reference for dropped tag
31129 2005-06-29 Peter Bartok <pbartok@novell.com>
31132 - Selections now work properly, anchoring at the initial location
31133 and properly extending in either direction (SetSelectionToCaret(),
31134 SetSelectionStart() and SetSelectionEnd())
31135 - No longer redraws the whole control on selection change, now
31136 calculates delta between previous and new selection and only
31137 invalidates/redraws that area
31138 - Fixed FindPos() math off-by-one errors
31139 - Changed DeleteChars() to verify the provided tag covers the
31140 provided position, selections may have a tag that doesn't cover
31141 the position if the selection is at a tag border
31142 - Fixed off-by-one errors in DeleteChars()
31143 - Added missing streamlining check in DeleteChars() to remove
31145 - Implemented Invalidate() method, now properly calculates exposures
31146 between two given lines/positions
31147 - Implemented SetSelection()
31148 - Obsoleted and removed FixupSelection()
31149 - Improved RecalculateDocument() logic, removing code duplication
31151 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31153 * LibSupport.cs: changes to match different input/output arguments.
31155 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31157 * LibSupport.cs: added libsupport.so init routine.
31159 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
31161 * ControlBindingsCollection.cs
31162 - Throws an exception on null datasource when adding
31163 - Checks for duplicated bindings when adding
31165 2005-06-28 Jackson Harper <jackson@ximian.com>
31167 * TreeView.cs (OnKeyDown): Support left and right properly
31168 (navigates as well as expanding and collapsing.
31169 - Add support for Multiply, this expands all the selected nodes
31171 - Fix some tabbing.
31173 2005-06-28 Jackson Harper <jackson@ximian.com>
31175 * TreeView.cs: Implement keyboard navigation, currently supports,
31176 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
31177 support for toggling checkboxes with the space bar.
31179 2005-06-28 Jackson Harper <jackson@ximian.com>
31181 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
31184 2005-06-28 Jackson Harper <jackson@ximian.com>
31186 * TreeView.cs: Add missing event.
31188 2005-06-27 Peter Bartok <pbartok@novell.com>
31191 - Made line ending size configurable (now allows for counting
31192 lineendings as \n or \r\n)
31193 - Added margin to viewport to keep caret visible on right side
31194 - Fixed translation routines for line/pos to documentpos to consider
31195 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
31196 - Fixed some line-endings to be unix style
31197 - Fixed Document.FormatText to perform it's calculations 1-based
31198 - Added descriptions for a few methods that might otherwise get
31200 - Added NOTE section with some basic conventions to remember at
31201 the top of the file
31202 - Major fixup for RichTextBox selection drawing:
31203 * Fixed crashes when multiple tags on a single line were selected
31204 * fixed selection box drawing not overlaying text
31205 * fixed bogus offset calculation for tags not starting at index 1
31206 * Switched behaviour from using multiple Substrings of a
31207 StringBuilder.ToString() to using multiple
31208 StringBuilder.ToString(start, length) statements, hoping this is
31209 faster (kept original version commented out in the code, in case
31210 original version was faster)
31211 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
31213 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
31216 2005-06-27 Jackson Harper <jackson@ximian.com>
31218 * TabControl.cs: Move to the left and right with the arrow
31219 keys. These keys don't cycle beyond first and last like
31220 tab. Refresh all the tabs when scrolling them to the left or
31223 2005-06-27 Jackson Harper <jackson@ximian.com>
31226 - ToString: Added method
31227 - CreateParams: Remove TODO and comment
31228 - OnKeyDown: Cycle through bounds properly.
31229 - SelectedIndex: Scroll to the right or left if we need to
31230 display the newly selected tab.
31232 2005-06-23 Jackson Harper <jackson@ximian.com>
31234 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
31237 2005-06-23 Jackson Harper <jackson@ximian.com>
31239 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
31240 CTRL-SHIFT-TAB, and HOME, END are there any others?
31242 2005-06-23 Jackson Harper <jackson@ximian.com>
31244 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
31246 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31248 * DataGridTextBoxColumn.cs: fixes and enhancements
31249 * ThemeWin32Classic.cs: fixes and enhancements
31250 * DataGridBoolColumn.cs: fixes and enhancements
31251 * DataGridDrawingLogic.cs: fixes and enhancements
31252 * CurrencyManager.cs: fixes and enhancements
31253 * DataGrid.cs: fixes and enhancements
31254 * DataGridColumnStyle.cs: fixes and enhancements
31256 2005-06-22 Jackson Harper <jackson@ximian.com>
31258 * TabControl.cs: Add some missing methods that just call into the
31259 base. Make the TabPageCollection's IList interface behave in the
31260 same manner as the MS implementation.
31262 2005-06-22 Peter Bartok <pbartok@novell.com>
31264 * TextControl.cs: Added sanity check
31266 - Fixed wrapping behaviour, don't set wrap on single line controls
31267 (this fixes the breakage of colordialog introduced in an earlier
31269 - Added rudimentary support for autoscrolling right-aligned controls
31270 (still needs fixing, also, center alignment scroll is missing)
31272 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
31274 * ScrollBar.cs: Fixes thumbpos on Maximum values
31276 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
31278 * PropertyGridView.cs: Pass context information to UITypeEditors
31280 2005-06-21 Peter Bartok <pbartok@novell.com>
31283 - Now calling PositionCaret with absolute space coordinates
31284 - Enabled vertical scrolling
31285 - Better tracking of scrollbar changes, tied into WidthChange
31287 - Improved cursor tracking
31288 - Removed debug output
31290 - PositionCaret coordinates are now works in absolute space, not
31292 - Improved tracking of document size
31293 - Added events for width and height changes
31295 2005-06-21 Peter Bartok <pbartok@novell.com>
31297 * Form.cs: Set focus to active control when form is activated
31299 - Added word-wrap functionality to RecalculateLine()
31300 - Added some short function descriptions for VS.Net to aid in
31301 writing dependent controls
31302 - Added Caret property, returning the current coords of the caret
31303 - Added ViewPortWidth and ViewPortHeight properties
31304 - Added Wrap property
31305 - Added CaretMoved event
31306 - Removed some old debug code
31307 - Split() can now create soft splits
31308 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
31309 - Added method to format existing text
31310 - Fixed size/alignment calculations to use viewport
31311 - RecalculateDocument now can handle changing line-numbers while
31315 - Added some wrap logic, we don't wrap if alignment is not left
31316 - Added casts for scrollbar var, base class switched types to
31317 also support RichTextBoxA
31318 - Implemented handling of scrollbar visibility flags
31321 - Switched scrollbars type to RichTextBoxScrollBars to support
31323 - Added tracking of canvas width/height
31324 - Switched scrollbars to be not selectable (to keep focus on text)
31325 - Added central CalculateDocument() method to handle all redraw
31327 - Added ReadOnly support
31328 - Added WordWrap support
31329 - Fixed handling of Enter key (we now treat it as a DialogKey)
31330 - Fixed caret positioning when h or v scroll is not zero
31331 - Fixed placing/generation of vertical scrollbar
31332 - Added CalculateScrollBars() method to allow updating scrollbar
31333 limits and visibility
31334 - Fixed handling of horizontal scroll
31335 - Added handling of vertical scroll
31336 - Implemented auto-'jump' when caret moves to close to a left or
31337 right border and there is text to be scrolled into view (currently
31338 there's the potential for a stack overflow, until a bug in
31339 scrollbar is fixed)
31341 2005-06-21 Geoff Norton <gnorton@customerdna.com>
31343 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31345 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
31349 - return application/x-zerosize for files with size zero
31350 (if no extension pattern matches).
31351 - check matches collection for strings too.
31352 - return only the first mime type if the name value
31353 collection has more than one mime type.
31355 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
31357 * PropertyGrid.cs: Cleaned up some TODOs
31358 * PropertyGridView.cs: Added support for UITypeEditors
31360 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31362 * DataGrid.cs: clears cached value
31364 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
31366 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31367 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31368 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31369 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31371 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
31373 * ThemeWin32Classic.cs: fixes colour
31375 2005-06-15 Peter Bartok <pbartok@novell.com>
31377 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31378 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31379 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31380 * Control.cs: Added some MWFCategory and MWFDescription attributes
31381 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31383 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
31385 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31388 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
31390 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31391 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31392 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31393 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31394 * DataGrid.cs: default datagrid settings for Default Styles, fixes
31395 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31397 2005-06-13 Jackson Harper <jackson@ximian.com>
31399 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31400 isn't printed when the user enables dropping. (X11 does accept
31403 2005-06-13 Jackson Harper <jackson@ximian.com>
31405 * TreeView.cs: Remove some TODOS.
31407 2005-06-13 Jackson Harper <jackson@ximian.com>
31409 * Form.cs: Hook into the mdi framework.
31410 * MdiClient.cs: Use the base control collections add method so
31411 parents get setup correctly. Set the default back colour and dock
31413 * MdiChildContext.cs: New class, this bad actor handles an
31414 instance of an MDI window. Right now there is only basic
31415 support. You can drag, close, and resize windows. Minimize and
31416 Maximize are partially implemented.
31418 2005-06-13 Jackson Harper <jackson@ximian.com>
31420 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31421 freaky when both vals are negative. NOTE: There are probably other
31422 places in XplatUIX11 that this needs to be done.
31424 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
31426 * DataGrid.cs: implement missing methods, move KeyboardNavigation
31427 * DataGridColumnStyle.cs: fixes signature
31429 2005-06-12 Jackson Harper <jackson@ximian.com>
31431 * XplatUIX11.cs: Use sizing cursors similar to the ones on
31434 2005-06-11 Jackson Harper <jackson@ximian.com>
31436 * StatusBarPanel.cs: Signature cleanups. Implement
31439 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
31441 * DataGridTextBoxColumn.cs: Honors aligment
31442 * GridColumnStylesCollection.cs: Contains is case unsensitive
31443 * GridTableStylesCollection.cs: several fixes
31444 * DataGridTableStyle.cs: default column creation
31445 * DataGridDrawingLogic.cs: fixes
31446 * CurrencyManager.cs: ListName property
31447 * DataGrid.cs: multiple styles support
31448 * DataGridColumnStyle.cs: fixes
31451 2005-06-10 Peter Bartok <pbartok@novell.com>
31453 * Control.cs(Select): Moved SetFocus call to avoid potential
31454 loops if controls change the active control when getting focus
31455 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31456 the up/down buttons
31458 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
31460 * ImageListConverter.cs: Implemented
31462 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31464 * MonthCalendar.cs: Wired in NumericUpDown control for year
31466 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
31468 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31469 DoubleClick events, since they are not meant to be fired.
31471 2005-06-09 Peter Bartok <pbartok@novell.com>
31473 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31474 Jonathan's standalone controls into MWF, implemented missing
31475 events, attributes and methods; added xxxAccessible classes
31476 * AccessibleObject.cs: Made fields internal so other classes
31477 can change them if needed
31479 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
31481 * UpDownBase.cs: Complete implementation
31482 * NumericUpDown.cs: Complete implementation
31483 * DomainUpDown.cs: Complete implementation
31485 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
31487 * DataGridTextBoxColumn.cs: drawing fixes
31488 * DataGridCell.cs: fixes ToString method to match MSNet
31489 * DataGridTableStyle.cs: fixes
31490 * DataGridBoolColumn.cs: fixes, drawing
31491 * DataGridDrawingLogic.cs: fixes, new methods
31492 * DataGridTextBox.cs: Keyboard and fixes
31494 - Keyboard navigation
31496 - Row selection (single, multiple, deletion, etc)
31499 2005-06-07 Jackson Harper <jackson@ximian.com>
31501 * ThemeWin32Classic.cs: Clear the background area when drawing
31504 2005-06-06 Peter Bartok <pbartok@novell.com>
31506 * ImageListStreamer.cs: Fixed signature for GetData
31507 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31509 - Added missing ChildAccessibleObject class
31510 - Added missing OnXXXFocus overrides, switched to using those
31511 instead of the event handler
31513 - Added Parent property for ControlAccessibleObject
31516 - Added ResetBindings()
31517 * ListBindingConverter.cs: Implemented some methods
31518 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31519 * ImageList.cs: Implemented basic handle scheme, removed TODOs
31520 * ContainerControl.cs: Fixed signature, now subscribing to the
31521 ControlRemoved event instead of overriding the handler, LAMESPEC
31522 * CurrencyManager.cs: Added missing attribute
31523 * MonthCalendar.cs: Added missing properties
31525 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31527 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31529 2005-06-06 Gaurav Vaish and Ankit Jain
31531 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31532 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31534 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
31536 * Control.cs: fixes CreateParams Width / Height.
31538 2005-06-05 Peter Bartok <pbartok@novell.com>
31540 * Win32DnD.cs: Removed compilation warnings
31542 2005-06-05 Peter Bartok <pbartok@novell.com>
31544 * Control.cs (CreateParams): Since we don't know if one of the
31545 properties we use is overridden, lets make sure if we fail accessing
31546 we continue with a backup plan
31548 2005-06-05 Peter Bartok <pbartok@novell.com>
31551 - Removed debug output
31552 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31554 - Plugged resource leak
31555 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31558 2005-06-05 Peter Bartok <pbartok@novell.com>
31560 * XplatUIWin32.cs: Removed DnD code
31561 * Win32DnD.cs: Implemented drop source and drop target functionality
31563 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31565 * UpDownBase.cs: remove duplicate addition of event, enable some code
31566 that was commented out.
31567 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31568 Validate input when a key is pressed. It works fine now for every
31569 combination of Hexadecimal. Only missing some drawing love when sharing
31570 space with other controls.
31572 2005-06-04 Peter Bartok <pbartok@novell.com>
31575 - We need to pass a window for DragDrop, so enable callback events
31576 - Added DnD callback events when being a DragSource
31577 * XplatUI.cs (StartDrag): Added window handle argument
31578 * XplatUIDriver.cs (StartDrag): Added window handle argument
31579 * QueryContinueDragEventArgs: Made fields internally accessible so
31580 drivers can set them
31581 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31584 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
31586 * DataGridTextBoxColumn.cs: column text editing
31587 * DataGridTableStyle.cs: Respect columns styles created by the user
31588 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31589 * DataGridBoolColumn.cs: bool column editing
31590 * DataGrid.cs: fixes to scrolling, properties, etc
31591 * DataGridTextBox.cs: handle keyboard
31592 * DataGridColumnStyle.cs: fixes
31594 2005-06-02 Jackson Harper <jackson@ximian.com>
31596 * ImageListStreamer.cs: Somewhat broken implementation of
31597 GetObjectData. The RLE needs some work to match MS properly.
31599 2005-06-02 Jackson Harper <jackson@ximian.com>
31601 * X11Dnd.cs: Attempting to keep at least one file in MWF
31604 2005-06-02 Peter Bartok <pbartok@novell.com>
31606 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31609 2005-06-02 Peter Bartok <pbartok@novell.com>
31611 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31612 * XplatUI.cs: Added DoDragDrop() method
31613 * XplatUIDriver.cs: Added DoDragDrop() method
31615 2005-06-02 Jackson Harper <jackson@ximian.com>
31617 * Splitter.cs: Implement BorderStyle.
31619 2005-06-02 Jackson Harper <jackson@ximian.com>
31621 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31622 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31625 2005-06-02 Peter Bartok <pbartok@novell.com>
31628 - Added Data setter
31629 - Fixed broken insertion code for SetData, now also
31630 overwrites any existing entry of the same format name
31631 * Hwnd.cs: Added list of pointers that automatically gets
31632 freed when the window is disposed
31633 * XplatUI.cs: Call driver initialization method when loading
31636 - OnDragLeave takes EventArgs, not DragEventArgs
31637 - Added setting of WS_EX_ACCEPTFILES style when dropping is
31639 - Forces style update when drop state changes
31640 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31641 not perfect since we cannot (yet) call the IDataObject.GetData()
31642 method, we keep getting 0x80004005 error, dunno why)
31644 2005-06-02 Peter Bartok <pbartok@novell.com>
31646 * DragEventArgs.cs: Make fields internal so we can cache the
31647 object and re-set the fields from XplatUI
31649 2005-06-02 Jackson Harper <jackson@ximian.com>
31651 * Control.cs: Add some internal methods so the DnD subsystem can
31652 raise DnD events. Also call into the driver when AllowDrop is set.
31654 * XplatUIDriver.cs: New method for setting whether or not a window
31655 is allowed to accept drag and drop messages.
31657 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
31659 * ScrollBar.cs: Make sure that values sent in Scroll events
31660 are always between Maximum and Minimum.
31662 2005-06-01 Marek Safar <marek.safar@seznam.cz>
31664 * Menu.cs: Call MenuChanged when menuitem visibility has been
31666 * MenuItem.cs: Rebuild menu when item is (not) visible.
31667 * MainMenu.cs: MainMenu has special MenuChanged.
31668 * Theme.cs: Caption and FrameBorderSize are not fixed.
31669 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31670 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31672 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31673 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31675 2005-05-30 Jackson Harper <jackson@ximian.com>
31677 * DataFormat.cs: We can't statically initialize this stuff because
31678 it calls into the xplatui and could create a loop. So we lazy init
31681 2005-05-28 Jackson Harper <jackson@ximian.com>
31683 * Control.cs: Proper implementation of Product(Name/Version).
31685 2005-05-27 Jackson Harper <jackson@ximian.com>
31687 * DataObject.cs: Dont crash if no data is found.
31689 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31690 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31691 as per status page, guessing it should be set to true
31693 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
31695 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31696 * DataGridTableStyle.cs: set proper formatting text, def header text
31697 * ThemeWin32Classic.cs: new themable paramaters
31698 * DataGridBoolColumn.cs: paint check box, get data, fixes
31699 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31700 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31701 * DataGridColumnStyle.cs: fixes
31702 * Theme.cs: new themable paramaters
31704 2005-05-26 Peter Bartok <pbartok@novell.com>
31706 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31708 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31709 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31711 2005-05-24 Peter Bartok <pbartok@novell.com>
31713 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
31714 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
31715 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
31716 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
31717 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
31718 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
31719 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
31720 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
31721 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
31722 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
31723 missing attributes, etc
31724 * DataGridPreferredColumnWidthTypeConverter.cs: Added
31726 2005-05-24 Peter Bartok <pbartok@novell.com>
31728 * Help.cs: Added, implemented trivial functions, throws up MessageBox
31729 when user tries to get help
31730 * DataObject.cs, DataFormats.cs, LinkArea.cs,
31731 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
31732 to suppress warnings
31733 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
31734 avoid unreachable code warning
31736 2005-05-20 Peter Bartok <pbartok@novell.com>
31738 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
31740 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31742 * DataGridTextBoxColumn.cs: Basic painting methods
31743 * DataGridTableStyle.cs: Set table style in the column
31744 * ThemeWin32Classic.cs: Use Theme for colors
31745 * DataGridDrawingLogic.cs: Implement more drawing
31746 * DataGrid.cs: drawing, theming, enhacements, fixes
31747 * DataGridColumnStyle.cs: fixes, drawing
31748 * Theme.cs: theming for Datagrid
31750 2005-05-20 Peter Bartok <pbartok@novell.com>
31752 * Cursor.cs: Implemented GetObjectData() method
31754 2005-05-20 Peter Bartok <pbartok@novell.com>
31756 * Cursors.cs: Added setting of cursor name
31758 - Implemented constructors
31759 - Implemented Draw and DrawStretched
31760 - Implemented Current property
31761 - Implemented == and != operators
31762 - Implemented Dispose()
31763 - Implemented ToString
31764 - Added missing attributes
31766 - Added missing reset for OverrideCursor when DoEvents is called
31767 - Fixed creation of cursor, logic was wrong
31769 - Added missing reset for OverrideCursor when DoEvents is called
31770 - Fixed creation of cursor, bit arrays were swapped
31771 * Clipboard.cs: Removed obsolete MonoTODO attribute
31773 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31775 * ComboBox.cs: fixes OnSelectedItemChanged
31776 * ControlBindingsCollection.cs: fixes item range check
31778 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
31781 - Calc preferred height properly
31782 - Implement missing properties
31784 * NumericUpDown.cs: Implement missing events
31786 2005-05-19 Jackson Harper <jackson@ximian.com>
31788 * TabControl.cs: New method that resizes the tab pages before
31789 redrawing them. This as needed as the control is double buffered
31790 and sizing will not be recalculated unless ResizeTabPages is
31792 * TabPage.cs: Set base.Text instead of Text in the constructor so
31793 that UpdateOwner does not get called. Use the new Redraw method of
31794 TabControl instead of Refresh so the sizing is recalculated.
31795 * ThemeWin32Classic.cs: Draw the text for button tabs.
31797 2005-05-19 Jackson Harper <jackson@ximian.com>
31799 * Control.cs: Paint control background images. Fix typo where
31800 PaintControlBackground was not getting called correctly.
31802 2005-05-19 Peter Bartok <pbartok@novell.com>
31804 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
31805 I can investigate, apparently I broke FileDialog
31807 2005-05-19 Marek Safar <marek.safar@seznam.cz>
31809 * AxHost.cs: Some simple properties.
31810 * Control.cs: window must be accessible after ctor.
31811 * Form.cs: Added TransparencyKey property.
31812 * TextBoxBase.cs: Implemented Clear. Text property can be null.
31813 * XplatUIWin32.cs: SetBorderStyle implemented.
31815 2005-05-18 Peter Bartok <pbartok@novell.com>
31817 * DataObject.cs: Entries are not global but particular to the
31818 DataObject, now it behaves that way
31819 * XplatUIWin32.cs: Implemented Clipboard methods
31820 * Clipboard.cs: Implemented
31821 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
31822 * XplatUIOSX.cs: Updated to final clipboard prototypes
31823 * XplatUIX11.cs: Implemented Clipboard methods
31824 * XplatUIDriver.cs: Updated to final clipboard prototypes
31825 * XplatUIStructs.cs:
31826 - Added BITMAPINFOHEADER struct
31827 - Added ClipboardFormats enum
31829 - Added ClipboardStruct
31830 - Added Atom enum items for clipboard types
31831 - Fixed atom types for Selection event structures
31833 - Added internal properties and methods for drivers to enumerate
31835 - Switched initialization method to allow drivers to assign their
31836 own IDs even for the MS predefined clipboard IDs
31837 * XplatUI.cs: Updated to final clipboard interface
31839 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31840 * PropertyGridView.cs: Fixed compiler warnings.
31842 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31843 * PropertyGrid.cs: Added some event calls
31844 * PropertyGridView.cs: Change drawing code to use double buffering
31845 * PropertyGridTextBox.cs: Changed Text property name
31846 * GridItem.cs: Added Bounds property.
31847 * GridEntry.cs: Added Bounds property.
31849 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
31851 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
31852 since GetType() may not return the correct type if the object is
31855 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
31857 * TreeNodeCollection.cs: fixes get/set item ranges
31859 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
31861 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
31863 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
31865 * ComboBox.cs: Fix item range comparation
31866 * ListView.cs: Fix item range comparation
31868 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
31871 - Clear example panel when OnPaint is called
31872 - Better solution for displaying the example panel text
31873 - Select default indexes in the ListBoxes
31875 2005-05-11 Geoff Norton <gnorton@customerdna.com>
31877 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
31879 2005-05-11 Peter Bartok <pbartok@novell.com>
31881 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
31882 * SelectionRangeConverter.cs: Implemented
31883 * PropertyGrid.cs: Fixed attribute value
31885 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
31886 - Added Sebastien Pouliot's CAS Stack Propagation fixes
31887 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
31888 that's common to all drivers. First methods to go there are
31889 Sebastien Pouliot's CAS Stack Propagation helper methods
31890 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
31891 Sebastien Pouliot for CAS Stack Propagation
31893 2005-05-11 Geoff Norton <gnorton@customerdna.com>
31896 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
31898 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
31900 * DataGridTextBoxColumn.cs: fixed some members
31901 * GridColumnStylesCollection.cs: indexed column is case insensitive
31902 * DataGridTableStyle.cs: fixes
31903 * ThemeWin32Classic.cs: add new theme parameter
31904 * Theme.cs: add new theme parameter
31905 * DataGridDrawingLogic.cs: Datagrid's drawing logic
31906 * DataGrid.cs: fixes, new internal properties, etc.
31907 * DataGridColumnStyle.cs: allows to set grid value
31910 2005-05-10 Peter Bartok <pbartok@novell.com>
31912 * AccessibleObject.cs:
31913 - Removed MonoTODO attribute on help, method is correct
31914 - Fixed Bounds property
31915 * AxHost.cs: Moved MonoTODO
31916 * ButtonBase.cs: Now setting AccessibleObject properties
31917 * RadioButton.cs: Setting proper AccessibleObject role
31918 * CheckBox.cs: Setting proper AccessibleObject role
31919 * ControlBindingsCollection.cs: Added properties, methods and attributes
31920 * DataFormats.cs: Fixed awkward internal API, and changed to enable
31921 userdefined DataFormats.Format items as well
31922 * ListControl.cs: Removed data_member from the public eye
31923 * OpenFileDialog.cs:
31924 - Made class sealed
31925 - Added missing attributes
31926 * SaveFileDialog.cs: Added missing attributes
31927 * ImageListStreamer.cs: Fixed code that caused warnings
31928 * LinkLabel.cs: Removed unreachable code
31929 * TreeView.cs: Fixed code that caused warnings
31930 * PropertyGridView.cs: Fixed code that caused warnings
31931 * GridColumnStylesCollection.cs: Added missing attributes
31932 * GridTableStylesCollection: Added missing attribute
31933 * PropertyManager: Added .ctor
31934 * SecurityIDType: Added
31935 * DataObject.cs: Implemented class
31936 * LinkArea.cs: Added missing attribute
31938 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
31940 * RadioButton.cs: call base method to allow to fire OnClick event
31941 * UpDownBase.cs: OnMouseUp call base method
31942 * CheckedListBox.cs: call base method before returning
31943 * TrackBar.cs: call base method before returning
31946 2005-05-10 Peter Bartok <pbartok@novell.com>
31948 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
31951 2005-05-10 Peter Bartok <pbartok@novell.com>
31953 * DataFormats.cs: Implemented
31954 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
31955 XplatUIX11.cs: Added Clipboard APIs
31956 * XplatUIWin32.cs: Implemented Clipboard APIs
31957 * FolderBrowserDialog.cs: Added missing event, attributes
31959 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
31961 * CheckBox.cs: call base method to allow to fire OnClick event
31963 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
31965 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
31967 2005-05-06 Peter Bartok <pbartok@novell.com>
31969 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
31970 * Screen.cs: Implemented
31971 * HelpNavigator.cs: Added
31972 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
31974 * HelpProvider.cs: Implemented all we can do until we have a CHM
31975 help library (which means that "What's This" does work now)
31977 2005-05-06 Jackson Harper <jackson@ximian.com>
31979 * XplatUIX11.cs: Fix waking up the main loop.
31981 2005-05-05 Peter Bartok <pbartok@novell.com>
31983 * XplatUI.cs: Updated revision
31984 * Form.cs: Removed enless loop
31985 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
31986 * Label.cs (OnPaint): Added call to base.OnPaint()
31987 * ToolTip.cs: Made ToolTipWindow reusable for other controls
31988 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
31989 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
31991 * ButtonBase.cs: Moved base.OnPaint() call to end of method
31992 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
31993 to ToolTip.ToolTipWindow for drawing and size methods; this allows
31994 reuse of ToolTipWindow by other controls
31995 * SizeGrip.cs: Moved base.OnPaint() call to end of method
31996 * XplatUIX11.cs: Now clipping drawing area (experimental)
31997 * PictureBox.cs: Moved base.OnPaint() call to end of method
31998 * Theme.cs: Fixed ToolTip abstracts to match new format
31999 * ErrorProvider.cs: Implemented
32001 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
32003 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
32007 - Implements LinkBehavior
32008 - Fixes many issues
32010 2005-05-03 Jackson Harper <jackson@ximian.com>
32012 * ListView.cs: Calculate the scrollbar positioning on resize and
32013 paint, so they get put in the correct place.
32015 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32017 * ColorDialogs.cs: The small color panels are now handled by
32018 SmallColorControl. This fixes drawing of the focus rectangle
32019 and adds a 3D border.
32021 2005-05-03 Peter Bartok <pbartok@novell.com>
32023 * Control.cs: Modified version of Jonathan Chamber's fix for
32026 2005-05-03 Jackson Harper <jackson@ximian.com>
32028 * ListView.cs: Remove redraw variable. Control now handles whether
32029 or not a redraw needs to be done, and will only raise the paint
32030 event if redrawing is needed.
32032 2005-05-03 Jackson Harper <jackson@ximian.com>
32034 * Splitter.cs: No decorations for the splitter form. Cache the
32037 2005-05-03 Jackson Harper <jackson@ximian.com>
32039 * TreeView.cs: Use dashed lines to connect nodes. Use the
32040 ControlPaint method for drawing the focus rect instead of doing
32043 2005-05-02 Peter Bartok <pbartok@novell.com>
32045 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
32047 2005-04-29 Jackson Harper <jackson@ximian.com>
32049 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
32050 entire image buffer. Just clear the clipping rectangle.
32052 2005-04-29 Jackson Harper <jackson@ximian.com>
32054 * ThemeWin32Classic.cs: Don't draw list view items that are
32055 outside the clipping rectangle.
32057 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
32059 * ListBox.cs: added horizontal item scroll
32061 2005-04-29 Jackson Harper <jackson@ximian.com>
32063 * ThemeWin32Classic.cs: Remove some old debug code that was
32064 causing flicker with the new double buffering code.
32066 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
32068 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
32069 behave like combobox and comboboxlist (still not sure if this is
32072 2005-04-28 Jackson Harper <jackson@ximian.com>
32074 * ThemeWin32Classic.cs: Don't fill the middle of progress
32075 bars. This fills areas outside of the clip bounds that don't need
32078 2005-04-28 Jackson Harper <jackson@ximian.com>
32080 * Control.cs: Don't expose functionality to touch the image buffers.
32082 * ListView.cs: We do not need to (and no longer can) manipulate
32083 the image buffers directly. All of this is handled by Control.
32085 2005-04-28 Peter Bartok <pbartok@novell.com>
32087 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32088 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
32089 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
32091 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32094 - Adjust control's height for non-simple comboboxes (bug fix)
32096 * MenuAPI.cs: remove unused var
32097 * ScrollBar.cs: remove unsed var
32099 * ListBox.cs: unselect items when clearing
32101 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
32103 * ListControl.cs: honors OnPositionChanged and default Selected Item
32104 * ListBox.cs: unselect items when clearing
32106 2005-04-27 Jackson Harper <jackson@ximian.com>
32108 * X11Keyboard.cs: Initialize a default keyboard and give a warning
32109 if a "correct" keyboard is not found. This will make us not crash,
32110 but might give some users bad keyboard layouts...seems to be the
32111 same thing rewind does.
32113 2005-04-27 Jackson Harper <jackson@ximian.com>
32115 * BindingManagerBase.cs: Attach the current/position changed
32116 handlers to their respective events.
32118 2005-04-27 Jackson Harper <jackson@ximian.com>
32120 * Control.cs: Make sure that the first WM_PAINT does a full draw,
32122 * ThemeWin32Classic.cs: Don't fill the background for picture
32123 boxes. This could overright user drawing.
32124 * ComboBox.cs: Just fill the clipping rect not the entire client
32125 rect when drawing the background. This prevents pieces of the
32126 image buffer from getting overwritten and is theoretically faster.
32128 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
32130 * ComboBox.cs: Databinding support fixes, fire missing events
32131 * ListControl.cs: implement missing methods and properties, fixes
32132 * ThemeWin32Classic.cs: Databiding support on Drawing
32133 * CheckedListBox.cs: Databinding support fixes, fire missing events
32134 * ListBox.cs: Databinding support fixes, fire missing events
32136 2005-04-25 Peter Bartok <pbartok@novell.com>
32138 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
32140 2005-04-25 Jackson Harper <jackson@ximian.com>
32142 * TreeView.cs: Use the horizontal scrollbars height not width when
32143 determining how much of the client area is available.
32145 2005-04-25 Jackson Harper <jackson@ximian.com>
32147 * Control.cs: Double buffering is handled differently now. As per
32148 the spec, the extra buffer is created in the WM_PAINT message and
32149 passed down to the control's drawing code.
32157 * PropertyGridView.cs:
32169 * DateTimePicker.cs:
32171 * TreeView.cs: Update to new double buffering system.
32172 * MonthCalendar.cs: Uncomment block, as Capture is now
32173 working. Update to new double buffering
32174 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
32175 * PaintEventArgs.cs: New internal method allows us to set the
32176 graphics object. This is used for double buffering.
32177 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
32178 rectangle. The internal paint_area var has been removed from
32179 StatusBar. The clipping rect should be used instead.
32180 * Theme.cs: Give the PictureBox drawing method a clipping rect.
32181 * TabPage.cs: The RefreshTabs method was removed, so just call the
32182 tab controls Refresh method now.
32183 * TabControl.cs: Update to new double buffering. Make sure the
32184 handle is created before sizing the tab pages, otherwise we will
32185 get stuck in a loop.
32187 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
32189 * LinkLabel.cs: Fix typo, bug #74719; patch
32190 from Borja Sanchez Zamorano
32192 2005-04-22 Jackson Harper <jackson@ximian.com>
32194 * TreeNode.cs: Implement Handle stuff.
32195 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
32197 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
32199 * DataGridTextBoxColumn.cs: call base constructors, fixes
32200 * GridColumnStylesCollection.cs: missing events, methods, and functionality
32201 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
32202 * DataGridTableStyle.cs: implements create default column styles
32203 * DataGridBoolColumn.cs: which types can handle
32204 * DataGrid.cs: missing methods, fixes, new functionality
32205 * DataGridColumnStyle.cs: fixes
32207 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
32208 * FolderBrowserDialog.cs:
32209 - Use a thread to fill the TreeView
32210 - Adjusted some sizes
32212 2005-04-19 Peter Bartok <pbartok@novell.com>
32214 * LinkLabel.cs: (Re-)create the pieces when setting the Text
32215 property. Fixes #74360.
32217 2005-04-19 Jackson Harper <jackson@ximian.com>
32219 * XEventQueue.cs: Lock when getting the lockqueue size.
32220 * PictureBox.cs: Call base OnPaint
32222 2005-04-19 Peter Bartok <pbartok@novell.com>
32224 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
32225 messages were no longer being processed (this broke BeginInvoke)
32228 2005-04-18 Jackson Harper <jackson@ximian.com>
32230 * TreeView.cs: buglet that caused node images to get drawn
32231 regardless of whether or not they were in the clipping rectangle.
32233 2005-04-18 Jackson Harper <jackson@ximian.com>
32235 * CurrencyManager.cs: There are four rules for GetItemProperties:
32236 - If the type is an array use the element type of the array
32237 - If the type is a typed list, use the type
32238 - If the list contains an Item property that is not an object, use
32240 - use the first element of the list if there are any elements in
32243 2005-04-17 Jackson Harper <jackson@ximian.oom>
32245 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
32246 click. This handles offsets for scrolling properly and reduces
32247 memory. Also fixed GetNode to not offset now that TopNode works
32249 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
32251 2005-04-17 Jackson Harper <jackson@ximian.com>
32253 * CursorConverter.cs: Initial implementation.
32255 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32257 * ListControl.cs: work towards complex data binding support on ListControl
32258 * CurrencyManager.cs: work towards complex data binding support on ListControl
32259 * ListBox.cs: work towards complex data binding support on ListControl
32262 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
32264 * GridTableStylesCollection.cs: fixes name and constructor
32265 * DataGridTableStyle.cs: fixes
32266 * DataGridBoolColumn.cs: fixes names and constructors
32267 * DataGrid.cs: define methods and properties. Some init implementations
32268 * DataGridCell.cs: define methods and properties. Some init implementations
32269 * GridTablesFactory.cs: Define methods and properties
32271 2005-04-15 Geoff Norton <gnorton@customerdna.com>
32273 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
32274 graphics port changes. We still want the coordinates in global screen
32277 2005-04-14 Jackson Harper <jackson@ximian.com>
32279 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
32280 check plus minus or checkbox clicks unless those features are enabled.
32282 2005-04-14 Jackson Harper <jackson@ximian.com>
32284 * TreeView.cs: Add methods for setting the top and bottom visible
32285 nodes. TreeNode::EnsureVisible uses these methods.
32286 * TreeNode.cs: Implement EnsureVisible
32288 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
32290 * Form.cs: Pospone menu assignation if the window has not been created yet
32291 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
32294 2005-04-12 Jackson Harper <jackson@ximian.com>
32296 * TreeView.cs: Set the TopNode properly when scrolling
32297 occurs. This has the added benifit of reducing the amount of
32298 walking that needs to be done when drawing. Also removed an old
32300 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
32302 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
32304 * Timer.cs: fixes interval setting when the timer is already enabled
32306 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
32308 * FolderBrowserDialog.cs: First approach
32310 2005-04-09 Peter Bartok <pbartok@novell.com>
32312 * FolderBrowserDialog: Added
32314 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
32316 * LinkLabel.cs: move drawing code into the theme
32317 * ThemeWin32Classic.cs: drawing code and painting background bugfix
32318 * Theme.cs: define DrawLinkLabel method
32320 2005-04-05 Jackson Harper <jackson@ximian.com>
32322 * BindingContext.cs: Use weak references so these bad actors don't
32323 stay alive longer then they need to.
32325 2005-04-05 Jackson Harper <jackson@ximian.com>
32327 * ListControl.cs: Basic implementation of complex databinding.
32329 * ListBox.cs: Add calls to ListControl databinding methods.
32331 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
32334 - Don't change PopupButtonState to Normal when the
32335 PopupButton gets pressed several times.
32336 - Renamed ButtonPanel to PopupButtonPanel
32338 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
32340 * ColorDialog.cs: Use cached objects instead of creating them
32341 * LinkLabel.cs: Use cached objects instead of creating them
32342 * Splitter.cs: Use cached objects instead of creating them
32343 * FontDialog.cs: Use cached objects instead of creating them
32344 * PropertyGridView.cs: Use cached objects instead of creating them
32345 * MessageBox.cs: Use cached objects instead of creating them
32346 * FileDialog.cs: Use cached objects instead of creating them
32347 * ThemeWin32Classic.cs: Use cached objects instead of creating them
32348 * TreeView.cs: Use cached objects instead of creating them
32350 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
32352 * Control.cs: use Equals to compare the font since no == op
32353 * ScrollBar.cs: use Equals to compare the font since no == op
32355 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
32357 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32359 2005-04-01 Jackson Harper <jackson@ximian.com>
32361 * Binding.cs: Implement IsBinding.
32362 * BindingManagerBase.cs:
32363 * PropertyManager.cs:
32364 * CurrencyManager.cs: Add IsSuspended property.
32366 2005-04-01 Jackson Harper <jackson@ximian.com>
32368 * Binding.cs: Had some IsAssignableFrom calls backwards.
32370 2005-04-01 Jackson Harper <jackson@ximian.com>
32372 * Binding.cs: Handle null data members when pulling data.
32373 * PropertyManager.cs: Handle the data member being a property that
32376 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32378 * DataGridTextBoxColumn.cs: fixes signature
32379 * DataGrid.cs: calls right constructor
32381 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
32383 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32384 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32385 * GridTableStylesCollection.cs: implements GridTableStylesCollection
32386 * DataGridTableStyle.cs: implements DataGridTableStyle
32387 * DataGridBoolColumn.cs: implements DataGridBoolColumn
32388 * DataGridTextBox.cs: implements DataGridTextBox
32389 * DataGridColumnStyle.cs: implements DataGridColumnStyle
32391 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
32393 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32395 2005-03-29 Peter Bartok <pbartok@novell.com>
32398 - Properly implemented CompanyName property
32399 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32400 returns a path that includes CompanyName, ProductName and
32401 Version (fixes bug #70330)
32403 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
32405 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32408 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32410 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32412 - Added ReadOnly CheckBox
32413 - Further refactoring: moved some code from Open-/SaveFileDialog
32416 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
32418 * OpenFileDialog.cs: Fixed CheckFileExists
32420 Moved FileView and DirComboBox outside FileDialog class.
32421 They can now be used outside FileDialog
32423 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32425 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32426 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32428 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
32430 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32431 - Added missing CreatePrompt property in SaveDialog
32432 - Overall SaveDialog handling should be better now
32433 - Added non standard ShowHiddenFiles property
32434 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32435 - Added InitialDirectory and RestoreDirectory support
32437 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
32439 * FileDialog.cs: Made dirComboBox usable
32441 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
32443 * FileDialog.cs: Added Filter support (case sensitiv)
32445 2005-03-24 Jackson Harper <jackson@ximian.com>
32447 * TabControl.cs: Need a couple more pixels for the lines.
32449 2005-03-23 Jackson Harper <jackson@ximian.com>
32451 * TabControl.cs: Give the tab page focus when it is selected.
32453 2005-03-23 Jackson Harper <jackson@ximian.com>
32455 * TabControl.cs: Account for the drawing of tabs borders when
32456 invalidating. If the slider was clicked dont do click detection on
32459 2005-03-23 Jackson Harper <jackson@ximian.com>
32461 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32463 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
32465 * CategoryGridEntry.cs: Added
32466 * GridItem.cs: Added helper properties
32467 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32468 * GridEntry.cs: Updated code for collection
32469 * PropertyGrid.cs: Cleaned up some formatting
32470 * PropertyGridView.cs: Added drop down functionality for enums.
32471 * GridItemCollection.cs: Added enumerator logic
32472 * PropertyGridEntry.cs: Added
32474 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32477 - Removed unnecessary commented code
32478 - Fixed handling for entering the filename manually in the combobox
32480 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
32482 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32484 2005-03-18 Peter Bartok <pbartok@novell.com>
32486 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32487 them being touching the border
32489 2005-03-18 Peter Bartok <pbartok@novell.com>
32491 * TextControl.cs: Quick hack to center text better
32493 2005-03-18 Peter Bartok <pbartok@novell.com>
32496 - Don't throw NotImplemented exceptions, just print a notice once
32497 instead (requested by Miguel). This makes running existing SWF
32500 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32501 - Added context menu trigger on right click
32502 * Panel.cs: Trigger invalidate on resize
32504 - Removed old double-buffer drawing
32505 - Added ResizeRedraw style to force proper update of statusbar
32507 - Removed debug output
32508 * ThemeWin32Classic.cs:
32509 - Fixed drawing of status bar, now draws Text property if there
32510 are no defined panels
32512 2005-03-18 Jackson Harper <jackson@ximian.com>
32514 * ImageList.cs: When the image stream is set pull all the images
32516 * ImageListStreamer.cs: Implement reading image list streams.
32518 2005-03-18 Peter Bartok <pbartok@novell.com>
32520 * ThemeWin32Classic.cs (DrawPictureBox):
32521 - Fixed calculations for centered drawing
32522 - Fixed drawing for normal mode, not scaling the image on normal
32524 2005-03-18 Peter Bartok <pbartok@novell.com>
32526 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32529 - Made Open/Save button the accept button for FileDialog
32530 - Tied the cancel button to the IButtonControl cancel button
32531 - Save/Open now properly builds the pathname
32532 - Now handles user-entered text
32533 - Preventing crash on right-click if no item is selected
32534 - Fixed Text property, now uses contents of textbox
32535 - Fixed SelectedText property, now just returns the text part that
32536 is selected in the text box
32538 2005-03-18 Jackson Harper <jackson@ximian.com>
32540 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32541 rect, make sure to de-adjust the interior rect after drawing the
32544 2005-03-18 Peter Bartok <pbartok@novell.com>
32546 * MenuAPI.cs: Remove menu *before* executing selected action to
32547 prevent the menu from 'hanging around'
32549 2005-03-17 Geoff Norton <gnorton@customerdna.com>
32551 * XplatUIOSX.cs: Implemented WorkingArea property
32553 2005-03-17 Peter Bartok <pbartok@novell.com>
32555 * XplatUIX11.cs: Fixed menu coord calculations
32556 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32557 for calculating offsets
32559 2005-03-17 Peter Bartok <pbartok@novell.com>
32561 * Hwnd.cs: Do not consider menu presence for default client
32562 rectangle location/size
32563 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32564 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32565 translation functions
32566 * FileDialog.cs: Fixed (what I presume is a) typo
32568 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
32570 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32571 X access (avoids X-Async errors)
32573 2005-03-16 Jackson Harper <jackson@ximian.com>
32575 * TabControl.cs: Raise the SelectedIndexChanged event.
32577 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
32579 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32580 - Removed vertical ToolBar and replaced it with a custom panel
32581 (desktop and home button already work)
32582 - Added Help button (some controls get resized or relocated then)
32583 - Draw correct text depending on Open or Save.
32584 - Fixed some typos...
32586 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
32589 - Only change Maximum and Minimum when need it (bug fix)
32591 2005-03-15 Peter Bartok <pbartok@novell.com>
32593 * Form.cs: Use Handle for icon, to trigger creation if
32594 the window does not yet exist
32596 - CanSelect: Slight performance improvement
32597 - Focus(): Preventing possible recursion
32598 - Invalidate(): Removed ControlStyle based clear flag setting
32599 - WM_PAINT: fixed logic for calling OnPaintBackground
32600 - WM_ERASEBKGND: Fixed logic, added call to new driver method
32601 EraseWindowBackground if the control doesn't paint background
32603 - Moved EraseWindowBackground() method to internal methods
32604 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32605 is sent via SendMessage on BeginPaint call on Win32
32607 - Added EraseWindowBackground() method
32608 - No longer sends WM_ERASEBKGND on .Expose, but on call to
32609 PaintEventStart, which more closely matches Win32 behaviour
32610 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32611 - Fixed SetFocus() to properly deal with client and whole windows
32612 * Hwnd.cs: Added ErasePending property
32613 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32614 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32616 2005-03-12 Geoff Norton <gnorton@customerdna.com>
32619 - Fix hard loop when timers exist.
32620 - Fix bugs with middle and right click for 3 button mice.
32622 2005-03-11 Peter Bartok <pbartok@novell.com>
32625 - get_WorkingArea: Need to call X directly, GetWindowPos only
32626 returns cached data now
32627 - Added sanity check to GetWindowPos hwnd usage
32629 2005-03-11 Jackson Harper <jackson@ximian.com>
32631 * BindingManagerBase.cs: This method isn't used anymore as
32632 PullData now updates the data in the control.
32634 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
32636 * Form.cs: fixes menu drawing on X11
32637 * MenuAPI.cs: fixes menu drawing on X11
32639 2005-03-11 Peter Bartok <pbartok@novell.com>
32641 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32642 from Jonathan Gilbert; should fix bug #73606
32643 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32644 in Screen coordinates. Thanks, Jordi.
32645 * Form.cs: Added missing attribute
32647 2005-03-11 Peter Bartok <pbartok@novell.com>
32650 - Rudimentary Mdi support
32651 - Removed outdated FormParent code
32652 - Implemented lots of missing properties and methods, still missing
32653 transparency support
32654 - Added missing attributes
32655 - Implemented support for MaximumBounds
32656 - Added firing of various events
32657 * XplatUI.cs: Added SetIcon() method
32658 * XplatUIDriver.cs: Added SetIcon() abstract
32659 * XplatUIOSX.cs: Stubbed out SetIcon() method
32661 - Implemented SetIcon() support
32662 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32663 - Switched to unix line endings
32665 - Made POINT internal so for can access it as part of MINMAX
32666 - Implemented SetIcon() support
32667 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32668 native Mdi support again, might have to go managed)
32669 * Control.cs: Now fires the StyleChanged event
32670 * MdiClient.cs: Added; still mostly empty
32672 2005-03-10 Peter Bartok <pbartok@novell.com>
32674 * SaveFileDialog.cs: Added emtpy file
32676 2005-03-08 Peter Bartok <pbartok@novell.com>
32678 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32679 in turn triggers OnCreateContro) when creating a handle for the
32681 * TextControl.cs: Fixed endless loop in certain cases when
32682 replacing the current selection
32684 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
32687 - Honors NewValue changes in Scroll events allowing apps to change it
32688 - Adds First and Last Scroll events
32689 - Fixes Thumb events
32691 2005-03-07 Peter Bartok <pbartok@novell.com>
32693 * Hwnd.cs: Added DefaultClientRectangle property
32694 * XplatUI.cs: Now using the X11 driver Where() method, which provides
32695 more detailed debug information
32697 - Fixed size-change feedback loop, where we would pull an old size
32698 off the queue and mistakenly change our window's size to an
32700 - Now compressing ConfigureNotify events, to reduce looping and
32702 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32705 2005-03-07 Jackson Harper <jackson@ximian.com>
32707 * Binding.cs: Push data pushes from data -> property. Check if the
32708 property is readonly when attempting to set it.
32710 2005-03-07 Jackson Harper <jackson@ximian.com>
32712 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
32713 instead of IsSubclassOf. Pulling data now sets the value on the
32715 * PropertyManager.cs:
32716 * CurrencyManager.cs: Just need to pull data when updating now,
32717 because PullData will set the value on the control.
32719 2005-03-04 Jackson Harper <jackson@ximian.com>
32721 * Binding.cs: Implement data type parsing and converting on pulled
32722 data. TODO: Are there more ways the data can be converted?
32724 2005-03-04 Jackson Harper <jackson@ximian.com>
32726 * Binding.cs: Support <Property>IsNull checks. Also bind to the
32727 controls Validating method so we can repull the data when the
32728 control loses focus.
32730 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
32733 - Fixes null string format
32736 - Adds enum type checks
32737 - Fixes redrawing and recalc need after changing some properties
32738 - Fixes on focus_item set after the event
32739 - Fixes adding columns after the control has been created
32741 * ThemeWin32Classic.cs:
32742 - Fixes CheckBox focus rectangle
32743 - Fixes ColumnHeader drawing
32746 2005-03-03 Jackson Harper <jackson@ximian.com>
32748 * Binding.cs: Bind to <Property>Changed events so we can detect
32749 when properties are changed and update the data.
32751 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
32754 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
32755 - Fixes ImageList constructor with ImageList container
32756 - Fixes image scaling (wrong parameters at DrawImage)
32758 2005-02-02 Jackson Harper <jackson@ximian.com>
32760 * Binding.cs: Make property searches case-insensitive. Eliminate
32761 some duplicated code.
32763 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
32766 - Handle focus event
32767 - Fix scrollbar events
32768 - Discard highlighted item if remove it
32769 - Fixes SelectedItem with strings
32771 2005-03-01 Peter Bartok <pbartok@novell.com>
32774 - Fixed Visible property, now follows (once again) parent chain
32775 to return false if any control in the chain is visible=false
32776 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
32777 - Fixed several places where is_visible instead of Visible was used
32778 - Implemented FIXME related to focus selection when setting focused
32779 control to be invisible
32781 * XplatUIWin32.cs: Now using proper method to find out if window is
32782 visible. Thanks to Jordi for pointing it out
32784 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
32786 * ComboBox.cs: show/hide scrollbar instead of creating it
32788 2005-02-27 Jackson Harper <jackson@ximian.com>
32790 * CurrencyManager.cs: Add PositionChanged stuff.
32792 2005-02-27 Peter Bartok <pbartok@novell.com>
32794 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
32795 * XplatUIOSX.cs: Added GetMenuOrigin() stub
32796 * XplatUIWin32.cs: Implemented GetMenuOrigin()
32798 - Implemented GetMenuDC()
32799 - Implemented GetMenuOrigin()
32800 - Implemented ReleaseMenuDC()
32801 - Implemented generation of WM_NCPAINT message
32802 - Implemented generation and handling of WM_NCCALCSIZE message
32803 * Form.cs: Added debug helper message for Jordi's menu work
32805 - Modified ClientRect property; added setter, fixed getter to handle
32806 setting of ClientRect
32807 - Added MenuOrigin property
32809 2005-02-26 Peter Bartok <pbartok@novell.com>
32812 - Destroys the caret if a window that's being destroyed contains it
32813 - Ignores expose events coming from the X11 queue for windows that
32814 already are destroyed
32815 - Now uses the proper variable for handling DestroyNotify, before we
32816 marked the wrong window as destroyed
32817 - Improved/added some debug output
32819 2005-02-26 Peter Bartok <pbartok@novell.com>
32821 * X11Keyboard.cs: Fixes to work on 64bit systems
32823 2005-02-26 Peter Bartok <pbartok@novell.com>
32826 - Now calling OnHandleDestroyed from DestroyHandle()
32827 instead of Dispose()
32828 - Removed bogus call to controls.Remove() from DestroyHandle()
32830 2005-02-26 Peter Bartok <pbartok@novell.com>
32832 * Control.cs: Properly destroy child windows when our handle is
32835 2005-02-25 Peter Bartok <pbartok@novell.com>
32838 - Added 'DriverDebug' define to allow tracing XplatUI API calls
32839 - Alphabetized Static Methods and Subclasses
32842 - Added XException class to allow custom handling of X11 exceptions
32843 - Created custom X11 error handler, tied into XException class
32844 - Added support for MONO_XEXCEPTIONS env var to allow the user
32845 to either throw an exception on X errors or continue running
32846 after displaying the error
32847 - Added handling of DestroyNotify message
32848 - Added handler for CreateNotify message (still disabled)
32849 - Improved (tried to at least) Where method to provide file and lineno
32851 - Added XErrorHandler delegate
32852 - Added XRequest enumeration (to suppor translation of errors)
32854 2005-02-25 Jackson Harper <jackson@ximian.com>
32856 * PropertyManager.cs: Implement editing features
32857 * CurrencyManager.cs:
32858 * Binding.cs: First attempt at UpdateIsBinding
32859 * BindingManagerBase.cs: Call UpdateIsBinding before
32860 pushing/pulling data.
32862 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
32864 * MenuAPI.cs: Respect disabled items
32865 * ThemeWin32Classic.cs
32866 - Caches ImageAttributes creation for DrawImageDisabled
32867 - Fixes vertical menu line drawing
32868 - Draws disabled arrows in disable menu items
32870 2005-02-24 Peter Bartok <pbartok@novell.com>
32873 - Added UserData property to allow associating arbitrary objects
32875 - Fixed leak; now removing Hwnd references from static windows array
32877 - Fixed Graphics leak in PaintEventEnd
32878 - Removed usage of HandleData, switched over to Hwnd class
32879 * HandleData.cs: Removed, obsoleted by Hwnd.cs
32881 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
32883 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
32884 * ScrollBar.cs: Fixes bug
32885 * TrackBar.cs: removes death code, clipping, mimize refreshes,
32886 keyboard navigation enhancements
32888 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
32890 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
32891 * GroupBox.cs: Add control styles
32892 * Label.cs: Add control styles
32893 * UpDownBase.cs: Add control styles
32894 * ListBox.cs: Add control styles
32895 * XplatUIWin32.cs: Fixes wrong parameter order
32898 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
32900 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
32902 2005-02-23 Jackson Harper <jackson@ximian.com>
32904 * PropertyManager.cs: Implement property binding. This doesn't
32905 seem to work yet though as (I think) there are some bugs in
32906 System.ComponentModel.PropertyDescriptor.
32907 * BindingContext.cs: Use new PropertyManager constructor.
32909 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
32911 * ProgressBar.cs: use clip region in ProgressBar
32912 * ThemeWin32Classic.cs: use clip region in ProgressBar
32914 2004-02-22 Jackson Harper <jackson@ximian.com>
32916 * BindingsCollection.cs: Remove some debug code.
32918 2005-02-22 Jackson Harper <jackson@ximian.com>
32920 * BindingContext.cs:
32921 * ControlBindingsCollection.cs:
32922 * CurrencyManager.cs:
32924 * BindingManagerBase.cs: Initial implementation
32925 * BindingsCollection.cs: Add an internal contains method that the
32926 BindingManagerBase uses to ensure bindings aren't added twice to
32928 * PropertyManager.cs: Stubbed out.
32930 * ContainerControl.cs: Hook up databinding
32932 2005-02-22 Geoff Norton <gnorton@customerdna.com>
32935 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
32936 Fixed Invalidate/Update chain.
32937 Fixed tons of other minor bugs (this is almost a complete rewrite).
32939 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
32941 * ComboBox.cs: do subcontrol creation when the control is created
32943 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32945 * Label.cs: fixes image drawing (image and imagelist)
32946 * ThemeWin32Classic.cs: cache brushes
32948 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32950 * Form.cs: Move menu drawing code to Theme class
32951 * ComboBox.cs: Move ComboBox drawing code to Theme class
32952 * MenuItem.cs: Move menu drawing code to Theme class
32953 * MenuAPI.cs: Move menu drawing code to Theme class
32954 * ThemeWin32Classic.cs: New methods
32955 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
32956 * ListBox.cs: Move Listbox drawing code to Theme class
32957 * Theme.cs: New methods
32959 2005-02-20 Peter Bartok <pbartok@novell.com>
32962 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
32963 only process mnemonics on those)
32964 - Fixed event sequence for key handling; first calling
32965 ProcessKeyEventArgs now
32967 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
32968 for processing non-character keys
32969 - Fixed WM_CHAR to generate proper event sequence before processing
32970 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
32973 2005-02-19 Peter Bartok <pbartok@novell.com>
32975 * UserControl.cs: Added TextChanged event; added attributes
32976 * SizeGrip.cs: Implemented resizing and optional display of grip
32977 * Form.cs: Fixed attribute
32978 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32979 Changed meaning of ScrollWindow bool argument; instead of the
32980 clear attribute (which will be true usually anyway), it gives the
32981 option of moving child controls as well.
32983 - Changed to match new ScrollWindow argument
32984 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
32985 now handles the implicit parent window a WM puts around us
32986 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
32988 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
32989 * TreeView.cs: Adjusted to new ScrollWindow arguments
32991 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32993 * Form.cs: Menu integration with non-client area
32994 * MenuItem.cs: Menu integration with non-client area
32995 * MenuAPI.cs: Menu integration with non-client area
32997 2005-02-18 Peter Bartok <pbartok@novell.com>
32999 * MethodInvoker.cs: Added
33000 * MdiLayout.cs: Added
33001 * SendKeys.cs: Started implementation
33002 * ErrorIconAlignment.cs: Added
33004 2005-02-18 Peter Bartok <pbartok@novell.com>
33006 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
33007 * Form.cs: Added handling for Menu-related Non-client messages
33009 2005-02-17 Peter Bartok <pbartok@novell.com>
33011 * UpDownBase.cs: Fixed typo, compilation errors
33012 * DomainUpDown.cs: Fixed attribute value
33014 2005-02-16 Miguel de Icaza <miguel@novell.com>
33016 * UpDownBase.cs: Attach entry events.
33018 Add ForeColor property, Focused, InterceptArrowKeys (interception
33019 does not work yet).
33021 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
33024 - Redraw non client are on Setmenu
33025 - Calc proper menu starting point
33027 2005-02-17 Peter Bartok <pbartok@novell.com>
33029 * Application.cs: Fixed message_filter check
33031 2005-02-17 Peter Bartok <pbartok@novell.com>
33033 * Application.cs: Now calls registered message filters
33034 * DockStyle.cs: Fixed attribute
33035 * Form.cs: Fixed attribute
33036 * Menu.cs: Fixed attribute
33037 * ToolTip.cs: Fixed attribute
33038 * TreeNode.cs: Added missing attributes and arranged in regions
33039 * PropertyGrid.cs: Fixed signatures
33040 * TreeNodeCollection.cs: Added attributes
33041 * Splitter.cs: Added missing attributes; arranged into regions
33042 * TabPage.cs: Added missing attributes; arranged into regions
33043 * TextBoxBase.cs: Added missing attributes
33044 * TextBox.cs: Added missing attributes
33045 * ArrangeDirection.cs: Added missing attributes
33046 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
33047 * ToolBarButton.cs: Fixed attributes
33048 * AnchorStyles.cs: Fixed attribute
33049 * TrackBar.cs: Fixed attributes
33050 * TabControl.cs: Added missing attributes and arranged into regions
33051 * ToolBar.cs: Fixed attribute
33052 * StatusBar.cs: Fixed signature, organized into regions and added
33054 * StatusBarPanel.cs: Fixed attributes
33055 * ContentsResizedEventArgs.cs: Implemented
33056 * ContentsResizedEventHandler.cs: Implemented
33057 * DateBoldEventArgs.cs: Implemented
33058 * DateBoldEventHandler.cs: Implemented
33059 * UpDownEventArgs.cs: Implemented
33060 * UpDownEventHandler.cs: Implemented
33062 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
33064 * Form.cs: first Menu NC refactoring
33065 * MenuAPI.cs: first Menu NC refactoring
33067 2005-02-16 Peter Bartok <pbartok@novell.com>
33069 * ImeMode.cs: Added missing attributes
33070 * Menu.cs: Fixed attribute
33071 * GroupBox.cs: Fixed attribute
33072 * Label.cs: Fixed attribute
33073 * ColorDialog.cs (RunDialog): Removed TODO attribute
33074 * ComboBox.cs: Fixed attributes
33075 * ListControl.cs: Added missing attributes
33076 * PropertyGrid.cs: Fixed attributes
33077 * Control.cs: Fixed attributes
33078 * ListViewItem.cs: Added TypeConverter attribute
33079 * NotifyIcon.cs: Fixed attributes
33080 * ListView.cs: Fixed attributes
33081 * ButtonBase.cs: Fixed attribute
33082 * ImageList.cs: Added missing attributes
33083 * ContainerControl.cs: Fixed signature
33084 * CheckedListBox.cs: Fixed attribute; added missing attributes
33085 * Panel.cs: Fixed attributes
33086 * PropertyTabChangedEventArgs.cs: Added missing attribute
33087 * PropertyValueChangedEventArgs.cs: Added missing attribute
33088 * Binding.cs: Fixed attribute
33089 * ListViewItemConverter: Implemented ListViewSubItemConverter class
33090 * ListBox.cs: Fixed attribute; added missing attributes;
33091 * ScrollableControl.cs: Added missing attributes
33092 * PictureBox.cs: Added missing attributes; implemented missing property
33093 * DateTimePicker.cs: Added missing attributes
33094 * Theme.cs (ToolWindowCaptionHeight): Fixed type
33095 * MonthCalendar.cs: Fixed attributes
33096 * StatusBarPanel.cs: Added missing attributes
33097 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
33099 2005-02-16 Peter Bartok <pbartok@novell.com>
33101 * TextBoxBase.cs: The previous method to enforce height yet remember
33102 the requested high was less than ideal, this is an attempt to do
33104 * Control.cs: Added comment about possible problem
33105 * Copyright: Updated format
33106 * GridItemType.cs: Fixed swapped values
33108 2005-02-15 Jackson Harper <jackson@ximian.com>
33110 * BaseCollection.cs: Use property so we never access an
33111 uninitialized list. Also initialize the list in the property.
33113 2005-02-15 Peter Bartok <pbartok@novell.com>
33115 * GroupBox.cs (ProcessMnemonic): Implemented
33116 * Label.cs (ProcessMnemonic): Implemented
33117 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
33120 2005-02-15 Peter Bartok <pbartok@novell.com>
33122 * RadioButton.cs (ProcessMnemonic): Implemented
33123 * CheckBox.cs (ProcessMnemonic): Implemented
33125 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
33127 - Added internal method to allow calling ProcessMnemonic from other
33129 * ContainerControl.cs:
33130 - Started support for handling validation chain handling
33131 - Implemented ProcessMnemonic support
33132 - Added Select() call to Active, to make sure the active control
33134 * Form.cs: Setting toplevel flag for Forms (this was lost in the
33135 FormParent rewrite)
33136 * ThemeWin32Classic.cs:
33137 - DrawCheckBox(): Fixed stringformat to show hotkeys
33138 - DrawRadioButton(): Fixed stringformat to show hotkeys
33139 * CommonDialog.cs: Removed WndProc override, not needed
33141 2005-02-14 Peter Bartok <pbartok@novell.com>
33143 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
33144 missed those in the rewrite
33146 2005-02-14 Miguel de Icaza <miguel@novell.com>
33148 * NumericUpDown.cs (Increment, ToString): Add.
33149 (DecimalPlaces): implement.
33153 * UpDownBase.cs: Add the designer attributes.
33155 2005-02-13 Peter Bartok <pbartok@novell.com>
33157 * Panel.cs: Removed border_style, now in Control
33158 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
33159 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
33161 2005-02-13 Peter Bartok <pbartok@novell.com>
33163 * MouseButtons.cs: Added missing attributes
33164 * XplatUIStructs.cs: Added enumeration for title styles
33165 * LeftRightAlignment.cs: Added missing attributes
33166 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
33167 it compatible with Graphics.FromHwnd()
33168 * SelectedGridItemChangedEventArgs.cs: Fixed property type
33169 * Keys.cs: Added missing attributes
33170 * SelectionRange.cs: Added missing attributes
33171 * SelectionRangeConverter.cs: Added
33173 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
33174 ReleaseMenuDC methods
33175 - Renamed ReleaseWindow to UngrabWindow
33176 - Added proper startup notice to allow version identification
33178 - Added missing attributes
33179 - Removed FormParent concept
33180 * Label.cs: Removed border_style field, now in Control
33181 * RadioButton.cs: Now properly selects RadioButton when focus is
33183 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
33185 - Added missing attributes
33186 - Added borderstyle handling
33187 - Removed FormParent concept support
33188 - Fixed calls to XplatUI to match changed APIs
33189 - Fixed bug that would case us to use disposed Graphics objects
33190 - Removed unneeded internal methods
33191 - PerformLayout(): Fixed to handle DockStyle.Fill properly
33192 - SelectNextControl(): Fixed to properly check common parents
33193 * TextBoxBase.cs: Removed border_style field (now in Control)
33195 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
33196 fixed calculations for form size
33197 - Added support for localized strings and icons
33198 - Improved form size calculations, added border
33199 * ListView.cs: Removed border_style field (now in Control)
33200 * X11Structs.cs: Moved several structs from X11 driver here
33201 * X11Keyboard.cs: Changed debug message
33202 * Application.cs: Removed FormParent concept support
33204 - Resetting end_modal flag
33205 - Removed FormParent concept support
33206 * NativeWindow.cs: Removed FormParent concept support
33207 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
33208 Client area and Non-Client whole window to allow support for WM_NC
33210 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
33211 prevent using it until it supports Hwnd as per Geoff Norton's request
33212 * ToolBar.cs: Fixed drawing, was not doing proper drawing
33213 * PictureBox.cs: Removed border_style field, now in Control
33214 * XplatUIWin32.cs: Added new driver methods
33216 2005-02-12 Peter Bartok <pbartok@novell.com>
33218 * OpacityConverter.cs: Implemented
33219 * Hwnd.cs: Internal class to support drivers that need to emulate
33220 client area/non-client area window behaviour
33222 2005-02-11 Peter Bartok <pbartok@novell.com>
33224 * KeysConverter.cs: Implemented
33226 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
33228 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
33229 * LinkLabel: Added missing attributes
33230 * MainMenu.cs: fixes ToString
33231 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
33232 * ListBox.cs: fixes event position
33233 * TrackBar.cs: adds missing attributes and events
33235 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
33237 * MenuItem.cs: Use SystemInformation and bug fixes
33238 * MenuAPI.cs: Use SystemInformation and bug fixes
33240 2005-02-09 Jackson Harper <jackson@ximian.com>
33242 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
33243 their keystate otherwise things like VK_MENU get stuck "on".
33245 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
33247 * ListBox.cs: Fixes AddRange bug
33249 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
33252 - Add missing attributes
33253 - Add missing method
33255 * CheckedListBox.cs: Added missing attributes
33256 - Add missing attributes
33257 - Remove extra method
33259 * ComboBox.cs: Added missing attributes
33260 * VScrollBar.cs: Added missing attributes
33261 * ScrollBar.cs: Added missing attributes
33262 * ListBox.cs: Fixes signature, add missing consts
33263 * LinkArea.cs: Added missing attributes
33266 2005-02-08 Peter Bartok <pbartok@novell.com>
33268 * Menu.cs: Added missing attributes
33269 * MainMenu.cs: Added missing attributes
33270 * GroupBox.cs: Added missing attributes
33271 * Label.cs: Added missing attributes
33272 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
33274 - Added Instance and Options properties
33275 - Added missing attributes
33276 * Cursor.cs: Made Serializable
33277 * NotifyIcon: Added missing attributes
33278 * MenuItem.cs: Added missing attributes
33279 * TextBoxBase.cs: Implemented AppendText() and Select() methods
33280 * Panel.cs: Added Missing attributes
33281 * MonthCalendar.cs: Fixed CreateParams
33283 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33287 - Fixes issues with links
33288 - Adds the class attributes
33290 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
33293 - Fixes button when no items available in dropdown
33294 - Fixes repainting problems
33295 - Adds the class attributes
33297 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33299 * XplatUIOSX.cs: Detect the menu bar and title bar height from
33300 the current theme. Cache these on startup.
33302 2005-02-07 Jackson Harper <jackson@ximian.com>
33304 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
33305 the scrollbar buttons when they are depressed.
33307 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33309 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33310 Get the display size from the main displayid. We currently dont
33311 support multiple display configurations.
33313 2005-02-07 Geoff Norton <gnorton@customerdna.com>
33315 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33317 2005-02-07 Miguel de Icaza <miguel@novell.com>
33319 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33321 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
33323 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33325 2005-02-04 Jackson Harper <jackson@ximian.com>
33327 * ThemeWin32Classic.cs: Respect the clipping rect when
33328 drawing. Only fill the intersection of clips and rects so there
33329 isn't a lot of large fills.
33330 * ScrollBar.cs: Pass the correct clipping rect to the theme
33331 engine. Remove some debug code.
33333 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
33335 * DateTimePicker.cs:
33336 - Fixed crash on DateTime.Parse, use Constructor instead
33338 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33342 - Owner draw support (MeasureItem and DrawItem)
33344 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
33347 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33348 - Fixes MenuItems.Add range
33350 - MergeMenu and Clone and CloneMenu functions
33352 2005-02-03 Jackson Harper <jackson@ximian.com>
33354 * ScrollBar.cs: Make abstract
33355 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33358 2005-02-03 Jackson Harper <jackson@ximian.com>
33360 * ScrollBar.cs: First part of my scrollbar fixups. This removes
33361 all the unneeded refreshes and uses invalidates with properly
33364 2005-02-03 Peter Bartok <pbartok@novell.com>
33366 * ComponentModel.cs: Added
33367 * IDataGridEditingService.cs: Added
33368 * Timer.cs: Added missing attributes
33369 * ToolTip.cs: Added missing attributes
33371 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
33373 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33375 2005-02-03 Peter Bartok <pbartok@novell.com>
33377 * ListBox.cs: Added missing attributes
33379 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
33382 - Fixes font height after font change
33383 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33385 2005-02-02 Peter Bartok <pbartok@novell.com>
33387 * HandleData.cs: Introduced static methods to allow class
33388 to be more self-contained and track it's own HandleData objects
33389 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33390 HandleData to use new static methods
33392 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
33395 - Fixes default size and PreferredHeight
33397 - ObjectCollection.Insert implementation
33403 - ObjectCollection.Insert implementation
33404 - No selection after clean
33407 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33409 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33411 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
33414 - Caches ItemHeight calculation for OwnerDrawVariable
33415 - Handles dropdown properly
33416 - Fixes several minor bugs
33418 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33421 - Fixes 71946 and 71950
33422 - Fixes changing Multicolumn on the fly
33423 - Fixes keyboard navigation on Multicolumn listboxes
33425 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33427 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33428 crash reporter log.
33430 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33432 * XplatUIOSX.cs: Allow applications to actually exit.
33434 2005-01-31 Geoff Norton <gnorton@customerdna.com>
33436 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
33437 their parent at creation time rather than lazily later. Fixes a major
33438 regression we were experiencing.
33440 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
33442 * ThemeWin32Classic.cs: more date time picker painting fixes
33443 * DateTimePicker.cs: more monthcalendar drop down fixes
33444 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33446 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
33449 - When moving the thumb going outside the control should stop the moving
33450 - Adds the firing of missing events
33451 - Fixes no button show if Size is not specified
33452 - End / Home keys for keyboard navigation
33454 2005-01-30 Peter Bartok <pbartok@novell.com>
33456 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33457 sanity check to prevent theoretical loop
33458 * XplatUIWin32.cs (SetVisible): Removed debug output
33459 * XplatUIX11.cs (SystrayChange): Added sanity check
33460 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33461 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33462 behaviour, valid until the X11 client window rewrite is done
33463 * TextBox.cs (ctor): Setting proper default foreground and background
33466 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
33468 * Theme: Added DrawDateTimePicker to interface
33469 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33470 * DateTimePicker.cs: Created (still needs keys and painting code)
33471 * DateTimePickerFormat.cs: added
33472 * MonthCalendar.cs: fixed CreateParams for popup window mode
33474 2005-01-29 Peter Bartok <pbartok@novell.com>
33476 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33477 this should also the calculations for ligher/darker
33478 * Theme.cs: Fixed defaults for ScrollBar widths/heights
33480 2005-01-29 Peter Bartok <pbartok@novell.com>
33482 * ArrangeDirection.cs: Added
33483 * ArrangeStartingPositon.cs: Added
33484 * SystemInformation.cs: Implemented
33485 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33486 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33487 used by SystemInformation class
33488 * X11Strucs.cs: Added XSizeHints structure
33490 - Fixed CreateParams to make sure the menu window is always visible
33491 - TrackPopupMenu: Added check to make sure we don't draw the
33494 2005-01-29 Peter Bartok <pbartok@novell.com>
33496 * HandleData.cs: Added method for altering invalid area
33497 * TextBoxBase.cs: Implemented TextLength
33499 2005-01-28 Peter Bartok <pbartok@novell.com>
33501 * XplatUIX11.cs: Improvement over last patch, not sending
33502 the WM_PAINT directly anymore, instead we scroll any pending
33503 exposed areas and let the system pick out the WM_PAINT later
33505 2005-01-28 Peter Bartok <pbartok@novell.com>
33507 * SWF.csproj: Deleted, no longer used. Instead,
33508 Managed.Windows.Forms/SWF.csproj should be used
33509 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33510 directly, to avoid a potential race condition with the next
33513 2005-01-28 Peter Bartok <pbartok@novell.com>
33515 * XplatUI.cs: Made class internal
33517 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
33519 * CheckedListBox.cs:
33522 - Missing methods and events
33524 2005-01-27 Peter Bartok <pbartok@novell.com>
33526 * Application.cs (Run): Don't use form if we don't have one
33528 2005-01-27 Peter Bartok <pbartok@novell.com>
33530 * TextBoxBase.cs (get_Lines): Fixed index off by one error
33532 2005-01-27 Peter Bartok <pbartok@novell.com>
33534 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33535 * GridItem.cs: Added; Patch by Jonathan S. Chambers
33536 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33537 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33538 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33539 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33540 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33541 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33542 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33543 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33544 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33545 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33547 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33550 - Draw focus on Simple Combobox
33551 - Fixes drawing issues
33554 2005-01-27 Peter Bartok <pbartok@novell.com>
33557 - Place window in default location, instead of hardcoded 0/0
33558 - Send initial LocationChanged event
33560 - UpdateBounds after creation to find out where the WM placed us
33561 - Make sure that if the ParentForm changes location the Form
33563 * XplatUIX11.cs: XGetGeometry will not return the coords relative
33564 to the root, but to whatever the WM placed around us.
33565 Translate to root coordinates before returning toplevel
33567 * XplatUIWin32.cs: Removed debug output
33568 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33569 flag to GetWindowPos, to allow translation of coordinates on X11
33571 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
33573 * ListBox.cs: connect LostFocus Event
33575 2005-01-27 Peter Bartok <pbartok@novell.com>
33577 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33578 XplatUIX11.cs: Extended the Systray API
33579 * Form.cs: Removed debug output
33580 * Application.cs: Fixed focus assignment, always need to call
33581 XplatUI.Activate() since Form.Activate() has rules that may
33583 * NotifyIcon.cs: Should be complete now
33584 * ToolTip.cs: Worked around possible timer bug
33586 2005-01-27 Jackson Harper <jackson@ximian.com>
33589 - Only invalidate the effected tabs when the
33590 selected index changes. This reduces drawing and gets rid of some
33592 - Only refresh if the tabs need to be shifted, otherwise only
33593 invalidate the slider button.
33594 - On windows the tabs are not filled to right if the slider is
33597 2005-01-27 Jackson Harper <jackson@ximian.com>
33599 * TabControl.cs: Only refresh on mouseup if we are showing the
33600 slider. Also only invalidate the button whose state has changed.
33602 2005-01-26 Peter Bartok <pbartok@novell.com>
33604 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33605 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33606 and SystrayRemove() methods
33607 * XplatUIOSX.cs: Stubbed Systray methods
33609 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33611 - Fixed broken XChangeProperty calls (marshalling messed up things)
33612 * X11Structs.cs: Added enums and structs required for Size hinting
33613 * NotifyIcon.cs: Added & implemented
33615 2005-01-26 Jackson Harper <jackson@ximian.com>
33617 * TabControl.cs: Space vertically layed out tabs properly.
33619 2005-01-26 Peter Bartok <pbartok@novell.com>
33621 * Form.cs (CreateClientParams): Always set the location to 0,0
33622 since we're a child window.
33624 * Control.cs (SetVisibleCore): Always explicitly setting the location
33625 of a toplevel window, apparently X11 doesn't like to move windows
33626 while they're not mapped.
33628 2005-01-26 Jackson Harper <jackson@ximian.com>
33630 * TabControl.cs: Implement FillToRight size mode with vertically
33633 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33635 * ControlPaint.cs, ThemeWin32Classic.cs
33636 - Fixes DrawFocusRectangle
33638 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
33641 - MenuBar tracking only starts when item is first clicked
33642 - Fixes menu hidding for multiple subitems
33643 - Unselect item in MenuBar when item Executed
33646 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
33649 - IsInputKey for ListBox
33652 - Shift and Control item selection
33653 - Implement SelectionMode.MultiExtended
33654 - Fixes RightToLeft
33656 - IsInputKey implemented
33657 - Do not generate OnTextChangedEdit on internal txt changes
33659 2005-01-23 Peter Bartok <pbartok@novell.com>
33661 * AccessibleObject.cs: Partially implemented Select()
33662 * MonthCalendar.cs: Added missing attributes and events
33663 * Form.cs: Fixed CreateParams behaviour, now controls derived from
33664 form can properly override CreateParams.
33665 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33666 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33667 Control performs Invalidate & Update
33668 * NativeWindow (CreateHandle): Added special handling for Form
33669 and Form.FormParent classes to allow overriding of From.CreateParams
33671 - ControlNativeWindow: Renamed 'control' variable to more intuitive
33673 - ControlNativeWindow: Added Owner property
33674 - Removed usage of Refresh() on property changes, changed into
33675 Invalidate(), we need to wait until the queue is processed for
33676 updates, direct calls might cause problems if not all vars for
33677 Paint are initialized
33678 - Added call to UpdateStyles() when creating the window, to set any
33679 styles that CreateWindow might have ignored.
33680 - Added support for Form CreateParent overrides to UpdateStyles()
33681 * MessageBox.cs: Removed no longer needed FormParent override stuff,
33682 CreateParams are now properly overridable
33683 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33684 CreateParams are now properly overridable
33686 2005-01-23 Miguel de Icaza <miguel@ximian.com>
33688 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33691 Capture LostFocus and OnTextBoxChanged. The later introduces a
33692 recursive invocation that I have not figured out yet.
33694 Reset the timer when not using (it was accumulating).
33697 (OnTextBoxChanged): Set UserEdit to true here to track whether the
33698 user has made changes that require validation.
33700 Reset changing to avoid loops.
33702 2005-01-22 Miguel de Icaza <miguel@ximian.com>
33704 * NumericUpDown.cs: Display value at startup.
33706 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33709 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33710 filled in. Added some basic parsing of text.
33712 Still missing the OnXXX method overrides, and figuring out the
33713 events that must be emitted.
33715 * UpDownBase.cs: Handle UserEdit on the Text property.
33717 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
33720 - Fixes IntegralHeight
33723 2005-01-21 Jackson Harper <jackson@ximian.com>
33725 * TabControl.cs: Set the SelectedIndex property when SelectedTab
33726 is set so that the page visibility is updated and the tabs are
33729 2005-01-21 Jackson Harper <jackson@ximian.com>
33731 * TabControl.cs: Use cliping rectangle for blitting. Give the
33732 theme the clipping rect so we can do clipping while
33733 drawing. Remove some debug code.
33735 2005-01-21 Jackson Harper <jackson@ximian.com>
33737 * TabPage.cs: Add a new method so tab pages can force the tab
33738 control to recalculate the tab page sizes.
33739 * TabControl.cs: UpdateOwner needs to make the tab control recalc
33742 2005-01-20 Jackson Harper <jackson@ximian.com>
33744 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
33746 2005-01-20 Jackson Harper <jackson@ximian.com>
33748 * TreeView.cs: Set the bounds for nodes properly. They were
33749 getting screwed up when checkboxes were not enabled, but images
33752 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
33755 - Owner draw support
33758 2005-01-20 Jackson Harper <jackson@ximian.com>
33760 * XplatUIStructs.cs: More misc keys
33761 * X11Keyboard.cs: Ignore some control keys.
33763 2005-01-20 Jackson Harper <jackson@ximian.com>
33765 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
33766 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
33768 2005-01-19 Peter Bartok <pbartok@novell.com>
33770 * Control.cs: Un-selecting the control when it is loosing focus
33772 2005-01-19 Jackson Harper <jackson@ximian.com>
33774 * TreeView.cs: Hook up to the text controls leave event so we can
33775 end editing when the users clicks outside the text box.
33777 2005-01-19 Jackson Harper <jackson@ximian.com>
33779 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
33780 get set in the conversion array.
33782 2005-01-19 Peter Bartok <pbartok@novell.com>
33784 * Application.cs (ModalRun): Added a call to CreateControl to ensure
33785 focus is properly set
33787 - Added missing attributes
33788 - removed styles, those are already set in the base class
33790 - Added missing attributes
33791 - Added clip window styles
33792 * CheckBox.cs: Added missing attributes
33794 - FormParentWindow.CreateParams: Added required clip styles
33795 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
33796 also filters modifier keys
33798 - Added assignment of Accept and Cancel button to enable Enter
33799 and Esc keys in MessageBox dialogs
33800 - FormParentWindow.CreateParams: Added required clip styles
33801 * RadioButton.cs: Added missing attributes
33802 * TextControl.cs: No longer draws selection if control does not
33805 - Now draws simple rectangle around test area to make it obvious
33806 there's a control. This is a hack until we properly support borders
33807 - A few simple fixes to support selections better, now erases selected
33808 text when typing, and resets selection when using movement keys
33810 2005-01-19 Miguel de Icaza <miguel@ximian.com>
33812 * UpDownBase.cs: Added some new properties.
33814 * DomainUpDown.cs: Implement a lot to get my test working.
33816 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33818 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
33820 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33822 * OSXStructs (WindowAttributes): Fixed csc complaints
33824 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33827 OSXStructs.cs: Initial refactor to move enums and consts into
33828 OSXStructs and use them in the driver for greater readability.
33830 2005-01-19 Geoff Norton <gnorton@customerdna.com>
33832 * XplatUIOSX.cs: Initial support for Standard Cursors.
33833 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
33835 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
33837 * ComboBox.cs: ability to change style when the ctrl is already
33838 created, missing methods and events, bug fixes, signature fixes
33840 2005-01-19 Peter Bartok <pbartok@novell.com>
33842 * Cursors.cs (ctor): Added ctor to fix signature
33844 2005-01-18 Peter Bartok <pbartok@novell.com>
33846 * Button.cs: Implemented DoubleClick event
33848 - Fixed keyboard handling to behave like MS, where the press of
33849 Spacebar is equivalent to a mousedown, and the key release is
33850 equivalent to mouseup. Now a spacebar push will give the same
33851 visual feedback like a mouse click.
33852 - Added missing attributes
33853 - Added ImeModeChanged event
33854 - Added support for generating DoubleClick event for derived classes
33856 - Implemented DoubleClick event
33857 - Added missing attributes
33858 * CommonDialog.cs: Added missing attribute
33859 * ContextMenu.cs: Added missing attributes
33861 - AutoChecked buttons do not allow to be unselected when clicked
33862 (otherwise we might end up with no selected buttons in a group)
33863 - Added missing attributes
33864 - Implemented DoubleClickEvent
33865 * ThreadExceptionDialog.cs: Enabled TextBox code
33867 2005-01-18 Peter Bartok <pbartok@novell.com>
33869 * Form.cs: Removed debug output
33870 * Button.cs: Added support for DoubleClick method
33872 2005-01-18 Peter Bartok <pbartok@novell.com>
33875 - Added method to parent window that allows triggering size
33876 calculations when a menu is added/removed
33877 - set_Menu: Cleaned up mess from early days of Form and Control,
33878 now properly triggers a recalc when a menu is added/removed
33879 - Added case to select form itself as focused form if no child
33881 - Added PerformLayout call when showing dialog, to ensure properly
33884 - Select(): Made internal so Form can access it
33885 - Focus(): Only call Xplat layer if required (avoids loop), and sets
33887 * Application.cs (Run): Removed hack and calls PerformLayout instead
33888 to trigger calculation when Form becomes visible
33890 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
33892 * ComboBox.cs: fixes for ownerdraw
33894 2005-01-18 Peter Bartok <pbartok@novell.com>
33897 - Sentinel is no longer static, each Document gets it's own, this
33898 avoids locking or alternatively overwrite problems when more
33899 than one text control is used simultaneously.
33900 - Switched to use Hilight and HilightText brushes for text selection
33902 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
33904 2005-01-18 Peter Bartok <pbartok@novell.com>
33907 - Hooked up the following events:
33915 o SystemColorsChanged
33916 o ParentFontChanged
33918 - Removed debug output
33919 - Added a call to the current theme's ResetDefaults when a color change
33921 * Form.cs: Now setting the proper ImeMode
33922 * Theme.cs: Defined a method to force recreation of cached resources
33923 and rereading of system defaults (ResetDefaults())
33924 * ThemeWin32Classic.cs: Added ResetDefaults() stub
33926 2005-01-17 Peter Bartok <pbartok@novell.com>
33928 * Control.cs: Added missing attributes
33930 2005-01-17 Jackson Harper <jackson@ximian.com>
33932 * TreeNode.cs: Implement editing. Add missing properties selected
33934 * TreeView.cs: Implement node editing. Also some fixes to use
33935 Invalidate (invalid area) instead of Refresh when selecting.
33937 2005-01-17 Peter Bartok <pbartok@novell.com>
33940 - Implemented InvokeGotFocus() method
33941 - Implemented InvokeLostFocus() method
33942 - Implemented InvokePaint() method
33943 - Implemented InvokePaintBackground() method
33944 - Implemented InvokeClick() method
33945 - Implemented FindForm() method
33946 - Implemented RectangleToClient() method
33947 - Implemented ClientToRectangle() method
33948 - Implemented ResetBackColor() method
33949 - Implemented ResetCursor() method
33950 - Implemented ResetFont() method
33951 - Implemented ResteForeColor() method
33952 - Implemented ResetImeMode() method
33953 - Implemented ResetLeftToRight() method
33954 - Implemented ResetText() method
33955 - Implemented Scale() methods
33956 - Implemented ScaleCore() method
33957 - Implemented Update() method
33958 - Removed unused variables
33959 - Stubbed AccessibilityNotifyClients and
33960 ControlAccessibleObject.NotifyClients() methods (dunno what to do
33962 - Now setting proper default for RightToLeft property
33963 - Fixed bug in SetClientSizeCore that would cause windows to get
33965 - Now sending Click/DoubleClick events
33966 - Now selecting controls when left mouse button is clicked on
33968 * AccessibleEvents.cs: Added
33969 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
33970 * XplatUIOSX.cs: Stubbed UpdateWindow() method
33971 * XplatUIWin32.cs: Implemented UpdateWindow() method
33972 * XplatUIX11.cs: Implemented UpdateWindow() method
33973 * Form.cs: Removed stray semicolon causing CS0162 warning
33974 * ThemeWin32Classic.cs: Fixed unused variable warnings
33975 * ScrollableControl.cs: Now calls base method for ScaleCore
33976 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
33977 style to avoid interference with internal click handler (which is
33978 different than standard Control click handling)
33980 - Now unchecks all sibling radio buttons when control is
33981 selected (Fixes #68756)
33982 - Removed internal tabstop variable, using the one inherited from
33985 2005-01-17 Jackson Harper <jackson@ximian.com>
33987 * NavigateEventArgs.cs: Fix base type.
33988 * LinkLabel.cs: Sig fix
33990 2005-01-17 Jackson Harper <jackson@ximian.com>
33992 * TreeView.cs: Only invalidate the effected nodes bounds when
33995 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
33997 * XplatUIWin32.cs: fixes Win32 marshaling
33998 * XplatUIX11.cs: fixes method signature
34000 2005-01-17 Peter Bartok <pbartok@novell.com>
34002 * XplatUIX11.cs: Clean up resources when we no longer need them
34004 2005-01-17 Peter Bartok <pbartok@novell.com>
34006 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
34007 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
34008 and DestroyCursor() methods.
34009 * Cursor.cs: Partially implemented, now supports standard cursors;
34010 still contains some debug code
34011 * Cursors.cs: Implemented class
34013 - WndProc(): Added handling of WM_SETCURSOR message, setting the
34015 - Implemented Cursor property
34016 - Replaced break; with return; more straightforwar and possibly
34018 - Now properly setting the result for WM_HELP
34019 * X11Structs.cs: Added CursorFontShape enum
34020 * XplatUIStructs.cs:
34021 - Added StdCursor enum (to support DefineStdCursor() method)
34022 - Added HitTest enum (to support sending WM_SETCURSOR message)
34024 - Now sends the WM_SETCURSOR message
34025 - Implemented new cursor methods
34026 * XplatUIOSX.cs: Stubbed new cursor methods
34028 - Implemented new cursor methods
34029 - Added GetSystemMetrics function and associated enumeration
34031 2005-01-15 Peter Bartok <pbartok@novell.com>
34034 - WndProc(): Now handles EnableNotifyMessage
34035 - SelectNextControl(): Fixed bug where if no child or sibling
34036 controls exist we looped endlessly
34038 2005-01-14 Jackson Harper <jackson@ximian.com>
34040 * TreeView.cs: Recalculate the tab pages when a new one is added
34041 so that the proper bounding rects are created.
34043 2005-01-14 Jackson Harper <jackson@ximian.com>
34045 * TreeView.cs: Draw a gray box instead of a grip in the lower
34046 right hand corner when there are both horizontal and vertical
34049 2005-01-14 Jackson Harper <jackson@ximian.com>
34051 * Control.cs: When erasing backgrounds use FromHwnd instead of
34052 FromHdc when there is a NULL wparam. This occurs on the X driver.
34053 * XplatUIX11.cs: Set the wparam to NULL.
34055 2005-01-13 Jackson Harper <jackson@ximian.com>
34057 * PictureBox.cs: Implement missing methods (except ToString, need
34058 to test that on windows) and events. When visibility is changed we
34059 need to redraw the image because the buffers are killed. When size
34060 is changed refresh if the sizemode needs it.
34062 2005-01-13 Peter Bartok <pbartok@novell.com>
34064 * Control.cs (SelectNextControl): Was using wrong method to select
34067 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34069 * ComboBox.cs: fixes dropstyle
34071 2005-01-13 Peter Bartok <pbartok@novell.com>
34074 - Implemented Select() override
34075 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
34076 - Now sets keyboard focus on startup
34077 * Control.cs (SelectNextControl): Now properly handles directed=true
34079 - WndProc: Now passes tab key on to base if AcceptTabChar=false
34080 - Added (really bad) focus rectangle (mostly for testing)
34081 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
34082 to enforce redraw on focus changes
34083 * ContainerControl.cs:
34084 - Fixed detection of Shift-Tab key presses
34085 - Fixed traversal with arrow keys
34086 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
34087 gonna keep this or if it's complete yet
34089 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
34091 * ComboBox.cs: missing properties, fixes
34093 2005-01-13 Peter Bartok <pbartok@novell.com>
34095 * Panel.cs (ctor): Setting Selectable window style to off
34096 * Splitter.cs (ctor): Setting Selectable window style to off
34097 * GroupBox.cs (ctor): Setting Selectable window style to off
34098 * Label.cs (ctor): Setting Selectable window style to off
34100 2005-01-12 Miguel de Icaza <miguel@ximian.com>
34102 * UpDownBase.cs (InitTimer): If the timer has been already
34103 created, enable it.
34105 Use a TextBox instead of a Label.
34107 2005-01-12 Jackson Harper <jackson@ximian.com>
34109 * TreeView.cs: Refresh the tree after sorting the nodes. Always
34110 draw the connecting node lines (when ShowLines is true).
34111 * TreeNode.cs: The nodes index can now be updated. This is used
34112 when a node collection is sorted.
34113 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
34114 insert or an existing unsorted node collection can be sorted.
34116 2005-01-12 Peter Bartok <pbartok@novell.com>
34118 * ContainerControl.cs: Implemented ProcessDialogKeys()
34120 2005-01-12 Peter Bartok <pbartok@novell.com>
34123 - Implemented SelectNextControl() method
34124 - Several focus related bug fixes
34125 - Fixed Docking calculations to match MS documentation and
34128 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
34130 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
34133 2005-01-12 Peter Bartok <pbartok@novell.com>
34136 - Fixed broken Contains() method
34137 - Implemented GetNextControl() method. Finally. This is the pre-
34138 requisite for focus handling.
34140 2005-01-12 Peter Bartok <pbartok@novell.com>
34142 * OSXStrucs.cs: Added
34144 2005-01-12 Peter Bartok <pbartok@novell.com>
34147 - Removed PeekMessageFlags
34148 - Implemented SetWindowStyle() method
34149 * XplatUIStructs.cs: Added PeekMessageFlags
34150 * X11Structs: Added missing border_width field to XWindowChanges struct
34152 - PeekMessage: Now throws exception if flags which are not yet
34153 supported are passed
34154 - Implemented SetWindowStyle() method
34155 - Fixed SetZOrder to handle AfterHwnd properly
34156 * XplatUI.cs: Added SetWindowStyle() method
34157 * XplatUIDriver.cs: Added SetWindowStyle() abstract
34159 - Implemented UpdateStyles() method
34160 - Implemented UpdateZOrder() method
34161 * XplatUIOSX.cs: Added SetWindowStyle() stub
34163 2005-01-12 Geoff Norton <gnorton@customerdna.com>
34165 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
34169 2005-01-11 Jackson Harper <jackson@ximian.com>
34171 * TreeView.cs: Still need to draw lines to siblings even if out of
34172 the current node is out of the clip.
34174 2005-01-11 Jackson Harper <jackson@ximian.com>
34176 * TreeView.cs: When setting the hbar/vbar/grip position use
34177 SetBounds so that perform layout is only called once. Also suspend
34178 and resume layout so layout is only done once for all controls.
34179 - Removed some debug fluff
34180 * SizeGrip.cs: Call base implmentation in overriding methods.
34181 - When visibility is changed the drawing buffers are killed so we
34184 2005-01-11 Jackson Harper <jackson@ximian.com>
34186 * TreeView.cs: Calculate the open node count while drawing. This
34187 saves us an entire tree traversal for every paint operation. Use
34188 a member var for the open node count so less vars are passed around.
34190 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
34192 * MonthCalendar.cs:
34193 - fixed selection to use mousemove, not mouse polling on timer
34194 * ThemeWin32Classic.cs
34195 - removed redundant unused variable "no_more_content"
34197 2005-01-11 Peter Bartok <pbartok@novell.com>
34199 * XplatUIX11.cs (DoEvents): Needs to return when no more events
34200 are pending, so it now calls PeekMessage instead of GetMessage;
34201 implemented a incomplete version of PeekMessage
34203 2005-01-11 Peter Bartok <pbartok@novell.com>
34205 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
34207 * TextBoxBase.cs: Added sending of TextChanged event
34209 2005-01-10 Jackson Harper <jackson@ximian.com>
34211 * TreeView.cs: Try not to draw outside the clipping rectangle on
34214 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
34216 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
34218 2005-01-10 Jackson Harper <jackson@ximian.com>
34221 - Implement fast scrolling. Now only the newly
34222 exposed nodes are drawn and the old image is moved using the
34223 XplatUI::ScrollWindow method.
34224 - Factor in height of nodes when calculating whether or not the
34225 node is in the clipping rect.
34227 2005-01-10 Jackson Harper <jackson@ximian.com>
34229 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
34231 2005-01-10 Peter Bartok <pbartok@novell.com>
34233 * Application.cs: Added temporary hack to resolve all our resize
34234 required issues on startup. This will get fixed properly at
34235 some point in the future
34237 2005-01-10 Jackson Harper <jackson@ximian.com>
34239 * SizeGrip.cs: New internal class that is used as a sizing
34240 grip control...hence the name.
34242 2005-01-10 Peter Bartok <pbartok@novell.com>
34244 * Control.cs: Implemented proper TabIndex handling, now assigning
34245 a tabindex when a control is added to a container
34246 * GroupBox.cs (ctor): Now sets the Container style bit, required
34247 for Control.GetNextControl()
34249 2005-01-09 Jackson Harper <jackson@ximian.com>
34251 * TextBoxBase.cs: Clear window when scrolling (fixes build).
34253 2005-01-09 Peter Bartok <pbartok@novell.com>
34255 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34256 XplatUIX11.cs: Added ability to control ScrollWindow expose and
34257 an overload for ScrollWindow to allow only scrolling a rectangle
34259 2005-01-09 Peter Bartok <pbartok@novell.com>
34262 - Implemented SetDesktopBounds method
34263 - Implemented SetDesktopLocation method
34265 2005-01-08 Jackson Harper <jackson@ximian.com>
34267 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
34268 the node count has changed, this removes to VScroll::Refresh calls
34271 2005-01-08 Geoff Norton <gnorton@customerdna.com>
34273 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
34275 2005-01-07 Jackson Harper <jackson@ximian.com>
34277 * TreeNode.cs: Just update the single node when it is
34278 checked. Don't refresh after toggling, the Expand/Collapse already
34280 * TreeView.cs: Respect clipping a little more when drawing. Try
34281 not to redraw things that don't need to be redrawn. Just hide the
34282 scrollbars when they are no longer needed instead of removing
34283 them, so they don't have to be created again and again.
34285 2005-01-07 Geoff Norton <gnorton@customerdna.com>
34287 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
34288 coordinates to window space to place the caret properly, FIXED.
34289 Implement GetWindowState & SetWindowState
34291 2005-01-06 Peter Bartok <pbartok@novell.com>
34294 - Implemented ClientSize property
34295 - Implemented DesktopBounds property
34296 - Implemented DesktopLocation property
34297 - Implemented IsRestrictedWindow property
34298 - Implemented Size property
34299 - Implemented TopLevel property
34300 - Implemented FormWindowState property
34302 - Implemented GetTopLevel() method
34303 - Implemented SetTopLevel() method
34304 * X11Structs.cs (Atom):
34305 - Added AnyPropertyType definition
34306 - Added MapState definiton and updated XWindowAttribute struct
34307 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
34308 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
34309 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34311 - Implemented GetWindowState() and SetWindowState() methods
34312 - Fixed Win32GetWindowLong return type
34314 - Introduced central function for sending NET_WM messages
34315 - Implemented GetWindowState() and SetWindowState() methods
34316 * TextBoxBase.cs (set_Lines):
34317 - Now uses Foreground color for text added via Text property (Duh!)
34318 - Added code to remember programmatically requested size (fixes
34319 behaviour when Multiline is set after Size)
34320 - Added AutoSize logic
34322 2005-01-06 Jackson Harper <jackson@ximian.com>
34324 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34326 2005-01-06 Jackson Harper <jackson@ximian.com>
34328 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34329 set to less then 0.
34331 2005-01-06 Jackson Harper <jackson@ximian.com>
34333 * ScrollableControl.cs: Lazy init the scrollbars.
34335 2005-01-06 Jackson Harper <jackson@ximian.com>
34337 * Theme.cs: Speed up getting pens and solid brushes, by using
34338 their ARGB as a hash instead of tostring and not calling Contains.
34340 2005-01-06 Peter Bartok <pbartok@novell.com>
34343 - Implemented OnActivated and OnDeactivate event trigger
34344 - Implemented Activate() method
34345 - Fixed ShowDialog() to activate the form that was active before
34346 the dialog was shown
34348 - Added global active_window var that tracks the currently active
34350 - Now always grabs Property changes from the root window to always
34351 catch changes on the active window property
34352 - Added code to PropertyNotify handler to send Active/Inactive
34353 messages when state changes. This puts X11 and Win32 en par on
34354 WM_ACTIVATE notifications (except for double notifications when
34355 the user clicks away from our modal window to another one of our
34358 2005-01-05 Jackson Harper <jackson@ximian.com>
34360 * ImageList.cs: Implment ctor
34362 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34364 * XplatUIOSX.cs: Implement Activate/SetTopmost
34366 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34368 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34370 2005-01-05 Geoff Norton <gnorton@customerdna.com>
34372 * XplatUIOSX.cs: Implement GetActive/SetFocus.
34374 2005-01-05 Peter Bartok <pbartok@novell.com>
34376 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34377 XplatUIOSX.cs: Added GetActive method to return the currently
34378 active window for the application (or null, if none is active)
34380 - Implemented ActiveForm
34381 - Commented out owner assignment for modal dialogs (causes problems
34382 on Win32, since the owner will be disabled)
34383 - Reworked some Active/Focus handling (still incomplete)
34384 * CommonDialog.cs: Commented out owner assignment for modal dialogs
34385 (causes problems on Win32, since the owner will be disabled)
34386 * IWin32Window: Added ComVisible attribute
34388 2005-01-05 Peter Bartok <pbartok@novell.com>
34390 * ToolTip.cs (WndProc): Enable setting focus now that we have the
34391 required XplatUI functions.
34393 2005-01-05 Peter Bartok <pbartok@novell.com>
34395 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34396 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34397 to implement focus and activation handling; still incomplete and
34400 2005-01-04 Peter Bartok <pbartok@novell.com>
34402 * TextBoxBase.cs: Changed access level for Document property to
34403 match switch to internal for TextControl
34405 2005-01-04 Peter Bartok <pbartok@novell.com>
34407 * AccessibleObject: Added ComVisible attribute
34409 2005-01-04 Jackson Harper <jackson@ximian.com>
34411 * X11Keyboard.cs: Remove unneeded var.
34413 2005-01-04 Jackson Harper <jackson@ximian.com>
34415 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34417 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34418 ClientMessage. This makes apps exit cleanly (more often).
34420 2005-01-04 Jackson Harper <jackson@ximian.com>
34422 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34423 handling focus, return correct colors and fonts,
34424 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34425 handle selection, horizontal scrolling, and mouse interaction.
34427 2005-01-04 Peter Bartok <pbartok@novell.com>
34429 * ICommandExecutor.cs: Added
34430 * IDataGridColumnStyleEditingNotificationService.cs: Added
34431 * IFeatureSupport.cs: Added
34432 * IFileReaderService.cs: Added
34433 * IDataObject.cs: Added ComVisible attribute
34434 * AmbientProperties.cs: Added
34435 * BaseCollection.cs: Added missing attributes
34436 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34437 * BaseCollection.cs: Added missing attributes
34438 * Binding.cs: Added TypeConverter attribute
34439 * BindingContext.cs: Added DefaultEvent attribute
34440 * BindingsCollection.cs: Added DefaultEvent attribute
34441 * Button.cs: Added DefaultValue attribute
34442 * DragEventArgs.cs: Added ComVisible attribute
34443 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34444 * KeyEventArgs.cs: Added ComVisible attribute
34445 * KeyPressEventArgs.cs: Added ComVisible attribute
34446 * MouseEventArgs.cs: Added ComVisible attribute
34447 * NavigateEventArgs.cs: Added
34448 * NavigateEventHandler.cs: Added
34449 * FeatureSupport.cs: Added
34450 * OSFeature.cs: Added
34451 * Theme.cs: Added abstract Version property to support OSFeature
34452 * ThemeWin32Classic.cs: Added Version property to
34453 support OSFeature.Themes
34454 * ProgressBar.cs: Removed OnPaintBackground override, not required since
34455 the proper styles to avoid background drawing are set, also doesn't
34457 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34458 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34459 * ScrollEventArgs.cs: Added ComVisible attribute
34460 * SplitterEventArgs.cs: Added ComVisible attribute
34461 * AccessibleSelection.cs: Added Flags attribute
34462 * Appearance.cs: Added ComVisible attribute
34463 * Border3DSide.cs: Added ComVisible attribute
34464 * Border3DStyle.cs: Added ComVisible attribute
34465 * BorderStyle.cs: Added ComVisible attribute
34466 * DragAction.cs: Added ComVisible attribute
34467 * ErrorBlinkStyle.cs: Added
34468 * ScrollEventType.cs: Added ComVisible attribute
34469 * AnchorStyles.cs: Added Editor attribute
34470 * DockStyle.cs: Added Editor attribute
34471 * HorizontalAlignment.cs: Added ComVisible attribute
34472 * HelpEventArgs.cs: Added ComVisible attribute
34473 * PaintEventArgs.cs: Added IDisposable
34475 2005-01-04 Peter Bartok <pbartok@novell.com>
34477 * TextControl.cs: Switched Line, LineTag and Document classes to
34480 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34482 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34483 Simple mode, fixes, IntegralHeight, etc.
34485 2005-01-04 Peter Bartok <pbartok@novell.com>
34487 * TextBoxBase.cs: Using proper font variable now
34489 2005-01-04 Peter Bartok <pbartok@novell.com>
34491 * Form.cs (ShowDialog): Set parent to owner, if provided
34492 * GroupBox.cs: Removed unused vars
34494 - Added GetHashCode() for Document and LineTag classes
34495 - Removed unused variables
34496 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34497 to allow translation between continuous char position and line/pos
34498 * CheckBox.cs: Removed vars that are provided by base class
34499 * RadioButton.cs: Removed vars that are provided by base class, added
34500 new keyword where required
34501 * LinkLabel.cs: Added new keyword where required
34502 * Control.cs (WndProc): Removed unused variable
34504 - Finished SelectionLength property
34505 - Implemented SelectionStart property
34506 - Implemented Text property
34507 - Removed unused vars
34508 * MessageBox.cs: Added new keyword where required
34509 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34511 * MenuAPI.cs: Added new keyword where required
34512 * ButtonBase.cs: Removed vars that are provided by base class, added
34513 new keyword where required
34514 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34515 argument to double, to allow compiling with csc 2.0 (Atsushi ran
34517 * Application.cs (Run): Now triggers the ThreadExit event
34518 * CommonDialog.cs: Added new keyword where required; now properly sets
34519 parent (owner) for dialog
34520 * XplatUIX11.cs: Commented out unused vars
34521 * StatusBar.cs: Fixed signature for Text property
34522 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34524 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
34526 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34527 TrackBar.cs, MonthCalendar.cs: remove unused vars
34529 2005-01-03 Jackson Harper <jackson@ximian.com>
34531 * ThemeWin32Classic.cs:
34532 * X11Keyboard.cs: Remove unused vars.
34534 2005-01-03 Peter Bartok <pbartok@novell.com>
34537 - set_Text: Tied into TextControl
34538 - set_TextAlignment: Tied into TextControl
34540 - Added alignment properties and implemented alignment handling
34541 and drawing (still has a bug, not generating proper expose events)
34542 - Added new Line() constructor to allow passing the line alignment
34543 - Fixed selection setting, properly handling end<start now
34544 - Added aligment considerations to RecalculateDocument()
34546 - Now properly enforces control height for single line controls
34547 - Added support for CharacterCasing
34548 - Added IsInputKey override
34549 - Fixed Keys.Enter logic
34550 - Added SetBoundsCore override
34551 - Fixed mouse selection handling
34553 2005-01-03 Jackson Harper <jackson@ximian.com>
34556 - Collapse and uncheck all nodes when CheckBoxes is disabled.
34557 - Checkboxes are always aligned to the bottom of the node,
34558 regardless of item height.
34559 - Use the node bounds to draw the text so we can center it when
34560 the item height is greater then the font height.
34561 - Node::Bounds are only the text part of the node.
34562 * TreeNode.cs: New method to combine collapsing and unchecking all
34565 2005-01-02 Jackson Harper <jackson@ximian.com>
34567 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34568 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34569 tree when a check is changed. TODO: Only refresh the checked node.
34571 2004-12-30 Jackson Harper <jackson@ximian.com>
34573 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34574 * TreeNode.cs: When collapsing make sure to never collapse the
34577 2004-12-29 Jackson Harper <jackson@ximian.com>
34579 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34581 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
34583 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34585 2004-12-28 Peter Bartok <pbartok@novell.com>
34587 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34590 2004-12-28 Peter Bartok <pbartok@novell.com>
34592 * Control.cs (WndProc): Added WM_HELP handler, now generates
34593 HelpRequested event
34594 * Form.cs: Added HelpButton property and required support code
34595 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34597 2004-12-28 Peter Bartok <pbartok@novell.com>
34600 - Made DialogForm.owner variable internal
34601 - Added check to ensure owner form is set before setting
34602 owner properties in CreateParams
34604 2004-12-28 Geoff Norton <gnorton@customerdna.com>
34606 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
34607 swizzling. Implement ClientToScreen and ScreenToClient. Implement
34608 GetCursorPos. Fix major visibility issues. Rework the windowing
34609 system to support borderless/titleless windows (implements menus).
34610 Fix GetWindowPos. Implement initial background color support for
34613 2004-12-28 Peter Bartok <pbartok@novell.com>
34615 * Form.cs (get_CreateParams): Make sure we have an owner before using
34616 the owner variable. Implement proper default if no owner exists
34618 2004-12-28 Peter Bartok <pbartok@novell.com>
34620 * In preparation for making Managed.Windows.Forms the default build target
34621 for System.Windows.Forms, the following stubbed files were added.
34622 Dialogs are currently being implemented by contributors and are only
34623 short-term place holders.
34624 * ColorDialog.cs: Initial check-in (minmal stub)
34625 * DataGrid.cs: Initial check-in (minimal stub)
34626 * DataGridLineStyle.cs: Initial check-in (minimal stub)
34627 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34628 * DataGridTableStyle.cs: Initial check-in (minimal stub)
34629 * FontDialog.cs: Initial check-in (minimal stub)
34630 * FileDialog.cs: Initial check-in (minimal stub)
34631 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34632 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34633 * OpenFileDialog: Initial check-in (minimal stub)
34634 * IComponentEditorPageSite.cs: Initial check-in
34635 * Splitter.cs: Initial check-in (for Jackson)
34636 * SplitterEventArgs.cs: Initial check-in (for Jackson)
34637 * SplitterEventHandler.cs: Initial check-in (for Jackson)
34638 * TextBox.cs: Initial check-in; still needs some wiring to
34639 TextControl backend
34640 * Form.cs: Implemented ControlBox property
34641 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34642 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34643 * TextControl.cs: Added selection functionality; added todo header
34645 - Implemented Lines property
34646 - Implemented TextHeight property
34647 - Implemented SelectedText property
34648 - Implemented SelectionLength property
34649 - Implemented SelectAll method
34650 - Implemented ToString method
34651 - Removed and cleaned up some debug code
34652 - Implemented (still buggy) mouse text selection
34654 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
34656 * ComboBox.cs: Complete DropDownList implementation, fixes.
34658 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
34660 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34661 * ComboBoxStyle.cs: ComboBoxStyle enum
34662 * ComboBox.cs: Initial work on ComboBox control
34664 2004-12-21 Peter Bartok <pbartok@novell.com>
34666 * Control.cs (ctor, CreateParams): Moved setting of is_visible
34667 forward so that anything that creates a window gets the default,
34668 also no longer uses Visible property in CreateParams to avoid
34669 walking up the parent chain and possibly get the wrong visible
34670 status. Fixed IsVisible to no longer walk up to the parent.
34672 2004-12-21 Peter Bartok <pbartok@novell.com>
34674 * Form.cs (ShowDialog): Unset modality for the proper window
34676 2004-12-20 Peter Bartok <pbartok@novell.com>
34678 * CommonDialog.cs: Initial check-in
34680 2004-12-20 Peter Bartok <pbartok@novell.com>
34682 * Control.cs (Visible): Now uses the parent window instead of the
34683 client area window for the property
34686 - ShowDialog(): Now uses the proper window for modality
34687 - The default visibility state for the form parent is now false. This
34688 will prevent the user from seeing all the changes to the form and
34689 its controls before the application hits Application.Run()
34690 - Removed some stale commented out code
34693 - Added FindWindow() method to have a method to check for existence
34695 - Added ability to override default exception handling (for example
34696 when debugging with VS.Net; to do this the ExternalExceptionHandler
34698 - Removed some useless debug output
34701 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34702 not working as expected
34703 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34704 property to allow switching back to the modal window if focus is
34705 given to another one of our windows (Application Modal)
34706 - Now only sets override_redirect if we create a window
34708 - Moved EventMask selection before mapping of newly created window
34709 so we can catch the map event as well
34710 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
34711 - Added various Atom related DllImports
34712 - Implemented Exit() method
34713 - .ctor() : No longer shows window if WS_VISIBLE is not defined
34714 in the CreateParams
34716 * MessageBox.cs: Now properly deals with the FormParent window by
34717 providing an override the FormParent CreateParams property to
34718 set as POPUP instead of OVERLAPPED window.
34720 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34722 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
34723 Minor code cleanup.
34725 2004-12-19 Geoff Norton <gnorton@customerdna.com>
34727 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
34729 2004-12-18 Peter Bartok <pbartok@novell.com>
34731 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
34732 implementing SetModal() method
34734 2004-12-18 Peter Bartok <pbartok@novell.com>
34736 * X11Structs.cs (XGCValues): Fixed type of function element
34737 * XplatUI.cs: Added ScrollWindow() method
34738 * XplatUIDriver.cs: Added ScrollWindow() abstract
34739 * XplatUIWin32.cs: Implemented ScrollWindow() method
34740 * XplatUIX11.cs: Implemented ScrollWindow() method
34741 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
34743 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34745 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
34746 Some more keyboard support (INCOMPLETE)
34748 2004-12-17 Peter Bartok <pbartok@novell.com>
34751 - Added color attribute to line tags.
34752 - Added color argument to all functions dealing with tags
34753 - Added color argument support to various functions
34754 - Fixed miss-calculation of baseline/shift in certain circumstances
34756 * TextBoxBase.cs: Added new color option to test code
34758 2004-12-17 Jackson Harper <jackson@ximian.com>
34761 * MonthCalendar.cs: Signature fixes
34763 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34765 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
34766 keyboard event moved it. Create a new graphics context for each paint resolves this
34768 2004-12-17 Geoff Norton <gnorton@customerdna.com>
34770 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
34771 Make caret exist and go blink blink. Initial keyboard support.
34772 Fix exception handler, Add Invalidate support. Change way RefreshWindow
34775 2004-12-17 Jackson Harper <jackson@ximian.com>
34777 * XplatUIStructs.cs: Updated set of virtual keycodes.
34778 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
34780 2004-12-17 Jackson Harper <jackson@ximian.com>
34782 * XplatUIX11.cs: Prune old keyboard code.
34784 2004-12-17 Jackson Harper <jackson@ximian.com>
34786 * XplatUIX11.cs: When generating mouse wparams get the modifier
34787 keys from the ModifierKeys property.
34789 2004-12-17 Jackson Harper <jackson@ximian.com>
34791 * X11Keyboard.cs: Send up/down input when generating
34792 messages. Remove some unused vars.
34794 2004-12-17 Jackson Harper <jackson@ximian.com>
34797 * TreeView.cs: get rid of warnings.
34799 2004-12-17 Jackson Harper <jackson@ximian.com>
34801 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
34803 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
34805 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
34806 CheckedListBox.cs: Implementation
34808 2004-12-17 Peter Bartok <pbartok@novell.com>
34810 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
34812 2004-12-16 Peter Bartok <pbartok@novell.com>
34815 - InsertCharAtCaret(): Fixed start pos fixup
34816 - CaretLine_get: No longer derives the line from the tag, the tag
34817 could be stale if lines in the document have been added or deleted
34818 - RebalanceAfterDelete(): Fixed bug in balancing code
34819 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
34820 - Line.Streamline(): Now can also elminate leading empty tags
34821 - DumpTree(): Added a few more tests and prevented exception on
34823 - Added Debug section for Combining lines
34824 - Delete(): Now copies all remaining properties of a line
34827 - Left mousebutton now sets the caret (and middle button still acts
34828 as formatting tester, which must go away soon)
34829 - Added Debug section for Deleting/Combining lines
34830 - Fixed calculations for UpdateView after Combining lines
34832 2004-12-16 Peter Bartok <pbartok@novell.com>
34834 * TextControl.cs: Now properly aligns text on a baseline, using the
34835 new XplatUI.GetFontMetrics() method. Simplified several calculations
34836 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
34839 2004-12-16 Peter Bartok <pbartok@novell.com>
34841 * XplatUI.cs: Added GetFontMetrics() method
34842 * XplatUIDriver.cs: Added GetFontMetrics() abstract
34843 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
34844 into libgdiplus, our private GetFontMetrics function
34845 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
34846 * XplatUIWin32.cs: Implemented GetFontMetrics() method
34848 2004-12-16 Jackson Harper <jackson@ximain.com>
34850 * XplatUIStruct.cs: Add enum for dead keys
34851 * X11Keyboard.cs: Map and unmap dead keys.
34853 2004-12-16 Jackson Harper <jackson@ximian.com>
34855 * X11Keyboard.cs: Detect and use the num lock mask.
34857 2004-12-16 Peter Bartok <pbartok@novell.com>
34859 * Control.cs (CreateGraphics): Added check to make sure the
34860 handle of the window exists before calling Graphics.FromHwnd()
34862 2004-12-16 Peter Bartok <pbartok@novell.com>
34864 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
34865 contains a lot of code that's not supposed to be there for the
34866 real thing, but required for developing/testing the textbox
34869 2004-12-16 Peter Bartok <pbartok@novell.com>
34872 - Fixed Streamline method
34873 - Added FindTag method to Line
34874 - Added DumpTree method for debugging
34875 - Added DecrementLines() method for deleting lines
34876 - Fixed UpdateView to update the cursor to end-of-line on single-line
34878 - Added PositionCaret() method
34879 - Fixed MoveCaret(LineDown) to move into the last line, too
34880 - Added InsertChar overload
34881 - Fixed InsertChar tag offset calculations
34882 - Added DeleteChar() method
34883 - Added Combine() method for folding lines
34884 - Fixed Delete() method, no longer allocates wasted Line object and
34885 now copies all properties when swapping nodes
34886 - Delete() method now updates document line counter
34888 2004-12-15 Jackson Harper <jackson@ximian.com>
34890 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
34891 * X11Keyboard.cs: Expose the currently selected modifier keys
34892 through a property.
34894 2004-12-15 Peter Bartok <pbartok@novell.com>
34896 * TextControl.cs: Initial check-in. Still incomplete
34898 2004-12-15 Jackson Harper <jackson@ximian.com>
34901 * TreeView.cs: Fix build on csc (second time today ;-))
34903 2004-12-15 Jackson Harper <jackson@ximian.com>
34905 * TreeView.cs: Store the treenodes plus/minus box bounds when it
34906 is calculated and use this for click testing.
34907 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
34909 2004-12-15 Jackson Harper <jackson@ximian.com>
34911 * TreeView.cs: Pass the nodes image index to the image list when
34912 drawing that image.
34914 2004-12-15 Jackson Harper <jackson@ximian.com>
34916 * X11Keyboard.cs: Set messages hwnd.
34917 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
34918 post_message calls.
34920 2004-12-15 Jackson Harper <jackson@ximian.com>
34922 * X11Keyboard.cs: Fix to compile with csc.
34924 2004-12-15 Jackson Harper <jackson@ximian.com>
34926 * X11Structs.cs: Add key mask values
34927 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
34928 * X11Keyboard.cs: New file - Extrapolates and interpolates key
34929 down/up foo into WM_CHAR foo
34930 * KeyboardLayouts.cs: Common keyboard layouts
34931 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
34932 post messages into the main queue.
34934 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
34936 * Button.cs: implement ProcessMnemonic
34937 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
34939 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
34940 * ButtonBase.cs: Show HotkeyPrefix (not the &)
34942 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
34944 * MonthCalendar.cs: Implemented click-hold for next/previous month
34947 2004-12-11 Peter Bartok <pbartok@novell.com>
34950 - Added XKeyboardState (moved from XplatUIX11.cs)
34951 - Added XCreateGC related enums and structures
34952 - Added GXFunction for XSetFunction
34954 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
34956 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
34957 CaretVisible() calls
34959 * ToolTip.cs: Added code to prevent stealing focus from app windows
34961 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
34962 DestroyCaret, SetCaretPos and CaretVisible)
34965 - Added implementation for caret functions
34966 - Moved hover variables into a struct, to make it a bit easier
34967 on the eyes and to debug
34968 - Removed XKeyboardState (moved to XplatUIX11.cs)
34969 - Moved Keyboard properties into the properties region
34971 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
34972 call to get a graphics context for our control
34974 * XplatUIOSX.cs: Added empty overrides for the new caret functions
34976 * TreeView.cs: Fixed bug. No matter what color was set it would always
34977 return SystemColors.Window
34979 * XplatUIWin32.cs: Implemented caret overrides
34981 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
34983 * ListBox.cs: fire events, implement missing methods and properties,
34986 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
34988 * MonthCalendar.cs: invalidation bug fixing
34989 * ThemeWin32Classic.cs: paint fixing
34991 2004-12-09 Geoff Norton <gnorton@customerdna.com>
34993 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
34994 prepare the CGContextRef there now.
34996 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
34998 * MonthCalendar.cs:
34999 - optimisationL only invalidate areas that have changed
35000 * ThemeWin32Classic.cs:
35001 - only paint parts that intersect with clip_area
35003 2004-12-09 Peter Bartok <pbartok@novell.com>
35005 * Application.cs: Undid changes from r37004 which cause problems
35008 2004-12-09 Ravindra <rkumar@novell.com>
35010 * ToolBar.cs: Added support for displaying ContextMenu
35011 attached to a button on ToolBar.
35012 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
35015 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35017 * Label.cs: autosize works in text change and removes unnecessary
35020 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
35022 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35025 2004-12-08 Geoff Norton <gnorton@customerdna.com>
35027 * XplatUIOSX.cs: Added mouse move/click/grab support
35028 Remove some debugging WriteLines not needed anymore.
35029 Add window resizing/positioning.
35030 Fix visibility on reparenting.
35032 2004-12-08 Peter Bartok <pbartok@novell.com>
35034 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
35036 2004-12-07 Geoff Norton <gnorton@customerdna.com>
35038 * XplatUIOSX.cs: Initial checkin
35039 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
35041 2004-12-03 Ravindra <rkumar@novell.com>
35043 * ListView.cs: Added some keybindings and fixed scrolling.
35044 ScrollBars listen to ValueChanged event instead of Scroll
35045 Event. This would let us take care of all changes being
35046 done in the scrollbars' values programmatically or manually.
35047 * ListView.cs (CanMultiselect): Added a check for shift key.
35048 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
35049 * ListViewItem.cs (Clone): Fixed. We need to make a copy
35050 of ListViewSubItemCollection as well.
35052 2004-12-06 Peter Bartok <pbartok@novell.com>
35054 * Control.cs (Parent): Added check and exception to prevent
35057 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
35059 * ListBox.cs: implemented clipping, selection single and multiple,
35062 2004-12-03 Ravindra <rkumar@novell.com>
35064 * ListView.cs (ListView_KeyDown):
35065 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
35066 when CTRL key is pressed.
35067 * ListViewItem.cs (Selected): Fixed setting the property.
35069 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35071 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
35073 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
35074 MinimizeBox, ShowInTaskbar, TopMost properties.
35076 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
35077 will be implemented).
35079 2004-12-03 Marek Safar <marek.safar@seznam.cz>
35081 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
35083 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
35086 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
35088 * TreeView.cs: BackColor is Colors.Window.
35090 2004-12-01 Jackson Harper <jackson@ximian.com>
35092 * TreeView.cs: When resizing the tree if the user is making it
35093 smaller we don't get expose events, so we need to handle adding
35094 the horizontal scrollbar in the size changed handler as well as
35095 the expose handler.
35097 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
35099 * DrawItemState.cs: fixes wrong enum values
35101 2004-12-01 Jackson Harper <jackson@ximian.com>
35103 * TreeView.cs: Resize the hbar as well as the vbar on resize.
35105 2004-12-01 Jackson Harper <jackson@ximian.com>
35107 * NodeLabelEditEventArgs.cs:
35108 * NodeLabelEditEventHandler.cs:
35109 * OpenTreeNodeEnumerator.cs:
35111 * TreeNodeCollection.cs:
35113 * TreeViewAction.cs:
35114 * TreeViewCancelEventArgs.cs:
35115 * TreeViewCancelEventHandler.cs:
35116 * TreeViewEventArgs.cs:
35117 * TreeViewEventHandler.cs: Initial implementation.
35119 2004-12-01 Ravindra <rkumar@novell.com>
35121 * ListView.cs (CalculateListView): Fixed scrolling related
35122 calculations. Also, removed some debug statements from other
35124 * ListViewItem.cs: Changed access to 'selected' instance variable
35125 from private to internal.
35126 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
35128 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
35130 * ThemeWin32Classic.cs: remove cache of brush and pens for
35131 specific controls and use the global system, fixes scrollbutton
35132 bugs (for small sizes, disabled, etc)
35134 * ScrollBar.cs: does not show the thumb for very small controls
35135 (as MS) and allow smaller buttons that the regular size
35137 2004-12-01 Miguel de Icaza <miguel@ximian.com>
35139 * UpDownBase.cs: Add abstract methods for the interface.
35140 Add new virtual methods (need to be hooked up to TextEntry when it
35142 Add override methods for most features.
35143 Computes the size, forces the height of the text entry.
35145 * NumericUpDown.cs: Put here the current testing code.
35147 * Set eol-style property on all files that do not have mixed line
35148 endings, to minimize the future problems. There are still a few
35149 files with mixed endings, and someone should choose whether they
35150 want to move it or not.
35152 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
35154 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
35157 2004-11-30 Ravindra <rkumar@novell.com>
35159 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
35160 drawing and replaced use of SystemColors by theme colors.
35161 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
35162 * ListView.cs (ListViewItemCollection.Add): Throw exception when
35163 same ListViewItem is being added more than once.
35165 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
35167 * MonthCalendar.cs:
35168 - ControlStyles love to make the control not flicker
35170 2004-11-30 Peter Bartok <pbartok@novell.com>
35172 * CharacterCasing.cs: Added
35174 2004-11-29 Peter Bartok <pbartok@novell.com>
35176 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35177 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
35178 I am removing these files as they conflict with already completed
35179 work. While it is fantastic to get contributions to MWF, I
35180 respectfully ask that everyone please coordinate their contributions
35181 through mono-winforms-list or #mono-winforms at this time. We're
35182 explicitly avoiding stubbing and don't want controls that don't have
35183 their basic functionality implemented in svn. Please also see
35184 http://www.mono-project.com/contributing/winforms.html
35187 2004-11-29 Marek Safar <marek.safar@seznam.cz>
35189 * Application.cs (ModalRun): Don't hang after exit.
35191 * Theme.cs: New TreeViewDefaultSize property.
35193 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
35194 with less hardcoded SystemColors constant.
35195 Implemented TreeViewDefaultSize.
35197 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
35198 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
35201 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
35203 * MonthCalendar.cs:
35204 - Fix NextMonthDate and PrevMonthDate click moving calendar
35206 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35208 * MonthCalendar.cs:
35209 - Fix usage of ScrollChange Property when scrolling months
35211 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
35213 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
35214 - Fixes menu destroying
35215 - Support adding and removing items on already created menus
35217 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
35219 * MonthCalendar.cs:
35220 - Re-worked all bolded dates handling to match win32
35221 * ThemeWin32Classic.cs:
35222 - Fixed rendering with bolded dates
35224 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
35226 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
35227 - Horizontal scroolbar
35232 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
35234 * MonthCalendar.cs:
35235 - Fix Usage of MaxSelectionCount from SelectionRange
35236 - Fixed Shift + Cursor Selection
35237 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
35238 - Fixed normal cursor selection to be compat with win32
35239 - Fixed Shift + Mouse Click selection
35241 2004-11-24 Peter Bartok <pbartok@novell.com>
35243 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
35244 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
35246 - CreatedKeyBoardMsg now updates keystate with Alt key
35247 - Added workaround for timer crash to CheckTimers, Jackson will
35248 develop a proper fix and check in later
35249 - Implemented DispatchMessage
35250 - Removed calling the native window proc from GetMessage (call
35251 now moved to DispatchMessage)
35253 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
35254 the keydata (Fixes bug #69831)
35257 - (DispatchMessage): Switched to return IntPtr
35258 - Added DllImport for SetFocus
35260 2004-11-24 Ravindra <rkumar@novell.com>
35262 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
35263 background drawing.
35264 * ListViewItem.cs: Fixed various properties, calculations
35265 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
35266 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
35267 and some internal properties. Fixed MouseDown handler and Paint
35270 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35272 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
35274 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35276 * ContainerControl.cs: correct accidental check in of local changes
35278 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
35280 * ThemeWin32Classic.cs:
35281 - Fixed Drawing Last month in grid (sometimes not showing)
35282 * MonthCalendar.cs:
35283 - Fixed title width calculation bug (makeing title small)
35285 2004-11-23 Peter Bartok <pbartok@novell.com>
35288 - Added generation of WM_MOUSEHOVER event
35289 - Added missing assignment of async_method atom
35290 - Fixed WM_ERASEBKGND; now only redraws the exposed area
35292 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35294 * ThemeWin32Classic.cs:
35295 - Fixed Drawing of today circle when showtodaycircle not set
35296 - fixed drawing of first and last month in the grid (gay dates)
35297 * MonthCalendar.cs:
35298 - Fixed Drawing of today circle
35299 - Fixed drawing of grady dates
35300 - Fixed HitTest for today link when ShowToday set to false
35301 - Fixed DefaultSize to obey ShowToday
35303 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
35305 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
35306 * System.Windows.Forms/Theme.cs
35307 * MonthCalendar.cs: added for MonthCalendar
35308 * SelectionRange.cs: added for MonthCalendar
35309 * Day.cs: added for MonthCalendar: added for MonthCalendar
35310 * DateRangeEventArgs.cs: added for MonthCalendar
35311 * DateRangeEventHandler.cs: added for MonthCalendar
35313 2004-11-22 Ravindra <rkumar@novell.com>
35315 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35318 2004-11-22 Miguel de Icaza <miguel@ximian.com>
35320 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35323 * NumericUpDown.cs: Added new implementation.
35324 * UpDownBase.cs: Added new implementation.
35326 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35329 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35332 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35335 2004-11-21 Miguel de Icaza <miguel@ximian.com>
35337 * Timer.cs (Dispose): Should call the base dispose when
35340 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35342 * ScrollBar.cs: updates thumb position when max, min or increment
35345 2004-11-21 Ravindra <rkumar@novell.com>
35347 * ListView.cs: Implemented item selection, activation and
35348 column header style. Fixed properties to do a redraw, if
35349 required. Added support for MouseHover, DoubleClick, KeyDown
35350 and KeyUp event handling and some minor fixes.
35351 * ListViewItem.cs: Fixed constructor.
35352 * ThemeWin32Classic.cs: Improved drawing for ListView.
35354 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
35356 * ThemeWin32Classic.cs: initial listbox drawing code
35357 * DrawMode.cs: new enumerator
35358 * ListControl.cs: stubbed class
35359 * ListBox.cs: initial implementation
35360 * Theme.cs: new methods definitions
35361 * SelectionMode.cs: new enumerator
35363 2004-11-17 Peter Bartok <pbartok@novell.com>
35365 * XplatUIWin32.cs: Added double-click events to the class style
35366 * Control.cs (WndProc):
35367 - Added handling of click-count to MouseDown/ MouseUp events.
35368 - Added handling of middle and right mouse buttons
35369 - Removed old debug code
35371 2004-11-17 Jackson Harper <jackson@ximian.com>
35373 * XplatUIX11.cs: Use the new Mono.Unix namespace.
35375 2004-11-17 Ravindra <rkumar@novell.com>
35377 * ListView.cs: Added event handling for MouseMove/Up/Down.
35378 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35379 * ThemeWin32Classic.cs: We need to clear the graphics context and
35380 draw column header in a proper state.
35383 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
35385 * Menu.cs: fixes signature
35387 2004-11-16 Peter Bartok <pbartok@novell.com>
35389 * XplatUIX11.cs (GetMessage): Implemented generation of
35390 double click mouse messages
35392 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
35394 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35397 2004-11-11 Peter Bartok <pbartok@novell.com>
35399 * HandleData.cs: Added Visible property
35400 * XplatUIX11.cs (IsVisible): Now uses Visible property from
35402 * XplatUIX11.cs: Removed old debug leftovers
35403 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35404 * Control.cs (WndProc): Removed old debug leftovers,
35405 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35406 needed WM_SIZE handling
35408 2004-11-11 Jackson Harper <jackson@ximian.com>
35410 * OwnerDrawPropertyBag.cs:
35411 * TreeViewImageIndexConverter.cs: Initial implementation
35413 2004-11-10 Jackson Harper <jackson@ximian.com>
35415 * ThemeWin32Classic.cs:
35416 * TabControl.cs: instead of moving tabs by the slider pos just
35417 start drawing at the tab that is offset by the slider. This way
35418 scrolling always moves by exactly one tab.
35420 2004-11-10 Jackson Harper <jackson@ximian.com>
35422 * TabControl.cs: You can only scroll left when the slider has
35423 already ben moved right.
35425 2004-11-10 Jackson Harper <jackson@ximian.com>
35427 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35430 2004-11-10 Jackson Harper <jackson@ximian.com>
35432 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35435 2004-11-09 Jackson Harper <jackson@ximian.com>
35437 * TabControl.cs (CalcXPos): New helper method so we can determine
35438 the proper place to start drawing vertical tabs.
35439 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35441 2004-11-09 Jackson Harper <jackson@ximian.com>
35443 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35444 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35445 and Bottom, left and right are illegal values for this and
35446 multiline is enabled when the alignment is set to left or right.
35447 (DrawTab): Each alignment block should draw the text itself now
35448 because Left requires special love. Also add rendering for Left
35451 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
35453 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35454 does not destroy the windows, removes debugging messages
35456 2004-11-09 jba <jba-mono@optusnet.com.au>
35458 * ThemeWin32Classic.cs
35459 (DrawButtonBase): Fix verticle text rect clipping in windows
35460 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35461 rendering and incorrect text rect clipping
35462 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35463 rendering and incorrect text rect clipping
35465 2004-11-08 Jackson Harper <jackson@ximian.com>
35467 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35468 bottom when they are bottom aligned so the bottoms of the tabs get
35470 * TabControl.cs (DropRow): Move rows up instead of down when the
35471 tab control is bottom aligned.
35473 2004-11-08 13:59 pbartok
35476 - Added handling for various window styles
35477 - Added handling for popup windows
35478 - Added SetTopmost handling
35480 2004-11-08 13:55 pbartok
35483 - Added argument to SetTopmost method
35484 - Fixed broken ClientToScreen function
35486 2004-11-08 13:53 pbartok
35488 * XplatUIStructs.cs:
35489 - Added missing WS_EX styles
35491 2004-11-08 13:53 pbartok
35493 * XplatUI.cs, XplatUIDriver.cs:
35494 - Added argument to SetTopmost
35496 2004-11-08 13:52 pbartok
35499 - Added XSetWindowAttributes structure
35500 - Improved XWindowAttributes structure
35501 - Added SetWindowValuemask enum
35502 - Added window creation arguments enum
35503 - Added gravity enum
35504 - Added Motif hints structure
35505 - Added various Motif flags and enums
35506 - Added PropertyMode enum for property functions
35508 2004-11-08 13:50 pbartok
35511 - Fixed arguments for updated SetTopmost method
35513 2004-11-08 13:49 pbartok
35516 - Fixed arguments for updated SetTopmost function
35517 - Fixed usage of PointToClient
35519 2004-11-08 13:44 pbartok
35522 - Added Clipping of children and siblings
35524 2004-11-08 13:41 pbartok
35527 - Removed SetMenuBarWindow call. We do this in Form.cs
35529 2004-11-08 13:40 jackson
35531 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35532 scrolling jimmi in the correct location with bottom aligned tabs
35534 2004-11-08 13:36 pbartok
35536 * ContainerControl.cs:
35537 - Implemented BindingContext
35538 - Implemented ParentForm
35540 2004-11-08 12:46 jackson
35542 * TabControl.cs: Put bottom rendered tabs in the right location
35544 2004-11-08 07:15 jordi
35546 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35549 2004-11-05 17:30 jackson
35551 * TabControl.cs: When selected tabs are expanded make sure they
35552 don't go beyond the edges of the tab control
35554 2004-11-05 14:57 jackson
35556 * TabControl.cs: Reset show_slider so if the control is resized to
35557 a size where it is no longer needed it's not displayed anymore
35559 2004-11-05 13:16 jackson
35561 * TabControl.cs: Make tab pages non visible when added to the
35564 2004-11-05 12:42 jackson
35566 * TabControl.cs: Implement SizeMode.FillToRight
35568 2004-11-05 12:16 jackson
35570 * Control.cs: Do not call CreateHandle if the handle is already
35573 2004-11-05 11:46 jackson
35575 * TabControl.cs: Remove superflous call to CalcTabRows
35577 2004-11-05 09:07 jackson
35579 * XplatUIX11.cs: Update for Mono.Posix changes
35581 2004-11-05 07:00 ravindra
35583 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35586 2004-11-04 22:47 jba
35588 * ThemeWin32Classic.cs:
35589 - Fix Button rendering for FlatStyle = Flat or Popup
35590 - Fix RadioButton and CheckBox rendering when Appearance = Button
35591 (normal and flatstyle).
35592 - Correct outer rectangle color when drawing focus rectangle
35593 - Adjust button bounds to be 1 px smaller when focused
35594 - Make button not draw sunken 3d border when pushed (windows compat)
35595 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35596 - Offset the text in RadioButton and Checkbox when being rendered as
35598 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35600 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35601 - Fixed disabled text rendering for normally rendered radiobuttons
35603 2004-11-04 10:26 jackson
35605 * TabControl.cs: Recalculate tab rows when resizing
35607 2004-11-04 07:47 jordi
35609 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35610 collection completion, drawing issues, missing features
35612 2004-11-04 05:03 ravindra
35615 - We need to recalculate the Thumb area when
35616 LargeChange/maximum/minimum values are changed.
35617 - We set the 'pos' in UpdatePos() method to minimum, if it's less
35618 than minimum. This is required to handle the case if large_change is
35619 more than max, and use LargeChange property instead of large_change
35621 - We return max+1 when large_change is more than max, like MS does.
35623 2004-11-04 04:29 ravindra
35625 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35626 - Changed default value signatures (prefixed all with ListView).
35627 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35629 - Fixed calculations for ListViewItem and implemented Clone()
35632 2004-11-04 04:26 ravindra
35634 * Theme.cs, ThemeWin32Classic.cs:
35635 - Changed default ListView values signatures (prefixed all with
35637 - Fixed default size values for VScrollBar and HScrollBar.
35638 - Fixed DrawListViewItem method.
35640 2004-11-04 04:05 ravindra
35642 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35644 2004-11-04 04:04 ravindra
35646 * ImageList.cs: Implemented the missing overload for Draw method.
35648 2004-11-03 19:29 jackson
35650 * TabControl.cs: Handle dropping rows on selection properly
35652 2004-11-03 11:59 jackson
35654 * TabControl.cs: remove debug code
35656 2004-11-03 11:52 jackson
35658 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35659 the scrolly widgerywoo
35661 2004-11-02 13:52 jackson
35663 * TabControl.cs: Resize the tab pages and tabs when the tab control
35666 2004-11-02 13:40 jackson
35668 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35669 selected tab to the bottom
35671 2004-11-02 13:39 jackson
35673 * TabPage.cs: Store the tab pages row
35675 2004-11-02 12:33 jordi
35677 * MenuItem.cs: fixes handle creation
35679 2004-11-02 11:42 jackson
35681 * TabControl.cs: signature fix
35683 2004-11-02 08:56 jackson
35685 * TabControl.cs: Calculate whether the tab is on an edge properly.
35686 Remove top secret debugging code
35688 2004-11-01 19:57 jackson
35690 * TabControl.cs: Add click handling, and proper sizing
35692 2004-11-01 19:47 jackson
35694 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35697 2004-11-01 19:39 jackson
35699 * TabPage.cs: add internal property to store the bounds of a tab
35702 2004-10-30 04:23 ravindra
35704 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35707 2004-10-30 04:21 ravindra
35709 * ListView.cs, ListViewItem.cs: Added support for scrolling and
35710 fixed calculations.
35712 2004-10-30 03:06 pbartok
35715 - Removed extension of DllImported libs
35717 2004-10-29 09:55 jordi
35719 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
35720 navigation, itemcollection completion, menu fixes
35722 2004-10-27 22:58 pbartok
35725 - Now throws a nice error message when no X display could be opened
35727 2004-10-26 13:51 jordi
35729 * ListView.cs: removes warning
35731 2004-10-26 03:55 ravindra
35733 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
35734 ThemeWin32Classic.cs: Some formatting for my last checkins.
35736 2004-10-26 03:36 ravindra
35738 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
35739 control and default values.
35741 2004-10-26 03:35 ravindra
35743 * Theme.cs: Added some default values for ListView control.
35745 2004-10-26 03:33 ravindra
35747 * ToolBar.cs: ToolBar should use the user specified button size, if
35748 there is any. Added a size_specified flag for the same.
35750 2004-10-26 03:33 ravindra
35752 * ColumnHeader.cs: Added some internal members and calculations for
35755 2004-10-26 03:32 ravindra
35757 * ListViewItem.cs: Calculations for ListViewItem.
35759 2004-10-26 03:31 ravindra
35761 * ListView.cs: Added some internal members and calculations for
35764 2004-10-22 13:31 jordi
35766 * MenuAPI.cs: speedup menus drawing
35768 2004-10-22 13:16 jackson
35770 * XplatUIX11.cs: Make sure to update exposed regions when adding an
35773 2004-10-22 11:49 jackson
35777 2004-10-22 11:41 jackson
35779 * Control.cs: Check to see if the window should have its background
35780 repainted by X when drawing.
35782 2004-10-22 11:31 jackson
35784 * XplatUIX11.cs: When invalidating areas only use XClearArea if
35785 clear is true, this way we do not get flicker from X repainting the
35788 2004-10-22 11:28 jackson
35790 * XEventQueue.cs: Queue properly
35792 2004-10-21 09:38 jackson
35794 * XEventQueue.cs: Fix access modifier
35796 2004-10-21 09:36 jackson
35798 * XEventQueue.cs: Don't loose messages
35800 2004-10-21 09:22 jackson
35802 * XEventQueue.cs: Don't loose messages
35804 2004-10-20 04:15 jordi
35806 * BootMode.cs: enum need it by SystemInfo
35808 2004-10-19 21:58 pbartok
35811 - Small sanity check
35813 2004-10-19 21:56 pbartok
35816 - Added private FormParentWindow class which acts as the container
35817 for our form and as the non-client area where menus are drawn
35818 - Added/Moved required tie-ins to Jordi's menus
35819 - Fixed/Implemented the FormStartPosition functionality
35821 2004-10-19 21:52 pbartok
35824 - Removed unneeded locals
35825 - Added code to all size and location properties to understand and
35826 deal with the parent container of Form
35828 2004-10-19 21:33 pbartok
35831 - Fixed to deal with new Form subclasses for menus
35833 2004-10-19 17:48 jackson
35835 * XEventQueue.cs: commit correct version of file
35837 2004-10-19 16:50 jackson
35839 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
35841 2004-10-19 16:15 jordi
35843 * MenuAPI.cs: MenuBarCalcSize returns the height
35845 2004-10-19 08:31 pbartok
35848 - Added missing call to PreProcessMessage before calling OnXXXKey
35851 2004-10-19 00:04 ravindra
35853 * ToolTip.cs: Fixed constructor.
35855 2004-10-18 09:31 jordi
35857 * MenuAPI.cs: menuitems in menubars do not have shortcuts
35859 2004-10-18 09:26 jordi
35861 * MenuItem.cs: fixes MenuItem class signature
35863 2004-10-18 08:56 jordi
35865 * MenuAPI.cs: prevents windows from showing in the taskbar
35867 2004-10-18 00:28 ravindra
35869 * ToolTip.cs: Suppressed a warning message.
35871 2004-10-18 00:27 ravindra
35873 * Control.cs: Default value of visible property must be true.
35875 2004-10-17 23:19 pbartok
35878 - Complete implementation
35880 2004-10-17 23:19 pbartok
35883 - Added EnableWindow method
35884 - Added SetModal stub
35885 - Added generation of WM_ACTIVATE message (still needs testing)
35886 - Added SetTopMost stub
35887 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
35889 2004-10-17 23:17 pbartok
35892 - Removed VirtualKeys to XplatUIStructs
35893 - Implemented SetTopMost method
35894 - Implemented EnableWindow method
35895 - Bugfix in ScreenToClient()
35896 - Bugfixes in ClientToScreen()
35898 2004-10-17 22:51 pbartok
35900 * XplatUIStructs.cs:
35901 - Added WS_EX styles to WindowStyles enumeration
35903 2004-10-17 22:50 pbartok
35905 * XplatUI.cs, XplatUIDriver.cs:
35906 - Added method for enabling/disabling windows
35907 - Added method for setting window modality
35908 - Added method for setting topmost window
35910 2004-10-17 22:49 pbartok
35912 * ThemeWin32Classic.cs:
35913 - Added ToolTip drawing code
35915 2004-10-17 22:49 pbartok
35918 - Added ToolTip abstracts
35920 2004-10-17 22:47 pbartok
35923 - Fixed Form.ControlCollection to handle owner relations
35924 - Added Owner/OwnedForms handling
35925 - Implemented Z-Ordering for owned forms
35926 - Removed unneeded private overload of ShowDialog
35927 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
35929 - Fixed Close(), had wrong default
35930 - Added firing of OnLoad event
35931 - Added some commented out debug code for Ownership handling
35933 2004-10-17 22:16 pbartok
35936 - Fixed/implemented flat list of controls
35938 2004-10-17 22:14 pbartok
35941 - Added code to simulate modal dialogs on Win32
35943 2004-10-17 16:11 jordi
35945 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
35948 2004-10-17 13:39 jordi
35950 * MenuAPI.cs: menu drawing fixes
35952 2004-10-15 09:10 ravindra
35954 * StructFormat.cs: General Enum.
35956 2004-10-15 09:09 ravindra
35958 * SizeGripStyle.cs: Enum for Form.
35960 2004-10-15 09:08 ravindra
35962 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
35963 in Theme for ListView.
35965 2004-10-15 09:06 ravindra
35967 * ColumnHeader.cs: Flushing some formatting changes.
35969 2004-10-15 09:05 ravindra
35971 * ListViewItem.cs: Implemented GetBounds method and fixed coding
35974 2004-10-15 09:03 ravindra
35976 * ListView.cs: Implemented Paint method and fixed coding style.
35978 2004-10-15 07:34 jordi
35980 * MenuAPI.cs: fix for X11
35982 2004-10-15 07:32 ravindra
35984 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
35985 - Renamed Paint() method to Draw() for clarity. Also, moved
35986 DrawImage() to OnPaint().
35988 2004-10-15 07:25 ravindra
35990 * CheckBox.cs, RadioButton.cs:
35991 - Removed Redraw (), we get it from ButtonBase.
35992 - Implemented Paint (), to do class specific painting.
35994 2004-10-15 07:16 ravindra
35997 - Redraw () is not virtual now.
35998 - Added an internal virtual method Paint (), so that
35999 derived classes can do their painting on their own.
36000 - Modified OnPaint () to call Paint ().
36002 2004-10-15 06:43 jordi
36004 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
36005 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
36007 2004-10-15 00:30 ravindra
36010 - MessageBox on windows does not have min/max buttons.
36011 This change in CreateParams fixes this on Windows. We
36012 still need to implement this windowstyle behavior in
36015 2004-10-14 05:14 ravindra
36018 - Changed Redraw () to do a Refresh () always.
36019 - Fixed the MouseMove event handling when mouse is pressed,
36020 ie drag event handling.
36021 - Replaced the usage of ToolBarButton.Pressed property to
36022 ToolBarButton.pressed internal variable.
36024 2004-10-14 05:10 ravindra
36026 * ToolBarButton.cs:
36027 - Added an internal member 'inside' to handle mouse move
36028 with mouse pressed ie mouse drag event.
36029 - Changed 'Pressed' property to return true only when
36030 'inside' and 'pressed' are both true.
36031 - Some coding style love.
36033 2004-10-14 00:17 ravindra
36035 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
36038 2004-10-14 00:15 ravindra
36040 * ButtonBase.cs: Redraw () related improvements.
36042 2004-10-14 00:14 ravindra
36044 * MessageBox.cs: Moved InitFormSize () out of Paint method and
36045 removed unnecessary calls to Button.Show () method.
36047 2004-10-13 17:50 pbartok
36051 - Removed destroying of window until we solve the problem of X
36052 destroying the window before us on shutdown
36054 2004-10-13 16:32 pbartok
36057 - Now Redraws on MouseUp for FlatStyle Flat and Popup
36059 2004-10-13 14:18 pbartok
36062 - Added code to destroy the X window
36064 2004-10-13 14:18 pbartok
36067 - Added code to destroy a window
36069 2004-10-13 14:12 pbartok
36072 - Added the Redraw on Resize that got dropped in the last rev
36074 2004-10-13 09:06 pbartok
36076 * ThemeWin32Classic.cs:
36077 - Path from John BouAntoun:
36078 * Fix check rendering (centre correctly for normal style, offset
36079 correctly for FlatStyle).
36080 * Fix border color usage (use backcolor) for FlatStyle.Popup
36081 * Use checkbox.Capture instead of checkbox.is_pressed when
36082 rendering flatstyle states.
36084 2004-10-12 21:48 pbartok
36086 * ThemeWin32Classic.cs:
36087 - Removed all occurences of SystemColors and replaced them with the
36088 matching theme color
36090 2004-10-12 21:41 pbartok
36092 * ThemeWin32Classic.cs:
36093 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
36094 him using the function for flatstyle drawing
36095 - Changed functions to use the new version of CPDrawBorder3D
36097 2004-10-12 21:15 pbartok
36100 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
36101 match MS documentation. They need to return defined colors if the
36102 passed color matches the configured control color. Thanks to John
36103 BouAntoun for pointing this out.
36105 2004-10-12 20:57 pbartok
36108 - Fix from John BouAntoun: Raise ForeColorChanged event when text
36111 2004-10-12 20:46 pbartok
36114 - Fix from John BouAntoun: Now properly sets the Appearance property
36116 2004-10-12 20:45 pbartok
36118 * ThemeWin32Classic.cs:
36119 - Fixes from John BouAntoun: now handles forecolors and backcolors
36120 for flatstyle rendered controls much better; It also fixes normal
36121 checkbox rendering when pushed or disabled.
36123 2004-10-08 02:50 jordi
36125 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
36128 2004-10-07 08:56 jordi
36130 * ThemeWin32Classic.cs: Removes deletion of cached brushes
36132 2004-10-06 03:59 jordi
36134 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
36135 XplatUIWin32.cs: removes warnings from compilation
36137 2004-10-05 12:23 jackson
36139 * RadioButton.cs: Fix ctor
36141 2004-10-05 11:10 pbartok
36144 - Partial implementation by Benjamin Dasnois
36146 2004-10-05 10:15 jackson
36148 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
36151 2004-10-05 03:07 ravindra
36154 - Removed a private method, Draw ().
36155 - Fixed the ButtonDropDown event handling.
36156 - Fixed MouseMove event handling.
36158 2004-10-05 03:04 ravindra
36160 * ThemeWin32Classic.cs:
36161 - Added DrawListView method and ListViewDefaultSize property.
36162 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
36163 - Changed DOS style CRLF to Unix format (dos2unix).
36165 2004-10-05 03:03 ravindra
36168 - Added DrawListView method and ListViewDefaultSize property.
36170 2004-10-05 02:42 ravindra
36172 * ToolBarButton.cs: Added an internal member dd_pressed to handle
36173 clicks on DropDown arrow.
36175 2004-10-04 22:56 jackson
36177 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
36178 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
36179 Control handle the buffers, derived classes should not have to
36180 CreateBuffers themselves.
36182 2004-10-04 21:20 jackson
36184 * StatusBar.cs: The control handles resizing the buffers now.
36186 2004-10-04 21:18 jackson
36188 * Control.cs: When resizing the buffers should be invalidated. This
36189 should be handled in Control not in derived classes.
36191 2004-10-04 14:45 jackson
36195 2004-10-04 02:14 pbartok
36197 * LeftRightAlignment.cs:
36200 2004-10-04 01:09 jordi
36202 * ThemeWin32Classic.cs: fixes right button position causing right
36203 button not showing on horizontal scrollbars
36205 2004-10-02 13:12 pbartok
36208 - Simplified the Invalidate method by using an X call instead of
36209 generating the expose ourselves
36210 - Added an expose when the window background is changed
36211 - Implemented ClientToScreen method
36213 2004-10-02 13:08 pbartok
36216 - Added Win32EnableWindow method (test for implementing modal
36218 - Added ClientToScreen method and imports
36220 2004-10-02 13:07 pbartok
36222 * XplatUI.cs, XplatUIDriver.cs:
36223 - Added ClientToScreen coordinate translation method
36225 2004-10-02 13:06 pbartok
36227 * KeyPressEventArgs.cs:
36228 - Fixed access level for constructor
36230 2004-10-02 13:06 pbartok
36233 - Changed access level for the window_collection hash table
36235 2004-10-02 13:05 pbartok
36238 - Added KeyPreview property
36239 - Added Menu property (still incomplete, pending Jordi's menu work)
36240 - Implemented ProcessCmdKey
36241 - Implemented ProcessDialogKey
36242 - Implemented ProcessKeyPreview
36244 2004-10-02 13:02 pbartok
36247 - Added private method to get the Control object from the window
36249 - Implemented ContextMenu property
36250 - Implemented PointToScreen
36251 - Implemented PreProcessMessage
36252 - Implemented IsInputChar
36253 - Implemented IsInputKey
36254 - Implemented ProcessCmdKey
36255 - Completed ProcessKeyEventArgs
36256 - Fixed message loop to call the proper chain of functions on key
36258 - Implemented ProcessDialogChar
36259 - Implemented ProcessDialogKey
36260 - Implemented ProcessKeyMessage
36261 - Implemented ProcessKeyPreview
36262 - Added RaiseDragEvent stub (MS internal method)
36263 - Added RaiseKeyEvent stub (MS internal method)
36264 - Added RaiseMouseEvent stub (MS Internal method)
36265 - Added RaisePaintEvent stub (MS Internal method)
36266 - Added ResetMouseEventArgs stub (MS Internal method)
36267 - Implemented RtlTranslateAlignment
36268 - Implemented RtlTranslateContent
36269 - Implemented RtlTranslateHorizontal
36270 - Implemented RtlTranslateLeftRight
36271 - Added generation of KeyPress event
36273 2004-10-02 05:57 ravindra
36275 * ListViewItem.cs: Added attributes.
36277 2004-10-02 05:32 ravindra
36279 * ListView.cs: Added attributes.
36281 2004-10-01 11:53 jackson
36283 * Form.cs: Implement the Close method so work on MessageBox can
36286 2004-09-30 14:06 pbartok
36291 2004-09-30 11:34 jackson
36293 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
36295 2004-09-30 07:26 ravindra
36297 * ListViewItemConverter.cs: Converter for ListViewItem.
36299 2004-09-30 07:26 ravindra
36301 * SortOrder.cs: Enum for ListView control.
36303 2004-09-30 07:25 ravindra
36305 * ColumnHeader.cs: Supporting class for ListView control.
36307 2004-09-30 07:24 ravindra
36309 * ListView.cs, ListViewItem.cs: Initial implementation.
36311 2004-09-30 07:20 ravindra
36313 * ItemActivation.cs: Enum for ListView Control.
36315 2004-09-29 20:29 pbartok
36318 - Added lookup of pixel value for background color; tries to get a
36319 color 'close' to the requested color, it avoids having to create a
36320 colormap. Depending on the display this could mean the used color
36321 is slightly off the desired color. Might have to change it to a more
36322 resource intensive colormap approach, but it will work as a
36323 workaround to avoid red screens.
36325 2004-09-29 14:27 jackson
36327 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36329 2004-09-28 12:44 pbartok
36331 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36332 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36333 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36334 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36335 TrackBar.cs, VScrollBar.cs:
36336 - Streamlined Theme interfaces:
36337 * Each DrawXXX method for a control now is passed the object for
36338 the control to be drawn in order to allow accessing any state the
36339 theme might require
36341 * ControlPaint methods for the theme now have a CP prefix to avoid
36342 name clashes with the Draw methods for controls
36344 * Every control now retrieves it's DefaultSize from the current
36347 2004-09-28 12:17 jackson
36349 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36352 2004-09-24 14:57 jackson
36354 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36355 Gives us a nice little performance boost.
36357 2004-09-24 12:02 jackson
36359 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36360 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36361 Control and supporting classes. Initial checkin
36363 2004-09-23 13:08 jackson
36365 * Form.cs: Temp build fixage
36367 2004-09-23 01:39 ravindra
36369 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36370 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36371 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36372 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36373 EventHandlers needed by ListView Control.
36375 2004-09-22 14:12 pbartok
36377 * ScrollableControl.cs:
36378 - Implemented DockPadding property
36379 - Implemented AutoScroll property
36380 - Implemented AutoScrollMargin property
36381 - Implemented AutoScrollMinSize property
36382 - Implemented AutoScrollPosition property
36383 - Implemented DisplayRectangle property (still incomplete)
36384 - Implemented CreateParams property
36385 - Implemented HScroll property
36386 - Implemented VScroll property
36387 - Implemented OnVisibleChanged property
36389 2004-09-22 14:09 pbartok
36392 - Added Form.ControllCollection class
36393 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36394 RemoveOwnedForm (still incomplete, missing on-top and common
36395 minimize/maximize behaviour)
36396 - Added StartPosition property (still incomplete, does not use when
36398 - Added ShowDialog() methods (still incomplete, missing forcing the
36401 2004-09-22 14:05 pbartok
36404 - Added message loop for modal dialogs
36406 2004-09-22 14:02 pbartok
36409 - Fixed wrong types for events
36411 2004-09-22 14:00 pbartok
36413 * Shortcut.cs, FormWindowState.cs:
36414 - Fixed wrong values
36416 2004-09-22 12:01 jackson
36418 * Control.cs: Text is never null
36420 2004-09-20 22:14 pbartok
36423 - Fixed accessibility level for Idle handler
36425 2004-09-20 18:54 jackson
36427 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36428 XplatUIX11.cs: New message loop that uses poll so we don't get a
36431 2004-09-17 10:43 pbartok
36434 - Fixed behaviour of arrow buttons. Now properly behaves like
36435 Buttons (and like Microsoft's scrollbar arrow buttons)
36437 2004-09-17 10:14 pbartok
36440 - Added missing release of keyboard/mouse capture
36442 2004-09-17 06:18 jordi
36444 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36445 Theme.cs: Very early menu support
36447 2004-09-16 17:45 pbartok
36450 - Fixed sending a window to the front
36451 - Added overload for SetWindowPos to avoid casting
36453 2004-09-16 17:44 pbartok
36456 - Added SendToBack and BringToFront methods
36458 2004-09-16 07:00 ravindra
36460 * Copyright: Added Novell URL.
36462 2004-09-16 07:00 ravindra
36464 * ToolBar.cs: Invalidate should be done before redrawing.
36466 2004-09-15 21:19 ravindra
36468 * ColumnHeaderStyle.cs: Enum for ListView Control.
36470 2004-09-15 21:18 ravindra
36472 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36475 2004-09-13 18:26 jackson
36477 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36480 2004-09-13 18:13 jackson
36482 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36483 a second thread and post messages into the main threads message
36484 queue. This makes timing much more consistent. Both win2K and XP
36485 have a minimum timer value of 15 milliseconds, so we now do this
36488 2004-09-13 15:18 pbartok
36490 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36492 - Added Z-Ordering methods
36494 2004-09-13 10:56 pbartok
36497 - Fixed #region names
36498 - Moved properties and methods into their proper #regions
36500 2004-09-13 10:51 pbartok
36503 - Added Accept and CancelButton properties
36504 - Added ProcessDialogKey() method
36506 2004-09-13 08:18 pbartok
36508 * IWindowTarget.cs:
36511 2004-09-10 21:50 pbartok
36514 - Added DoDragDrop() [incomplete]
36515 - Properly implemented 'Visible' handling
36516 - Added SetVisibleCore()
36517 - Implemented FindChildAtPoint()
36518 - Implemented GetContainerControl()
36519 - Implemented Hide()
36521 2004-09-10 19:28 pbartok
36524 - Moved methods into their appropriate #regions
36525 - Reordered methods within regions alphabetically
36527 2004-09-10 18:57 pbartok
36529 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36530 - Added method to retrieve text from window
36532 2004-09-10 18:56 pbartok
36535 - Moved some internal functions into the internal region
36536 - Implemented FontHeight
36537 - Implemented RenderRightToLeft
36538 - Implemented ResizeRedraw
36539 - Implemented ShowFocusCues
36540 - Implemented ShowKeyboardCues
36541 - Implemented FromChildHandle
36542 - Implemented FromHandle
36543 - Implemented IsMnemonic
36544 - Implemented ReflectMessage
36545 - All public and protected Static Methods are now complete
36547 2004-09-10 16:54 pbartok
36550 - Implemented remaining missing public instance properties
36551 - Alphabetized some out of order properties
36553 2004-09-10 05:51 ravindra
36555 * PictureBox.cs: Added a check for null image.
36557 2004-09-10 00:59 jordi
36559 * GroupBox.cs: remove cvs tag
36561 2004-09-09 05:25 ravindra
36563 * ToolBar.cs: Make redraw accessible from ToolBarButton.
36565 2004-09-09 05:23 ravindra
36567 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36570 2004-09-09 02:28 pbartok
36572 * ThemeWin32Classic.cs:
36573 - Improve disabled string look
36575 2004-09-09 01:15 jordi
36577 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36580 2004-09-08 23:56 ravindra
36582 * ItemBoundsPortion.cs: It's enum, not a class!
36584 2004-09-08 23:47 ravindra
36586 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36589 2004-09-08 21:13 ravindra
36591 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36594 2004-09-08 21:03 ravindra
36596 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36599 2004-09-08 21:01 ravindra
36601 * ScrollableControl.cs: Removed unreachable code.
36603 2004-09-08 06:45 jordi
36605 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36607 2004-09-08 01:00 jackson
36609 * XplatUIX11.cs: Only run the timers when updating the message
36610 queue. This effectively gives X messages a higher priority then
36611 timer messages. Timers still need love though
36613 2004-09-07 14:01 jackson
36615 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36616 this for us and the handle is no longer valid.
36618 2004-09-07 13:59 jackson
36620 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36621 loop that manages to not crash. TODO: Add poll and cleanup timers
36623 2004-09-07 11:12 jordi
36625 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36627 2004-09-07 03:40 jordi
36629 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36630 fixes, methods, multiple links
36632 2004-09-06 06:55 jordi
36634 * Control.cs: Caches ClientRectangle rectangle value
36636 2004-09-05 02:03 jordi
36638 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36641 2004-09-04 11:10 jordi
36643 * Label.cs: Refresh when font changed
36645 2004-09-02 16:24 pbartok
36648 - Added sanity check to creation of double buffer bitmap
36650 2004-09-02 16:24 pbartok
36653 - Fixed selection of text color
36654 - Fixed handling of resize event; now properly recreates double
36656 - Added missing assignment of TextAlignment
36657 - Added proper default for TextAlignment
36659 2004-09-02 14:26 pbartok
36662 - Added missing RadioButton.RadioButtonAccessibleObject class
36664 2004-09-02 14:26 pbartok
36667 - Added missing Control.ControlAccessibleObject class
36668 - Started to implement Select()ion mechanisms, still very incomplete
36670 2004-09-02 14:25 pbartok
36672 * AccessibleObject.cs:
36673 - Added missing methods
36675 2004-09-02 14:23 pbartok
36677 * AccessibleNavigation.cs, AccessibleSelection.cs:
36680 2004-09-02 10:32 jordi
36682 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36683 pool for pens, brushes, and hatchbruses
36685 2004-09-01 15:30 jackson
36687 * StatusBar.cs: Fix typo
36689 2004-09-01 14:44 pbartok
36694 2004-09-01 14:39 pbartok
36696 * Button.cs, RadioButton.cs:
36697 - Functional initial check-in
36699 2004-09-01 14:01 pbartok
36702 - Added missing default
36703 - Added missing region mark
36705 2004-09-01 09:10 jordi
36707 * Label.cs: fixes method signatures, new methods, events, fixes
36710 2004-09-01 07:19 jordi
36712 * Control.cs: Init string variables with an empty object
36714 2004-09-01 04:20 jordi
36716 * Control.cs: fires OnFontChanged event
36718 2004-08-31 20:07 pbartok
36721 - Enabled display of strings
36723 2004-08-31 20:05 pbartok
36726 - Added (partial) implementation of DialogResult; rest needs to be
36727 implemented when the modal loop code is done
36729 2004-08-31 19:55 pbartok
36732 - Fixed to match the removal of the needs_redraw concept
36734 2004-08-31 19:55 pbartok
36737 - Removed the rather odd split between 'needs redraw' and redrawing
36738 - Now handles the events that require regeneration (ambient
36739 properties and size)
36741 2004-08-31 19:41 pbartok
36744 - Added firing of BackColorChanged event
36745 - Added TopLevelControl property
36746 - Fixed handling of WM_ERASEBKGRND message
36748 2004-08-31 12:49 pbartok
36754 2004-08-31 12:48 pbartok
36757 - Finished (famous last words)
36759 2004-08-31 04:35 jordi
36761 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
36762 scrolling bugs, adds new methods
36764 2004-08-30 14:42 pbartok
36767 - Implemented CheckBox drawing code
36769 2004-08-30 14:42 pbartok
36772 - Made Redraw() and CheckRedraw() virtual
36773 - Improved mouse up/down/move logic to properly track buttons
36775 2004-08-30 09:44 pbartok
36778 - Updated to fix broken build. Not complete yet.
36780 2004-08-30 09:28 pbartok
36785 2004-08-30 09:17 pbartok
36790 2004-08-27 16:12 ravindra
36792 * ToolBarButton.cs: Added TypeConverter attribute.
36794 2004-08-27 16:07 ravindra
36796 * ImageIndexConverter.cs: Implemented.
36798 2004-08-27 14:17 pbartok
36801 - Removed unneeded stack vars
36802 - First attempt to fix sizing issues when layout is suspended
36804 2004-08-25 15:35 jordi
36806 * ScrollBar.cs: more fixes to scrollbar
36808 2004-08-25 14:04 ravindra
36810 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
36811 Added the missing divider code and grip for ToolBar Control.
36813 2004-08-25 13:20 pbartok
36816 - Control now properly passes the ambient background color to child
36819 2004-08-25 13:20 jordi
36821 * ScrollBar.cs: small bug fix regarding bar position
36823 2004-08-25 12:33 pbartok
36826 - Now only calls SetTimer or KillTimer if the enabled state has
36829 2004-08-25 12:33 pbartok
36832 - Fixed timer handling, now seems to work
36833 - Improved error message for window creation
36835 2004-08-25 12:32 pbartok
36838 - Fixed generation of MouseUp message
36840 2004-08-25 12:29 jordi
36842 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
36843 and fixes for progressbar
36845 2004-08-24 18:43 ravindra
36847 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
36848 in ToolBar control.
36850 2004-08-24 17:15 pbartok
36854 - Added missing events
36857 2004-08-24 17:14 pbartok
36859 * StatusBar.cs, PictureBox.cs:
36860 - Now uses Control's CreateParams
36862 2004-08-24 16:36 pbartok
36865 - Fixed background color handling
36866 - Fixed sending of enter/leave events on a grab
36868 2004-08-24 16:35 pbartok
36871 - Refined definitions for CrossingEvent
36873 2004-08-24 12:37 jordi
36875 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
36876 formmating, methods signature, and adds missing events
36878 2004-08-24 12:24 jordi
36880 * Control.cs: fire OnEnabledChanged event
36882 2004-08-24 11:17 pbartok
36885 - Implemented SetTimer() and KillTimer()
36887 2004-08-24 11:16 pbartok
36890 - Now uses Remove instead of Add to kill the timer
36892 2004-08-24 10:16 jackson
36894 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
36895 picture boxes in the theme now. Draw picture box borders and obey
36898 2004-08-24 05:49 jackson
36900 * Timer.cs: Remove top secret debugging code
36902 2004-08-24 05:34 jackson
36904 * PictureBox.cs: Temp hack to make picture boxes draw their full
36907 2004-08-24 05:29 jackson
36909 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36910 XplatUIX11.cs: Move timers to the driver level. On X they are
36911 queued by the driver and checked on idle.
36913 2004-08-24 01:07 jackson
36915 * XplatUIX11.cs: Use a queue for async messages instead of passing
36916 them as ClientMessages since that was totally broken. Also simply
36917 check for events and return an idle message if none are found. This
36918 gives us an idle handler, and prevents deadlocking when no messages
36921 2004-08-23 18:19 ravindra
36923 * XplatUIWin32.cs: Removed the unwanted destructor.
36925 2004-08-23 17:27 pbartok
36928 - Finishing touches. Works now, just needs some optimizations.
36930 2004-08-23 16:53 jordi
36932 * ScrollBar.cs: small fix
36934 2004-08-23 16:45 pbartok
36937 - Removed debug output
36940 2004-08-23 16:43 jordi
36942 * ScrollBar.cs: [no log message]
36944 2004-08-23 16:10 pbartok
36947 - Fixed handling of WM_CLOSE message
36948 - Removed debug output
36950 2004-08-23 16:09 pbartok
36953 - Added handling of Idle event
36954 - Added handling of form closing
36955 - Fixed reporting of MessageLoop property
36956 - Removed some unneeded code, should provide a bit of a speedup
36958 2004-08-23 15:22 pbartok
36961 - Added InitLayout() method
36962 - Added code to properly perform layout when Anchor or Dock property
36964 - Changed 'interpretation' of ResumeLayout. MS seems to have a
36965 LAMESPEC, tried to do it in a way that makes sense
36967 2004-08-23 14:10 jordi
36969 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
36970 properties and methods
36972 2004-08-23 13:55 pbartok
36975 - Properly fixed Jordi's last fix
36976 - Now uses Cursor's Position property instead of calling XplatUI
36979 2004-08-23 13:44 jordi
36981 * PaintEventHandler.cs: Adding missing attribute
36983 2004-08-23 13:39 pbartok
36986 - Implemented Position property
36988 2004-08-23 13:39 pbartok
36990 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36991 - Added method to move mouse cursor
36993 2004-08-23 13:39 pbartok
36996 - Fixed setting of background color
36997 - Added method to move mouse cursor
36999 2004-08-23 13:16 jordi
37001 * Control.cs: avoids null exception
37003 2004-08-22 17:46 jackson
37005 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
37008 2004-08-22 17:40 jackson
37010 * XplatUIX11.cs: Add some missing locks
37012 2004-08-22 15:10 pbartok
37014 * Control.cs, Form.cs:
37015 - Removed OverlappedWindow style from Control, instead it's default
37017 - Made form windows OverlappedWindow by default
37019 2004-08-22 13:34 jackson
37021 * ScrollBar.cs: Update the position through the Value property so
37022 the OnValueChanged event is raised.
37024 2004-08-22 12:04 pbartok
37027 - Added Cursor.cs and UserControl.cs
37029 2004-08-22 12:03 pbartok
37032 - Started implementation, not usable yet
37034 2004-08-22 12:00 pbartok
37037 - Implemented UserControl (complete)
37039 2004-08-21 19:20 ravindra
37041 * ToolBar.cs: Correcting the formatting mess of VS.NET.
37043 2004-08-21 18:49 ravindra
37045 * ToolBar.cs: Probably this completes the missing attributes in
37048 2004-08-21 18:03 ravindra
37050 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
37051 Fixed toolbar control signatures.
37053 2004-08-21 16:32 pbartok
37058 2004-08-21 16:30 pbartok
37063 2004-08-21 16:19 pbartok
37065 * Control.cs, Label.cs:
37068 2004-08-21 15:57 pbartok
37071 - Added loads of debug output for development
37072 - Fixed typo in method name
37074 2004-08-21 15:52 pbartok
37076 * ToolBarButtonClickEventArgs.cs:
37077 - Added missing base class
37079 2004-08-21 14:53 pbartok
37082 - Updated to match new GrabWindow signature
37084 2004-08-21 14:51 pbartok
37086 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37087 - Added method to get default display size
37089 2004-08-21 14:23 pbartok
37091 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37092 - Added method to query current grab state
37093 - Added argument to allow confining a grab to a window
37095 2004-08-21 14:22 pbartok
37098 - Added [Flags] attribute so that modifiers can be used in bitwise
37101 2004-08-21 14:21 pbartok
37103 * TrackBar.cs, ScrollBar.cs:
37104 - Replaced direct XplatUI calls with their Control counterpart
37106 2004-08-21 13:32 pbartok
37109 - Implemented Created property
37111 2004-08-21 13:28 pbartok
37114 - Implemented ContainsFocus
37116 2004-08-21 13:26 pbartok
37119 - Implemented CausesValidation
37121 2004-08-21 13:21 pbartok
37124 - Implemented CanFocus
37125 - Implemented CanSelect
37126 - Implemented Capture
37128 2004-08-21 12:35 pbartok
37131 - Fixed bug with Async message handling
37132 - Implemented getting the ModifierKeys
37134 2004-08-21 12:32 jackson
37136 * AsyncMethodResult.cs: Make sure we have the mutex before we
37137 release it. Fixes BeginInvoke on windows
37139 2004-08-21 11:31 pbartok
37141 * XplatUIWin32.cs, XplatUIX11.cs:
37142 - Drivers now return proper mouse state
37144 2004-08-21 10:54 jackson
37146 * Control.cs: Implement EndInvoke
37148 2004-08-21 10:48 jackson
37150 * Timer.cs: Remove unneeded finalizer
37152 2004-08-20 19:52 ravindra
37154 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
37155 in mouse event handling in the ToolBar control.
37157 2004-08-20 19:50 ravindra
37159 * ImageList.cs: Changed draw method to use the arguments passed in
37162 2004-08-20 18:58 pbartok
37164 * XplatUIStructs.cs:
37165 - Added private message for async communication
37167 2004-08-20 17:38 ravindra
37169 * Control.cs: Made RightToLeft property virtual and removed a
37172 2004-08-20 14:39 jordi
37174 * ThemeGtk.cs: use style_attach
37176 2004-08-20 14:39 pbartok
37179 - Added jackson's Async code from X11 to Win32
37181 2004-08-20 14:09 pbartok
37184 - Added all new files
37186 2004-08-20 14:09 pbartok
37189 - Added call to set window background color
37191 2004-08-20 14:03 pbartok
37193 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37194 - Added method for setting the window background
37196 2004-08-20 14:02 pbartok
37199 - Added method for setting the background color
37200 - Added handling for erasing the window background
37202 2004-08-20 13:45 jordi
37204 * TrackBar.cs: fixes timer, new properties and methods
37206 2004-08-20 13:34 jackson
37208 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
37211 2004-08-20 13:22 jackson
37213 * Timer.cs: Timer Tick events are now handed through Controls Async
37214 mechanism so the callbacks are executed in the same thread as X
37216 2004-08-20 13:19 jackson
37218 * XplatUIDriver.cs: Expose functionality to send async messages
37221 2004-08-20 13:18 jackson
37223 * Control.cs: Implement Begininvoke
37225 2004-08-20 13:14 jackson
37227 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
37228 messages through the driver
37230 2004-08-20 13:12 jackson
37232 * XplatUIX11.cs: Lock before all X operations. Also added Async
37233 method functionality through XSendEvent
37235 2004-08-20 13:11 jackson
37237 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
37238 This will screw up on 64 bit systems)
37240 2004-08-20 13:10 jackson
37242 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
37243 Async messages through X/Win32
37245 2004-08-19 19:39 pbartok
37248 - Updated code to match new HandleData.DeviceContext type
37250 2004-08-19 19:38 pbartok
37253 - Made DeviceContext a generic object to allow usage from various
37255 - Added support for queueing Windows messages
37257 2004-08-19 19:37 pbartok
37260 - Added generation of MouseEnter, MouseLeave and MouseHover events
37261 - Added cleanup on EndPaint
37263 2004-08-19 19:17 pbartok
37266 - Added handling of WM_MOUSEHOVER
37267 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
37270 2004-08-19 18:55 jordi
37272 * ThemeGtk.cs: fixes button order
37274 2004-08-19 18:12 jordi
37276 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
37278 2004-08-19 17:09 pbartok
37281 - Added Right property
37282 - Added RightToLeft property
37284 2004-08-19 16:27 jordi
37286 * ThemeGtk.cs: experimental GTK theme support
37288 2004-08-19 16:26 jordi
37290 * ITheme.cs, Theme.cs: move themes from an interface to a class
37292 2004-08-19 16:25 jordi
37294 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
37297 2004-08-19 16:04 pbartok
37300 - Added colormap basics
37301 - Added a way to re-initialize with a different display handle
37302 - Fixed setting of the window background color
37303 - Added various X11 imports related to colors and colormaps
37305 2004-08-19 15:51 pbartok
37308 - Removed packing hints (Paolo suggested this a while back)
37309 - fixed colormap type
37310 - Added default Atom types
37311 - Added Screen and color structs and enums
37313 2004-08-19 15:39 pbartok
37316 - Added missing Draw() method
37317 - Added missing RecreateHandle event
37319 2004-08-19 15:30 pbartok
37322 - Added handling of WM_CLOSE
37324 2004-08-18 13:16 jordi
37326 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37329 2004-08-18 09:56 jordi
37331 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37333 2004-08-17 15:31 ravindra
37335 * SWF.csproj: Updated project.
37337 2004-08-17 15:25 pbartok
37340 - Drawing improvement; don't call UpdateBounds if we are not visible
37341 (or have been minimized)
37343 2004-08-17 15:24 pbartok
37346 - Finished IsVisible
37347 - Added Win32GetWindowPlacement
37349 2004-08-17 15:08 jackson
37351 * Panel.cs: Initial checkin of the Panel
37353 2004-08-17 14:25 pbartok
37356 - Fixed broken handling of default window sizes
37358 2004-08-17 13:29 jackson
37360 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37361 has a large startup time.
37363 2004-08-17 10:25 jackson
37365 * HandleData.cs: union areas properly
37367 2004-08-17 10:12 jackson
37369 * HandleData.cs: union areas properly
37371 2004-08-16 20:00 ravindra
37373 * ToolBar.cs, ToolBarButton.cs: Added attributes.
37375 2004-08-16 18:48 ravindra
37377 * ToolBar.cs: Added attributes.
37379 2004-08-16 17:17 ravindra
37381 * SWF.csproj: Updated project.
37383 2004-08-16 17:16 jackson
37385 * XplatUIX11.cs: Check for more expose events before sending a
37386 WM_PAINT so they can all be grouped together. This makes dragging a
37387 window across another window redraw in a sane way.
37389 2004-08-16 15:47 pbartok
37392 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37393 support OnMouseEnter/Leave()
37394 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37397 2004-08-16 15:46 pbartok
37399 * XplatUIStructs.cs, XplatUIX11.cs:
37400 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37401 OnMouseEnter/Leave()
37403 2004-08-16 15:34 jackson
37405 * XplatUIX11.cs: Group multiple expose events in HandleData, make
37406 sure messages get the message field set to WM_NULL if they are not
37409 2004-08-16 15:24 jackson
37411 * HandleData.cs: HandleData is used for storing message information
37414 2004-08-15 17:23 ravindra
37416 * ColorDepth.cs: Added attribute.
37418 2004-08-15 17:23 ravindra
37420 * SWF.csproj: Updated project for ToolBar Control.
37422 2004-08-15 17:20 ravindra
37424 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37425 control and also dos2unix format.
37427 2004-08-15 17:13 ravindra
37429 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37430 ToolBarButtonClickEventArgs.cs,
37431 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37432 ToolBarTextAlign.cs: First Implementation of ToolBar control.
37434 2004-08-15 15:31 pbartok
37437 - First (mostly) working version
37439 2004-08-13 16:15 pbartok
37442 - Fixed Anchor default
37444 2004-08-13 15:43 pbartok
37447 - Changed GetCursorPos signature
37449 2004-08-13 15:42 pbartok
37451 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37452 - Changed signature for GetCursorPos
37454 2004-08-13 15:25 pbartok
37458 - Fixed resizing/exposure handling
37460 2004-08-13 15:22 jordi
37462 * ThemeWin32Classic.cs: removes redundant code and fixes issues
37465 2004-08-13 14:55 jordi
37467 * TrackBar.cs: change from wndproc to events
37469 2004-08-13 13:00 jordi
37471 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37472 XplatUIX11.cs: implements PointToClient (ScreenToClient)
37474 2004-08-13 12:53 pbartok
37477 - Changed GetWindowPos to also provide client area size
37478 - Fixed broken prototypes for several win32 functions
37480 2004-08-13 12:53 pbartok
37482 * XplatUI.cs, XplatUIDriver.cs:
37483 - Changed GetWindowPos to also provide client area size
37485 2004-08-13 12:52 pbartok
37488 - Added generation of WM_POSCHANGED
37489 - Changed GetWindowPos to also provide client area size
37491 2004-08-13 12:52 pbartok
37494 - Added Dispose() and destructor
37495 - Fixed resizing and bounds calculation
37497 - Added memory savings for invisible windows
37499 2004-08-13 12:46 jordi
37501 * TrackBar.cs: adds timer and grap window
37503 2004-08-13 10:25 jackson
37505 * Timer.cs: SWF Timer
37507 2004-08-12 16:59 pbartok
37509 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37510 - Implemented method to get current mouse position
37512 2004-08-12 14:29 jordi
37514 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37515 enhancement, fix mouse problems, highli thumb, etc
37517 2004-08-12 13:31 pbartok
37520 - Fixed Anchoring bugs
37522 2004-08-12 13:01 jackson
37524 * StatusBar.cs: Don't forget things
37526 2004-08-12 12:54 jackson
37528 * ThemeWin32Classic.cs: Handle owner draw status bars
37530 2004-08-12 12:54 jackson
37532 * StatusBar.cs: Implement missing properties, events, and methods.
37533 Handle mouse clicking
37535 2004-08-12 10:19 jackson
37537 * StatusBarPanelClickEventArgs.cs,
37538 StatusBarPanelClickEventHandler.cs: Classes for handling status
37539 bar panel click events
37541 2004-08-12 10:10 jackson
37543 * Control.cs: Add missing properties
37545 2004-08-12 09:46 pbartok
37547 * BindingsManagerBase.cs:
37548 - Name changed to BindingManagerBase.cs
37550 2004-08-12 09:25 jordi
37552 * ScrollableControl.cs: calls ctrlbase instead of exeception
37554 2004-08-11 16:28 pbartok
37556 * InputLanguageChangingEventArgs.cs:
37557 - Never check in before compiling. Fixes the last check-in
37559 2004-08-11 16:26 pbartok
37561 * InputLanguageChangingEventArgs.cs:
37562 - More signature fixes
37564 2004-08-11 16:20 pbartok
37566 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37567 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37568 ImageListStreamer.cs, InputLanguage.cs,
37569 InputLanguageChangedEventArgs.cs,
37570 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37571 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37572 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37573 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37576 2004-08-11 16:16 pbartok
37580 - Added .Net 1.1 method
37582 2004-08-11 15:25 pbartok
37585 - Fixed BindingManagerBase.cs filename
37587 2004-08-11 15:22 pbartok
37589 * BindingManagerBase.cs:
37590 - Was checked in with wrong filename
37592 2004-08-11 14:50 pbartok
37597 2004-08-11 13:41 jordi
37599 * XplatUIWin32.cs: Fixes ClientRect
37601 2004-08-11 13:19 pbartok
37603 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37605 - We had SetWindowPos and MoveWindow to set window positions and
37606 size, removed MoveWindow. We have GetWindowPos, so it made sense to
37607 keep SetWindowPos as matching counterpart
37608 - Added some X11 sanity checking
37610 2004-08-11 12:59 pbartok
37613 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37614 (It seems that SetBounds is just a front for SetBoundsCore and
37615 SetBoundsCore updates the underlying window system and
37616 UpdateBounds is responsible for updating the variables associated
37617 with the Control and sending the events)
37618 - Major cleanup of Size handling; we now have two sizes, client_size
37619 and bounds. Bounds defines the window with decorations, client_size
37622 2004-08-11 12:55 pbartok
37624 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37625 - Added method to calculate difference between decorated window and
37628 2004-08-11 12:54 pbartok
37631 - Forcing redraw on resize
37633 2004-08-11 11:43 pbartok
37636 - Removed disposing of the actual images when the list is disposed
37638 2004-08-11 09:13 pbartok
37641 - Now properly reparents windows
37643 2004-08-11 08:37 pbartok
37648 2004-08-11 07:47 pbartok
37651 - Rewrote the collection stuff. Might not be as fast now, not
37652 keeping the number of children around and accessible directly, but
37653 it's more straightforward
37655 2004-08-11 07:44 pbartok
37657 * AccessibleObject.cs:
37658 - Fixed to match ControlCollection rewrite
37660 2004-08-11 07:43 pbartok
37663 - Added missing creation of the collection list
37665 2004-08-10 20:08 jackson
37667 * StatusBar.cs: Get the paint message from WndProc
37669 2004-08-10 19:31 jackson
37671 * ThemeWin32Classic.cs: Create Brushes as little as possible
37673 2004-08-10 19:20 jackson
37675 * UICues.cs: Add Flags attribute
37677 2004-08-10 19:19 jackson
37679 * StatusBarPanel.cs: Signature cleanup
37681 2004-08-10 19:10 jackson
37683 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37684 Initial implementation of status bar item drawing
37686 2004-08-10 17:27 jordi
37688 * TrackBar.cs: add missing methods, properties, and restructure to
37691 2004-08-10 16:24 jackson
37693 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37694 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37697 2004-08-10 13:21 jordi
37699 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37700 enhancements and standarize on win colors defaults
37702 2004-08-10 12:52 jackson
37704 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37705 ThemeWin32Classic.cs: Implement DrawItem functionality
37707 2004-08-10 12:47 jordi
37709 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37711 2004-08-10 12:32 jordi
37713 * Control.cs: throw ontextchange event
37715 2004-08-10 11:43 pbartok
37718 - Added more to the still unfinished Dock/Anchor layout code
37720 2004-08-10 11:39 pbartok
37722 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37723 - Added GetWindowPos method
37725 2004-08-10 11:36 pbartok
37728 - Implemented several methods
37730 2004-08-10 09:47 jackson
37732 * TrackBar.cs: Allow control to handle buffering
37734 2004-08-10 09:41 jackson
37736 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
37738 2004-08-10 09:24 jackson
37740 * Label.cs, LinkLabel.cs: Let Control handle buffering.
37742 2004-08-10 09:09 jackson
37744 * StatusBar.cs: Let Control handle all the buffering.
37746 2004-08-10 09:08 jackson
37748 * Control.cs: Control will now handle the buffering code, so each
37749 control does not have to implement this.
37751 2004-08-10 08:34 jackson
37753 * XplatUIDriver.cs: Use default colors from the theme
37755 2004-08-09 17:12 pbartok
37758 - Fixed several bugs Ravindra pointed out
37760 2004-08-09 16:11 pbartok
37763 - Added incomplete dock layout code
37764 - Added support for mouse wheel
37766 2004-08-09 16:09 pbartok
37769 - Added handling for middle and right mousebutton
37770 - Added handling for mouse wheel
37771 - Added handling for key state and mouse state and position
37772 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
37775 2004-08-09 15:40 jackson
37777 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
37778 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
37781 2004-08-09 15:37 jackson
37783 * StatusBar.cs: Initial implementation of StatusBar
37785 2004-08-09 15:36 jackson
37787 * ITheme.cs: Add support for drawing status bar and getting status
37790 2004-08-09 15:35 pbartok
37795 2004-08-09 15:34 jackson
37797 * ThemeWin32Classic.cs: Add support for drawing status bar and get
37798 status bar item sizes
37800 2004-08-09 15:21 jackson
37802 * ThemeWin32Classic.cs: Use known colors for default control
37805 2004-08-09 15:12 jackson
37807 * ThemeWin32Classic.cs: Make the default font static, it is static
37808 in control so this doesn't change functionality and creating fonts
37811 2004-08-09 14:56 pbartok
37814 - Added GrabMode enum
37816 2004-08-09 14:55 pbartok
37818 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37819 - Removed Run method, was only required for initial development
37821 2004-08-09 14:51 pbartok
37823 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37824 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
37827 2004-08-09 13:48 pbartok
37830 - Fixed default sizing for child windows
37832 2004-08-09 12:56 pbartok
37835 - Added generation of WM_DESTROY message
37836 - Added handling of window manager induced shutdown
37838 2004-08-09 11:31 jackson
37840 * ThemeWin32Classic.cs: New names for control properties
37842 2004-08-09 11:25 jackson
37844 * Control.cs: Use new color names
37846 2004-08-09 11:02 jackson
37848 * XplatUI.cs: Get default window properties from the theme
37850 2004-08-09 11:01 jackson
37852 * ITheme.cs: The theme engine now controls default window
37855 2004-08-09 11:00 jackson
37857 * ThemeWin32Classic.cs: Add default window color properties
37859 2004-08-09 10:17 jackson
37861 * ThemeWin32Classic.cs: Use correct default back color
37863 2004-08-09 10:05 jackson
37865 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
37868 2004-08-09 09:56 jackson
37870 * XplatUI.cs: Remove defaults, these are handled by the theme now.
37872 2004-08-09 09:54 jackson
37874 * Control.cs: Get default properties from the theme.
37876 2004-08-09 09:53 jackson
37878 * ITheme.cs: Themes now handle default control properties
37880 2004-08-09 09:53 jackson
37882 * ThemeWin32Classic.cs: Themes now handle default control
37883 properties so coloring will be consistent
37885 2004-08-08 16:54 jordi
37887 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
37889 2004-08-08 15:08 jordi
37891 * XplatUIX11.cs: fixes keyboard crash
37893 2004-08-08 13:47 jordi
37895 * Label.cs: add cvs header info
37897 2004-08-08 12:09 jackson
37899 * ThemeWin32Classic.cs: Add pen_buttonface
37901 2004-08-08 11:52 jordi
37903 * Label.cs, LinkLabel.cs: [no log message]
37905 2004-08-08 11:34 jordi
37907 * ThemeWin32Classic.cs: Use Windows Standard Colours
37909 2004-08-07 17:32 jordi
37911 * TrackBar.cs: throw exceptions of invalid enums values
37913 2004-08-07 17:31 jordi
37915 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
37918 2004-08-07 16:56 jackson
37920 * HorizontalAlignment.cs: Initial checkin
37922 2004-08-07 13:16 jordi
37924 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
37927 2004-08-07 13:05 jordi
37929 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
37930 GetSysColor defines
37932 2004-08-06 18:01 pbartok
37934 * ThemeWin32Classic.cs:
37935 - Fixed some rounding issues with float/int
37937 2004-08-06 18:00 jackson
37939 * DockStyle.cs, AnchorStyles.cs:
37941 Add flags and serializable attributes.
37943 2004-08-06 17:46 pbartok
37946 - Implemented GetParent
37948 2004-08-06 17:18 pbartok
37951 - Fixed some rounding issues with float/int
37953 2004-08-06 17:17 pbartok
37955 * X11Structs.cs, XplatUIX11.cs:
37956 - Fixed Refresh and Invalidate
37958 2004-08-06 15:30 pbartok
37960 * Control.cs, X11Structs.cs, XplatUIX11.cs:
37961 - Fixed recursive loop when resizing
37962 - Improved/fixed redrawing on expose messages
37964 2004-08-06 09:53 jordi
37966 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
37967 keyboard navigation
37969 2004-08-06 08:02 pbartok
37971 * X11Structs.cs, XplatUIX11.cs:
37972 - Fixed reparenting
37973 - Fixed window border creation
37975 2004-08-05 15:38 pbartok
37978 - Attempted fix for reparenting problems
37980 2004-08-04 15:14 pbartok
37983 - Fixed Invalidation bug (calculated wrong client area)
37984 - Added ClientSize setter
37986 2004-08-04 15:13 pbartok
37989 - Added AutoScale properties
37991 2004-08-04 15:13 pbartok
37994 - Added latest files
37996 2004-08-04 14:11 pbartok
37998 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38000 - Added Invalidate handling
38002 2004-08-03 17:09 jordi
38004 * XplatUIDriver.cs: fixes spelling mistake
38006 2004-07-27 09:53 jordi
38008 * TrackBar.cs: fixes trackbar events, def classname, methods
38011 2004-07-27 09:29 jordi
38013 * ScrollBar.cs: fixes scrollbar events
38015 2004-07-27 04:38 jordi
38017 * Control.cs: changes to be able to run winforms samples
38019 2004-07-26 11:42 jordi
38021 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
38022 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
38024 2004-07-26 05:41 jordi
38026 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
38027 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
38030 2004-07-22 09:22 jordi
38032 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
38033 check link overlapping, implement events, and fixes
38035 2004-07-21 10:28 jordi
38037 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
38039 2004-07-21 10:19 jordi
38041 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
38042 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
38043 LinkLabelLinkClickedEventArgs.cs,
38044 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
38045 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
38048 2004-07-19 13:09 jordi
38050 * Control.cs, Label.cs: label control re-written: added missing
38051 functionlity, events, and properties
38053 2004-07-19 10:49 jordi
38055 * Control.cs: fixes SetBounds logic
38057 2004-07-19 01:29 jordi
38059 * Control.cs: Call RefreshWindow only if the window has created
38061 2004-07-15 14:05 pbartok
38063 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
38064 - Implemented ImageList and ImageList.ImageCollection classes
38065 - Added ColorDepth enumeration
38066 - Updated SWF VS.Net project
38068 2004-07-15 11:06 jordi
38070 * XplatUIStructs.cs: added MsgButons enum
38072 2004-07-15 11:03 jordi
38074 * Control.cs: added basic mouse handeling events
38076 2004-07-15 03:38 jordi
38078 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
38079 Vertical TrackBar control implementation
38081 2004-07-13 09:33 jordi
38083 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
38085 2004-07-13 09:31 jordi
38087 * Control.cs, Form.cs: commit: new properties and fixes form size
38090 2004-07-09 14:13 miguel
38092 * ProgressBar.cs: Spelling
38094 2004-07-09 11:25 pbartok
38097 - Removed usage of Rectangle for drawing. Miguel pointed out it's
38100 2004-07-09 11:17 miguel
38102 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
38104 * ProgressBar.cs: Fixed spelling for `block'
38106 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
38109 Avoid using the += on rect.X, that exposed a bug in the compiler.
38111 2004-07-08 23:21 pbartok
38113 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
38114 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
38115 BaseCollection.cs, Binding.cs, BindingContext.cs,
38116 BindingMemberInfo.cs, BindingsCollection.cs,
38117 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
38118 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
38119 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
38120 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
38121 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
38122 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
38123 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
38124 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
38125 FrameStyle.cs, GiveFeedbackEventArgs.cs,
38126 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
38127 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
38128 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
38129 InputLanguageChangedEventArgs.cs,
38130 InputLanguageChangedEventHandler.cs,
38131 InputLanguageChangingEventArgs.cs,
38132 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
38133 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
38134 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
38135 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
38136 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
38137 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
38138 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
38139 QueryAccessibilityHelpEventArgs.cs,
38140 QueryAccessibilityHelpEventHandler.cs,
38141 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
38142 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
38143 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
38144 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
38145 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
38146 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
38147 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
38148 XplatUIX11.cs, lang.cs: