BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-27-2009, 02:12 PM   #1 (permalink)
New Member
 
Join Date: Oct 2008
Location: Ontario, Canada
Model: 8330
OS: 4.5.0.77
PIN: 3026CA27
Carrier: Bell Mobility
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to show a new form

Please Login to Remove!

I have my "main" form which has a menu. When the user clicks Options on the menu, I'd like to display a new form -- for, you guessed it, the user to change options . The code for the menu is:

Code:
        menu.add(new MenuItem("Options" , 100, 10)
        {
            public void run()
            {
                Dialog.alert("OPTIONS");
            }
        });
I'm guessing I need to replace the Dialog.alert("OPTIONS"); with something, but I'm not sure what.
Offline  
Old 04-28-2009, 11:01 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

Quote:
Originally Posted by guylaroche View Post
I have my "main" form which has a menu. When the user clicks Options on the menu, I'd like to display a new form -- for, you guessed it, the user to change options . The code for the menu is:

Code:
        menu.add(new MenuItem("Options" , 100, 10)
        {
            public void run()
            {
                Dialog.alert("OPTIONS");
            }
        });
I'm guessing I need to replace the Dialog.alert("OPTIONS"); with something, but I'm not sure what.
I assume by form you mean Screen.

Code:
class MyMainScreen extends MainScreen
{
        public MyMainScreen()
        {
              ...
        }
}
Code:
        menu.add( new MenuItem("New Screen",100, 10)
        {
            public void run()
            {
                UiApplication.getUiApplication().pushScreen(new MyMainScreen());
            }
        });
__________________
My other Blackberry is a PlayBook.
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

WILD MOUNTAIN RAM - TAXIDERMY HEAD SHOULDER MOUNT, STUFFED ANIMAL
$995.0
WILD MOUNTAIN RAM - TAXIDERMY HEAD SHOULDER MOUNT, STUFFED ANIMAL pictureAmerican Dynamics Intellex Ultra CCTV DVR Intel i3, 2G Ram, 1TB HD ADD60AULPV100
$1199.0
American Dynamics Intellex Ultra CCTV DVR Intel i3, 2G Ram, 1TB HD ADD60AULPV100 pictureThe Stubby Antenna for Dodge RAM Trucks 1994-2008
$28.84
The Stubby Antenna for Dodge RAM Trucks 1994-2008 pictureVS1GSDS533D2 Tyco Electronics 15A1 Corsair Value Select RAM Memory
$8.99
VS1GSDS533D2 Tyco Electronics 15A1 Corsair Value Select RAM Memory pictureHM5118160JI-6 Industrial Temperature 16-MEG D-RAMs 60ns
$24.99
HM5118160JI-6  Industrial Temperature 16-MEG D-RAMs 60ns picture






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