You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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?
The text was updated successfully, but these errors were encountered:
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...
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.
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 customappIconBounds
so that theonNcHitTest
function will correctly returnHTSYSMENU
on the new custom icon and display the System menu correctly like here: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?
The text was updated successfully, but these errors were encountered: