How to make a top bar as 'sticky '.

Hello world.

I want to create a sticky top bar. What I meant with a sticky top bar is the place where there are vertical frames that have fields extend more than the height of the screen, the top does not scroll, it sticks. A good reference of maybe it's like twitter app for blackberry. Twitter app, I guess there are 2 HorizontalFieldManager (at least I thought they are HFM), one is a title bar, and the other is the button bar. The Manager of both stays even if scroll us.

I have a configuration manager custom as a topbarmanager and a Middle Manager, which is an example of VerticalFieldManager, as follows

TopBarManager topMgr = new TopBarManager(logoImg);
add(topMgr);

if (_menuList != null) {
    // if array is empty, just show a message
    if (_menuList.length > 0) {
        VerticalFieldManager middleMgr = new VerticalFieldManager();
        for (int i = 0; i < _menuList.length; i++) {
            MenuSelectableField menu = new MenuSelectableField(menuList[i]);
            // set listener to the menu, (when the menu is clicked).
            menu.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field f, int context) {
                    showNext(f);
                }
            });
            middleMgr.add(menu);
            middleMgr.add(new SeparatorField());
        }
        add(middleMgr);
    } else {
        LabelField label = new LabelField(
                "No menu, please check back later");
        add(label);
    }
} else {
    LabelField label = new LabelField(
            "No menu, please check back later");
    add(label);
}
// main screen background
setBackground (BackgroundFactory.createSolidBackground(Color.BLUE));

With the above code, the topMgr scrolls to the top when I scroll the screen. I want to stay.

Someone knows how to do this?

Do not call title together.

1. place the main screen on no vertical scrolling

2. Add a field Manager to display main said (this is your title)

3. the field manager manually to perform page layout however much space you want to take

4. Add another manager who is vertically scrollable under the title manager

5 define managers scrollables measure the total height less the height of manager title

6 benefit.

Tags: BlackBerry Developers

