开发者

Air Native Menu

开发者 https://www.devze.com 2023-02-20 09:47 出处:网络
I have an Air windowedapplica开发者_运维问答tion with no chrome (but a custom) and main app windows is transparent.

I have an Air windowedapplica开发者_运维问答tion with no chrome (but a custom) and main app windows is transparent.

I try to attach a nativeMenu on nativeWindow (or nativeApplication on Mac Os). But as there is no system chrome NativeMenu don't work on windows Os but work well on Mac Os.

As I'd like to have similar look and feel on both Os, is someone has an idea to solve that.

Thanks


There are plenty of information available on NativeMenu at Adobe's site. I'd create the menu and try to attach it to nativeWindow/nativeApplication. If it fails, use NativeMenu.display() method to show the menu manualy if it isn't supported on certain system(s).

Also if you need working Keyboard shortcuts for that menu, listen for Keyboard events.

0

精彩评论

暂无评论...
验证码 换一张
取 消