How to make the menu drop-down list with a scroll bar

Hello

I have a drop-down list that is filled with different table sizes.

I have a size of 30-element array.  Some of the last items just go off the screen at the bottom of the Simulator PB.

Is it possible for me to add a drop-down scroll bar?

DP = new DropDown();
dp.rowHeight = 24;
DP.prompt = "stuff";
DP. Height = 34;
DP.width = 230;
DP.x = TitleTB.x + 170;
DP.y = Title.y-3;
addChild (dp);

Some of the tables look like this-

case 'List 1':
dp.rowCount = 2;
for (var i: int = 0; i<2;>
{
if(i==0)
{
DPP.splice (0);
DPP.unshift({label:"blahblah"});)
}
else if (i == 1) {}
DPP.unshift({label:"foofoo"});)
}
}
dp.dataProvider = new DataProvider (dpp);
addChild (dp);
break;

case "List2":
dp.rowCount = 30;
for (var n: int = 0; n<30;>
{
if(n==0)
{
DPP.splice (0);
DPP.unshift({label:"lalalala"});)
}
Else if (n == 1) {}

**********

Delete the existing table using splice (0);

then I add the new array of labels.

Before, when I didn't have the splice (0), I only had the .unshift () and sometimes got bays combined together and a scroll bar appears automatically in the Simulator.  But then the berries were mixed.

Thanks for the help!

Hey mlin13,

from the looks of it, your property rowCount is set too high. the rowCount property represents the number of lines displayed on the screen when the drop down menu is open. so if the number of rows is less than the amount of items on the list, it will create a scroll bar with a drop-down list for you. try to set the number of lines to a default value of 10 and and keep it manipulate your list from there. and see if you get the desired results. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Is there a way to make a menu drop-down list in a form?

    I have a form I created for export to interactive PDF. In the form, the client wants an option for a drop down menu which causes another drop-down to open once the selection is made. For example:

    LIST DROP DOWN 1

    Key

    Shoes

    Pants

    Socks

    KEYSLIST

    House

    Office

    Car

    Safe

    The form filler selects in 1 'key' from the drop-DOWN list. Appears under the drop down menu to the keys and form filler selects 'House '. How could I achieve this?

    Thank you!

    This can be done in Acrobat JavaScript popup menu. It works by using a 'button' and a 'text field' instead of the item "drop-down list.

    The following script would be added to the button > properties > actions > execute a javascript script

    Apour var is ['key', 'Home', 'Office', 'Car', 'Safe'];.

    cRtn var = app.popUpMenu (keys, "Shoes", "Pants", "Socks");

    If (cRtn! = null)

    this.getField ("Response") .value = cRtn;

    Create a text field and name "Answer" the end result will be a dynamic dropdown of the key which enters the user's choice in the answer field.

  • How can I disable the menu drop-down list on the back button?

    I use a laptop and my hands are not too clever. Whenever I click on the 'back' button, I get the drop-down list, which means that I must then back up my hand to the pad (gently!) to move the pointer, and then try again. It may take me several attempts to turn back a site now!

    I searched for hours how activate the drop-down list, nothing is done and even looked through all the settings in: config to try to find a way around it. Seriously impact my ability to use my laptop on the web now, so if someone can you please come up with a way to return to the old back button, with no menu when my finger slow old cannot move pretty fast down the key, I would be very grateful.

    There are two other ways to return to a page.

    • Right click on a box empty page you visit and use the dos command
    • From the keyboard, press {Alt + left arrow}
  • How to replace elements of the menu drop-down list

    Hello

    I have a drop down menu where I have disabled the custom text entry. the last item in the drop-down list is the option 'Other' where I want the user to write additional details. I was wondering if there is a way to bring up a text field when "Other" is selected.

    In addition, the drop-down list field extends all the way through the page... then when the option 'Other' is selected, would it be possible to automatically reduce the field to adapt to a text field next to it for the user to enter details.

    I don't know if there is a better way to do... any help would be very appreciated!

    Thank you!!

    Hello

    I hope you get it working soon.

    I suspect that the form is not saved as dynamic:

    Other than that, be sure that the references object in script matches objects in forms, including subforms if objects are in different subforms.

    If you could share the problem it would be useful to find the problem.

    Niall

  • OBIEE answers how to display the menu drop-down

    Hello
    In answers how to display the name that we choose in the drop-down list on the report page

    and another thing is that I want to display the number of lines in the report as report salary has 20 lines, followed by the 20 lines in the report

    Waiting for your answer.

    Rgrds,
    Bala

    Published by: user13068446 on May 13, 2010 22:30

    create a report and save it.

    now, to create a line of dashboard your wish to keep as it's the default SNA record the prompt of the dashboard.

    now, go to the dashboard - options - section drag and report him.

    now do drag the guest to this article and put this promp above the report...

    Save it
    Now you can see the drop down prompt menu selected

    Concerning

    J Mama Prasad

  • How to disable the address drop-down list when you write a new?

    I don't want my previous addresses drop-down list when I start to write a new one.

    • Firefox (Tools) > Options > privacy > address bar: when you use the location bar, suggest: nothing
  • How to remove the menu "drop-down" installed on the Satellite U300 Vista

    Is there a way I can you get rid of the annoying "drop down" menu tools that is installed on my Vista Toshiba U300 and always keep the work function keys?

    Many prefer the features of the XP versions, IE. there when you want, on a keyboard, not a stupid menu that gets in the way every time I have use remote desktop. Who writes these things? They never use them? : P

    You can turn it off. I know that each of us has a different taste and if you don't like it you can open the settings for Flash cards and simply turn it off.

    It can not be that complicated. ;)

  • I want to make the history drop-down list smaller or narrower

    The history list has grown grew so great that it occupies more than half of my screen. How can make the list view more narrow and smaller. Ten points should not have to take half a 19 inch screen.

    Note that you can also place such a CSS code in the file userChrome.css in chrome file in the Firefox profile folder.

    I use code like this:

    /* urlbar - separator */
    #urlbar .dropmarker-icon, #urlbar toolbarbutton {border-left:1px solid ThreeDShadow !important}
    #urlbar-icons image {border-left:1px solid ThreeDShadow !important}
    
    /* urlbar - border */
    .autocomplete-richlistitem {padding-top:2px!important; padding-bottom:2px!important}
    .autocomplete-richlistitem:not(:first-child) {border-top:1px solid #ddd!important}
    .autocomplete-richlistitem[selected="true"] {border-top-color:transparent!important}
    
    • create the chrome (lowercase) folder in the .default profile folder if the folder does not exist
    • Use a text editor like Notepad to create a userChrome.css (new) file in the folder chrome (file name is case sensitive)
    • Paste the code in the userChrome.css file in the Editor window
    • Make sure the userChrome.css file begins with the default line @namespace
    • Make sure that you select "All files" and not "text files" when you save the file via "save file as" in the text editor as userChrome.css.
      Otherwise, Windows can add a hidden file .txt extension and you end up with one does not not userChrome.css.txt file

    You can use this button to go to the current Firefox profile folder:

  • How to change the menu drop-down ' send to '.

    I want to send a duplicate of a photo or file to another place - I understand, you right click and open the drop down' send to ' menu that allows me a choice of destination.  How can I change the list of choices of destination in the' send to ' menu?

    Another tutorial:

    How to add the copy to folder and move to folder on the Shortcut Menu of Vista

    http://www.Vistax64.com/tutorials/89196-context-menu-add-copy-folder-move-folder.html

    Copy To Folder lets you right click on an element and copy it to another location immediately. Right click on an item and move it to another extreme and immediately remove it from its current location allows you to move to a folder .

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • How to make a menu drop-down

    Hi, a simple question really, I want the user to click on a help button and a new pop window for them to help. Another other than the main frame window. So how would I go to do this new framework and how the code it's appearance and dissapearance. Thank you

    This announcement so just in case someone comes across this question because I found the solution with the help of this website: http://www.danfergusdesign.com/classfiles/oldClasses/VCB331-richMedia1/exercises/controlli ngMovieClips.php

  • Make a menu drop-down sexy?

    Hi gurus,

    Fireworks CS4. Mac 10.5.8.

    I know how to make a simple drop-down list using the 'Add Pop Up Menu' on a slice.

    However, they are very limiting and that acceptable for first evidence of customer view content, they just don't cut the mustard for the final designs.

    I wonder if there is another solution to create the downs of drop I could use for my designs look perfect the first step of evidence.

    As an example of what I mean, see fall them down on this site, next to the search bar - new / orders / history / Browse.

    Is there a way to create in Fireworks and make them work as drop downs.

    My workflow is usually to create a design in FW, slice it all this and link to the pages, then pop thanks to Dreamweaver and to a test page or just to get a glimpse into the browser and take a laptop to the client's Office where they can be impressed by what "seems" to be a place of work.

    Thanks in advance.

    Tom

    Here is a film that I made for you using a swap image. I use the version of Camtasia Mac and have questions. When I click on play, I get a black screen. Come back and click again and it should work. I work with Techsmith now understand the problem. Maybe it takes a while to load... I'm not sure.

    http://tutorials2go.com/adobe_Fireworks_CS4_tutorials.htm   There are 2 parts.

  • Menu drop-down list does not apear, instead of this, there is a miniature version of the Thunderbird window. How to fix?

    On a new installation of Thunderbird running on a new instalation of Windows 7 in the dropdown menu will not work. By clicking on the list of the menu drop-down appears, but instead to be filled with tryies to squeez options in a copy of the window full thunderbid - see the screenshot.

    Restart in SafeMode it works OK.

    Any ideas how to fix?

    No picture, but try this
    https://support.Mozilla.org/en-us/questions/1012145

    Not better?

  • The bookmarksdrop in the menu drop-down is too big, as it covers the greater part of my screen - how can I make it smaller.

    Whenever I select the menu drop down Favorites, it is so big that it covers the major part of my screen. Then, when I go to a folder in the drop-down menu, if I stop to any other folder, it opens and is so great that the menu drop-down or completely covered. This is VERY irritating and I never had this problem before moving on to Firefox 5.0. How do I don't cure it?
    I use a MacBook with a 13 "screen

    It is probably because you have one or more bookmarks with a long title.

    The width of a column in the list of bookmarks is in the current versions of Firefox automatically adjusted the bookmark with the longest name.

    You can check the names of the bookmarks and the longer more short.

  • How to remove the old google browser displays the start menu in the internet drop-down list box?

    Original title: Start menu

    When I go to the taskbar and start menu properties I go in Start menu, and then click Customize. then at the bottom where it says see the start menu in the box, it shows an old browser I don't have how to remove it is the browser drop-down list internet google ch

    Hi OliveBrook,

    You can try to uninstall entries of Google chrome under programs and features and check if it appears in the start option of Internet link menu.

    See the link below to uninstall a program.

    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program

    Hope this information is useful.

  • How can I create a menu drop-down list dynamics that controls two separate drop-down lists?

    Hello

    I could use help decipher how to control 2 separate drop-down lists ('b' and 'c') through the value selected in the main drop-down menu (that is, 'a').

    My script worked perfectly to control another menu drop down, however I can't seem to properly control the third zone.

    In my example below, what I'm trying to do is control 'Method - external' and 'Department - external', through my gout primary to the bottom of the list. The external 'method -' drop-down list works fine, it is the third 'Department - external' that I fight with.

    For example, if 'Theft' is chosen in the first drop-down menu, I want 'Method - external' to display the series points and "Department - external" to display a different set of items. If 'Cyber Crime' is selected in the main menu down, then the external 'method' - set items will change and the external "Department -" will indicate N/A.

    With the following script - no matter what happens if I choose 'Flight' or 'Cyber Crime' in the first menu drop down, 'Cyber Crime' n/d game elements are displayed in the external "Department -" drop-down.

    I apologize if this is hard to follow - it is certainly difficult to explain. I hope that my question came through.

    Here's my current script

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    break;

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    break;

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

    Thank you

    You have a few break statements that should not be there. Try this:

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

Maybe you are looking for

  • Google vs Apple pics photos

    I recently heard about the Photos of Google app, and I was wondering if it is the same as the pictures Apple app?

  • How to use the graphic cursor 3D of labview 2010

    Hi all I use for my 3D graphics application. I have inserted the cursor inside but cannot able to move. Please give me suggestions and solution for the same. Thank you & best regards

  • Start Windows Xp from hard drive virtual.

    Is booting in windows 7, windows xp VHD possible? How to do this? It will be very nice if it will it be added as a feature in the future. It will be?

  • Incompatibilidade

    Instalei o Nero 7 no PC mas o windows 7 não reconhece, como resolvo o problema o?

  • Lightromm 6 / unfortunately, a problem on our side...

    Hellomy name is Sasha. Yesterday I bought Lightroom. 6When you retrieve the serial number and after you have entered the code recovery alwaysjust the error message: "Unfortunately, seems a problem on our side."occurred, please try again later ".Can a