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

Implementing basic menu support. #144

Closed
wants to merge 1 commit into from

Conversation

sinterdev
Copy link

@sinterdev sinterdev commented Nov 26, 2024

What does the pull request do?

This pull request adds support for menus on the Windows platform via win32 APIs.

win32_menus
linux_menus
mac_menus

What is the current behavior?

Currently, there is no support for native menus.

What is the expected behavior?

There should be support for native menus.

How was the solution implemented?

Due to WebView2's threading model, we can't simply execute TrackPopupMenu. Thus, we choose to create a "menu thread" on which all of our menu operations occur. We communicate with the C# via a OnClicked callback, and we expect C# to properly Invoke on the relevant PhotinoWindow.

Fixed issues

#43

Remarks

@philippjbauer @MikeYeager

@sinterdev sinterdev marked this pull request as draft November 27, 2024 11:30
@sinterdev sinterdev changed the title Adding menu support. Fixes #44. Implementing basic menu support. Jan 2, 2025
@sinterdev sinterdev marked this pull request as ready for review January 2, 2025 11:31
@sinterdev sinterdev closed this Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant