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

Custom AppIcon with FullWindowContent enabled #937

Open
Frank-99 opened this issue Dec 12, 2024 · 2 comments
Open

Custom AppIcon with FullWindowContent enabled #937

Frank-99 opened this issue Dec 12, 2024 · 2 comments

Comments

@Frank-99
Copy link

Frank-99 commented Dec 12, 2024

Hi, I'm looking to add back the app icon in a custom location with the FullWindowContent enabled and I'm trying to figure out how to set a custom appIconBounds so that the onNcHitTest function will correctly return HTSYSMENU on the new custom icon and display the System menu correctly like here:
image

I've looked around and right now I don't think there's a proper way to do so...
I suppose there would need to be a function along the lines of this for it to work:
FlatNativeWindowBorder.setAppIconHitTestSpot(window, appIconBounds);

Or have I missed something and perhaps there's another way of achieving the same result?

@DevCharly
Copy link
Collaborator

There is no way to do this ATM.

But the system menu is shown when you right-click on icon, right?
The only difference between HTSYSMENU and HTCAPTION is that HTSYSMENU shows the system menu also on left-click.
Don't think that users even notice that difference...

@Frank-99
Copy link
Author

I can try to ignore the mouse events and pass them through to the window below... could work for now.
Also when you double-click the icon, it closes the window. I can try to implement this in a more "hacky" way, and I know that it's a very minor detail, but could be handy to override the icon bounds properly in a future update, when the FullContentWindow is setup.

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

No branches or pull requests

2 participants