Scrolling of the sections of the screen only

Hello

I was wondering weather it is possible to have some peripheral parts of a scrolling screen. for example, I have a table with 20 rows, but I want to display only the 10 that should be visible. The user must amine see the other 10 lines. This must be done without affecting the layout of other controls on the page.

Kind regards

Wesley

try to keep your table within a verticalFieldManager

Inside the layout method, you can set the height of the table

VerticalFieldManager vfm = new VerticalFieldManager(Manager.VERTICAL_SCROLL | VERTICAL_SCROLLBAR)
 {
     sublayout(int width,int height)
       {
          super.sublayout(maxWidth, 284);
       }
 };

vfm.add(myTable);

Here 284 live up to your table to display

Tags: BlackBerry Developers

Similar Questions

  • Since the update to El Capitan, during the scrolling of the screen guard snapping back to the top of the screen. How can I stop this?

    Since the update to El Capitan, during the scrolling of the screen guard snapping back to the top of the Web page. How can I stop this?

    Please read this message before doing anything.

    This procedure is a diagnostic test. It is unlikely to solve your problem. Don't be disappointed when you find that nothing has changed after you complete it.

    The test is intended to determine if the problem is caused by a third-party software that loads automatically at startup or logon, by a device, by a police conflict or corruption of system files or some system caches.

    Disconnect all devices wired except those required to test and remove all the expansion cards from secondary market, as appropriate. Start in safe mode and log on to the account of the problem.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for additional instructions.

    Safe mode is much slower to boot and run as normal, with limited graphics performance, and some things work at all, including an audio output and a Wi - Fi connection on some models. The next normal boot can also be a bit slow.

    The login screen is displayed even if you usually connect automatically. You need your password to log on. If you have forgotten the password, you will have to reset it before you begin.

    Test in safe mode. Same problem?

    After testing, restart as usual (not in safe mode) and make sure you always have the problem. View the results of the test.

  • Start Windows vista, nothing on the screen, only the pointer of the mouse

    I have a gateway desktop vista, nothing on the screen, only the pointer of the mouse
    I used the recovery tools nothing fixs

    Hello

    "I used the recovery tools nothing fixs.

    It helps us if you tell us what they were.

    Here is the guide to repair Options using a Vista DVD from Microsoft.

    If a friend or a work acquantance of yours has one, you can borrow and use it for repairs.

    http://www.bleepingcomputer.com/tutorials/repair-Windows-with-Windows-Startup-Repair/

    Table of contents

    1. Overview of Windows Vista repair options
    2. How to perform an automatic repair of Windows Vista using Startup Repair
    3. Advanced Tools Overview
    4. Conclusion

    If you do not or can not borrow a Microsoft DVD there is a download of a file ISO of Vista Startup Repair available that you can put on a Bootable floppy to make the above startup repair and that the method is recommended by a large number of posters in these Forums.

    Unfortunately, you have to buy it.

    Here is a link to it:

    http://NeoSmart.net/blog/2011/Windows-Recovery-discs-updated-reinstated/

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    If necessary, here's how to reinstall back to new condition.

    "Gateway Recovery Center in Windows Vista® '

    http://support.gateway.com/s/software/MICROSOF/Vista/7515418/7515418asi.shtml

    Read these options to the gateway address:

    Gateway System Recovery from the hard - the following are methods to recover or repair the computer using the recovery of hard drive partition.

    See you soon.

  • BlackBerry doesn't scroll to the top of the screen only in the Middle!

    having an application that displays a screen of news with the banner of the app and title + image + details (RichTextField) and a banner ad on the bottom of the screen so once I do scroll down to read the details, I can't go back to the top... It stops in the middle of the screen that you see in these pictures... I don't know why... It works perfectly when you use the key on the touch screen devices

    and here's the code I used for this screen

    public class DetailsScreen_en extends MainScreen {
    
        AppManager appManager;
        private Detailsbean_en bean;
        private AppManager manager;
        private BitmapField bitmapField;
        private LabelField titleField;
        private LabelField dateField;
        private RichTextField articleField;
        private Bitmap bitmap;
        private BitmapField bar;
        private HorizontalFieldManager hfm;
        Adsbean[] adsBean;
        BitmapField ad;
        VerticalFieldManager otherStuff;
        VerticalFieldManager vvv;
        Timer time;
        TimerTask task;
        private HorizontalFieldManager admanager;
        private int adCounter = 0;
        private boolean status;
        private int tour;
    
        public DetailsScreen_en(boolean status, int tour) {
            appManager = AppManager.getInstance();
            adsBean = appManager.getAdsBean();
            Locale.setDefault(Locale.get(Locale.LOCALE_en));
            // ScreenOne.showLoadingScreen();
            this.status = status;
            this.tour = tour;
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            HTMLParser parser = new HTMLParser();
    
            vvv = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL
                    | Field.FOCUSABLE) {
                protected void sublayout(int maxWidth, int maxHeight) {
                    // TODO Auto-generated method stub
                    super.sublayout(maxWidth, maxHeight);
                    setExtent(maxWidth, Display.getHeight() - ad.getHeight());
                }
            };
            hfm = new HorizontalFieldManager();
            bar = new BitmapField(DesignSizes.FanClubBar(), Field.FIELD_HCENTER
                    | Field.NON_FOCUSABLE | Field.READONLY);
            hfm.add(bar);
            vvv.add(hfm);
            hfm = new HorizontalFieldManager();
            manager = AppManager.getInstance();
            bean = manager.getBean_en();
            // System.out.println("DATE: "+ bean.getNewsDate() );
    
            // another try ...
            Date _date;
            Calendar _cal = Calendar.getInstance();
            _cal.set(Calendar.YEAR,
                    Integer.parseInt(bean.getNewsDate().substring(0, 4)));
            _cal.set(Calendar.MONTH,
                    Integer.parseInt(bean.getNewsDate().substring(5, 7)) - 1);
            _cal.set(Calendar.DAY_OF_MONTH,
                    Integer.parseInt(bean.getNewsDate().substring(8, 10)));
    
            _date = _cal.getTime();
    
            DateFormat dff = new SimpleDateFormat("dd MMMM yyyy");
            String datedatedate = dff.formatLocal(_date.getTime());
            dateField = new LabelField(datedatedate);
            dateField.setPadding(padding);
            titleField = new LabelField(bean.getNewsTitle(), Field.FIELD_LEFT) {
                protected void paint(Graphics graphics) {
                    // TODO Auto-generated method stub
                    graphics.setColor(Color.ORANGE);
                    super.paint(graphics);
                }
    
            };
            titleField.setPadding(padding);
            Font font = Font.getDefault().derive(Font.BOLD, 9, Ui.UNITS_pt);
            titleField.setFont(font);
            bitmapField = new BitmapField(DesignSizes.newsIsLoading(),
                    Field.FIELD_HCENTER);
            bitmapField.setPadding(padding);
            setBitmap(bean.getImgUrl());
    
            articleField = new RichTextField(parser.clean(bean.getNewsArticle()),
                    RichTextField.USE_TEXT_WIDTH | RichTextField.TEXT_ALIGN_LEFT
                            | RichTextField.READONLY);
            // bitmap field for the add bitmap
            ad = new BitmapField(DesignSizes.adBanner(), Field.FIELD_TRAILING
                    | Field.FIELD_HCENTER);
            // horizontal field manager to set the bitmapfield away from the
            // scrollable screen .. as its required to be only
            // on the bottom of the screen !
    
            admanager = new HorizontalFieldManager(
                    VerticalFieldManager.NO_VERTICAL_SCROLL
                            | VerticalFieldManager.NO_VERTICAL_SCROLLBAR
                            | Field.FIELD_HALIGN_MASK);
    
            // the other stuff title bar + action bar + itemRow + button more
            otherStuff = new VerticalFieldManager(
                    VerticalFieldManager.VERTICAL_SCROLL) {
                protected void sublayout(int maxWidth, int maxHeight) {
                    // TODO Auto-generated method stub
                    super.sublayout(maxWidth, maxHeight);
                    setExtent(maxWidth, Display.getHeight() - ad.getHeight());
                }
            };
            admanager.add(ad);
            // font for the article
            Font artFont = Font.getDefault().derive(Font.PLAIN, 6, Ui.UNITS_pt);
            articleField.setPadding(padding);
            articleField.setFont(artFont);
            vvv.add(dateField);
            vvv.add(titleField);
            vvv.add(bitmapField);
            vvv.add(articleField);
            add(vvv);
            add(admanager);
    
            switch (Display.getWidth()) {
            case 320:
                getAd(adsBean[adCounter].getBlackberry320());
                break;
            case 360:
                getAd(adsBean[adCounter].getBlackberry360());
                break;
            case 480:
                getAd(adsBean[adCounter].getBlackberry480());
                break;
            case 640:
                getAd(adsBean[adCounter].getBlackberry640());
                break;
            }
    
        }
    
        private void setBitmap(final String url) {
    
            // TODO Auto-generated method stub\\
    
            UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                public void run() {
                    // TODO Auto-generated method stub
                    final DownLoadImage dope = new DownLoadImage(url);
                    bitmap = dope.getImage();
                    Bitmap resized_bitmap = bitmap;
                    Bitmap tempbitmap = new Bitmap(Display.getWidth() - 20,
                            (int) ((Display.getWidth() - 20) * 0.458));
                    tempbitmap.createAlpha(Bitmap.TRUE_WHITE);
                    resized_bitmap.scaleInto(tempbitmap, Bitmap.FILTER_LANCZOS);
                    bitmap = tempbitmap;
                    bitmapField.setBitmap(bitmap);
    
                }
            });
        }
    
        protected boolean keyDown(int keycode, int time) {
            int key = Keypad.key(keycode);
            if (key == Characters.ESCAPE) {
                try{
                    this.time.cancel();
                }catch(Exception e){
    
                }
                UiApplication.getUiApplication().pushScreen(
                        new NewsScreen_en(status, tour));
    
                return true;
            }
            return super.keyDown(keycode, time);
        }
    
        // =============================================================================================
            // for getting the ads ...
            // =============================================================================================
            private void loadAD(int timer) {
                System.out.println("Timer start! ");
    
                    time = new Timer();
                    task = new TimerTask() {
    
                        public void run() {
                            time.cancel();
                            switch (Display.getWidth()) {
                            case 320:
                                getAd(adsBean[adCounter].getBlackberry320());
                                break;
                            case 360:
                                getAd(adsBean[adCounter].getBlackberry360());
                                break;
                            case 480:
                                getAd(adsBean[adCounter].getBlackberry480());
                                break;
                            case 640:
                                getAd(adsBean[adCounter].getBlackberry640());
                                break;
                            }
                            System.out.println("tik tik tik");
                        }
                    };
                    time.schedule(task, timer * 1000);
    
            }
    
            private void getAd(final String url) {
    
                UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                    public void run() {
                        // TODO Auto-generated method stub
                        final DownLoadImage dope = new DownLoadImage(url);
                        Bitmap bitmap = dope.getImage();
                        ad.setBitmap(bitmap);
                    }
                });
    
                //for saving more memo
                switch(Integer.parseInt(adsBean[adCounter].getAdDuration())){
                case 0:
                    //
                    break;
                default:
                    System.out.println("loading ad! ");
                    adCounter++ ;
    
                    if(adCounter == adsBean.length || adCounter > adsBean.length){
                    adCounter = 0;
                    }
                    loadAD(Integer.parseInt(adsBean[adCounter].getAdDuration()));
                    break;
                }
    
    //
            }
    
            // =============================================================================================
            // =============================================================================================
    
        protected void makeMenu(Menu menu, int instance) {
            // TODO Auto-generated method stub
            menu.deleteAll();
            menu.add(new MenuItem("Language", 120, 10) {
                public void run() {
                    // TODO Auto-generated method stub
                    super.run();
                    UiApplication.getUiApplication().pushScreen(new SplashScreen());
                }
    
            });
            menu.add(new MenuItem("About", 120, 10) {
                public void run() {
                    // TODO Auto-generated method stub
                    super.run();
                    UiApplication.getUiApplication().pushScreen(
                            new AboutScreen_en());
                }
            });
            menu.addSeparator();
        }
    }
    

    Please help me

    scrolling takes in the focusable fields only.
    You can add a NullField in the top to allow scrolling to it.

  • Disable scrolling on the screen after some records

    Hi all

    I'm working on Eclipse JDE 4.2.1... i want to create a screen where I add fields to display in a dynamic way of vector... I want to disable the scrollling on the screen as soon as vector is empty... pls look for it...

    Hey after liltle study work... I got the solution... I added

    Super (NO_VERTICAL_SCROLL);

    in the constructor of this (form) with the screen scrolling problem...

    Thank you...

  • Adding image to the screen only half of the image is displayed

    Hello

    I'm trying to add an image to the screen of my application, like this:

    BasicEditField _bef = new BasicEditField(){
        public void paint(Graphics _g){
    
    Bitmap _bitmap = Bitmap.getBitmapResource("3.png");
    _g.drawBitmap(0, 0,  _bitmap.getWidth(), _bitmap.getHeight(), _bitmap, 0, 0);
    
        super.paint(_g);
        }//end of paint
    };
    
    _verticalFieldManager.add(_bef);
    

    the strange thing is that only a part of the image is displayed and I don't know why! I have test it on bb 9000, so I know it has 480 x 320 and my picture is 480 x 176, so it must be shown.

    is anyone of you know what can be wrong?

    Kind regards

    Misty

    OK, I'm surprised that adding text did not work.  Apologies for suggesting it.  Can you tell me what JDE level you try and I have a go here.

    Anyway, the normal way to display a bitmap using a BitmapField.  This should always give you the entire Bitmap.  Give it a try.  You won't have to replace the paint using a BitmapField!

  • How to disable the screen only without pill to sleep?

    Is it possible to disable only the screen, PC not everything? When I put to sleep - it loses connections, turn off 3 G (and he wakes up on the clock), turn off the music. It's terrible. Battery is good enough to work with her.

    Are there ways to tell tablet "turn off screen"?

    Can occur in your control panel. Windows Mobility Center.

    My Lenovo before upgrading to win8 had a turn off display it and also has a separate keyboard shortcut keyboard Fn + F2 to toggle the display.    Looks like a Tablet unless there is a specific or programmable buttons... How do you turn on the screen.

  • cannot scroll on the page, only sidebar

    I have a HP Pavilion notebook g7-1260us nine and I can't scroll the page. It scrolls in the sidebar.

    I went through every possible setting that Synaptic has on this machine and I can not find. They show a beautiful demonstration, but simply cannot happen.

    Hello

    Download and install the latest driver for Synaptics TouchPad here and restart the system.

    Note:

    Scrolling two - finger is enabled by default. If you want to use only one finger to scroll, check out the link below:

    How to change two - finger scrolling on One - Finger scrolling in Synaptics TouchPad software.

  • I am trying to load photos in lightroom 6 on my mac and did not get the option "Copy to DNG, copy, move, add" on the screen, only import.

    Why am I only see an import screen and not the copy as screen? I'm shooting in the first.

    Thanks for your reply, but I found a number of Adobe and talked to a technician.  Looks like I got the update, and they changed the screen, so now I have to find "copy as DNG" on the right side under Advanced.  Thanks for the reply.

  • Problem with spark scroll off the screen list

    I'm working on a mobile application using Flex 4.5.1.

    I have a detail view that vgroup that contains some labels, followed of a list control. The number of labels and the number of items in the list both vary according to the selected element before entering this point of view.

    So my list in some cases control extends beyond the bottom of the screen. I want labels at the top to stay visible all the time and just the list in the lower roller to be able to see and select all items.

    What I get is a list at the bottom that I can scroll, but as soon as I let go of it returns to the top so that I'm never able to choose something that requires scrolling to get to.

    I have the basic layout implemented in mxml with a vgroup that contains an another vgroup followed by the list. In actionscript, I'm adding items to the dataprovider for the list and labels for the inner vgroup.

    < s:VGroup id = "outerGroup".

    Width = "100%" height = "100%".

    Enabled = "false".

    Visible = "false" >

    < s:VGroup id = "labelGroup.

    paddingTop = "10" paddingBottom = "10" paddingLeft = "5" = "5" paddingRight

    Width="100%"/ >

    < s:List id = "actionsList.

    Width = '100% '.

    alternatingItemColors = "[#ffffff, #ebebeb].

    dataProvider = "{action}".

    change = "actionsList_changeHandler (actionsList.SelectedItem)" >

    < s:itemRenderer >

    < fx:Component >

    < s:IconItemRenderer label = "label".

    messageField = 'message '.

    Decorator = "{Data.Icon}" / >

    < / fx:Component >

    < / s:itemRenderer >

    < / s:List >

    < / s:VGroup >

    Any help is appreciated.

    What do you do when you select an item? Do you find that you are unable to scroll? Also, I noticed that your list has no height. I would probably stick height = "100%" on the subject and see what happens.

  • Had to reload firefox and now I can't get my tabs to go to the bottom of the screen only through the screen. How can I do this again?

    I used to have my tabs down on a single line like a sidebar, and now that I had to reload Firefox can't seem to do it again. They open and go into the upper part under the title bar. I really want of cascading them down the screen again and I can't find any setting for me to do. Can someone tell me where to find the right setting please.

    Try this extension:

  • How use the serial port read and display the text but not scroll off the screen?

    I'm new-ish/return user fan of Labview and trying to change the example VI "Advanced serial write and read VI" is the part of the dev suite 2012.  I need to use the string box for ALL of the text from a serial port, always adding and just roll off the screen when the actuals come to the serial port.

    What actually arrived more than bytes (or no bytes AT ALL!), during reading time text, current rolls out of the box in the chain.  Even when receiving 0 bytes, screen is removed.  I'm not very familiar with the locations of functions and even worse to understand obscure references to functions, so please keep very basic answers so I can follow.

    Just to be clear, I need window of the chain behave as HyperTerminal does always displays the data and it is not pushed by window arbitrarily.

    Thank you

    Steve

    A long shot.

    Is that what you want?

  • Why my mouse pointer scrolls off the screen to the right

    Installed a wireless network adapter by using what I think was the wrong driver. Cannot remove properly. At the time my mouse and Window Media Player begins to act. The mouse pointer goes way off the screen to the right and no other borders. Window Media Player opens wider than my screen. That is what it is?

    Hello

    · What is the number and the model of the computer?

    · Have you installed the drivers on the manufacturer's Web site?

    · Do you receive an error message or error code when you try to uninstall the drivers?

    Use the back to roll on the computer that will replace the network to the previous state driver and check if the problem persists: how to use Roll Back Driver Windows XP: http://support.microsoft.com/kb/283657

    I suggest contacting the manufacturer and then install the wireless network card drivers.

  • Update Windows 7 11/11/2015. No newspaper on the screen, only a black and white motif (cannot open a session)

    Hey everybody - Please HELP SOLVE ME THIS PROBLEM!

    The night last Windows released a new update for Windows 7 and for other platforms.

    My computer laptop (asus k55) did an automatic update of Windows.

    After a normal restart, the Windows 7 log on does not display, only the background that he made and also did not appear any other choice, as the logo, turn to... Just a white screen.

    Seconds after my screen started flickering rapidly of the black-screen of Windows 7

    my computer was working fine before the update and I have a very strong antivirus software installed on my laptop

    and... the same problem occurs when you attempt to use the 3 options of safe mode

    so I am sure that it has something to do with the recent update of Windows.

    Is is there anyway I can fix this?

    KB3097877 causing of serious difficulties for some users of Windows 7 Windows updates November 2015

    Posted on November 11, 2015 by Derek

    Microsoft have now updated Information on the Ko with complete instructions, including pictures showing how do
    https://support.Microsoft.com/en-us/KB/3097877

  • Two horizontal frames are scrolling on the screen

    Screen has two managers class horizontal scrolling with Manager.HORIZONTAL_SCROLL, while second scroll crib focus arrived at the end of eat, automatically above the nursery items scroll horizontally.

    Example:

    First manager has 10 Articles and under second Manager has 10 items, first I scroll down and focus will be on the second element of the first nursery, now I just happened focus navigation 10th element of the second Manager of the articles above begins scrolling.

    This also happens on Simulator and the device. I tested on 5.0, 6.0 and 7.0 same question is there.

    Sample code sinppet:

     

    HorizontalFieldManager hfmOuter = HorizontalFieldManager(FOCUSABLE | nouveau Manager.HORIZONTAL_SCROLL);

    for (int i = 0; i)< 10;="" i++)="">
    hfmOuter.add (new LabelField ("TITLE" + i, FOCUSABLE));
    }
    Add (hfmOuter);

    HorizontalFieldManager hfmOuter1 = HorizontalFieldManager(FOCUSABLE | nouveau Manager.HORIZONTAL_SCROLL);

    for (int i = 0; i)< 10;="" i++)="">
    hfmOuter1.add (new LabelField ("NAME" + i, FOCUSABLE));
    }
    Add (hfmOuter1);

    If I understand this problem, there are two potential problems:

    (a) when scrolling horizontally from the second Manager, you don't want to update to leave Manager - you want rather than scrolling to stop.

    Here is a code to do this:

            protected boolean navigationMovement(int dx, int dy, int status, int time) {
                    int focusIndex = getFieldWithFocusIndex();
                    if ( focusIndex == 0 && dx < 0 && dy == 0 ) {
                            // scrolling left but at beginning
                            return true;
                    }
                    if ( focusIndex == this.getFieldCount() - 1 && dx > 0 && dy == 0 ) {
                            // scrolling right but at end
                            return true;
                    }
                    return super.navigationMovement(dx, dy, status, time);
            }
    

    The second potential problem is that you do not want scrolling starting with the "end" of the first Manager, instead you want to return to the item currently selected on the HFM first.  It's a problem more complicated - you keep an indication of the field in which it was (let's call it the selected field) and when the focus returns to the Manager, set the Focus to the selected entry.

    Assuming that you retain this indicator selected, then you override onFocus to set the focus to the selected item, code should look like this:

            protected void onFocus(int direction) {
                if ( direction != 0 && currentlySelectedField != null ) {
                    UiApplication.getUiApplication().invokeLater(new Runnable() {
                        public void run() {
                            try {
                                currentlySelectedField ();
                            } catch (Throwable t) {
                                LibraryRepository.logEventError("GalleryVoucher Focus problem: " + t.toString());
                            }
                        }
                    });
                } else {
                    super.onFocus(direction);
                }
            }
    

Maybe you are looking for

  • 'all' (never) email address list has disappeared, where to and why?

    I only have the "personal" email list It used to be more available. A list of all addresses that have never received (or sent, I think) is very useful, but they disappeared!

  • G60 549DX Notebook: display issues

    Last week, my screen has been turn off as programmed but turns it back free to within a period of 3 to 10 minutes. How can I solve this problem? I ran antivirus protection and have not found any problem here. It began after the last windows update bu

  • Re: Keyboard issue on the new Satellite P870

    I bought a portable Satellite P870 last week, I found the function do not work, especially for the backlit keyboard function key, I tried almost everything, but doesn't help t, only the brightness and volume can be adjust. I wonder if there is an upd

  • m6-1010ex Pavilion: stole my labtop and I got it back but without recovery

    Hello before about a month ago my labtop was stolen from my home After two weeks I got it backwards. but they format my labtop with a fake windows cd and they remove the recovery of my labtop 1. I can't find the recovery maneger 2 when I press F11 to

  • Pro-10 6 error has 00

    I get an error code 6A 00.  I've been printing with paper 13 x 19 ", and nothing is stuck in the printer.  I tried to turn it works and even unplugged.  The last thing I did before she stopped working, is to replace an ink cartridge. Does anyone have