Added drop-down list for the title bar

Hi - I want to add a menu component from the 'title bar ' of my application.  Something very similar to that implemented in the Poynt application.

I already gave up to use something similar to setTitle and have a horizontalFieldManager added to my request before I add a vertical Manager.  First, I added a label to my horizontal Manager field and that works fine, but when I tried (to test) to add an ObjectChoiceField he appeared on the next vertical row, not next to my text.  I'm quite lost when it comes to customize aspects of the UI of my BB apps.

I suspect that the problem here is that, by default, the ObjectChoiceField will use the entire width.  You should limit its width, by substituting the layout and getPreferredWidth for the ObjectChoiceField.  Memory, a LabelField, will ask only for the width it needs.

Here is an example that puts a DateField and an ObjectChoiceField in the title area.  I hope you can rework to meet your requirement.

HorizontalFieldManager hfm = new HorizontalFieldManager();
hfm.add(new DateField("Some Text: ",  System.currentTimeMillis(),
                DateFormat.getInstance(DateFormat.TIME_DEFAULT)) {
    public int getPreferredWidth() {
        return 150;
    }
    protected void layout(int width, int height)  {
        super.layout(getPreferredWidth(), height);
    }
});
hfm.add(new ObjectChoiceField(" ",new String[]{"some", "text"} ));
setTitle(hfm);

Tags: BlackBerry Developers

