Only a VerticalFieldManager in scroll screen

Hello

I have a class that extends the screen. This screen contains a HorizontalFieldManager with a nested VerticalFieldManager. The VerticalFieldManager is set to scroll. I want to do the VerticalFieldManager with scrolling to the point where the VerticalFieldManager is the ONLY thing that scrolls. Currently, the entire screen will scroll.

I was able to do this successfully by the extension "PopupScreen" instead of "Screen" and to the specification in the constructor:

super(new VerticalFieldManager(NO_VERTICAL_SCROLL | NO_VERTICAL_SCROLLBAR),Field.FOCUSABLE);

However, it is not good, because I need to use the setStatus() method, which I believe is that by extending the screen accessible.

Is there anyway that I can achieve everything by extending the screen and having access to setStatus()?

Thank you!

Solved with super (NO_VERTICAL_SCROLL);

Tags: BlackBerry Developers

Similar Questions

  • CPU usage monitor shows only a large cpu usage screen

    I can now only get a box large screen when I press Ctrl-alt-delete.  This has happened recently. I can't minimize or otherwise see all the normal menu options.  Windows XP.

    Hi LaurieRichings,

    This would happen if you switched in the other views of the Task Manager.

    I suggest that you double-click an area of the window Task Manager to get the normal setting of the Task Manager.

    Tabs and the Task Manager menu bar are not visible in Windows XP

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

  • How can I printscreen, only one of the two screens I use now?

    I work with two screens and when I try to printscreen the computer takes the two images on the screen and print, making the really small screen images to the point that they are almost impossible to read.
    I want a pint only one of the two screens.

    Hello

    Try the capture tool:

    How to use the Windows Vista Snipping Tool
    http://www.bleepingcomputer.com/tutorials/tutorial135.html

    Use capture tool to capture screenshots
    http://windowshelp.Microsoft.com/Windows/en-us/help/1337cdba-52a2-4704-ad4d-2d7bace605b41033.mspx

    How to take screenshot with the capture - simple tool
    http://Lifehacker.com/228885/Windows-Vista-tip--take-screenshots-with-the-Snipping-Tool

    Cup - best tool screenshot screenshot
    http://desktoppub.about.com/od/screencaptures/IG/Snipping-Tool/Snipping-Tool.--0k.htm
    http://graphicssoft.about.com/b/2009/05/15/using-the-Snipping-Tool-in-Windows-Vista.htm

    How to take a screenshot with the tool captures of Vista
    http://www.WikiHow.com/take-a-screenshot-with-the-Snipping-Tool-in-Vista

    Use the Windows Vista Snipping Tool to take screenshots
    http://www.tips4pc.com/articles/Windows%20Vista/use_the_windows_vista_snipping_t.htm

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • After installing Windows Vista, upgrades of office is now only 2 thirds of the screen, with one third black.

    Original title: April 16 to restart my computer after installing Windows Vista upgrades, my office is now only 2 thirds of the screen, with the third other black

    The whole office is there, but it is located in the Center, if the screen, with black bands at the top and bottom. By clicking full screen on the top right has no effect.

    Hi Jeremy,.

    Thanks a lot for your help. You're right, I should have said no upgrades and updates.
    There were a total of 10 updates:
    4 a security updates for Vista,
    1 security update for the Microsoft 2010 information access path,
    1 day of cumulative security for IE9.
    1 windows Live essential 2011
    1 definition update Windows Defender (KB915597)
    1 "" for Office 2010 "
    1 April 2013 malware tool
    I uninstalled Windows Live Essentials. I felt that I should not uninstall the updates of security, and the Defender update can not be uninstalled. It made no difference.
    I also checked the graphics card and told me that I had the latest version of the software.
    Then I checked the configuration of the monitor and graphics card configuration and found I could set the configuration to full frame. I did it and now all is well again.
    How and why the full frame disappeared April 16 remains a mystery.
    Thank you very much for your information without your help I would have been unable to delve deeply into the system. I learned a lot.
  • InDesign CS5 for windows only allow me to scroll through the functions with the mouse wheel

    Nice day

    InDesign CS5 for Windows only allow me to scroll through the functions with the mouse wheel and for example not allow me to access drop down menus, any help will be much appreciated

    https://helpx.Adobe.com/InDesign/KB/InDesign-tools-panels-Don ' t - respond.html

  • Why some videos play well on Facebook while others have only audio with a green screen?

    Why some videos play well on Facebook while others have only audio with a green screen?

    Hello

    Green screens are almost always a sign of a video driver issue.  Could you please send the contents of your "Display devices" section after generating a DXDiag report?

    What is a Dxdiag and how to report a?

    I suspect you may have an outdated video driver.  This FAQ can help you learn the steps required to update:

    Windows: How do I update the device driver for my graphics/video card?

    Finally, if the driver update doesn't help, try turning off hardware acceleration using the steps described here:

    How to disable or enable hardware acceleration?

    Thank you
    Chris

  • Mobile design only fills half of mobile screen width. Help!

    Help please. I designed a site for desktop and mobile, but every time I test the mobile version on a mobile phone, it fulfills only half of the mobile screen width. I really tried to play with him but can't seem to solve this. Can anyone help please. To see what I mean, use a mobile phone to display:

    http://ancasterdental.com/Muse/index.html

    Thank you.

    John s.

    This is almost always caused by that there is a content outside the width of the page. The mobile browser zooms the view down so that all the content corresponds to the width of the unit. If there is a text empty another another article on the right side of the page of the framework, it will cause the zoom out you'ved described appearance.

    Go to object > unlock all on the Page and then to a very select and find the items in the right side of the page. Then repeat the process for any master page applied to the problem page.

  • How can I get a screen with only nested handlers for scrolling?

    I have a single screen with only nested boxes that does not scroll. No fields or buttons, just displaying data.

    The funny thing is, the screen does not scroll at all.

    I tried a combination of:

    super(Manager.VERTICAL_SCROLLBAR | Manager.VERTICAL_SCROLL
                    | Manager.NO_HORIZONTAL_SCROLLBAR
                    | Manager.NO_HORIZONTAL_SCROLL);
    

    Any thoughts on why the screen is not Ahmed with only the data displayed?

    The screen does not scroll because he has no reason to scroll. BlackBerry auto-parchemins the field to receive the focus (or, more specifically, the focus of the field - field text rectangle has this rectangle around their position of slider, for example). There is no other mechanism of scrolling integrated for non touchscreen devices.

    If you have no Focus field, you can scroll through your Manager / screen programmatically with setHorizontalScroll() / setVerticalScroll(). Decide in what way is more acceptable to you.

    If you want to display some text (help screen?), put it in one (descendant of) TextField, FOCUSABLE and READONLY and let the user navigate through the text with the cursor. Remember - even if you can't change RichTextField, you can make it active and allow the user it work very well.

    Good luck!

  • How can I display only a part of the screen?

    My screen contains a title and simple 5 LayoutManagers.

    (but it's not complicated, we could simplify to only three LayoutManagers: upper, middle and lower).

    I want only one of them to be scrollable (one named "_fieldManagerMiddle"), since it will contain long text, others must stay fix, since they contain graphics and Menu. In particular, the last Director downstairs (_fieldManagerBottom) must remain where it is.

    (1) my problem is:

    When the_fieldManagerMiddle contains a long text (by clicking a button in the menu of the _fieldManagerMenu above) he is floating, but it means that the entire screen becomes scrollable.

    I tried to add Manager.NO_VERTICAL_SCROLL to other managers, but it did not help.

    It's pretty simple.

    How can I get that only the mid-level becomes scrolls and the rest does not move?

    It's code; What is missing? What's wrong?

      super();
        setTitle(new LabelField("results"));
    
            /* add the five layout managers */
        _fieldManagerTop = new HorizontalFieldManager();
        _fieldManagerMenu = new HorizontalFieldManager();
        _fieldManagerMiddle =  new VerticalFieldManager(Manager.VERTICAL_SCROLL |
                    Manager.VERTICAL_SCROLLBAR){
            protected void sublayout( int maxWidth, int maxHeight )
            {
                int remainingplace = Display.getHeight()-_fieldManagerTop.getPreferredHeight() -_fieldManagerMenu.getPreferredHeight() - _fieldManagerBottom.getPreferredHeight() - title.getPreferredHeight() ;
                super.sublayout( Display.getWidth(), remainingplace);
                setExtent( Display.getWidth(), remainingplace);
                }
            };
            _fieldManagerBottom = new HorizontalFieldManager(HorizontalFieldManager.FIELD_RIGHT)
            {
                public void paint(Graphics graphics)
                {
                    graphics.setBackgroundColor(Color.NAVY);
                    graphics.setColor(Color.WHITE); // foreground color
                    graphics.clear();
                    super.paint(graphics);
                }
                protected void sublayout( int maxWidth, int maxHeight )
                {
                    int displayWidth = Display.getWidth();
                    int displayHeight = 25;
                    super.sublayout( displayWidth, displayHeight);
                    setExtent( displayWidth, displayHeight);
                }
            };
    

    I would be very grateful if you could help me with that!

    (2) I also have a second question (but less important): the Middle Manager has to take all the remaining space of the screen, so I subtracted the other Manager height and the height of this Manager at the result of this subtraction:

    int remainingplace = Display.getHeight()-_fieldManagerTop.getPreferredHeight() -_fieldManagerMenu.getPreferredHeight() - _fieldManagerBottom.getPreferredHeight() - title.getPreferredHeight() ;
                super.sublayout( Display.getWidth(), remainingplace);
                setExtent( Display.getWidth(), remainingplace);
    

    This seems not to be correct: if I, the last Director downstairs doesn't have enough room.

    Any ideas?

    The best way to do it, is to use the screen, which is already divided into 3 sections, superior, medium and low, of which only half is scrolling.

    The top depends on what you add to setTitle (who may be a Manager), the background is determined by what you add using setStatus (even once, you can add a handler), and just use the normal add to add the scrolling of the Middle component.

  • ListField (s) nested in VerticalFieldManager-> SWIPE/SCROLL with HorizontalFieldManager

    I have 2 ListField objects. Each within its own VerticalFieldManager object. 2 VFMs are inside a HorizontalFieldManager object. I am trying to allow the user to BLOW/scrolling of one ListField to another (LEFT/RIGHT). I did not have the TouchEvent portion this again (I guess I'll have to put in place something there).

    Here's what I have so far... However, only the first ListField shows with data (random numbers right now). The other is empty. I also want to allow the user to select individual lines in each ListField

    All the suggestions/help is appreciated.

    See you soon,.

    public final class MyScreen extends MainScreen {
    
        public MyScreen() {
            super(MyScreen.NO_VERTICAL_SCROLL);
            Random rand = new Random();
            HorizontalFieldManager hm = new HorizontalFieldManager(HorizontalFieldManager.HORIZONTAL_SCROLL);
            Vector v1 = new Vector();
            Vector v2 = new Vector();
            for (int i = 0; i < 10; i++) {
                v1.addElement(Integer.toString(rand.nextInt(200)));
                v2.addElement(Integer.toString(rand.nextInt(300)));
            }
            hm.add(new ListManager(v1, "VM lf1"));
            hm.add(new ListManager(v2, "VM lf2"));
            add(hm);
    
            // Set the displayed title of the screen
            setTitle("MyTitle");
    
        }
    
        class ListManager extends VerticalFieldManager {
            private Vector _elements;
            ListField _lf;
    
            ListManager(Vector elements, String title) {
                super(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
                _lf = new ListField();
                _lf.setCallback(new ListCallback());
                this._elements = elements;
                add(new RichTextField(title));
                add(_lf);
                updateList();
            }
    
            private class ListCallback implements ListFieldCallback {
    
                public void drawListRow(ListField list, Graphics g, int index, int y, int w) {
                    g.setColor(Color.BLACK);
                    String text = (String) _elements.elementAt(index);
                    g.drawText(text, 5, y, 0, w);
                }
    
                public Object get(ListField list, int index) {
                    return _elements.elementAt(index);
                }
    
                public int indexOfList(ListField list, String p, int s) {
                    return _elements.indexOf(p, s);
                }
    
                public int getPreferredWidth(ListField list) {
                    return Display.getWidth();
                }
            }
    
            protected void sublayout(int width, int height) {
                super.sublayout(width, height);
    
                setExtent(width, height);
            }
    
            private void updateList() {
                _lf.setSize(_elements.size());
            }
    
        }
    }
    

    The two lists show up... However, the halves just in the same HM. My goal is to have everyone take full screen (visible at the time) only... then the user has to SWIPE (from EAST to WEST) to see the list of the other.

    So I changed the following line

    super.sublayout(Display.getWidth(), height);
    

    Thanks Peter

  • AiO S40 - touch screen only works on the on-screen keyboard

    Machine has three months - IdeaCentre S40-40, 8.1 Windows, renovated, very few programs installed.

    The touch screen worked until now in each program the way it was assumed. But then the clicking has stopped working. So, only when you click, it does not. You can see on the desktop when you tap on the screen, the gray circle reacts to the amount of pressure on the screen.

    In Internet Explorer, for example, the works of scrolling, resizing (with two fingers) works, but isn't new by clicking on.

    If I open the keyboard on the screen, the keyboard works - you can actually click on the keys, and it does not. Nowhere else in Windows, it doesn't.

    Because I see some responses to touch, I don't think it's a hardware problem.

    I removed HID-touch in Device Manager and rebooted. Same result.

    I have disabled the service of keyboard on screen/touchscreen - same result.

    I reinstalled the driver of keyboard and mouse from Lenovo site - same result.

    I tried to calibrate the screen, but I can not because it does not yet meet the first, click on the cross.

    Any ideas anyone?

    Dear spidey101,

    Thank you for your response.

    Totally forgot to update the BIOS. That solved the problem and now the touchscreen works again without a hitch.

    Thank you once again!

  • Is not scrolling screen when the virtual keyboard is opened by clicking an edit field

    Hello

    I have searched and tried many things, but not got success.

    There are three managers of verticalfield in my screen.

    1.)

    vfmMain

    = new VerticalFieldManager(Manager.USE_ALL_WIDTH |) Manager.USE_ALL_HEIGHT | Manager.NO_VERTICAL_SCROLL) {}

    protected voidpaint (Graphics grphcs) {}

    if (imgBG! = null) {

    grphcs.drawBitmap (0, 0,

    imgBG.getWidth (), imgBG.getHeight (), imgBG, 0, 0);

    }

    Super.paint (grphcs);

    }

    protected void sublayout (int maxWidth, maxHeight int) {}

    maxWidth = UIConstants.

    SCREEN_WIDTH;

    maxHeight = UIConstants.

    SCREEN_HEIGHT;

    Super.sublayout (maxWidth, maxHeight);

    Super.setExtent (maxWidth, maxHeight);

    }

    };

    2.)

    vfmFieldNS

    = new VerticalFieldManager(Manager.USE_ALL_WIDTH |) Manager.USE_ALL_HEIGHT | NO_VERTICAL_SCROLL) {}

    protected voidpaint (Graphics grphcs) {}

    if (imgBGCoverInternetHome! = null) {

    grphcs.drawBitmap ((UIConstants.

    SCREEN_WIDTH - imgBGCoverInternetHome.getWidth () / 2, 0, imgBGCoverInternetHome.getWidth (), imgBGCoverInternetHome.getHeight (), imgBGCoverInternetHome, 0, 0);

    }

    Super.paint (grphcs);

    }

    protected void sublayout (int maxWidth, maxHeight int) {}

    maxWidth = UIConstants.

    SCREEN_WIDTH;

    maxHeight =

    imgBGCoverInternetHome.getHeight () / *-UIConstants.SCREEN_HEIGHT (UIConstants.LABEL_HEIGHT + UIConstants.FOOTER_MENU_HEIGHT) * /;

    Super.sublayout (maxWidth, maxHeight);

    Super.setExtent (maxWidth, maxHeight);

    }

    };

    3)

    vfmScroll

    = new VerticalFieldManager(USE_ALL_WIDTH |) USE_ALL_HEIGHT | VERTICAL_SCROLL) {}

    protected void sublayout (int maxWidth, maxHeight int) {}

    maxWidth = UIConstants.

    SCREEN_WIDTH;

    maxHeight =

    imgBGCoverInternetHome.getHeight () - imgButtonFocusBig.getHeight (/2/*UIConstants.SCREEN_HEIGHT - (UIConstants.LABEL_HEIGHT + (UIConstants.FOOTER_MENU_HEIGHT + VERTICAL_GAP))) * /;

    Super.sublayout (maxWidth, maxHeight);

    Super.setExtent (maxWidth, maxHeight);

    }

    };

    I'm addidng all fields in the Manager of scrolling that is vfmScroll.

    By clicking on the edit field, virtual keyboard opens on the screen, change the field leathers and screen does not scroll.

    Help, please.

    Thanks in advance.

    Thanks for the reply of Peter. Instead of UIConstants.SCREEN_HEIGHT, now I use Display.getHeight () - headerHeight-footerHeight. Given that Display.getHeight () is calculated accordingly when the virtual keyboard is open, so his works well for me.

  • VerticalFieldManager no scroll bar

    In my application, I have two different cases where my VerticalFieldManager scrolls, but it will not show scrollbars. Here is the code I have them during initialization.

    private VerticalFieldManager manager = new VerticalFieldManager(VerticalFieldManager.USE_ALL_WIDTH | VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR);
    

    Any ideas? I don't understand why they will not be displayed

    Thank you

    I thought about it!

    It was then that I had a VerticalFieldManager who took the entire screen (called primary), which has been initialized without scrolling, I didn't actually call super (Manager.NO_VERTICAL_SCROLL).

    So if someone else came here with the same problem, I couldn't have my managers children to display a scroll bar, until I have called great (Manager.NO_VERTICAL_SCROLL), even if the elements I wanted to scroll in a manager who had NO_VERTICAL_SCROLL to define.

    Thank you arkadyz for the help anyway.

  • VerticalFieldManager and scrolling

    I have a VerticalFieldManager that I use to set up a scroll pane. My intention is to have the component DO NOT scroll until enough lines are added to the need for scrolling. Currently, as soon as I add an element (a HorizontalFieldManager) for the optimization of resources, the scroll arrow appears and I can scroll the only existing line out of sight, and I don't want that to happen.

    I tried the example found here:

    http://supportforums.BlackBerry.com/T5/Java-development/implementing-a-standard-style-scrollbar-on-a...

    This example does not work for me, the custom scroll bar never shows up, and I get the same behavior by default VFM.

    Can someone tell me how to do the VFM not scroll until the visible part is full?

    Thank you!

    I found through debugging that by default, the height that was passed into it was a BFN (big freaking number), so he always thought the display size has been less than real estate available (so no need to scroll). I changed my builders to spend in the area that has been assigned by the Manager of container, and the scroll bar appears and the behavior is reasonable.

    One last question, I still seem to get the default value of scroll arrows, and it is not clear to me if (as in the example), they are supposed to be there or not. The constructor calls super() with NO_VERTICAL_SCROLLBAR, but they always appear.

  • Can I output the monitor program PremierePro CC (only) to a 2nd video screen?

    I already have (years) used PremierePro on an edition of PC system. At this time, I used a box of cards and small groups of Matrox - it was so easy to put in place a 2nd monitor to display the program output (only).

    I started using new PremierePro (CC version) but this time on an iMac 27 "retina 5 k (max for the ram, processors and graphics functionality). I'd quite like to discover the program output only (or at least mostly) on a 2nd 1080HD video monitor. Is it possible to do? With no junction box, I guess that this cannot be done. Is this fair?  I know I could set up an iMac HDMI output, but that would be out of the whole office. I just want to really take a power of video output (monitor of the program only) rather than the entire desktop. Is it some sort of break Thunderbolt to send with a HDMI or DVi connection, which can display only the monitor program (like those old buttons)?

    Of course the iMac screen 5 k and the video monitor will be quite different devices - so I can't really just the range double configuration screen. A 2nd screen Mac is expensive - and it would be another screen to the retina, 5 k.

    As background information, for now I'm only editing content 1080HD that thus the 2nd monitor should be consistent 1080HD. I have various computer and video monitors available if this configuration is possible. I'm not too concerned about the quality of the image in the 2nd monitor - its more about speed reading to check for sync and motion - changes especicailly when a customer sits the long side (and Yes, I hate too). The iMac 27' is a good size screen, but I'm edition multi channel animation graphics and pictures (no animated videos), it fills the screen fast enough. If I want to program a monitor window half-decent size, I am constantly scrolling and minimization / maximization of the channels that I can see detailed work areas easily.

    If I ask a stupid question here, please don't shoot me :-) As I have said for a while I used the PP, but now I use it everyday - so just going back to it.

    Thanks for reading - and advice you might have would be welcome.

    Thank you.

    Pete

    If all you need is a program-monitor output to a second monitor, woudn't integrated two-monitor process work? No, is not the release of calibrated equipment which is often sought for high range editing, but it works for most cases... just have a second monitor mounted on your card system and on the Preferences tab, select it as shown...

    Just make sure that your operating system 'sees' your normal monitor as a screen, and then they will appear in this dialog box as your operating system lists them. PrPro always default to sending the output of the program monitor to monitor 2.

    No box necessary engine... and many who have the outboard motor to run a high-end TV, also use it for their treatment of General works.

    Neil

Maybe you are looking for

  • Billing information

    He repeats to me follows her, ' there's a problemwith a previous purchase.» Update your payment method. But there is nothing wrong with my card?  (so I can't download apps or update even tho it free it says purchase)

  • I forgot my bio password

    Please help me find my oops battery bio past I forgot itthank you (cnu92898cx)

  • Apple radio not

    Every time since 3 days I go to radio apple and hit a radio, but instead of music, showing a photo of a young girl listening to music is, and he says 'join music Apple to stream this song or close all other songs ever recorded... "then at the bottom,

  • How can you "Disable penguins Final Communications Disruptor underground" in Batman Arkham City?

    If you know where to find or find let me know. If you have / know also a video link please send it to me. Thank you. (I have a little trouble and I need help)

  • Two questions: Windows Vista and XP on HP a6130n

    A6130n HP from my father (AMD Athlon 64 X 2 dual processor running Windows Vista) had a hard drive crash. I replaced the HD and tried to recover using the recovery discs, he has created. He was suspended during the recovery process of system usually