Fixed scrolling verticalfieldmanager in verticalfieldmanager of size?

Hello

I want to verticalfieldmanager scrollble in a verticalfieldmanager (screen size) of a fixed size.

I tried sublayout to set the size to fix it works but the inner verticalfield Manager does not show all areas it contains. (not completely scrollble).

I put a picture with envy of .and size fixed verticalfieldmanager (external) that all fields must be scrolling in internal verticalfieldmanager.

can someone help me how can reach that.

You add your mainManager on a screen?  If so, make sure that your screen is not scrolling.

In addition:

You make too much extra stuff in your code while missing a few key points:

(1) adds the USE_ALL_HEIGHT and USE_ALL_WIDTH style to your mainManager bits;

(2) delete the substitution of sublayout mainManager;

(3) use getWidth() and getHeight() instead of 480 and 360 in your call drawBitmap;

(4) replace paint in the mainManager with paintBackground and drop super.paint appeal from there;

(5) remove your override of sublayout() of your innerManager - regularly VerticalFieldManager with VERTICAL_SCROLL and possibly VERTICAL_SCROLLBAR is all you need.

(6) label your buttons in some way to distinguish between them, something like

BTN [i] = new ButtonField ("button #" + (i + 1), ButtonField.FOCUSABLE);

Navigate via the buttons and see if the screen scrolls.

Tags: BlackBerry Developers