Similar Questions

  • How does one increase the number of entries in the drop-down list of the address bar?

    It seems that the number of entries in the drop-down list of the address bar is limited to twelve URLS. I would find it convenient that more than twelve years can be shown, but do not know how to increase the number.

    Increase or decrease browser.urlbar.maxRichResults using Subject: config

    NOTE: The FasterFox extension may affect the number of items displayed if you have it installed (addons > Extensions).

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • CC App drop-down list in the menu bar (Mac) completely blank!

    CC App drop-down list in the menu bar (Mac) completely blank! I tried to delete the opm.db file, logging in via the browser and change my password. Nothing works! By making the two above, I get a login screen in the fall to the bottom of the window, but at the time wherever I am connected, it becomes totally empty. I am running an iMac and OS 10.9.5 3.4Ghz i7. Can not work of the CC function without the content of this window, so the only way I can close the app is by restarting the computer. CC wants me Uninstaller uninstall ALL my applications from Adobe, which is not practical. All of the other CC users on the site here do not have this problem, so it does not appear to be linked to the firewall. Help would be appreciated!

    4.png

    Hi Matt,

    Please refer to the threads below where this issue has been addressed:

    Creative cloud is empty window why?

    Cloud Desktop App is empty?

    New application Cloud Creative unusable: it is empty!

    Re: Empty opening creative cloud app

    Kind regards

    Sheena

  • The drop-down list on the navigation bar goes back in Firefox

    I can't understand why the navigation bar on a site that I've just started going behind the image below instead of top it in Firefox.  It works fine in Explorer.  Help!  http://jeannettedutton.com/MLVC/index.html

    Jeannette

    The drop-down list will also behind in Safari and Chrome. So I would say that the fact that it works in Internet Explorer is just pure luck (or quirks of IE) and FF, Safari and Chrome are entitled.

    In general, the css property that stacks one element on the other is the z-index:

    http://www.w3schools.com/cssref/pr_pos_z-index.asp

    But I don't see any z-index used in the menu or the image rotation.

    So if these two elements are z-index 0 default (no declared z-index), positioning will then have juvenile which item is displayed... rotating images cancels the drop... so to speak.

    I couldn't test a good z-index applied to the menu, so I applied a negative (below zero) z-index to '#rotating - point - wrapper' (via Firebug) and got the menu to display on top of the images.

    z--index: 100;

    So for the test, add a negative z-index to "#rotating - point - wrapper"... just to see the z-indexing can solve the problem." then if you don't like using a negative z-index, apply good z-index in the menu dropdown.

    Best wishes

    Adninjastrator

  • I lost the most views drop-down list under the search bar, it used several times in the same session, and then he just disappeared.

    The drop-down list is / was my part used of any page, use it to access to everything I need. The only other thing I noticed changed it's new green bottom-tab at the top of each page: site Web Safe/number of trackers. I can't get rid of it. Avira virus control icon is on my desktop, but the icon also suddenly appeared on the right side of the search bar. I deleted it because I have it on the desktop. I have no why he appeared suddenly. It is my 3rd session today. I had not changed anything in previous sessions, so don't know why the drop down menu has disappeared.

    Any help appreciated.
    HK

    Hi, hopefully a screenshot can make things more clear - when you right click in the area of the red dot, then a popup menu will appear where you can re-enable the toolbar of bookmarks.

  • Change the style of the drop-down list for the fill-in-the-white questions

    As the title says, I just want to know how to change the style, or at least font size in the drop-down lists to fill-in-the-blank questions. By default have a tiny font that is difficult to read, and a blocky interface. I can do to fix that?

    Hello

    I'm sorry, but this is not possible at the moment. If you fill a feature request (as I already did) to find out a better way to format these drop-down lists?

    Lilybiri

  • lack of drop-down list for the home network connection

    while I'm doing my cell phone as a wifi hotspot

    local area connection properties > sharing > and then connect home network
    I do not have the menu drop-down, it is directly attributed to [wireless network connection] and I can't change it
    Please I need your help to understand the reason behind this problem * _ *.

    I find the solution. you first have to disable windows Defender, and then you can find the drop-down list.

    It will be useful.

  • Is there an easy way to add arrows to the drop-down list for the style Accordion widget?

    I am looking for a simple way to make a drop-down arrow on the Accordion widget. The arrow pointing down when it is open and point at the time down? See the attached screenshot example.

    screenshot.jpg

    You can use an arrow to label image where with the normal state the image of the arrow must be different from the current state.

    Thank you

    Sanjit

  • Can I add a drop-down list for the bookmarks toolbar?

    I would like to have a series of categories of bookmarks in the bookmarks toolbar. Let's say a button called "Household" could have a menu drop down menu links to my sites popular for "Home repair," 'Kitchen', 'Furniture finish', etc.

    And maybe another button may be labeled "Science" and its menu drop-down can contain links to 'Environment', 'Medicine', 'Space', 'Geology', etc.

    And to be really good, each subcategory could have subcategories beneath them.

    Create nested folders (folders in folders) on the bookmarks toolbar. You can also do the same thing in the Menu bookmark instead of bookmarks toolbar.

    1. Right-click on the bookmarks toolbar and choose 'new folder '; Name this folder cleaning
    2. Right-click on the case in the toolbar bookmarks for each subfolder you want under household and choose "new folder"; Name these folders (i.e., home repair, kitchen, furniture, etc.)
    3. Drag or create bookmarks in each of these appropriate subfolders to the name of the subfolder.

    Repeat the above for another folder/sub-sub-sub-folders (i.e., Science folder under folders, geology, environment, medicine, space, etc.).

    See-

  • Yahoo Mail when sending new messages and contacts drop-down list for the name of the person you send the message, it hangs and I have to close Firefox

    This drop remains displayed even when the new message is closed.

    It was the "I want that this" add on the origin of the problem.
    Thank you for the help

  • What happened to the drop-down list for the back button in Firefox 4?

    There used to be an arrow which allowed me to go back a few pages that seems to be missing in Firefox 4. Please bring it back.

    I just found out that if you click of the left arrow button, a list of the previous sites you've visited are listed. You click on the one you want to go.

  • Window drop down bookmarks on the menu bar is missing

    My Favorites are not missing, because I can access it through the sidebar.

    However, I prefer the drop-down list in the Menu bar for my favorites. It is easier for me.

    The Favorites drop-down list box has disappeared and I can't determine how to restore it in the menu bar. The menu bar is always on display and not hidden... just not favourites.

    Any help is appreciated.
    Carl

    You have the delicious extension installed?

    If so, look at the Options of this extension that hides the Menu bar for bookmarks item.

  • 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!

  • I think it would be helpful if when you open the drop-down list for a 3D object keyframe controls have the same color as the 3D arrows in the project window.

    3D colors.jpgI think it would be helpful if when you open the drop-down list for a 3D object keyframe controls have the same color as the 3D arrows in the project window.

    You can suggest that here:

    Feature request/Bug Report Form

  • Is there an extension that will show you the list drop down bookmarks in the location bar?

    I wish the menu drop-down arrow in the address bar to show my favorites instead of show what I typed recently. I use the menu drop-down to go to my most visited sites, so this would be the prefect. Is there an extension that will do this, or something similar?

    You can change a setting: Options > privacy > section of the address bar, change of "bookmarks"; which will display only your bookmarks.

Maybe you are looking for