Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mouse Jump] - reduce dependency on WinForms utility classes #25482

Closed
mikeclayton opened this issue Apr 13, 2023 · 1 comment
Closed

[Mouse Jump] - reduce dependency on WinForms utility classes #25482

mikeclayton opened this issue Apr 13, 2023 · 1 comment
Labels
Idea-Enhancement New feature or request on an existing product Product-Mouse Utilities Refers to the Mouse Utilities PowerToy Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@mikeclayton
Copy link
Contributor

mikeclayton commented Apr 13, 2023

Description of the new feature / enhancement

Mouse Jump currently uses WinForms as the Presentation Framework, but it's also using some of the bundled utility classes for its core functionality (e.g. Screens to get screen dimensions, Cursor to move the mouse pointer) which would make it difficult to port to a different Presentation Framework (e.g. WPF or WinUI3).

I've been working on replacing the use of the following classes with native Win32 calls (using CsWin32 bindings as a starting point):

  • System.Windows.Forms.Cursor
  • System.Windows.Forms.Screen
  • System.Windows.Forms.SystemInformation

I'll open a PR with my changes shortly...

Scenario when this would be used?

General maintenance - would make it easier to move to a different Presentation Framework.

Supporting information

No response

@mikeclayton mikeclayton added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Apr 13, 2023
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Apr 13, 2023
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Apr 13, 2023
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Apr 13, 2023
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Apr 13, 2023
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Apr 13, 2023
@Aaron-Junker Aaron-Junker added Idea-Enhancement New feature or request on an existing product Status-In progress This issue or work-item is under development Product-Mouse Utilities Refers to the Mouse Utilities PowerToy labels Apr 14, 2023
@crutkas crutkas removed the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Apr 18, 2023
jaimecbernardo pushed a commit that referenced this issue Apr 24, 2023
…cut keys(#25487)

* [Mouse Jump] - reorganise existing NativeMethods (#25482)

* Mouse Jump] - reorganise Helper classes / main form code (#25482)

* Mouse Jump] - replace use of System.Windows.Forms.Screen with Native Methods (#25482)

* Mouse Jump] - replace use of System.Windows.Forms.SystemInformation with Native Methods (#25482)

* [Mouse Jump] - replace use of System.Windows.Forms.Cursor with Native Methods (#25482)

* [Mouse Jump] - improve popup responsiveness (#25484)

* [Mouse Jump] - fixed spellchecker errors (#25484)

* [Mouse Jump] - add settings card for thumbnail size (#24564)

* [Mouse Jump] - shortcut keys to jump to centres of screens (#25069)

* [Mouse Jump] - fix spelling (#25069)

* [Mouse Jump] - fix spelling - numpad (#25069)

* [Mouse Jump] - updated "thumbnail size" settings text (#24564)
@jaimecbernardo jaimecbernardo added Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. and removed Status-In progress This issue or work-item is under development labels May 15, 2023
@jaimecbernardo
Copy link
Collaborator

This has been shipped for 0.70.0. Please updated to the latest release. Thank you.

BLM16 pushed a commit to BLM16/PowerToys that referenced this issue Jun 22, 2023
…cut keys(microsoft#25487)

* [Mouse Jump] - reorganise existing NativeMethods (microsoft#25482)

* Mouse Jump] - reorganise Helper classes / main form code (microsoft#25482)

* Mouse Jump] - replace use of System.Windows.Forms.Screen with Native Methods (microsoft#25482)

* Mouse Jump] - replace use of System.Windows.Forms.SystemInformation with Native Methods (microsoft#25482)

* [Mouse Jump] - replace use of System.Windows.Forms.Cursor with Native Methods (microsoft#25482)

* [Mouse Jump] - improve popup responsiveness (microsoft#25484)

* [Mouse Jump] - fixed spellchecker errors (microsoft#25484)

* [Mouse Jump] - add settings card for thumbnail size (microsoft#24564)

* [Mouse Jump] - shortcut keys to jump to centres of screens (microsoft#25069)

* [Mouse Jump] - fix spelling (microsoft#25069)

* [Mouse Jump] - fix spelling - numpad (microsoft#25069)

* [Mouse Jump] - updated "thumbnail size" settings text (microsoft#24564)
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue May 10, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue May 10, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue May 12, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue May 12, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue May 12, 2024
jaimecbernardo pushed a commit that referenced this issue Jun 12, 2024
…appearance (#32838)

* [Mouse Jump] - move code shared with FancyMouse into "Common" folder (#25482)

* [Mouse Jump] - updates to NativeMethods (#25482)

* [Mouse Jump] - added new drawing / layout / style classes (#25482)

* [Mouse Jump] - new style-based preview rendering (actual preview visual style unchanged) (#25482)

* [Mouse Jump] - add words to spell checker (#25482)

* [Mouse Jump] - small tweak to error handling (#25482)

* [Mouse Jump] - fixed failing test (#25482)
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Jun 23, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Jun 23, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Jun 26, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Jun 28, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Jul 1, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Jul 29, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Jul 29, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Jul 29, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Aug 5, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Aug 6, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Aug 6, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Aug 7, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Aug 7, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Aug 7, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Aug 7, 2024
mikeclayton added a commit to mikeclayton/PowerToys that referenced this issue Aug 8, 2024
mikeclayton pushed a commit to mikeclayton/PowerToys that referenced this issue Aug 17, 2024
mikeclayton pushed a commit to mikeclayton/PowerToys that referenced this issue Aug 22, 2024
mikeclayton pushed a commit to mikeclayton/PowerToys that referenced this issue Aug 22, 2024
mikeclayton pushed a commit to mikeclayton/PowerToys that referenced this issue Aug 22, 2024
mikeclayton pushed a commit to mikeclayton/PowerToys that referenced this issue Aug 22, 2024
mikeclayton pushed a commit to mikeclayton/PowerToys that referenced this issue Aug 22, 2024
mikeclayton pushed a commit to mikeclayton/PowerToys that referenced this issue Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-Mouse Utilities Refers to the Mouse Utilities PowerToy Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

No branches or pull requests

4 participants