Similar Questions

  • How to make the top sites page appears when I open a new tab? Why have I not of "buttons" to pin a top site of the page tab?

    When I open a new tab, NO best sites don't show up... shows just a search engine box. I have Firefox 33.0. Why is there no 'pin' button when I opened a new page? How to make the top sites page appears when I open a new tab?

    Here is some additional information on the configuration of the new tab page:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste newtab and make a pause so that the list is filtered

    (3) double-click the preference browser.newtab.url and enter your favorite page:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Press Ctrl + t to open a new tab and check that it worked. Fixed?

    Some traps:

    If Firefox will not let you change this setting: you can have what is called SearchProtect on your system.

    Firefox if allows you to save your changes, but he doesn't know: one of your extensions may be the substitution of her. You can consult, disable and/or remove extensions on the addons page:

    "3-bar" menu button (or tools) > Add-ons > in the left column click on Extensions

    If the modification works during your session, but during the next startup is leads to: you could have a user.js file in your personal settings Firefox (your Firefox profile folder). This article describes how to track down and delete the file: How to fix preferences that will not save.

    A little luck?

  • How to make the progress bar display in the icon in the taskbar for WIN 7?

    How to make the progress bar display in the icon in the taskbar for WIN 7? I see Eclipse Helios can show the loading progress bar in the icon in the taskbar of WINDOWS 7 at startup.

    Is not the feature that provides JavaFX, you must write a native connection called technology such as JNI to make specific Windows API call for updating the icon in the taskbar for the application.

    Maybe you could go through the Eclipse source code to see how Eclipse and see if you can make use of the same mechanism in your application.

    More tips on how you can implement this are outside my area of expertise.

  • How to make a navigation bar with buttons that are highlighted

    I have Dreamweaver MX 2004. I know how to make a simple navigation bar, but how is like Apple's site, with buttons that are highlighted on the appropriate page?

    "[email protected]" wrote in message
    News:gd04sb$5MC$1@forums. Macromedia.com...
    > I have Dreamweaver MX 2004. I know how to do a simple navigation bar, but how
    > is like Apple's site, with buttons that remain
    > highlighted on the appropriate page?

    http://divaHTML.com/products/divaGPS/current_menu_location.php

    --
    Thierry
    http://www.TJKDesign.com/go/?0 | Articles and tutorials

    http://divahtml.com/Products/scripts_dreamweaver_extensions.php | Extensions
    clean your markup
    http://www.fourlevel.com/ | Menus CSS, Gallery, tab panels, etc.
    --

  • How to make visible address bar Info

    (a) using a search engine, I find a Web site.
    (b) However, the news of address bar are hidden.
    (c) how can I make visible?

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • How to make the search bar of the report interactive, aligned to the right?

    Hi all
    I need to make the search report interactive to be on the right side bar. How can I do this? any idea?
    Please note that I use the Oracle XE11.2 database

    Best regards...
    Hussam.

    Hossam,
    If you use apex 4.2... change your page in the css section, place the code in the Inline text box.

  • How to remove the top bar of the Ipad

    Hello everyone

    I want to kow how to remove the bar that is located on the top of the screen of the Ipad and contains the signal status, clock and battery of WIfi. Is possible to remove this bar of any views on the app?

    PS. : I am usign a company of the DPS version

    Concerning

    This is part of the operating system. You can't do anything with it.

    Bob

  • How to make the address bar behaving like search bar? I mean SMART search, as it implemented in Chrome (very comfortable for users).

    For example when I type a word in the search bar, it begins to give search engine suggestions, so don't HAVE TO TYPE THE ENTIRE SEARCH PHRASE!
    The same behavior is in the address bar of Google Chrome. So in Chrome address bar and search bar are combined into one that is very comfortable for users.
    In Firefox, you have here two different bars, which makes no sense. I used Chrome before and usually by type of force of habit in the address bar to search for something and have to type the whole expression there to begin the search. It is very stupid and using the address bar to the fruitless search.
    Screenshots attached.
    So, do we not have any add-on or option to merge or combine the bars or to implement smart search in the address bar?
    Thank you.

    You can look at extensions such as these:

  • How to make the scroll bar on the sides of the screens?

    System to win 8 op.

    on pages how the wider scroll bar.  I know I could use a lot of things but I would use it on occasion.  default value is way too small as 'micro' - app does all the rest.

    Hello

    Thanks for posting the question in the Microsoft Community!

    You want to be wider, the scroll bar.

    Unfortunately, the scroll bar may not be wider.

    If you need any help or if you encounter problems with Windows in the future, let us know and we would be happy to help you.

  • How to make a horizontal bar stretch to fill the width of the browser outside the wrappe always

    When I get 100% in the width field, that it will fill the wrapper which is 1000px, I want just some horizontal bars to fill the width of the browser at any time.

    Example is at http://www.hollywoodunderground.com - bar under the header/links and the bar above the footer. Trying to figure out how to get both of those always fill the width of the browser while keeping the original packaging for all other content. I can just find a way to get these 2 bars outside of the package in a new package, or can I do it in the wrapper?

    You need to configure your build slightly differently.

    You will place the logo and icons of social media in their own

    the value of 1000px, margin 0 auto to Center horizontally

    Then you would have your black bar

    the value of width: 100% (no need to set even if, as it will fill the available space).

    Then you'd have your youtube videos

    the 1000px, auto margin 0 value.

    Then another black bar

    :

    Get it?

  • How to make the search bar works like this.

    The search bar, just to the right of the address bar, does not start a search when I enter a search term and press the magnifying glass symbol or press ENTER. I am able to select a search engine.

    I have seen the other question that has been locked and pointed to this topic. Firefox reset should solve this problem. It takes about 10 seconds and will remove the modules and customizations that could cause problems. It will save all of your personal information. You can learn more about here - Refresh Firefox – reset settings and Add-ons.

  • How to make a tool bar empty for buttons disappear? Link to the image in the description.

    https://www.dropbox.com/s/prdidvbwox208xr/screen%20Shot%202014-04-29%20at%207.02.27%20PM.PNG

    There nothing about this, but it won't go away.

    It seems that somehow you moved the address bar on the tab bar, leaving you with an empty navigation bar. If you have installed the add-in Classic theme restaurateur.

    1. Open the modules (Ctrl + Shift + A Manager; Mac: Command + shift + A), then the Extensions category.
    2. Beside the classical restaurant theme, click on the Options button.
    3. On the main tab, check "hide navigation bar.

    If you used another method instead, put the style in the userChrome.css file and restart Firefox. You can use the stylish add-on instead, if you have installed.

    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    /* The above line should appear only once in the file */
    
    #nav-bar { display: none !important; }
  • How to make a search bar

    I reloaded firefox this morning, trying to get the search bar, it did not, I have windows 8. what I am doing wrong? without it I can't find it please help, thank you, puggy

    Try to restore the default settings, and most likely it will work. Also for a more effective search use this add-on!

    https://addons.mozilla.org/en-US/firefox/addon/add-to-search-bar/
    
  • How to make the side bar of the finder 'Today' and 'This week' options given (they disappeared when I loaded El Capitan)?

    These options from the sidebar formularies very conveniently in any program that has been done to this day or week and now in el capitan, I can't find any way to get them there! Help...? THX

    Create them.

    Cmd - F in the Finder to open a search window.

    Define criteria to display files with is today: yesterday | this week |... If you don't see the type of date you want, select another, and then search Date. In this menu, you can check the box to keep in the list of issues, if you like.

    Once finished setting up, click on the "Save" button, give it a name and make sure that adding it to the sidebar is enabled.

    When you start a search, you may need to set the folder. Default values have set "search this Mac". When you run a search, it will default to this option and allow you to select the currently selected folder. Or, you can change the Finder preferences to use the current folder to start the search. Whatever it is, place it in your home folder just pick up your items.

  • How to make my top screen resolution

    Hello

    I just bought a monitor 24 inch LG compatible IPS 1920 x 1200 display. However, in my settings, the highest is 1280 x 1024. My graphics card is also new, an MSI NVIDIA GEFORCE GTX 960. My operating system is Windows 7. How can I get my screen resolution up to 1920 x 1200? Helllllllp please.

    For your new 960 GTX you also go to the NVIDIA WWW site and download the current drivers (version 355.98).

    Their website is here and you can get them to automatically detect your GPU and suggest a driver or you can choose to download it yourself:

    http://www.GeForce.com/drivers

Maybe you are looking for