How make a list with input characters

I want to make a list where all the ranks of the list composed over one line? How to do this?

Thanx

As a first step, make the following changes to your code:

After

list = new ListField (itemList.length);

Add the line

list.setRowHeight (list.getFont () .getHeight () * 2 + 1);

Replace:

String text = itemList [index] + "\n" + "Yes."
graphics.drawText ("text", 30, 1, 0, width);

with

graphics.drawText (itemList [index], 30, 1, 0, width);

graphics.drawText ('Yes', 30, listField.getFont () .getHeight () + 1, 0, width);

This will probably not what you want, but it will show you what to change.

Note the above has not been compiled or tested, perhaps even not compile, but you should be able to understand since the javaDocs.

Tags: BlackBerry Developers

Similar Questions

  • How to make a list with the DB control

    Hello

    I need fill a listbox using the dbcontrol, I saw how to define a textBox control with a recordset from the database by making a custom_query and call it through java script, example:

    infra_custom. SQL:

    Get Prueba_Nak
    DESCRIPCIÓN SELECT THE
    OF DB_PRUEBA
    WHERE CALL_NUMBER =: nCALL_NUMBER

    Custom_inCallDetails.js:

    function pruebaQueryMuestra() {}
    var db = document.all.DB;
    DB. ClearParam();
    DB. AddParam ("CALL_NUMBER", document.all.CALL_NUMBER.value);
    var RS = db. GetRecordSet ("Get Prueba_Nak");
    document.all.EXTFLDV_500004.value = RS("DELESDE").value;
    document.all.MI_POLLA.value = "HELLO";
    }

    function customLoad() {}
    pruebaQueryMuestra();
    }

    Well, this work well for complete results, but, if I need more lines for painting, a list, how can I make a loop in a recordset with only one result?

    Kind regards

    The first thing I would say is that you just use the SU_SELECT_VALUES table & fill if possible through Designer.

    If you don't want really dynamically change the menu drop down content based on the number of appeal then you could populate the drop-down list dynamically using JavaScript.

    something like...

    fill in the parameters...

    var r = da. DB. GetRecordset...

    If (! r.BOF) r.MoveFirst;
    If (r.Fields.Count > 2)
    do something here.  There are not enough columns in the query results to populate a drop-down list with a ref and name.
    on the other
    {
    FAL EXTFLDV_500004.options. Length = 0;
    While (! r.EOF)
    {
    Like var = document.createElement ("OPTION");
    oOption.value = r("REF").value;
    oOption.text = r("NAME").value;
    FAL EXTFLDV_500004.options. Add (option);
    r.MoveNext;
    }
    }
  • How make a list of my favorites and save it as a document?

    I have many important sites bookmarked in my Firefox browser. I want to make a list of the links that I have bookmarked so that if any case I surf the net in any other computer, I go to these sites.

    Also, I want to save the links in a type of ms word/all other document, as a backup, too. How could I do it?

    Export bookmarks as HTML

  • How make a list to "develop the shortcut"

    Hi, I'm using the develop and I accidentally did something... (I think that "order /") and now there is a list of 'Developing the shortcut' which will not disappear. And he keeps me editing.  Anyone know the shortcut for hide this list?

    Thank you!

    I just thought about it! It's pretty simple. Just click on the page and it will go away!

  • empty data file with special characters in the name

    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    Since it is empty, it would be possible to create the data file void anothr
    using the:
    ALTER database create datafile ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'
    as ' / oracle/PRD/spdata2/r3i_8/r3i.data8';

    and then recover datafile 'fully_qualified_file_name ';
    ALTER database datafile 'fully_qualified_file_name' online;

    How orders oracle faced with special characters?

    Thanks for your advice

    user6737818 wrote:
    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    It should work using a file as the definition of source file number and a new name for the new file. Works for me:

    orcl> alter database create datafile 7 as 'c:\tmp\newname.dbf';
    
    Database altered.
    
    orcl>
    
  • How to make a list of question field with the data type DATE?

    I have a column with the DATE data type. Using forms 6i I want to generate a poplist field of list item with this column while the value of the items in the list of names of days like SATURDAY, SUNDAY, MONDAY. If we change the date to a char data type, it won't work properly, but now with the data type DATE behind him, it gives the following error message

    "FRM-32082: invalid value for given the type of element."
    List WEEKREST
    Article: WEEKREST
    Block: EMPRESTS
    Form: module 3
    FRM-30085: unable to adapt to the shape for the release. »


    Using forms 6i how a list item field type DATE data which may contain names of days?

    Set your date as a hidden field (not shown) column. Create your item list with the names of day of varchar2. Create the list item as a base table field that accepts the values of text in the names of the days. On this area, create a when-validate-item trigger that translated the text into an actual date that it then uses to set the value of the real object of the base table.

  • How can I make the popup with empty fields and create new record?

    I would use a popup create new record.
    I created an af:popup drag and drop a data control VO in jsff. Then, I created a button and place an af:showPopupBehavior. I was able to pop-up window by clicking on the button.
    However, the window filled with information from the record 1. and when I select a record in the table and click on the popup, the popup is filled with this record.
    How can I make the popup with empty fields and create a new record by recording the popup?
    Thank you

    Hello

    You must call the CreateInsert for the underlying ViewObject operation when opening the popup because it does not allow to clear the input field, you must have a new record created

    Frank

  • How to make the list of instrumental music

    How to make a list of all my player someone help

    Alan

    iTunes is not a method to determine what tracks have vocals. You can create a normal playlist and put what you want in it.

    TT2

  • How to make a ringtone with Itunes 12.4.2.4?

    I'm new with Iphone... I now have a 5 s.

    I have itunes 12.4.2.4

    How can I make a ringtone with a real song?

    Thank you

    go to AppleSupport

  • How can I make a list of all bookmarks as my homepage?

    How can I make a list of all bookmarks as my homepage?

    You can set one of these pages as startup page:

    • chrome://browser/content/places/places. XUL
    • chrome://browser/content/bookmarks/bookmarksPanel.XUL

    The first one opens the Manager of bookmarks (library) and the second the bookmarks that see you in the box to Favorites (Ctrl + B; View > sidebars)

  • I missed the prompt to update my notes. My software is up to date, but there is no option to update notes. How can I get this opportunity again? I want to sketch options and make interactive lists.

    I missed the prompt to update my notes. My software is up to date, but there is no option to update notes. How can I get this opportunity again? I want to sketch options and make interactive lists.

    Open the Notes app and look near the upper left corner to see if the upgrade option is there.

  • How to convert Outlook Express to Outlook without losing files or existing e-mails and taking my contact list with me?

    original title: change of e-mail

    How to convert Outlook Express to Outlook without losing files or existing e-mails and taking my contact list with me?

    Hi KennethPickering,

    You can refer the following Microsoft Knowledge Base article and check.

     

    How upgrade from Outlook Express to Outlook

    http://support.Microsoft.com/kb/287073

    Let us know if it helps.

  • When I publish my movie in movie maker, he publishes with a split screen, how to fix this?

    When I publish my movie finalized in movie maker, it ends with a split screen, half top is my film and the lower half is green screen... What I am doing wrong?

    The info... copied on the net... may be worth a visit:

    =====

    The Green problem bar setting in Windows Movie Maker
    http://www.bernzilla.com/item.php?id=884

    When I tried to follow the directions, I was unable to find XVid on my
    computer.  So I googled XVid and then (I think) the 2nd entrance to
    Download XVid.  After I downloaded it, I could follow the directions
    bernzilla and when I published a video - Voila! no green bar!

    After thick film Green line is published
    http://www.windowsmoviemakers.NET/forums/ShowPost.aspx?PostID=105025

    Good luck...

    =====

    No guarantee, but it might be interesting to try to publish your
    project in DV - AVI format to a folder on your hard drive and
    then import the file .avi in DVD Maker to create a DVD.

    (The following links should help explain how to record in DV - AVI)

    This image shows where the DV - AVI option.
    http://www.Papajohn.org/IMGs/Vista-PublishToComputerChoices.jpg

    Windows Vista - publish a movie in Windows Movie Maker
    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

    Movie Maker Vista - profiles Publishing / qualities
    http://www.Papajohn.org/Vista-publishing.html

    Windows Vista - Windows DVD Maker - burn video disc
    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-DVD-video-disc

    Windows Vista - DVD - video burning - frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/DVD-Video-burning-frequently-asked-questions

  • In Windows Live Movie Maker, how to make a subtitle with the inner different font sizes?

    How to make a subtitle with different font sizes, as in the old Windows Movie Maker?

    I want to produce an effect video, like MTV clips that fade in and out for video (not before or after the video). It of about what I want to produce and could not because the new WLMM seems to have this deleted title feature.

    My song (large)
    Composer (small fonts)

    I want that this block of text fade in and out for my video. Is there a way to do this? Otherwise I would feel obliged to go back to the old WMM.

    FWIW... going back to an older version of Movie Maker
    Maybe the answer. You need to restart your
    because the Live Movie Maker WLMP project project files
    would be not compatible.

    No guarantee but the next for an installable download
    version of Vista Movie Maker 6 may be worth a try

    * Proceed at your own risk *.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Windows Movie Maker Installer for Windows 7
    http://noeld.com/programs.asp?cat=video#wmminst

    Also, Movie Maker 2.6 will work on Windows 7:

    Windows Movie Maker 2.6
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&id=34
    (this is similar to the version of Win XP Movie Maker 2.1)

  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

Maybe you are looking for

  • HP Deskjet 2540: Cannot scan multiple pages into a single PDF for printer Deskjet 2540 Windows 10

    I'm scanning several pages (5) in a single document.  I followed the instructions in the other answers to the questions - I chose the type of pdf file, I chose a less than 300 DPI resolution (I use the default value of 200 dpi), and I clicked on Prev

  • Build error of stand-alone, with LV.7.01 application

    Hi all... I always get this pop up error (see attached photo) trying to build a single application. I got the full version of Labview 7.01 and Application generator also. the runtime engine also is 7.01. Concerning HFZ. ****

  • HP MediaSmart not reading BLURAY (new)

    01/07/2012...I'm this ad all over the boards until I get the good patch... HP Smart media will not play bluray... It was not working after updates from last year when I bought my Product name:HP Pavilion p6180t CTO desktop PCModel name:AV129AAR, Now

  • Loading XP on a totally wiped hard drive

    I completely erase the hard drive of my laptop and I want now to load XP on but what I see is a command line based and I can't figure out how to get the CD with Windows to run. Any help out there?

  • How can I contact acer?

    There, does anyone know how to contact acer canada? Summer in circles all night - Chat does not work, send disabled - sendds me back on chat that does not find my serial no?