KeywordFilterField inside scrolling vfm


A wild guess would be the following - your scrolling VFM is created without USE_ALL_HEIGHT, and when the field shrinks enough, it sets its own measure to use the height of this area.  From any area (and the Manager is a field) can only shoot in its area of action, he draws the background behind the lines currently displayed.

Opinion - USE_ALL_HEIGHT is dangerous if you add your money to a default screen.  I know that you read one of my posts that suggested by the way NO_VERTICAL_SCROLL Ecran Builder - your case is a perfect example why.

So, to summarize:

(1) create a new MainScreen (MainScreen.NO_VERTICAL_SCROLL)

(2) create new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR | Manager. ( USE_ALL_HEIGHT)

(3) your VOR if setBackground the target of 4.6 + phones; Override paintBackground() to the optimization of resources otherwise (explained in more detail in the knowledge base article - use a background picture in the screens of the application; if you override paint/paintBackground, make sure you read the comment here)

(4) add your VFM to your screen

(5) add your KeywordFilterField to your value for money.

Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Background image of display and scrolling VFM

    Right now, I'm stuck trying to give the desired result work on my screen. I already know the basics of adding a background to a Manager (value bit flags USE_ALL_WIDTH and USE_ALL_HEIGHT so that paint void). However, I must also deal with a child growable VFM attached to the screen can scroll if the height is greater than the height the screen less the height of the top banner field. What I want to achieve is the following: having a screen that does not scroll with a background image that is attached to the dimensions of the screen less field height of the banner (first low-level with the BG Manager). However, I want the VFM child to be able to scroll if necessary while the BG image is displayed in the background. Here's what I have so far to my constructor:

    public MyMainScreen(){
       super( NO_VERTICAL_SCROLLBAR );
       VerticalFieldManager myVFM = new VerticalFieldManager(
                                    VerticalFieldManager.USE_ALL_WIDTH
                    | VerticalFieldManager.NO_HORIZONTAL_SCROLL
                    | VerticalFieldManager.NO_VERTICAL_SCROLLBAR
                    | VerticalFieldManager.FIELD_TOP
                    | VerticalFieldManager.TOPMOST
                    | VerticalFieldManager.BOTTOMMOST );
       setBanner(myBannerField);
       //fields are added to VFM.....
    
       VerticalFieldManager bgManager = new VerticalFieldManager(
                                    VerticalFieldManager.USE_ALL_WIDTH
                                    | VerticalFieldManager.USE_ALL_HEIGHT
                                    | VerticalFieldManager.NO_VERTICAL_SCROLL){
               public void paint(Graphics g){
                  //my BG gets drawn here...
                  super.paint(g);
               }
       };
       bgManager.add(myVFM);
       add(bgManager);
    }
    

    So, I just need to know if I'm doing something wrong here. Of course, it may be obvious to some, but for some reason that I'm completely stumped. Thanks in advance.

    Tried again without the substitution of sublayout, and he managed to work given my VFM populating routines, because the domain in question (HFM) that is updated is added without all the fields added initially, so my VFM has all the fields, it needs at that point to have himself. You're right, if I wanted to complex me and choose to place the fields of optimization of resources on particular points, it would be wise to replace sublayout and define to what extent, accordingly, but in this case, it works fine without it. Anyway, the people, the answer today is that your screen does not scroll by setting super (NO_VERTICAL_SCROLLBAR |) NO_VERTICAL_SCROLL) in the constructor, however, if you want the custom vertical scrolling on your VOR with BG, you must set to vertically, do scroll down and use the height by passing the following style bits:

    VerticalFieldManager.USE_ALL_WIDTH
    | VerticalFieldManager.NO_HORIZONTAL_SCROLL
    | VerticalFieldManager.VERTICAL_SCROLL
    | VerticalFieldManager.NO_VERTICAL_SCROLLBAR
    | VerticalFieldManager.USE_ALL_HEIGHT

    then you replace paintBackground appeal of this optimization of the resources any desired call paint and that's it.

  • Problem with the activation of the scrolling features

    Hi all:

    I write a game application that takes advantage of two menus api normal (for the initial screen), as well as related graphical rendering tips, once the game is in progress.  One of the menus I have is a statistics screen, implemented as follows:

    class StatisticsScreen extends MainScreen
    {
    
     public StatisticsScreen(SpyderMainApplication p, long style)
      {
        super(style);
    
        parent = p;
        prof = parent.getProfile();
    
        VerticalFieldManager vfm = new VerticalFieldManager(
            Manager.VERTICAL_SCROLLBAR | Manager.VERTICAL_SCROLL);
    
        LabelField title = new LabelField("Statistics", LabelField.FIELD_HCENTER);
        setTitle(title);
    
       // add total statistics
        LabelField totalTitle = new LabelField("Overall Statistics",
            LabelField.FIELD_LEFT);
        vfm.add(totalTitle);
        SeparatorField sft = new SeparatorField();
        vfm.add(sft);
    
        vfm.add(new BasicManager(20)); ... adds a number of other fields inside of vfm, so that it *should* enable scrolling (the whole screen isn't visible) ...
    
        add(vfm);
    
        updateLayout();
        }
    
      protected void sublayout(int width, int height)
      {
        super.sublayout(width, height);
      }
    }
    

    The base Manager is implemented as follows:

    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.system.*;
    
    //import net.rim.device.api.ui.container.*;
    
    class BasicManager extends Manager
    {
            int _managerHeight; // Total height of the manager
    
            // Pass in desired height.  Scrolling is turned off in both directions.
            public BasicManager(int passHeight)
            {
                    super(Manager.NO_HORIZONTAL_SCROLL | Manager.VERTICAL_SCROLL);
                    _managerHeight = passHeight;
            }   
    
            protected void sublayout(int width, int height)
            {
                    BasicTextField field;
    
                    // Loop through all the fields contained with the layout manager
                    for (int lcv = 0; lcv < getFieldCount(); lcv++)
                    {
                            //Get the field.
                            field = (BasicTextField)getField(lcv);
    
                            //Obtain the custom x and y coordinates for
                            //the field and set the position for
                            //the field.
                            switch (field.getCustomStyle())
                            {
                            // Custom style 1 is for the left side of the text to be at 1/8th the width
                            // of the screen
                            case 1:
                                    setPositionChild(field, width / 8 , field.getY());
                                    break;
    
                                    // Custom style 2 is for the right side of the text to be at 7/8ths the width
                                    // of the screen
                            case 2:
                                    setPositionChild(field, width * 7 / 8 - field.getPreferredWidth(), field.getY());
                                    break;
    
                                    // Any other custom style gets position strictly from X,Y
                            default:
                                    setPositionChild(field, field.getX(), field.getY());  
    
                            }
    
                            //Layout the field.
                            layoutChild(field, width, height);
                    }
    
                    //Set the manager's dimensions
                    setExtent(width, _managerHeight);
            }
    }
    
    class BasicTextField extends LabelField
    {
            int _xPos, _yPos, _customStyle; // coordinates and style
    
            // We pass in the coordinates and the custom style
            BasicTextField(String passLabel, int passStyle, int passX, int passY)
            {
                    super(passLabel);
                    _xPos = passX;
                    _yPos = passY;
                    _customStyle = passStyle;
            }    
    
            // Getters for position and style
            int getX() { return _xPos; }
            int getY() { return _yPos; }
            int getCustomStyle() { return _customStyle; }
    
            public int getPreferredWidth()
            {
                    return Display.getWidth();
            }
    
            public int getPreferredHeight()
            {
                    return Display.getHeight();
            }
    }
    

    Now, the problem I have is that on any platform (curve 8330, pearl 8130, etc...), he will not allow the user to scroll to the bottom of the page.  I did something wrong in my application?  I can't get to allow scrolling...

    Thanks in advance for any help!

    ~ Scott

    A quick response - it's late for me.  Default LabelField is not active, so the BB has no place where to focus on when you try to scroll down.  The fastest solution is to be the subject of the LabelField FOCUS.  Otherwise, announces a few NullFields that are focusable.  Let us know if you need more.

  • Relative motion

    Math is not my strong point. I have an image in a scrollpane I'm drawing a line. My client wants a complete view across the line above the image. So I have a charger with the updated image to scale above and to the right of the pane inside scrolling. The Scrollpane coordinates are x = 37, y = 286, w = 772, h = 400. The coordinates of the charger are x = 544, y = 15, w = 260, h = 206. I need to draw the line against the full range of size, whose code is below, but I'm not sure of how to manage the percentages. ScrollPane doesn't show the full picture but only a part of it. The average dimensions of the images are w1300xh1030. Is it possible to create an accurate overview on this image loader, or should I just get a preview to appear somewhere once I managed to create a jpeg of the original merged image file and the full size line?

    This project is already in extra time of quick solution would be most appreciated.

    Thank you very much.

    Well, I hope that I did not too much of a mess of it.
    You can download what I've done here:
    http://gregdove.Web.googlepages.com/scrollpanedrawingtest

    (the page has been updated).
    I have not really done much with bitmapData even in as2... as well as a little gray parts... and the manipulation of mousedown/mouseup is not perfect, because you can check area and outside mouseup mousedown and get more points that you should have... I'll take a look at this tomorrow if you haven't fixed.

    Others are here a lot more as3 warned that I'm so can offer the best advice. I'm more comfortable with as2 too, but I want to start using more as3. Even if its scary.

  • Cannot scroll inside the drop down Menus

    I just got a new laptop (Windows 7 Home Premium 64 bit) HP, installed Firefox 11 (now updated to 12) and discovered that when using the touchpad (Touchpad Synaptics v8.1. Driver provided by Synaptics, version 15.3.29.0 as of 10/13/2011), I can't scroll inside the drop down menus.

    To replicate, go to this link: http://sacramento.craigslist.org/sss/

    Click on the drop down menu to the search category. Use the touch pad to scroll through the list. Mine closed list and returns focus in the browser instead of scrolling of the list. It then scrolls the window of the browser instead. This works fine in IE. I tried the things:

    Safe mode
    Unchecking scroll smoothly
    Uncheck auto-scroll
    Uncheck the hardware acceleration

    And about all the various combinations of the above things. I also tried to restart Firefox every time I made a change. Nothing seems to solve this problem.

    Oddly enough, if there is a window of text within the page (as I write this), I can scroll than fine. Once I move my mouse out of the box, it scrolls the homepage very well. I don't think that it is a matter of the development following the mouse, there something to scrollable drop-down boxes that specifically seems.

    Also, I must point out that all the pages I have problems with work well in IE how they SHOULD work in Firefox.

    I had this exact problem, the same features of HP and the driver Synaptics. I went to synaptics site and downloaded their latest driver which is lower 15.3.29.0 for some reason any. There 15.2.20, I got this one for 64 bit since that's what I have. You must uninstall the 15.3.29.0 first because it is "newer". He now works properly in FF and IE and everything else. If for any reason any the last FF has a confrontation with the latest version of the synaptics driver and FF devs had to include a fix in the next patch.

  • Why my VFM does not scroll

    In my application, I created a screen and I need to scroll down otherwise I can't keep everything on the screen, but I can't get anything to scroll unless I have create some sort of list. I created a simple test to illustrate what I have my tent to do, you can see below what I'm doing is cretae 50 labels that will exceed the length of the screen (Bold 9900) and I hope he would display a scroll bar or make me scroll down, but I have no scroll bar and can not scroll at all.

    Import net.rim.device.api.ui.component.RichTextField;
    Net.rim.device.api.ui.container import. *;

    / public final class TestScreen extends screen
    {

    public TestScreen()
    {
    Super(fullscreen.NO_VERTICAL_SCROLL |) FullScreen.VERTICAL_SCROLLBAR);

    final VerticalFieldManager OOR = new VerticalFieldManager(USE_ALL_HEIGHT |) VERTICAL_SCROLL | VERTICAL_SCROLLBAR);

    for (int i = 0; i)<>
    Add (new RichTextField ("Line" + String.valueOf (i)));
    }
    Add (VFM);

    }
    }

    Add fields to the form, and not to the optimization of resources.

    If you add fields so, you should consider addAll, it has a much better performance.

  • Is a floating within an OSM inside a view scrolling possible?

    Hi all

    I'm trying to add a frame floating within an OSM within a scrolling view.

    The result is a moving map, where you can click on the pop - ups. In these pop ups sometimes scrolling images, sometimes other MSO and sometimes just text there.

    The text and the of mso are working at the moment, but I can't get the view floating inside the OSM inside the scrolling view to work.

    Can someone please help?

    I've never tried, but I tried to put a scroll in a scroll in

    WHO and the second roller does not work. I think you might have exploited

    against the same restriction.

  • Typeface is more heavy/more bold inside frames with scroll

    Text inside frames with scroll appears heavier on the ipad.

    Font is identical in InDesign DPS, obviously.

    See picture attached. Can be a little difficult to tell the difference with the screenshot.

    I put the text in the position box, top left. Using the commands "Cut" and "Paste inside" to create the scroll frame.

    In addition, I have an item multi-state of two States (box with bland gradient feathering), set to auto play slide show, at the bottom of the moving image.

    Both frame and a slide show with scrolling are on vector.

    scrollable_frame_font_wt.jpg

    Any help/advice appreciated - thank you!

    Bruce

    Thanks Bob!

    Knew that there must be a simple answer to this (accidentally built with older V20 folio).

  • Buttons inside frames with scroll

    I have a series of photographs which act as buttons that go to a page number. In an article, I've grouped these buttons and put them inside a floating frame. They work very well.

    Now, in another article (both of these items are part of the same FOLIO) these buttons just go to WHO. The MSOs have pan and zoom enabled (many current interactivity). I have cut and paste these buttons inside of a framework and made scroll, but the buttons are non-functional. Why the buttons functional within a framework and non-functional in another?

    There is a problem with buttons now. You can try to rename the buttons with all lowercase letters and without spaces or wait for the fix.

    Bob

  • Use of a ToggleSwitch inside a Scroller

    In 4.6, ToggleSwitch introduced resembles a large component that really gives a mobile feel to what would otherwise be a simple checkbox.  While I'm a little disappointed that it takes a new skin to set the labels selected and unselected, I can get there.

    The issue I'm having is with the help of a ToggleSwitch inside a Scroller.  If you place a ToggleSwitch inside a Scroller and fill the rest of the wheel with enough content, then the vertical scrolling the wheel action will interfere with ToggleSwitch horizontal scrolling.  While using the ToggleSwitch to move from left to right, if the user moves only upwards or downwards, then the Scroller scrolls.  This will break the ToggleSwitch interaction.  Usually, this will pop ToggleSwitch to close, left or right position.  However, the thumb of the ToggleSwitch several times is in the 2/3 of the ToggleSwitch middle.  In this case, the thumb crashes in the middle of the switch!

    This can be very confusing for a user, because their selection will not be completed.  Although it may seem that the ToggleSwitch has no selection, or is even (just or almost) in the enabled/disabled state... it could very well be in the opposite State.

    Has anyone found any workaround for this problem?

    Thanks for the reply.  I think my explanation could be a bit off.  Looks like your solution for scrolling in a ToggleSwitch, not by the ToggleSwitch.  Yet, it made me think of another method that resembles the work.

    I turn off the vertical scroll wheel when the switch is in use, and then turn it back on when the switch is completed.  I also force a reset of the selection of the switch if the mouse switch user.  This prevents do visually hung between on/off.

    protected function toggleSwitch_MouseDown(event:MouseEvent):void

    {

    scrollerContent.setStyle ('verticalScrollPolicy', ScrollPolicy.OFF);

    }

    protected function toggleSwitch_MouseOut(event:MouseEvent):void

    {

    scrollerContent.setStyle ('verticalScrollPolicy', ScrollPolicy.ON);

    toggleSwitch.selected = toggleSwitch.selected;

    }

    protected function scrollerContent_MouseUp(event:MouseEvent):void

    {

    scrollerContent.setStyle ('verticalScrollPolicy', ScrollPolicy.ON);

    }

  • scroll inside the table overflow

    Hello
    Is it possible in Dreamweaver to an overflow of scroll inside the table and no tables in the
    the browser window? I can't understand.
    Any suggestion? Thank you very much.






    This does not fit inside the box, therefore, it will open a scroll bar!

  • Button in a Movie clip inside a part of the pane scroll - AS2

    I have a scrollpane component instance named myScroller in a swf file.  It is related to a movieclip named media.  Inside the movieclip are buttons that don't work when they are inside the scrollpane.  A button called "morris" so I tried to put the code on the timeline for the movieclip.

    this.morris.onRelease = function (): Void {}

    _level8._visible = true;

    _level8.gotoAndStop (2);

    }

    It doesn't work - I tried to put it on the main timeline - above the scrollpane.

    myScroller.morris.onRelease = function (): Void {}

    _level8._visible = true;

    _level8.gotoAndStop (2);

    }

    Specific help would be appreciated!

    ~ Judy

    OH - I just read the discussion on an e-mail link in a scrollpane.  I had the same problem - in the scrollpane properties BLAH, I got clcked scrollDrag a reason any.  Now it works!  Thank you

  • Change the scroll inside ScrollPane bar

    I use the provided Adobe scroll pane component. The scroll bar is too wide and I would change it. But I can't find a way to access.

    Someone knows how to do this?

    http://help.Adobe.com/en_US/AS2LCR/Flash_10.0/help.HTML?content=Part3_Using_V2_Components _ 1. HTML

  • VBox inside ModuleLoader scrolling problem (w / screenshot of show)

    I have a VBox that scroll when even if the project runs as an Application, it works perfectly. I have then to modify the Application of a Module and load it into a parent using ModuleLoader app. As soon as I did that, the scrolling no longer works correctly. See screenshot

    http://www.jetScreenshot.com/demo/20090428-375-225kb.jpg

    I've also included this issue a bug introduced here:

    http://bugs.Adobe.com/jira/browse/SDK-16394

    Anyone ran into something like that with ModuleLoader? The controls are nested like this (if it is of any help):

    Main application

    ViewStack

    Box of

    Group of experts

    ModuleLoader

    Module

    VBox

    ViewStack

    VBox <-it's the Vbox with scrolling problems

    HBoxes children

    It almost seems that these events in the loaded Module are blend with the rest of the application. I have tried several things to rememdy this.

    Any ideas or suggestions would be very appreciated.

    No idea why full screen would help me.  You say that the module is loaded after you go fullscreen?  Otherwise, go to full screen can cause an update which is not the case in normal mode.  Or maybe something about the arrangement grows on a minimum size when you are not in full screen.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Cannot set HScrollBar &amp; quot; Scroll &amp; quot; variable inside the function in &amp; lt; MX:script &amp; gt;

    Why can I not pay the scrolling feature for a bar scrolling from a function. It can be hard coded and not dynamically set. This makes it difficult to make the scroll bars on the fly.

    I want to do the following:
    var myBar:HScrollBar = new HScrollBar();
    myBar.scroll = "myFunction (); « ;

    BUIT, it is said that myBar doesn't have a variable named scroll. What is the problem?

    Hi, Creo, 'scroll' is not a property of the ScrollBar class, this is an event. To do what you're trying to do, you add a listener of events, something like this:

    Import mx.events.ScrollEvent;
    var myBar:HScrollBar = new HScrollBar;
    myBar.addEventListener (ScrollEvent.SCROLL, myFunction);

    I hope this helps. -Bruce

Maybe you are looking for

  • How can I get rid two tabs to open when I first open Firefox?

    When I first open Firefox I get my home page in a tab, but also another tab opens. This one is set to Facebook. How can I get rid of the opening automatically second tab?

  • Wireless, extend a network?

    Hello I'm in no internet *. I live in a cottage on a farm where the main House has high speed internet, but the House I rent has no cable or phone to her line. The landlord put in a large network (Amped) but it does not work and they can't seem to ma

  • SMART extended self test failed

    Is this what can I do to repair my disk hard when diagnostics the system returns this error message? The read element of the test failed (error code: HD521-3W) Is there available utilities to diagnose the problems of internet connection on HP? Thanks

  • Fingerprints only to unlock the phone

    Greetings and blessings. My Sony Xperia Z5 (regular version, not Compact or Premium) works perfectly, as expected in almost all directions. I have a couple of fingerprints recorded, which I use to unlock my phone. However, for some reason any, whenev

  • Large format printer Officejet 7110 cannot change paper size

    I have the following problem:I installed the printer drivers, but after selecting a3 paper size selection is not maintained (the choice exists, but not fixed), in other words, when I on the printer again options paper size is set to letter. I can't c