* 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>
* 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>
* 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>
* 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>
* 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>