Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-03-03Rename Managed.Windows.Forms to System.Windows.Forms for consistency.Zoltan Varga
2015-02-28Bug 27529 Tool Tip appears behind menuDavid Moore
In certain cases, hovering over a ToolStripMenuItem that has a tool tip defined will result in the tool tip appearing behind, and hidden by, the context menu containing the item. The change is to cause the tool tip to be pushed to the front when it is displayed.
2015-02-27Merge pull request #1602 from cdettmering/masterZoltan Varga
Fixing ToolStripManager.RevertMerge
2015-02-27Fixed up formatting to comply with Mono coding guidelinesChad Dettmering
2015-02-27Changed System.Windows.Forms.ToolStripManager.RevertMerge to returnChad Dettmering
false when given a null argument instead of throwing an exception. According to the msdn here: https://msdn.microsoft.com/en-us/library/b4e35dwy%28v=vs.110%29.aspx this method should never throw an exception. This was also confirmed with the official Microsoft runtime. This change is released under the MIT license.
2015-02-26Prevent right click from triggering ToolStrip.OnItemClickedStephen McConnel
This addresses https://bugzilla.xamarin.com/show_bug.cgi?id=26887 (along with a previous fix).
2015-02-10Merge pull request #1557 from StephenMcConnel/bug-26887Zoltan Varga
Prevent right click from triggering ToolStripItem.HandleClick
2015-02-10[MWF] Fix NullReferenceException introduced by commit a080a7dDamien Daspit
Change-Id: I5709063cc7eecc01fd1e2978cd8aac096060c31e
2015-02-10Prevent right click from triggering ToolStripItem.HandleClickStephen McConnel
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=26887.
2015-01-29Fix the default behavior of ToolStripLayoutStyle.TableStephen McConnel
This addresses https://bugzilla.xamarin.com/show_bug.cgi?id=26523.
2015-01-28Fix TextBox display to handle kerning fontsStephen McConnel
Many fonts, including the default DejaVu Sans, use kerning between certain character pairs. This resulted in garbled or even invisible display during typing of strings with a lot of kerning going on. An attempt is made to retain the current speed-optimized implementation while using accurate, slower string width measurements when needed. See https://bugzilla.xamarin.com/show_bug.cgi?id=26478 for details.
2015-01-22Fix occasional rendering problem in TextBoxesStephen McConnel
See https://bugzilla.xamarin.com/show_bug.cgi?id=26258 for details.
2015-01-15Merge pull request #1506 from akoeplinger/fix-paste-testZoltan Varga
[MWF] Fix unicode string handling from clipboard paste in X11
2015-01-15[MWF] Fix unicode string handling from clipboard paste in X11Alexander Köplinger
In the TextBoxTest.PasteTest () test case we copy the string "ABCD" to the clipboard. We then try to paste it again and see if it's the same. Internally in WinForms, the clipboard data is retrieved via an X11 API that returns a pointer to the string. In this case, we have a unicode/utf16 string that usually looks as follows in memory (2 byte per character): 65 'A' 0 - 66 'B' 0 - 67 'C' 0 - 68 'D' 0 - 0 '\0' end of string 0 potential garbage from here on - 0 0 ... The bug is that we use Marshal.PtrToStringUni (), which reads until the first null *char* not the first null *byte*. Imagine if we get the following (happens sometimes): 65 'A' 0 - 66 'B' 0 - 67 'C' 0 - 68 'D' 0 - 0 '\0' end of string 230 <--- garbage, but considered part of a char by PtrToStringUni () - 47 56 - 74 43 ... This produces garbage like "ABCD㠯⭊" since PtrToStringUni () reads beyond the original string. The fix is to use the nitems variable that is returned by the X11 API (it contains the actual number of bytes in the string) and copy the bytes manually. We already do the same for the UTF8 case above. This fixes the TextBoxTest.PasteTest () that intermittently fails on Jenkins.
2015-01-14[bcl] Remove NET_4_0 defines from class libs.Zoltan Varga
2015-01-03[Windows.Forms] DataGridViewTextBoxCell: do not use a shared editing controlMiguel de Icaza
This fixes the case of the System.ObjectDisposedException being thrown when editing a text cell in a DataGridView control a second time. The problem is that the static control would be disposed by the code in DataGridView's EditingControlInternal, but this instance was reused over and over. Instead, we now createa new editing control every time that the TextBoxCell is created. The investigation for this bug took place here: https://bugzilla.xamarin.com/show_bug.cgi?id=9653 Fixes also: https://bugzilla.xamarin.com/show_bug.cgi?id=22297
2014-12-09Merge pull request #1448 from ermshiperete/TSBTextTruncationZoltan Varga
[MWF] Don't truncate text on ToolStripButton
2014-12-09[MWF] Fix crash in multi-selection list viewEberhard Beilharz
Calling owner.UpdateMultiSelection can also change the selected item, causing a crash. This change improves the fix for Xamarin bug #23591.
2014-12-09[MWF] Don't truncate text on ToolStripButtonEberhard Beilharz
Previous code subtracted 4 pixels of the height of the text of a toolstrip button, presumably to leave a margin. However, margins are handled elsewhere, so we ended up with truncated text.
2014-12-09Merge pull request #1447 from chrisvire/bug-25102Zoltan Varga
[MWF] Use Ctrl+PageUp/PageDown for Tab Navigation
2014-12-08[MWF] Use Ctrl+PageUp/PageDown for Tab NavigationChris Hubbard
In the Windows implementation of the TabControl, Ctrl+PageUp navigates to the previous tab and Ctrl+PageDown navigates to the next tab (with both wrapping around). This change implements this feature in the Mono implementation. Change-Id: Ib940bd08d5ba641f05ed91c0e789e356e68f72bb
2014-12-05Merge pull request #980 from StephenMcConnel/bug-18638Zoltan Varga
Fix bugs in sizing TableLayoutPanel (Xamarin bug 18638)
2014-12-05Merge pull request #1442 from ermshiperete/TextOverlapsImageZoltan Varga
[MWF] Fix problem when button text overlaps image
2014-12-05Merge pull request #1322 from StephenMcConnel/bug23532Zoltan Varga
Remove excessive shortcut key matching in ToolStrip
2014-12-05Merge pull request #1323 from StephenMcConnel/bug-23591Zoltan Varga
Fix potential crash in ListView.ItemControl.ItemsMouseDown
2014-12-05[MWF] Fix problem when button text overlaps imageEberhard Beilharz
When we draw a button with ImageAboveText.ImageAboveText and the text is too big to fit below the image we have to draw the text over the image. This should happen from the bottom, not from the top as the previous implementation did. With the previous code we ended up having the text at the top of the button under certain conditions.
2014-11-27[MWF] Fix bug in DataGridViewRowCollection Clear() introduced by recent commitAlexander Köplinger
7d1b878fbf13462a282860c6d1dd493a48d7b1eb altered the behavior of removing rows, breaking the DataGridViewRowCollectionTest.ClearRows () test Before the change, this is what happened when the list was cleared (the number in brackets is the value of the Index property of the DataGridViewRow): [0] Remove [1] ReIndex [0] Remove [1] ReIndex [0] [1] --------> [2] --------> [1] ------> [2] -------> [1] ... [2] [3] [2] [3] After the offending commit, ReIndex is only called after the list is cleared, which means the Index property of the rows is never updated (as there are no items in the list). The fix is to explicitly set the Index of each row to 0. This was the end result before the commit anyway, so we can omit the ReIndex call entirely.
2014-11-27Merge pull request #1407 from chrisvire/bug-24587Alex Rønne Petersen
[MWF] Fix focus issue when removing last item in ListView
2014-11-26Merge pull request #1398 from jwestfall69/dgv-first_row_indexMiguel de Icaza
[MWF] DataGridView: ensure first_row_index will be valid after row removal
2014-11-26Merge pull request #1396 from jwestfall69/dgvrc-clear-speedupMiguel de Icaza
[MWF] DataGridViewRowCollection Clear() speed up
2014-11-19Fix bugs in sizing TableLayoutPanel (Xamarin bug 18638)Stephen McConnel
Consider spans and absolute sizes in computing PreferredSize for TableLayoutPanel. Also fix bug in allocating unused width to SizeType.Absolute columns. Change-Id: Ic5065b83ced8195d1c5be39087f33b0d632fc9a6
2014-11-19[MWF] Fix bug that truncates button textEberhard Beilharz
A previous change (885b065e) accidentally calculated the text size in some places without padding. This resulted in a slightly to small text rectangle, causing the text to be truncated.
2014-11-17Fix crash when removing last item in ListViewChris Hubbard
When the VirtualListSize changes, the focus_item_index should be reset (similar to how it currently resets the selected indices). If the last item in a ListView has focus and it is removed by an another action on the form (i.e. push a button to remove the current item), then the focused_item_index is not updated when the VirtualListSize changes, even though that item doesn't exist anymore. When the ListView receives focus again, it tries to invalidate the current focused item which causes an ArgumentOutOfRangeException.
2014-11-15[MWF] Fix off-by-one from 5a5c683Jim Westfall
first_row_index needs to be <= RowsLeft - 1, since we are comparing a row count vs an index.
2014-11-11[MWF] DataGridView: ensure first_row_index will be valid after row removalJim Westfall
DataGridView keeps track of the first visible row in first_row_index. DataGridViewRowCollection will notify DataGridView its about to delete 1 or more rows via OnRowsPreRemovedInternal(). When this happens, we need to ensure first_row_index will still fall within the number of rows that will remain after the row removal. This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24372 which I reported.
2014-11-09[MWF] DataGridViewRowCollection Clear() speed upJim Westfall
When issuing a Clear() to remove all rows, a ReIndex() was being called for each row that was being removed. This is extremely inefficient, instead do a single ReIndex() after all rows have been removed. Before doing a Clear() of 30k rows was taking 5.8 seconds. With this patch it now takes 670ms.
2014-11-02Merge pull request #1347 from ermshiperete/ImproveEllipsisHandlingMiguel de Icaza
[MWF] Improve ellipsis handling
2014-10-31Merge pull request #960 from ermshiperete/ShowHelpMiguel de Icaza
[MWF] Partially implement Help.ShowHelp
2014-10-25[MWF] Improve ellipsis handlingEberhard Beilharz
- Don't subtract room for ellipsis. Ellipsis should be handled by the renderer so we shouldn't reserve space for it. Otherwise we end up not getting ellipsis (because the renderer thinks there is enough space available), or we don't use up the available space. - Don't allow text to go below button if we want to show ellipsis.
2014-10-25[MWF] Display visual feedback on pressed button (#23869)Eberhard Beilharz
When a button is pressed the image and the text needs to be rendered one pixel to the right and to the bottom so that there is some visual feedback of the button press. Previously this was only the case if TextImageRelation was set to Overlay.
2014-10-24Merge pull request #1348 from ermshiperete/ImproveButtonTextLayoutMiguel de Icaza
[MWF] Improve button text layout
2014-10-24[MWF] Use overload of Marshal.PtrToStringUni that reads up until the first ↵Alexander Köplinger
null instead of explicitly specifying length This fixes the two tests broken by 0ac61b03fcd9baf75739d3c567b36647bde08025
2014-10-16[MWF] Use full available height for textEberhard Beilharz
This is especially relevant if we have to shrink the width because of padding. In this case it is possible that MeasureString calculated that the string would fit in one line, but because of padding we reduce the width. If the button is large enough we want to display additional lines even if MeasureString told us we only need one line.
2014-10-16[MWF] Use full width for measuring textEberhard Beilharz
Previously we applied the padding twice.
2014-10-07[MWF] Pass graphics when calculating button text and imageEberhard Beilharz
This fixes a problem with calculating the text width of a button which caused the text to get truncated under certain circumstances instead of being wrapped. This fixes Xamarin-23168. Change-Id: Iac0d8a2720a99cf5433e05d5123a04c4b019e493
2014-10-03Fix potential crash in ListView.ItemControl.ItemsMouseDownStephen McConnel
This fixes Xamarin bug 23591. Side-effects of internal processing of ItemsMouseDown can cause ItemsMouseUp before ItemsMouseUp has finished.
2014-10-02Remove excessive shortcut key matching in ToolStripStephen McConnel
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=23532.
2014-08-29Fix scrolling in SWF.ListView.EnsureVisible(int index)Stephen McConnel
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=22483
2014-07-17Fix error in tooltip display for ListView.ShowGroupsStephen McConnel
This fixes Xamarin bug 21346 " SWF.ListView does not handle item tooltips when Groups are used".
2014-06-21[Managed.Windows.Forms] Revert a revert commit that accidentally changed the ↵Alexander Köplinger
wrong code When the commit 8334fe3a56c978ffe7f8cb199536f9b3234afdbe was reverted in a791cfc1640bec442757f78fe71e428d643e90ed, accidentally the wrong chunk of code was changed. This commit reverts the changes correctly.