开发者

Adding menu entries to Blackberry menu list

开发者 https://www.devze.com 2023-02-11 07:30 出处:网络
Blackberry applications have开发者_运维百科 a \"menu\" list coming up when you hit the Blackberry menu button. (When you inherit from \"MainScreen\".) But in my application there is only one entry, \"

Blackberry applications have开发者_运维百科 a "menu" list coming up when you hit the Blackberry menu button. (When you inherit from "MainScreen".) But in my application there is only one entry, "Close".

How do I add entries to this menu?

(This is not a dupe of this question, which is about replacing the standard menu with an entirely custom menu.)


create a menu item using the net.rim.device.api.ui.MenuItem. You can add it to a MainScreen with the addMenuItem(MenuItem item) function.

EDIT

sample code

MenuItem mi=new MenuItem("mymenuitem",1,1);
addMenuItem(mi);
0

精彩评论

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