Similar Questions

  • Scrolling VerticalFieldManager

    Hello

    I've added an image to a VerticalFieldManager:

    _Manager = (VerticalFieldManager) getMainManager () VerticalFieldManager;
    Borders XYEdges = new XYEdges (20, 20, 20, 20);
    Border = BorderFactory.createBevelBorder (edges);
    _manager.setBorder (border);

    and then I added a RichTextField:

    _manager. Add (new RichTextField());

    When I discovered the text in the RichTextField, and I need to scroll vertically, I can't do the 40 background pixels, I think because of the frame (20 + 20 = 40).

    For example, if I need to scroll of 600 pixels, I can only scroll 560.

    Does anyone know how to fix this?

    Thank you!


  • A div or element cannot ignore making fixed scrolling?

    Here we are,

    I tried to find a work-around is opposed to the use of css property position: fixed,

    to keep a div or element of travel as the page scrolls under it.

    so...

    SYM.$("body"). Append (sym.$("Group"). CSS({"position":"Fixed"}));)


    .. is not fully functional to create this effect in the sensitive scaling with width 100%.

    You lose the set size and position, more you lose the scale to adapt to effect window browser.


    Can a div or element skip scrolling and stay fixed?


    I thought that maybe I would try to create for this purpose through properties of ScrollBar or scrolling scripts.

    Don't know if it's possible.

    Thank you

    Henry

    Hello

    • Of course, the append() function is designed to insert or move a tag. Not to change a css property. For example: sym. $("body") .append (")

      paragraph

      ");
    • The CSS() function is designed to get or set CSS properties. For example: sym. $("groupe") .css ("position", "fixed");

    Bonus: how to use the chronology of edge and scrolling (a demo file)

  • Need driver for 32 - bit Windows 8 for Alps touchpad on HP Pavilion dv4000 CTO Notebook PC fix scrolling.

    Cursor Alps touchpad very well, œuvres just need to fix the movements and scrolling.

    I know this is an older laptop that came with XP Pro, but I wanted to extend the life of it and everything works fine with the new installation of 32-bit Windows 8 Pro.

    Thanks in advance!

    Solved!

    Google "alps touchpad driver for windows 8" & after trying a few, the following fixed my touchpad scroll (he also added additional Win8 functions, such as edge shot left for the bar of charms, etc..):

    http://kurtsh.com/2012/09/16/download-Alps-touchpad-driver-for-Windows-8-for-Lenovo-G360/

    I had to remove the already installed driver first via Add/Remove Programs (like her whining on would not find Alps version, or something like that), then installed the new driver & restarted.

    Although the new driver for lenovo, it worked great for my HP dv4000 (p/n PC253AV).

  • Make fixed scrolling bg relevent to the container div not viewport

    Hi, I'm experimenting with a design reagent and css etc. Im having a problem with something.

    I am just to test the bg images and put an image as a bg for a div when the option scroll centres nicely and is relative to the container DIV. If, however, I got it fixed, then it becomes from the window, which means that when you scroll to the top he chops of the upper part of the image turned off. Y at - it a way with css to stop what is happening.

    #contentright {(width: 25 %; background-image: url(/images/neilquote.gif);}

    background-repeat: no-repeat;

    background-attachment: fixed;

    background-position: 100% 50%;

    padding-top: 10px;

    float: left;

    }

    http://www.stuartskelton.co.UK

    His image on the right side.

    Its not even something I really need but is now listening the hell out of me.

    Thanks for the research.

    Change this:

    #contentright {(width: 25 %; background-image: url(/images/neilquote.gif);}

    background-repeat: no-repeat;

    background-attachment: fixed;

    background-position: 100% 50%;

    padding-top: 10px;

    float: left;

    }

    to do this:

    {#contentright}

    Width: 25%;

    ("background: url("/images/neilquote.gif ") non-repetition fixed straight transparent 170px;

    padding-top: 10px;

    float: left;

    }

    We will assign a fixed position, no repetition in bg, horizontal right of div and 170px vertically from the top of the div to fill the space above this div (header area).

  • Change the size of the scroll bars and title

    I need to know how to change the size of scroll bars and title in windows.  When I was using XP, all I had to do was right click on the blank desktop and select Properties.  Then click on the Advanced button which brought up the Advanced Appearance dialog box.  This allowed me to click on the Active title bar and scroll bar to change their sizes.  Does anyone know how to access the appearance dialog box in Windows Vista Business?

    Right click on the desktop and choose personalize. Click Windows color and appearance. Click on "Open classic appearance properties" at the bottom of the window. Press Advanced.

  • DataFile ensures different size of Production... How to fix?

    Environment:

    Oracle 11.2.0.3 EE on Solaris

    I have a Production database with a wait in a remote location.

    This morning, I had a problem with a file of data to running out of space. He was in the process of fixing that issue I changed the size of the file of data one or twice the size of the mount point. I increased both at the start and had to reduce the size to not fill the mount point.

    He apparently confuses the eve somewhere in this process because my Production data file is now 10 GB and my pending data file is 5 GB, and I can't update the size of the data pending file.

    It is now where the error on the day before because the Production database writes data to the data above the bar of 5 GB file and causes an error on the eve with the message "cannot extend... '. ». I have a stack of newspapers to archive pending to be applied on the day before.

    So the question is: how to synchronize the data file size to match Production to sleep?

    I tried to resize the file of Production data again, but using the same parameters in the hope of forcing changes in waiting, but so far, that did not work.

    I can't manually change the size on the day before because he has READ-ONLY.

    Any help is GREATLY appreciated!

    -gary

    Gary;

    I think not because this change would be in the current log file and you are 100 behind.

    I'm leaning toward this RMAN restore at this point.

    Insight - but no solution

    ORA-600 [3020] during recovery standby after Datafile resize to a smaller size on primary [ID 1446482.1]

    H2. Update

    What I'd probably try (my concern would be that it fails somehow pass the data file)

    RMAN incremental to roll forward a physical database ensures

    http://www.Oracle-CKPT.com/articles/

    CKPT has this note. If it fails, you may need to recreate the DB before, but it should work and take much less time. If you follow this path I would probably reset the settings on the eve first (back to the car)

    Mseberg

    Published by: mseberg on April 13, 2013 09:07

    Published by: mseberg on April 13, 2013 09:08

    Published by: mseberg on April 13, 2013 09:21

  • Scrollable image with effect of scrolling fix

    I use Indesign CS6 to create a page layout.

    I know, if we put three pages in a page layout using fix scroll, pages effect from page to page, not scroll scroll.

    What happens if I want to use this effect to 'Frame' floating inside a page?

    Let say I have organize three photos, grouped, then paste into a framework for the effect of scrolling, when structure I drag the image it scrolling until the last photo shows and stop is just indicated half of these photos. (pls see attached photo).

    I want it is: when suddenly the scroll frame user images once second in evidence and shutdown, blow again, third photo shows upwards and the judgment, as the effect of scrolling fix available, we can see the first photo moving upward and the following image shows the bottom fading does not effect.

    I want to learn it so I can put some products in a floating framework, then the user can drag to see the product one by one.

    Help, please. Thank you.

    Untitled-1.jpg

    I can't think that you can do in native mode of the DPS tool. HTML slideshow with vertical sweep is possible

  • The bar touchpad scroll not working not not on my windows 7

    Hello

    So I have a laptop windows 7. Yesterday, I did a clean boot to try to get a program to run. I put everything as he was back, and now the scroll bar on the touchpad does not work. How can I fix the problem?

    Hello

    Control Panel - mouse - look for the TouchPad settings - mine is on the settings of the device and your own tab
    may be different (it is NOT the Scrollings tab which is for the mouse). On some, you can activate
    and disable scrolling and/or define the size of the area and the sensitivity of the touchpad.

    Device - mouse and pointing devices configuration-manager Panel

    Right click on the TouchPad and UNINSTALL it (do not check the box of pilots to remove), and then
    Reset - the touchpad drivers will be refreshed when Windows returns to the top. If there is no
    help to check the settings in the controls and also to update or reinstall the drivers of HP.

    Some will have a TouchPad progam/control icon in the Notification area near the clock - low
    right.

    Check with the manufacturer of System Support, online documentation and forums (if any).

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touch pad-
    The driver tab - click on Update Driver (which is may not make anything like MS is far behind certifying)
    (drivers), now right CLICK on the touchpad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB.

    Here is the similar procedure under XP, Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    Support HP & drivers
    http://welcome.HP.com/country/us/en/support.html

    Contact HP
    http://welcome.HP.com/country/us/en/contact_us.html

    HP forums
    http://h30434.www3.HP.com/PSG/

    Check with HP Support, their online documentation and drivers and the HP forums where those who have the
    same system have probably solved this problem.

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • ListField Scrolling - please help!

    I have read many comments scrolling ListField and I have

    a hard time!

    Trying to get the scroll for a ListField. It is in a VerticalFieldManager.

    The ListField is the contents of a table like structure. The BitmapFields

    on the left you see below, are a different Manager.

    The manager that contains a scrolling VerticalFieldManager

    and scroll to the WIDE bars.

    Start photo:

    NOTE the arrow the down scroll bar here, no arrow (?). But I'm at the top of the list, I want to scroll to the top to see the bottom. There are 30 entries in this list. This is a problem.

    After scrolling:

    I do not understand why scrolling results in the image above.

    Where is my top scroll bar arrow?

    In addition, after scrolling once, I lose the arrow of the scroll bar.

    Ideas?

    Here's the drawRow in my ListView:

    I realized what was going on.

    Field.getExtent () does not return a copy of the rectangle of the measurement field - but the rectangle extent itself.

    So, if you have

    XYRect r = this.getExtent ();

    r.x += factor;

    Then your field will be repainted in the wrong place. It will be a wrong x.

    I think it is a bug or bad design, because this measure rectangle should be wrapped.

    You cannot modify it via the interface of the method, you should not be able to change this way.

    getExtent() should return a copy of this rectangle, in my opinion.

    So I was something with measurement values, calculation without realizing that I was changing the coordinates of the field.

    My ListField wasn't all scrolling. It has simply been moved downwards.

    Unfortunately, it still does not scroll.

    lucidbee.

  • Screen with fixed and content header drop-down

    Hello

    as written in the subject,

    -J' created a screen with NO_VERTICAL_SCROLL.

    -added display a field, for example a button as a header.

    -created a verticalFieldManager with VERTICAL_SCROLL,

    -added fields to the verticalManager

    - and the verticalManager added to the screen.

    The problem is that nothing passes.

    I followed the steps posted here

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-screen-with-stationary-headings/TA-...

    but without success.

    Can someone help me?

    Found the problem!

    Scroll VerticalFieldManager I did not USE_ALL_WIDTH, so clicking on the side right (empty) of the screen, the fields, put on the left don't scroll down.

  • problems with fixing ScrollPaneLayout

    I use a patch of a former subject of mine (Re: rather confusing behavior get with BorderLayout provided by Walter Laan (thanks!), but I just came across some problems with it.) The code below is almost identical to the solution on the former thread:
    import java.awt.*;
    import javax.swing.*;
     
    public class TestScrollPaneLayout {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    final JFrame frame = new JFrame("Test");
                    
                    // use BorderLayout if you don't want the borders
                    final JPanel myPanel = new JPanel();
                    myPanel.setBorder(BorderFactory.createLineBorder(Color.pink));
                    myPanel.add(new JLabel(
                    "A nice label, oh wait its too long! (actually its too short, hence why i am adding this)"));
     
                    final JScrollPane scroll = new JScrollPane(myPanel,
                            JScrollPane.VERTICAL_SCROLLBAR_NEVER,
                            JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
                    scroll.setLayout(new FixScrollPaneLayout());
                   
                    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    frame.getContentPane().add(new JLabel("Resize the frame to show/hide the scroll bar"),
                            BorderLayout.PAGE_START);
                    frame.getContentPane().add(scroll,
                            BorderLayout.PAGE_END);
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);
                }
            });
        }
        
        public static class FixScrollPaneLayout extends ScrollPaneLayout {
            @Override
            public Dimension preferredLayoutSize(Container parent) {
                Component view = getViewport().getView();
                if(!(view instanceof Scrollable)) {
                    // if not Scrollable ViewPortLayout sets an explicit size
                    // which means ScrollPaneLayout ignores the view preferred size
                    // this workaround assume this is only called during layout
                    getViewport().setViewSize(view.getPreferredSize());
                }
                Dimension size = super.preferredLayoutSize(parent);
                if ((hsb != null) && (hsbPolicy != HORIZONTAL_SCROLLBAR_NEVER)) {
                    if (hsbPolicy == HORIZONTAL_SCROLLBAR_ALWAYS) {
                        // size is OK
                    }
                    else {
                        boolean canScroll = true;
                        if (view instanceof Scrollable) {
                            canScroll = !((Scrollable)view).getScrollableTracksViewportWidth();
                        }
                        if (canScroll) {
                            Dimension viewSize = getViewport().getViewSize();
                            Dimension extentSize = getViewport().getPreferredSize();
                            if(viewSize.width > extentSize.width) {
                                // size is OK
                            }
                            else if(view.getPreferredSize().width > getViewport().getWidth()) {
                                // Fix it!
                                size.height += hsb.getPreferredSize().height;
                            }
                        }
                    }
                }
                return size;
            }
        }
    }
    However, if I start adding the fixed scroll pane in other places (for example, in a Panel in the footer) instead of just the borderlayout within the framework:
    public void run() {
                    final JFrame frame = new JFrame("Test");
                    
                    // use BorderLayout if you don't want the borders
                    final JPanel myPanel = new JPanel();
                    myPanel.setBorder(BorderFactory.createLineBorder(Color.pink));
                    myPanel.add(new JLabel(
                    "A nice label, oh wait its too long! (actually its too short, hence why i am adding this)"));
     
                    final JScrollPane scroll = new JScrollPane(myPanel,
                            JScrollPane.VERTICAL_SCROLLBAR_NEVER,
                            JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
                    scroll.setLayout(new FixScrollPaneLayout());
                    
                    JPanel footerPanel = new JPanel();
                    footerPanel.setLayout(new BorderLayout());
                    
                    footerPanel.add( scroll, BorderLayout.PAGE_START);
                    footerPanel.add(new JLabel("footer : made by me!") , BorderLayout.PAGE_END);
                    
                    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    frame.getContentPane().add(new JLabel("Resize the frame to show/hide the scroll bar"),
                            BorderLayout.PAGE_START);
                    frame.getContentPane().add(footerPanel,
                            BorderLayout.PAGE_END);
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);
                }
    I get strange when behavior its maximized/minimized. In my program real when I maximize and print the statement:

    If (view.getPreferredSize () .width > parent.getWidth ())

    parent.getWidth () is not just, its allways the unmaximised (if you maximize) size or vice versa and only attaches to a manual resizing or revalidate/repaint, this isn't what happens in the example above, but his strange behavior still display...

    I hope someone can help track down the problem

    Thank you

    Edition - to clarify only upward acts when optimize you a size that has a scroll bar or reduce to this dimension

    You might want to try using revalidate():

    frame.addWindowStateListener(new WindowAdapter() {
      @Override public void windowStateChanged(final WindowEvent e) {
        EventQueue.invokeLater(new Runnable() {
          @Override public void run() {
            System.out.println("windowStateChanged");
            JFrame f = (JFrame)e.getWindow();
            ((JComponent)f.getContentPane()).revalidate();
          }
        });
      }
    });
    
  • iMovie 10.1.2 adjust the size of the clip in the timeline

    When I move a clip in the timeline, the size is reduced to a point where I can't move titles correctly.  I tried the setting of the slider, but it does not affect the components of the package.

    Hi, David,.

    You use the scroll bar that you get when you click the gear in the top middle of your screen.  This bar only works on clips in the clips pane, not in the time line.

    The slider beside the button settings in the middle right side of your screen expands the time line so that the clips in it are spread out more.

    Also, if you click on the settings button, a dialog box appears that contains a scroll bar to adjust the size of the clip in the timeline.

    Hope this helps,

    -Rich

  • CAREB touchpad scroll not working not

    My CAREB portable edge scrolling on the touchpad does not work when I try to scroll downwards or upwards

    Hello

    Control Panel - mouse - look for the TouchPad settings - mine is on the settings of the device and your own tab
    may be different (it is NOT the Scrollings tab which is for the mouse). On some, you can activate
    and disable scrolling and/or define the size of the area and the sensitivity of the touchpad.

    Some will have a TouchPad progam/control icon in the Notification area near the clock - low
    right.

    Check with the manufacturer of System Support, online documentation and forums (if any).

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB.

    Here is the similar procedure under XP, Vista, and Windows 7 are the same except you must delete the specific
    device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    Acer - USA - Service and Support - drivers
    http://us.Acer.com/AC/en/us/content/support

    Acer - worldwide
    http://www.Acer.com/worldwide/selection.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Functionality of scrolling on the touchpad does not work... help!

    I have an Inspiron 1525, just the other day that the functionality of the touchpad scroll has stopped working.  I tried to look in the control panel to find an option to turn "scroll" back on, I found nothing.  I am running Windows Vista. Any suggestions on how to turn "scroll" back on?

    Hello

    Try the system restore before you did it again at:

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
    -------------------------------------------------------

    If necessary:

    Control Panel - mouse - look for the TouchPad settings - mine is on the settings of the device and your own tab
    may be different (it is NOT the Scrollings tab which is for the mouse). On some, you can activate
    and disable scrolling and/or define the size of the area and the sensitivity of the touchpad.

    Some will have a TouchPad progam/control icon in the Notification area near the clock - low
    right.

    Check with the manufacturer of system support, documentation in line, or forums as there probably
    are shortcut keys that enable and disable the touchpad functions.

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB.

    Here is the similar procedure under XP, Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    Dell support
    http://support.Dell.com/

    Dell support drivers - product manual & warranty Info (left side) - and much more
    http://support.Dell.com/support/index.aspx?c=us&l=en&s=DHS

    Dell forums
    http://en.community.Dell.com/forums/

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

Maybe you are looking for