BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-30-2006, 03:55 PM   #1
Zhi Li
Knows Where the Search Button Is
 
Join Date: Mar 2006
Model: 7250
Posts: 18
Post add items in Trackwheel

Please Login to Remove!

Hi all,

I am newbie in BB area, can you tell me how to do following: when user open a special mail (like Subject contains "Test") in BB device, and press Trackwheel, there will be two more items in menu?

Any suggestion will be greatly appreciated.
Offline  
Old 04-03-2006, 09:45 AM   #2
Ryson
New Member
 
Join Date: Apr 2006
Location: Germany
Model: 7230
Posts: 11
Default

How to add menu items you can read in many tutorials for beginners.

Here a party, i can't post the link
Code:
class SiberianScreen extends MainScreen {
    
    // When menu items are selected, their 
    // run method is invoked
    
    private MenuItem _aboutMenu = 
        new MenuItem( "About", 10, 1 ){
            public void run(){
                onAbout();
            }
        };
    
    // Constructs the screen.
    
    SiberianScreen(){
        setTitle( "Siberian Tiger" );
        addMenuItem( _aboutMenu );
        
        LabelField lf = new LabelField( "Roar!" );
        add( lf );
    }
    
    // Invoked when the Close menu item (automatically
    // added to the menu) is selected.
    
    public boolean onClose(){
        Dialog.alert( "Exiting!" );
        System.exit( 0 );
        return true;
    }
    
    // Invoked when the About menu item is selected.
    
    private void onAbout(){
        Dialog.inform( "This is the tiger application." );
    }
}
Offline  
Old 04-05-2006, 11:15 AM   #3
Zhi Li
Knows Where the Search Button Is
 
Join Date: Mar 2006
Model: 7250
Posts: 18
Thumbs up Thanks..

Thanks a lot, Ryson, its really helpful.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Chroma 6312 DC Electronic Load Mainframe  picture

Chroma 6312 DC Electronic Load Mainframe

$239.96



Tektronix TM504 Mainframe - Powers (SR10) picture

Tektronix TM504 Mainframe - Powers (SR10)

$99.99



exfo ftb-200 mainframe & case w- cables, software  (no module)  picture

exfo ftb-200 mainframe & case w- cables, software (no module)

$710.00



HP 3488A HPIB Switch / Control Unit Mainframe picture

HP 3488A HPIB Switch / Control Unit Mainframe

$24.99



Used National Instruments SCXI-1000 Mainframe 1200 1120 1160(2) 181445D-01 U2 picture

Used National Instruments SCXI-1000 Mainframe 1200 1120 1160(2) 181445D-01 U2

$299.95



USED 100%Tested NI PXI-1033 Mainframe Offers pxi 1033  picture

USED 100%Tested NI PXI-1033 Mainframe Offers pxi 1033

$780.90







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.