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
2020-01-13[Winforms] Calculate GroupBox preferred size the same way as Panel (#18429)Karl
GroupBox's GetPreferredSize() is not great. I've simply copied the code from Panel, and used that. It uses LayoutEngine.GetPreferredSize(), which does things a lot better than the code this used.
2020-01-13[Winforms] Always draw at least one line of a Label. (#18422)Karl
Previously, if the Label wasn't quite high enough nothing would be drawn as the line didn't quite fit. It should draw the line anyway, clipped if necessary.
2020-01-13[Winforms] Improve X11 keyboard handling. (#18428)Karl
- Ignore key events with vkey == 0. They won't match a real key code so don't try. Besides, trying can cause segfaults on ChromeOS Linux mode. - Check special-case keys (numpad) before looping to get them. No point leaving them for afterwards...
2020-01-13[Winforms] Don't have non-active controls focused (#18426)Karl
- Make the state of Control.CanSelect depend on whether the control is visible and enabled. - When setting Control.Visible to false, if this control is focused, move the focus to the next control.
2020-01-13[Winforms] Implement correct Control.Region / ClipRegion support on X11 (#18421)Karl
Fixes https://xamarin.github.io/bugzilla-archives/20/20233/bug.html Previously, on Linux, setting Control.Region just set the clipping for painting, but didn't influence the visibility of other controls behind the one it was set on. This implements this correctly via X11 Shape extension.
2020-01-13[Winforms] X11Keyboard LookupString fixes (#18423)Karl
Two small fixes to X11 keyboard handling here: - For Xutf8LookupString, use the actual buffer size rather than the starting buffer size. Using the previous fixed size made the buffer overflow handing code immediately after the change pointless. - For XLookupString, handle similar to Xutf8LookupString, getting a byte array. The old was sometimes causing problems where input on the numeric keypad didn't enter text. I believe using a StringBuilder similar to how it was _should_ work, but for some reason I could not get it to work reliably. So I changed it to this, which seems to work well for me. The only question I have is whether it should be Encoding.ASCII like I used, Encoding.Default, or another specific encoding.
2019-12-19[WinForms][UIA] Add new internal event to track form's owner change (#18117)Nikita Voronchev
This PR is needed for https://github.com/mono/uia2atk/pull/8
2019-12-09 [WinForms] No event should be triggered when calling ↵abrevet-dev
ComboBox.Items.RemoteAt() (#18069) * [WinForms] Fix wrong behavior when calling ComboBox.Items.RemoteAt() with index equals to SelectedIndex * [WinForms] Fix #10643 No event should be triggered when calling ComboBox.Items.RemoteAt() Fixes #10643
2019-12-06[WinForms] Handle menu for wheel button click (close the contextmenu) (#18049)abrevet-dev
Fixes #18019
2019-12-05[WinForms] Fix wrong behavior of RadioButton auto-check (#18044)abrevet-dev
Fixes #18020
2019-12-04[WinForms] Editing the DialogResult of the form in the button click event ↵abrevet-dev
was ignored. (#18025) Fixes #12022
2019-12-03[WinForms] SetRowSpan and SetColumnSpan does not trigger the good exception. ↵abrevet-dev
(#18002) According to .Net documentation: Exceptions ArgumentOutOfRangeException value is less than 1.
2019-12-02 [WinForms] the Text property was not set for every cell in the column when ↵abrevet-dev
UseColumnTextForLinkValue is true (#17981) * [WinForms] Fix #17980 Prevent from crashing when DataGridView is null. Reproducer: DataGridViewLinkColumn links = new DataGridViewLinkColumn(); links.UseColumnTextForLinkValue = true; * [WinForms] Fix #17980 The field useColumnTextForLinkValue of DataGridViewLinkCell was not cloned. * [WinForms] Fix #17980 the Text property was not set for every cell in the column when UseColumnTextForLinkValue is true Fixes #17980
2019-12-02[WinForms] Fix #9726 imageLayout of DataGridViewImageCell was not cloned. ↵abrevet-dev
(#17974) Fixes #9726
2019-11-28[WinForms][UIA] Add to the PropertyGrid new internal event to track grid ↵Nikita Voronchev
items expanded state update (#17731) This PR is needed for the https://github.com/mono/uia2atk/pull/6 one.
2019-11-28[WinForms] DrawToBitmap() did not draw children controls (#17676)abrevet-dev
Fixes #13777
2019-11-27[WinForms] Refactor selected indexes in TabControl.Remove (#17608)abrevet-dev
Fixes #12337
2019-11-27[WinForms] Returns real installed input languages on Windows (#17653)abrevet-dev
The method InstalledInputLanguages() always returned InvariantCulture. Now, installed input languages are detected properly on Windows. Reproducer: `Console.WriteLine(InputLanguage.CurrentInputLanguage.Culture.TwoLetterISOLanguageName.ToUpper());` Related issue: #13552
2019-11-27[WinForms] DefaultCellStyle was not cloned deeply in DataGridViewRow.Clone() ↵abrevet-dev
(#17755) Fixes #16557
2019-11-27[WinForms] Fix X11 theming (#17888)HebaruSan
## Background In Mono 5 and earlier, the active GTK or KDE theme would be sourced for system colors, allowing dark themes to be obeyed: ![image](https://user-images.githubusercontent.com/1559108/69486043-f3bf0500-0e0c-11ea-9b29-1654ba4e6d9a.png) This allowed WinForms apps to blend in and look more like native apps. ## Problem In Mono 6, this capability was lost (as noted in passing in #14325). WinForms apps now only look like this, regardless of the system color settings: ![image](https://user-images.githubusercontent.com/1559108/69486114-dccce280-0e0d-11ea-8107-fe1653b2d816.png) This looks somewhat jarring and worse than previous Mono releases, for users with a dark system theme. ## Cause During load of the system settings (in the static constructor of `X11DesktopColors`), `Theme.SetSystemColors` passes system color data to `System.Drawing.KnownColors.Update`, which populates them into `System.Drawing.KnownColors.ArgbValues`. In Mono 5 and earlier, this flowed through to the visible UI. It seems that as of Mono 6, this table no longer affects the visible WinForms UI (although it is still being updated!). Instead, a same-but-different table in `System.Drawing.KnownColorTable` drives the system colors now. I was not able to identify the commit in which this change was made. ## Changes Now `Theme.SetSystemColors` accesses `System.Drawing.KnownColorTable.s_colorTable` instead, and WinForms apps once again obey GTK and KDE themes: ![image](https://user-images.githubusercontent.com/1559108/69486043-f3bf0500-0e0c-11ea-9b29-1654ba4e6d9a.png) Fixes KSP-CKAN/CKAN#2881.
2019-11-27[WinForms] Fix Recalculate in ScrollableControl (#17163)RizvanKuliev
2019-11-12[WinForms] Fix #10559 In MaskedTextBox wrong Lines value when Mask setted ↵abrevet-dev
(#17660) [WinForms] Fix #10559 In MaskedTextBox wrong Lines value when Mask se… <!-- Thank you for your Pull Request! If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed. Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number -->
2019-11-12[WinForms]: Fix #17546 Fix TabPage position when enabling MultiLine (#17670)abrevet-dev
[WinForms] Fix TabPage position when enabling MultiLine Fixes #17546
2019-11-12[WinForms]: Fix #16632 special values (-1 and -2) of ListView Column header ↵abrevet-dev
Width was not handled when using List.View. (#17669)
2019-11-12 [WinForms] Fix #12249 scroll orientation was not defined in ScrollEventArgs ↵abrevet-dev
(#17662) * [WinForms] Fix #12249 scroll orientation was not defined in ScrollEventArgs of ScrollBar.cs * [WinForms] Fix 12249 scroll orientation was not defined in ScrollEventArgs of DataGridView.cs
2019-10-31[WinForms] Change HotkeyPrefix default value in TabControlPainter.cs (#17579)abrevet-dev
The default behavior on .NET Framework is _HotkeyPrefix.None_ when creating a _TabControl_ element (ampersands not escaped). If an user wants to override this behavior, he has to declare a _DrawItemEventHandler_ (with _DrawMode = OwnerDrawFixed_). Fixes #16206
2019-10-25Fixes #17190: SerializationException on ListViewItemCount (#17195)Leonard
* Fix issue #17190: SerializationException on ListViewItemCount ListViewGroup doesn't (always) have a serialized member "ListViewItemCount". This patch accounts for that and also adds support for the "ItemsCount" property that upstream [1] seems to use. Also items should be initialized regardless of the count, otherwise we get a NPE. [1] https://github.com/dotnet/winforms/blob/master/src/System.Windows.Forms/src/System/Windows/Forms/ListViewGroup.cs#L144
2019-09-18[WinForms] fix #16626 ControlBox property didn`t hide Close button and icon ↵Александр Хухлаев
when set to false (#16627)
2019-08-30[WinForms] Fix UIA event on node insertions into a `TreeView` object (#16559)Nikita Voronchev
The UIA event doesn't emited by means of insertion a new `TreeNode` to a `TreeNodeCollection` of the respective `TreeNode`.
2019-08-12[WinForms] Fix NotifyIcon not showing in systray on 64bit linux (#16164)UnknownShadow200
https://bugzilla.xamarin.com/show_bug.cgi?id=14976 Credit goes to datnhanlz for noting that removing XChangeProperty(DisplayHandle, hwnd.whole_window, _XEMBED_INFO, _XEMBED_INFO, 32, PropertyMode.Replace, atoms, 2); would also fix the bug. Note that the type of Atom is actually unsigned long (see usr/include/X11/X.h), however the code used a C# int for the atoms. As such the code worked without a problem on 32 bit linux, but broke on 64 bit linux. I switched to using IntPtr instead to make the code also work on 64-bit.
2019-06-25[System.Windows.Forms] Fix crash of DataGridView in case of assigning a ↵Nikita Voronchev
custom Column Header (#15135)
2019-05-31Merge pull request #14325 from HebaruSan/fix/listviewgroup-forecolorSteve Pfister
Fix light on light ListViewGroup headers on dark theme
2019-05-28[bcl] Write newline-separated nunit/xunit excludes file for sdks archive ↵Alexander Köplinger
(#14681) During XI integration we noticed that just using the verbatim commandline -exclude or -notrait is not ideal since XI uses the nunit/xunit APIs to pass that information and not the command line parser. Instead we now write the exclude categories/traits as a newline-separated file.
2019-05-23[bcl] Remove usages of mono-project.com/go-mono.com/google.com in tests (#14586)Alexander Köplinger
Use example.com and example.org instead. Fixes https://github.com/mono/mono/issues/14585 Note that not all of the things I replaced make an actual network request but I thought it'd be nice to be consistent.
2019-05-06[WinForms] fix EditingCellFormattedValue getter and setter for bool value ↵sancheolz
(#13845) * [WinForms] If DataGridViewCheckBoxCell not in threeState mode EditingCellFormattedValue must return true or false, instead of value of CheckState type * [WinForms] DataGrid: fix type check in EditingCellFormattedValue setter. When set bool value to EditingCellFormattedValue there will be exception. Type equality must be done through IsAssignableFrom not direct * [WinForms] DataGrid: Add test for EditingCellFormattedValue getter and setter.
2019-05-03Fix light on light ListViewGroup headers on dark themePaul Hebble
2019-05-02Fix #14255: correct type and bitness for TARGETS request of X11 clipboardFriedrich von Never
2019-04-11[WinForms] Fix displayed image in TreeNode when ImageIndex set to -2sancheolz
When ImageIndex in TreeNode set to -2 must not displayed any image
2019-03-27Fix NRE when combobox was disposed and Text set (#13665)sancheolz
If combobox already was disposed and we setting Text field there will be NullReferenceException. On .net winforms there no excetions.
2019-03-21[WinForms] Related Forms closing issue (#13150) (#13151)Nikita Voronchev
Fixes #13150
2019-03-16Fix local variable assignsancheolz
Local variable must be assigned before use
2019-03-16Fix Stackoverflow when SplitContainer`s SplitterDistance setted in ↵sancheolz@gmail.com
SplitterMoved event subscription
2019-03-06[gitattributes] Do CRLF normalization on sln/proj filesAlexander Köplinger
They can be used with native line endings. We now have a shared folder with the dotnet repos and they have CRLF normalization enabled. This difference leads to conflicts while applying changes from the dotnet repos to mono.
2019-03-04[SWF] Method OnClosed should pass FormClosedEventArgs type, instead of ↵sancheolz
EventArgs.Empty (#13283) Fixes #13282
2019-02-18Set executable bit for all .sh files in repoAlexander Köplinger
2019-01-29Add sample from issue #12402.Filip Navara
2019-01-29Take text alignment for LinkLabels into account (#12643)DasSkelett
<!-- Thank you for your Pull Request! If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed. Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number --> ## Problem `LinkLabels` ignore the text alignment for rendering the "hitbox" and the text color (= the `LinkArea`), and the focus rectangle. Also every text behind the end of this LinkArea/focus rectangle region is not painted at all. This becomes visible if `AutoSize = false` and the `Size` is bigger than the text would need, and if the text alignment is anything different than `TopLeft`. ## Cause I think this is because the `piece.regions` are only translated regarding the padding, but neglecting the text alignment. ## Solution Calculate the offset due to alignment and add it to the translation in `LinkLabel.CreateLinkPieces ()` Fixes #12402 ## One more problem: ~Right now, a very tiny bit at the end of the label is still cut off (see my zipped and attached comparison pictures). Maybe `GetBounds ()` returns a value little bit smaller than it should be. Can someone help?~ Also, maybe I took the wrong approach to this issue, but I don't know the inner mechanisms of mono. So feel free to either advise me to change something, or change it yourself(s) :)
2019-01-11[swf] Fix dispose of panels in StatusBar (#12355)Eberhard Beilharz
This change implements disposing of the panels of a status bar.
2019-01-02[csproj] Update project filesmonojenkins
2018-12-21System.Windows.Forms: Fix incorrect layout for table layout nested in flow ↵Filip Navara
layout Fixes issue #8922. The flow layout code specifies `int.MaxValue` as width in `GetPreferredSize` call, which the table layout didn't handle properly and tried to use all the available space. Relevant WinForms open source code that implements the same behavior: https://github.com/dotnet/winforms/blob/master/src/System.Windows.Forms/src/System/Windows/Forms/Layout/FlowLayout.cs#L183-L188 https://github.com/dotnet/winforms/blob/master/src/System.Windows.Forms/src/System/Windows/Forms/Layout/TableLayout.cs#L700-L702