Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 144
Registered: ‎12-20-2008
My Device: Not Specified

How menues on screem are implemented

[ Edited ]

 

How menues on screen are implememented like in categories menu in Tibilisoft Reminder

or in the main applications Buttons with image and selection of clicked button

if image link fails remove www.


1st image main page the image http://coopelrecreo.com/bb1.jpg
http://www.coopelrecreo.com/bb1.jpg


2image menu achieved i do not know why it does not show http://coopelrecreo.com/bb3.jpg


what i like to do http://coopelrecreo.com/bb2.jpg 

other ideas new to bb

thanks in advance


 

Message Edited by RSOLER on 12-25-2008 12:42 PM
Message Edited by RSOLER on 12-25-2008 12:45 PM
Message Edited by RSOLER on 12-25-2008 12:47 PM
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: How menues on screem are implemented

Wow Smiley Happy

 

Would you like to copy functionality of my product?

 

 

Developer
Posts: 144
Registered: ‎12-20-2008
My Device: Not Specified

Re: How menues on screem are implemented

I just want to know how screen menues work and the screen that i like is like yours

sorry

r.ssoler

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: How menues on screem are implemented

Hello Smiley Happy

 

I guess you're a novice blackberry programmer.

 

In this case below there are useful links for you.

 

Developers Knowledge Base

 

Blackberry Developer Documentation

 

Bookmark these pages and read them closely. There is a lot of helpful information for you  Smiley Happy

 

Developer
Posts: 144
Registered: ‎12-20-2008
My Device: Not Specified

Re: How menues on screem are implemented

Thanks as you guess i am new to blackberry not to javascript and visual basic so i develop commercial applications at vzla specially maps and commercial aplications if you are interested i can translate your app to spanish language that problably will help you to sell more and to me to learn really my only interst i blackberry is to develop gps map view for vlzal with tracking system and remote saving position to a web server for a company having 50 trucks you can see it in one of my pages  http://coopelrecreo.com/zoom/UC/Index1.htm or http://coopelrecreo.com/zoom/Historico1.html what relly i would like is that google maps gives the option of new collection or see the way they implemented the tiles view in the web browser

thanks for your understanding

br

r.soler

 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: How menues on screem are implemented

[ Edited ]

Hello Smiley Happy

 

Your offer about translation is interesting.

 

Give me your email address and I will contact you.

 

Or send me an email

 

My email address is on site: http://www.tbilisoft.com

Message Edited by tbilisoft on 26-12-2008 07:07 AM
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: How menues on screem are implemented

Also check the following link (there is pdf document):

 

Blackberry GPS and Maps Developer Guide

 

I think it will be interesting for you.

Developer
Posts: 144
Registered: ‎12-20-2008
My Device: Not Specified

Re: How menues on screem are implemented

my private mail is ramon@soler.com

by the way i have found as pe your suggestion the colour list but witout images i try to add to my exisitn aplication as new screen called from the menu item in main app

i get following error suposse double run method how to solve

C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\bin\rapc.exe  -quiet  import=..\lib\net_rim_api.jar codename=..\samples\com\rim\samples\device\Soler\HTTPDemo ..\samples\com\rim\samples\device\Soler\HTTPDemo.rapc "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\Soler\ColouredListField.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\Soler\ColourListFieldSample.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\Soler\ElRecreo.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\Soler\img\httpdemo_jde.png" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\Soler\PasswordPopupScreen.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\Soler\WapOptionsScreen.java"
C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\Soler\ColourListFieldSample.java:32: illegal start of expression
            public void run()
            ^
C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\Soler\ColourListFieldSample.java:32: illegal start of expression
            public void run()
                   ^
C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\Soler\ColourListFieldSample.java:32: ';' expected
            public void run()
                           ^
3 errors

main page declaration and methods

 

 

 

 

private ColourListFieldSample _ListaColoresScreen;  

menu.add(_ListaColoresScreen);

 private MenuItem _ListaColoresScreen = new MenuItem("Lista Colores", 120, 10)
    {
        public void run()
        {
            _ListaColoresScreen.display();
        }
    };

 

 

 

 

the class

final class ColourListFieldSample extends MainScreen implements ListFieldCallback
{
     private UiApplication _app;  
     private MainScreen _this;
  
    private static final String[] _elements = {"First element", "Second element", "Third element", "Fourth element", "Fifth element"};
    private Vector _listElements = new Vector(_elements.length, 1);
   

 ColourListFieldSample(UiApplication app)
    {   
          super();
        _this = this;
        _app = app;
     {
            public void run()
            {
                ColourListFieldSample _app = new ColourListFieldSample();
                _app.enterEventDispatcher();
              
            }
        };
      // MainScreen myScreen = new MainScreen();
      //  myScreen.setTitle(new LabelField("Colour ListField sample"));

        ColouredListField colourList = new ColouredListField();
       
        //Set the ListFieldCallback
        colourList.setCallback(_this);
       
        int elementLength = _elements.length;
       
        //Populate the ListField & ListFieldCallback with data.
        for(int count = 0; count < elementLength; ++count)
        {
            colourList.insert(count);
            _this.insert(_elements[count], count);
        }

        //Add the ListField to the screen.
        _this.add(colourList);
       
      
   
    }
    public void display()
    {
        _app.pushScreen(_this);
    }

 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: How menues on screem are implemented

Hi, Ramon.

 

I'll contact you shortly.

 

Regarding the error.

 

If you're not too experienced with java - I recommend to read the excellent book Thinking in Java by Bruce Eckel.

 

It is very useful source of information.

 

After that check Sun Microsystems site about j2me, download it and try samples.

 

After that try samples included in JDE installation pack.

 

As I see you want to implement custom field. Custom field creation is described into Blackberry Developer Documentation.

 

The main point - don't hurry, and read docs and check samples closely.

 

There is no something "hidden magic" or like that. It is easy, when you have understood the technology.

Developer
Posts: 144
Registered: ‎12-20-2008
My Device: Not Specified

Re: How menues on screem are implemented

[ Edited ]

I know you are right but what i want is that aplication work i already have tried to post to sun forum but same is out of service

really what i want to achieve is this as now on my page

http://coopelrecreo.com/bb6.jpg

 

 

Message Edited by RSOLER on 12-26-2008 05:46 AM