Commit Graph

754 Commits

Author SHA1 Message Date
BDisp
1d44f2e046 Fixes #2571. Wizards background shifts to gray when focusing, looks bad. (#3194)
* Fixes #2571. Wizards background shifts to gray when focusing, looks bad.

* Update nuget packages.

* Trying to fix the CodeQL failing.
2024-01-20 09:19:13 -07:00
BDisp
ce7ecb51d8 Fixes #2252. Pressing the ENTER key in a TextField should not move the focus (#3195)
* Fixes #2252. Pressing the ENTER key in a TextField should not move the focus

* Update xml doc.

* Tested on WSL-Ubuntu-20.04
2024-01-20 09:16:59 -07:00
dependabot[bot]
7e7fd12b3d Bump xunit from 2.6.4 to 2.6.5 (#3126)
Bumps [xunit](https://github.com/xunit/xunit) from 2.6.4 to 2.6.5.
- [Commits](https://github.com/xunit/xunit/compare/2.6.4...2.6.5)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-05 08:00:17 -07:00
Andrey Akinshin
b4975f4747 Fixes #3090. Introduce StatusItem.HotTextSpecifier (#3093) 2024-01-04 07:17:20 -07:00
dependabot[bot]
184a753127 Bump xunit from 2.6.3 to 2.6.4 (#3083)
Bumps [xunit](https://github.com/xunit/xunit) from 2.6.3 to 2.6.4.
- [Commits](https://github.com/xunit/xunit/compare/2.6.3...2.6.4)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-26 09:13:28 -07:00
Tig
3d4613710b V1: Fixes #3050 - API Doc link in Readme (#3058)
* Updated nuget refs

* Fixes #3050
2023-12-17 14:33:47 -07:00
BDisp
577fae1ac7 Fixes #3034. Text remains "invisible" in the TextView when WordWrap is activated. (#3035) 2023-12-06 09:43:25 -07:00
dependabot[bot]
3a502cae3c Bump Microsoft.NET.Test.Sdk from 17.7.2 to 17.8.0 (#2966)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.7.2 to 17.8.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v17.7.2...v17.8.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-16 07:23:38 -07:00
BDisp
85c92f4b0d Fixes #2959. Some of the scroll features on v1 are broken. (#2960)
* Add GrabMouseEventArgs for GrabbingMouse and UnGrabbingMouse events.

* Implementing GrabbingMouse and UnGrabbingMouse in Toplevel class.

* Fix contentBottomRightCorner to draw with the right color.

* Fix a typo.

* Fix ListView to allow scrolling.

* Add a comment to explain an extra column for the cursor at the end of line.

* Add unit tests for GrabbingMouse and UnGrabbingMouse events.

* Add unit test for a Window inside a non Toplevel.

* Removes GrabMouseEventArgs.

* Prevents throwing an exception if not subscribed.

* GrabMouse must be first called before set the dragPosition.

* Add unit test to test null on GrabbingMouse and UnGrabbingMouse.

* Fix event name.

* Prevents a toplevel to overflows his bounds to allow it can be drag.

* Fix unit test.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-16 07:14:55 -07:00
usr
c7942ae3bb Fix issue where the TestViewsDisposeCorrectly was not doing what it was supposed to do (#2964)
* add Disposal Test and fix an ssue where the CopyClipboard test was failing

* Update ViewDisposalTest.cs

* Update ViewDisposalTest.cs: Some Formatting, and adding code comments.

* Fix ViewDisposalTests (Wasn't working the way it was supposed to)

* update test

* update test

* update test

* try to fix as many conflicts as possible

* make test output prettier

* fix formatting

* Fix Subviews not being empty after disposing on all views.

* The fail cause was Application.Top not being disposed.

* Fix others containers that weren't being removed.

* Revert "The fail cause was Application.Top not being disposed."

This reverts commit 0c2183ed9e.

* Application.Top isn't null and need disposing.

* Fixes #2985. Application.RunState must be responsible for dispose the Toplevel property.

* Change the unit test with ans without Application.Shutdown method.

* Update ViewDisposeTests to actually check wether ALL views have been disposed (not just container)

* small additional check just to be safe

* Update ViewDisposalTest.cs: Formatting

* Update ViewDisposalTest.cs: Minor change to re-trigger Action

TestVKPacket is acting up again. Maybe the test is running async and is receiving scan codes from other instances?

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-15 09:22:22 -07:00
BDisp
91865eed22 Fixes #2970. ScrollView doesn't remove a view that was previously added on both versions. (#2971) 2023-11-15 08:30:39 -07:00
BDisp
c348cda317 Fixes #2987. Set a MdiChild visible to false still processes keystrokes. (#2988) 2023-11-15 08:29:26 -07:00
dependabot[bot]
2001a8937e Bump xunit from 2.5.3 to 2.6.1 (#2953)
Bumps [xunit](https://github.com/xunit/xunit) from 2.5.3 to 2.6.1.
- [Commits](https://github.com/xunit/xunit/compare/2.5.3...2.6.1)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-11-06 14:42:15 -07:00
BDisp
d51322ad17 Fixes #2892 for v1 - Null reference pressing menu shortcuts when menus have separators (#2955) 2023-11-06 14:38:37 -07:00
Tig Kindel
20837733a7 Release v1.14.1 (2) 2023-10-30 15:04:43 -06:00
usr
34c6b6ebcc Add Disposal Test and fix an issue where the CopyClipboard test was failing (#2936)
* add Disposal Test and fix an ssue where the CopyClipboard test was failing

* Update ViewDisposalTest.cs

* Update ViewDisposalTest.cs: Some Formatting, and adding code comments.

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
2023-10-30 14:33:34 -06:00
usr
a8d2f8d733 Fixes #2913 - remove Disposed views from Responder.instances when Debugging (#2914)
* fix issue #2913

* remove disposed instances from responder.instances (optional)

* Ensures only clear Instances if they really was disposed.

* Fix unit tests.

* Update RunStateTests.cs

Minor format change to trigger new Unittest execution

* Fixes Pos/Dim static fields not being disposing.

---------

Co-authored-by: John Züchler <john.zuechler@eks-intec.de>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
2023-10-25 07:02:46 -06:00
BDisp
3e1637aac8 Fixes #2775. Something in 1.13 broke centering child windows. (#2778)
* Fixes #2776. Pressing Alt key on a Window with only a MenuBar throws System.InvalidOperationException.

* Add unit test.

* Fix extra bracket.

* Prevents throw exception if Application.Current is null.

* Fix unit test because OnLeave is now invoked on toplevel removing, preventing two views having focus.

* Fix unit test method name.

* Fix Window by not layout on his subviews when adding a new view after the Application.Begin was already running.

* FindAndOpenMenuByHotkey now search inside Menus and inside his Children.

* Add unit test for Window LayoutSubviews and FindAndOpenChildrenMenuByHotkey menu method.

* Prevents button to be clear when it's invisible.

* Fixes 2780. Moving a Window that is Application.Top shouldn't be allowed.

* Fix condition if Window and Application.Top.

* Always LayoutSubviews and PositionToplevels after Clear.

* Fixes #2787. MenuItem with CanExecute returning false is select when a MenuBar is opened.

* Leveraging the power of CanExecute feature.

* Fixes #2789. StatusItem should have a disabled attribute if it can't execute.

* Allows positioning a child window outside the limits of the menu and the status bar.

* Change to a more appropriate name.

* Simplifies all the run actions.

* Prevents open menu bar if it's invisible and close all opened menus.

* Fix mdi run loop.

* Fix hot key on mdi toplevels.

* Fix position on mdi toplevels.

* Fix Top.Redraw by set state.Toplevel.SetNeedsDisplay if it's needed to redraw.

* Fix MdiTop by repainted when a keystroke is generated by keyboard.

* Rename local fields.

* Force redraw if application.Top needs display.

* Added more features to the scenario.

* Change the scenarios to run as Application.Top instead of sub-views.

* Add a new scenario similar but as Mdi Container.

* Add a bunch of new unit tests to prove all this PR.

* Only it's need to redraw Application.Top if it's a Mdi Container.

* Remove unnecessary code.

* Unit test that proves that a MDI child leaves no trace when the location is changed.

* Removes unnecessary Application.Init because theses uses Run<T> which already call it.

* Ensures a menu bar been closed after run an action.

* Ensures that another view can be focused if not IsMenuOpen and LastFocused is null, instead of focused the menu itself.

* Ensures a focused contentview subview being focused if MostFocused is null.

* Ensures a MdiTop subview to have priority if it's focused and thus  make it Current.

* Allow a MdiChild be closed when pressing Application.QuitKey.

* More unit tests proving the changes.

* Ensures the top.MostFocused is focused.

* Ensures MdiChild on the front if MdiTop.MostFocused isn't valid, like ContentView.

* Add unit test showing MdiChild on the front.

* Fix an issue where NullReferenceException can be throws everywhere while get the Application.MdiChildes property.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-10-17 13:34:28 -04:00
dependabot[bot]
9a47180bb4 Bump xunit from 2.5.0 to 2.5.3
Bumps [xunit](https://github.com/xunit/xunit) from 2.5.0 to 2.5.3.
- [Commits](https://github.com/xunit/xunit/commits)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17 12:25:39 -04:00
Tig
a7f53b6bae Merge pull request #2838 from gui-cs/dependabot/nuget/Microsoft.NET.Test.Sdk-17.7.2
Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.2
2023-08-30 07:05:37 -06:00
Tig
06ef44bd5a Merge pull request #2837 from BDisp/v1_request-stop-context-menu-fix_2836
Fixes #2836. v1 RequestStop while a ContextMenu is open can throw an exception.
2023-08-30 07:02:33 -06:00
Tig
67b8523317 Merge pull request #2835 from BDisp/v1_border-borderBrush-background-fix_2834
Fixes #2834. v1 Border BorderBrush and Background wrongly sets to an invalid Color enum.
2023-08-30 07:02:21 -06:00
Tig
677e84a3c3 Merge branch 'develop' into dependabot/nuget/Microsoft.NET.Test.Sdk-17.7.2 2023-08-30 06:59:31 -06:00
Tig
b283ca3642 Merge branch 'develop' into v1_request-stop-context-menu-fix_2836 2023-08-30 06:58:59 -06:00
Tig
ee9948a2a6 Merge branch 'develop' into v1_border-borderBrush-background-fix_2834 2023-08-30 06:58:48 -06:00
Tig
1c6295efa5 Merge branch 'develop' into v1_alt-key-on-toplevel-with-menubar-fix_2810 2023-08-30 06:54:16 -06:00
Tigger Kindel
17b4e3d56b cleaned out version info from csproj 2023-08-30 06:49:34 -06:00
dependabot[bot]
0c2437012b Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.2
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.7.0 to 17.7.2.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v17.7.0...v17.7.2)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-29 14:13:33 +00:00
BDisp
d8eaf7e8bb Fixes #2836. v1 RequestStop while a ContextMenu is open can throw an exception. 2023-08-29 00:05:33 +01:00
BDisp
caf160ac32 Fixes #2834. v1 Border BorderBrush and Background wrongly sets to an invalid Color enum. 2023-08-28 15:23:04 +01:00
Tigger Kindel
1a17ecabde Commented version info 2023-08-28 06:47:45 -06:00
Tigger Kindel
b8a0f415f2 Verifying builds 2023-08-28 06:44:01 -06:00
BDisp
3a937cd290 Merge branch 'v1_develop' into v1_alt-key-on-toplevel-with-menubar-fix_2810 2023-08-23 01:43:16 +01:00
Tigger Kindel
a591314390 Set version to v1.14.0 2023-08-17 10:20:24 -06:00
Tigger Kindel
f7def42b5b tweaking gitversion 2023-08-17 10:20:24 -06:00
Tigger Kindel
6bf2ed25db tweaking gitversion 2023-08-17 10:20:24 -06:00
Tigger Kindel
0b149f9433 new version 2023-08-17 10:20:24 -06:00
Tigger Kindel
145751e590 tweaked csproj files 2023-08-17 10:20:24 -06:00
Tigger Kindel
f55c4e66ca Fixing source link 2023-08-17 10:20:24 -06:00
Tigger Kindel
af1768dad7 coimmented csproj 2023-08-17 10:20:24 -06:00
Tigger Kindel
db41d6a1f4 coimmented csproj 2023-08-17 10:20:24 -06:00
Tigger Kindel
93c234481a tweaking csproj 2023-08-17 10:20:24 -06:00
Tigger Kindel
4c5edaa27e Updated gitversion to test 2023-08-17 10:20:24 -06:00
Tigger Kindel
d474b2d521 Initial commit 2023-08-17 10:20:24 -06:00
BDisp
6e458559e2 Finally the Enter and Leave events has the correct sequence. 2023-08-15 17:56:57 +01:00
BDisp
4f635ffab4 Add unit test to use the Enter and Leave events between two views on two toplevels. 2023-08-15 17:03:39 +01:00
BDisp
de909b86cd Fix a bug where a focused view was receiving the Leave event. 2023-08-15 16:29:07 +01:00
BDisp
65851ad527 Fixes #2810. Pressing Alt key on a Toplevel with only a MenuBar throws System.InvalidOperationException. 2023-08-15 13:07:06 +01:00
dependabot[bot]
3b0ab561fb Bump ReportGenerator from 5.1.23 to 5.1.24
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 5.1.23 to 5.1.24.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v5.1.23...v5.1.24)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-14 08:53:50 -06:00
BDisp
bdf9ec112c Fix unit test method name. 2023-08-11 13:21:21 -06:00