专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > BlackBerry

给黑莓程序增添快捷键

发布时间:2010-05-30 19:37:45 文章来源:www.iduyao.cn 采编人员:星星草
给黑莓程序添加快捷键

黑莓开发文档中描述了如何给应用程序添加快捷键。


In your Project Properties in the Integration Development Environment (IDE), click the Resources tab.  
Under the Title ID option, specify the Resource variable name (App_Title) which corresponds to the actual text to be displayed (myApp) on the ribbon. 
If you want the A in myApp to be a hotkey, insert the unicode underscore character (u0332) after the A. Therefore, in your resource package, instead of specifying myApp as the value for the variable App_Title, specify the following: 
myAu0332pp 


在集成开发环境中打开资源页,在Title属性中,开发者一般会在这里指定应用程序的名字。在名字中挑一个字母,然后在后面加上u0332,这个字母就成了该应用程序的快捷键。如果系统原来对这个字母定义了快捷键,则会被这个新的应用程序所取代。

如:程序名为:MyApp。如果要定义A为应用程序的快捷键,可以写成:MyAu0332pp.

另外,需要注意的是,应用程序的名字不能包含中文,如果有中文,可以用把中文字符转换成AscII字符(如:“浏览器”转换后就成了“\u6d4f\u89c8\u5668”)。



友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: