开发者

Load different menubars for PC vs Mac users

Each entry in the menubar for my ap开发者_开发知识库p contains a shortcut key suggestion (e.g. Undo (CTRL+Z)). Is there an easy way to dynamically customize the suggestion string depending on whether the app is being used on a pc or on a mac?

thank you

f


Use Capabilities.version to get the version information. The first three letters will tell you the host platform ("WIN", "MAC", or "LNX"). Use a string variable to store the text information ("Ctrl" or "Cmd") for your suggestion accordingly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