how to set a menubar icon on mac osx using wx

前端 未结 4 1133
春和景丽
春和景丽 2020-12-05 21:52

I could not find any pointers on how to create a menubar icon on OSX using wx. I originally thought that the wxTaskBarIcon class would do, but it actually creates an icon on

4条回答
  •  囚心锁ツ
    2020-12-05 22:34

    You have to set wxTaskBarIconType to STATUSITEM, not DOCK. The Cocoa APIs for this are NSStatusBar and NSStatusItem; here's the code in wxWidgets that calls to them.

提交回复
热议问题