Scroll the list of QNX

Hello

I study the QNX components to check/improve the performance of my Spark App (this is for background).

So I try to use the list scrollToIndex method in order to view a new item added to the list:

myList.scrollToIndex (newIndex);

But it does not for the moment... I have no animation, and the new item is not in sight.

(I check the using element status: myList.getIsCellVisibleAtIndex (newIndex))

Does he know how to use this method in order to have an animation of the list smotth?

Finally work!

Short story: I was preparing a BUG report, my sample did not work as expected and suddenly after set/reset some settings, the list scrolls smoothly like a charm!

So I do not know what is / was the problem, but I could apply a workaround using a fake timer (1ms is sufficient), in order to give sufficient time for the Tweener to 'know' the new content list:

-updated dataprovider

-wait (1ms)

-invoke scrollToIndex()

(I don't like to use the timer to random "wait" but... works great here)

I don't know if it will work for all cases, I still don't know if it's a bug, or if it's the way I use QNX list inside a spark (by using QContainer of Renaun) project, but the workaround is easy and the result is very nice (as expected!) (Thanks to the QNX library).

Tags: BlackBerry Developers

Similar Questions

  • Detect when stop user to scroll the list of the spark

    Hello.

    I have a spark list component mwith a horizontal provision, which I use to display a slideshow of images.

    The user can scroll the slides by clicking on the two buttons or by dragging them on the list (the project is mobile, but it will be also exported as air project).

    I need the slides is perfectly centered in the viewport (the list and each slide is 1024px width) and I want to avoid that two slides are partly shown.

    It is quite easy to achieve when I scroll with the buttons, because I always scroll in 1024px in time.

    Things become more difficult when the user makes a scrolling by dragging on the list (by performing a drag of the classic mouse, but also a gesture of shot on the mobile device), because it could leave the list in an 'intermediary' State in which the two blades are partially displayed.

    What I would like to know if there is some kind of event that is triggered when the user ceases to scroll, and then read the position of the roll so I can decide how to scroll to display only a single slide.

    do you know if there is such an event?

    Thanks in advance!

    Best regards

    Luca

    I think that you might be looking for touchInteractionEnd that is raised after the scroll animation is complete (http://opensource.adobe.com/wiki/display/flexsdk/Mobile+List%2C+Scroller+and+Touch)

  • Loading data into the list when necessary

    HI all,

    I'm a huge display of data from database in the list,

    I do not want to load all the data in one shot, I want to show also responsible, means (if the user scroll the list automatically loads the data from my db?)

    any ideas?

    Thank you

    You will need to check whether sqlite supports offsets and limits.

    http://www.SQL.org/SQL-database/PostgreSQL/manual/queries-limit.html

  • How to load the list when running

    hiiiiii I have total 100 events list...

    But first, I have 20 events display when I scroll the list down when I reached 20 events th I load another 20 events to the list please give me suggestions to do this to me...

    If you have all 100 items available then you should put all the entries in the ListField.

    In situations when not all are available and you must get them (from a server), a little at a time, then you might have a 'Next' button and allows to do the treatment.  Without doubt, you also need a 'Back' button  I wouldn't try to drive it when the user scrolls to the end of the list.  Because there is a long delay, get the 'next page', I think that instead of using a user interface there different - people expect a scroll to be instant.

  • How to use touch gesture to scroll the ObjectListField in a VerticalFieldManager?

    My subclass of ObjectListField is added to a VerticalFieldManager. On a trackball device elements scroll upward and down fine.

    However, on a storm (touchscreen device), the list does not scroll when you move your finger upward or toward the bottom of the screen. How scroll the list vertically on a storm? Thank you.

    Found the problem...

    Trying to develop for touch and non touch, I got a subclass of the screen which was the touchEvent() substitution.

  • Navigate the list fonts causes the Muse crashing

    Just started using Muse today. Whenever I scroll the list of fonts to change the single line of type in the header of the page master, Muse crashes. No alert window opens just the standard dialog Apple asking if I want to send a report to Apple. OS X 10.8.3, 3.4 GHz Intel Core i7 iMac, 32 GB 1600 MHz DDR3. Help! In case it helps, I just tried creating a file - a master, a single page. I created a text box, typed in the word "dog", and then scrolls through the list of fonts. As soon as I hit 'Courier', there is no other fonts listed, and that's when Muse crashes. It happened three times in a row.

    The problem is solved thanks to Zak Williamson. He wrote: ' we expect there is a specific font on your computer that is installed as a police Type 1 in/Library/Fonts and OpenType font in ~/Library/Fonts and it's confusing Muse (which does not support Type 1 fonts).»

    The offending police proved 'Courier FInal Draft' since the application of the Final draft Screenwriting. Once I removed that it draws from the police, Muse stopped crashing.

    Thanks a lot for the quick response!

  • The list with many images

    Hello!

    I have a list with a lot of images in the itemRenderer, over 500.

    I use virtualization on this list.

    When people scroll quickly down, it can take a bit to load images.

    Issues related to the:

    1. in what order the list control to load images? Up and down the entire list or Topp down only the visible part?

    2. is there anyway I can give priority to a certain image to load first on others? The images have the source property set to a relative path on the server.

    3. is there anything I can do to speed up the process of loading in general?

    Thank you!

    The list does not load images, because of your item converter.  I suppose you load these images by substituting the data setter method in the rendering engine.

    When the list of the first loads it creates just enough converters to show what is in view (due to virtualization), let the top 10 items.  This means that the first 10 images will be loaded, but no other images will be loaded unless you scroll the list to expose new items.  If you want to have some images available before others so you can have your application load them if its not busy and in this way, they could be available before the user scrolls.

    Even if you were to load all images before creating the list you might seem still some flickering when scrolling because what are they are recharged in as user autour scrolls.  To remedy this, you might want to consider caching the images as they are loaded, there is an example here: http://flexponential.com/2010/01/10/caching-images-loaded-from-a-spark-item-renderer/

  • Unwanted scrollbar in the list Itemrenderer. Help, please!

    I created a list with the variableRowHeight and wordWrap, both the value 'true '.

    The output looks very good. But the problem came when I scroll the list with the mouse to scroll ( NOT by dragging the scroll bar).

    Take this list I found on the internet (http://blog.flexexamples.com/wp-content/uploads/Tree_variableRowHeight_test/bin/main.html) for example.

    First, I opened the folder "Para 4" and rollovered
    the mouse to the list item "Morbi tincidunt, sapien in sollicitudin.....".

    http://lh6.ggpht.com/_oR_3tRJydtg/SfcURruIJvI/AAAAAAAAAE0/-Bl_pK3uwug/s720/1st.JPG

    Then scroll the mouse-scroll, and the following result would happened:
    http://lh5.ggpht.com/_oR_3tRJydtg/SfcURo3fvsI/AAAAAAAAAE8/CVGuePJkNXA/s720/2nd.JPG

    The first line in the listItem has disappeared!

    Looks like it's a bug, and I don't know how to solve this problem.

    The listItem scrolling as well as my list, which is quite strange for me and my users.

    This is a really serious problem for me! Help, please!

    Thank you.

    Make sure the renderer textfield is large enough to prevent the text scrolling

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

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

  • Problems of huge performance with the list of scrolling on the Playbook (especially Air applications)

    Hello

    It is more of a general question but also for the development of Air for the Playbook and other devices BB10.

    My Playbook has huge performance problems when it comes to scrolling lists.

    And this problem exists with almost all applications (not the ones that I have developed).

    For example, take a look at the app NTV - such its bad, its almost unusable because it's so late when scrolling lists.

    I don't know how this app was developed, but I guess it's Webworks or Air.

    You can see this delay also in the official app of Facebook: it's the same poor performance when it comes to scrolling.

    I guess this Facebook app is also WebWorks or Air.

    So Air or usable at all WebWorks?

    This performance is not fun, and it has no sense to develop applications with this platforms if these performance issues are of type platform.

    Now, my question is - is it true that the only platform that "really works at all" (about performance) is the native "platform"?

    Or is it a problem in the current version of the Playbook OS?

    Else you have noticed that this operation met during the scrolling of lists?

    Thank you

    Bullety

    It's a question AIR, specifically made software. All of the applications you listed are AIR. Try something like Scrapbook, and you see things how smooth can be (waterfalls).

    I saw not the same problems when using WebWorks with Sencha Touch. It is also quite possible to make things smooth in the NDK with waterfalls, but it's only for BB10 (for developers non - RIM). So cannot use it PB BB10 release (end of 2012).

    I also note that the new fuse QNX user interface components are much smoother than conventional QNX UI components. If you use make sure you air that you use.

  • Automatic scrolling of the list of favorites on the start menu to stop before you reach the bottom

    I open the start menu, point the mouse on the Favorites bar and keep the cursor under the small arrow pointing down at the bottom of the list of favorites, as well as the list of bookmarks automatically scrolls down. But after scroll down a number of bookmarks, automatic scrolling stops before reaching the bottom of the list of favorites, view the rest of the empty list. I removed a lot of unnecessary bookmarks in the Favorites folder in Documents and Settings, but this does not resolve the issue. I would like suggestions for this problem, which I have not come across so far. I ran CHKDSK disk cleanup and defragged the volume of disk hard, but in vain. I have Windows XP Pro SP 3 with IE8 installed on my computer.

    THIS POST has BEEN contrary to the ETHICS of COPY AND published by www.qnundrum.com on its website. I don't know how to report this error to Microsoft. Anyone can report to Microsoft?

    Hi ErhanKarabekir,

    Run a full scan of the computer with the Microsoft Safety Scanner to make sure that the computer is virus-free.

    Microsoft Safety Scanner: http://www.microsoft.com/security/scanner/en-us/default.aspx

    Security Scanner warning: there will be data loss through an analysis using the Microsoft safety scanner to eliminate viruses as appropriate.

    Thank you.

  • If I click on Favorites and then scroll through the list of favorites, it does not show the entries in each file.

    * Original title: to access Favorites

    If I click on Favorites and then scroll through the list of favorites, it does not show the entries in each file but suddenly close showing the list of favorites. . I use Chrome and it happened all of a sudden. It was functional this morning. All the advice to fix this will be greatly appreciated

    Have you tried the Chrome forum? https://productforums.google.com/forum/#! forum/chrome

  • The data in the list scrolling

    Hello world

    I use the normal list in my app, bt the problem is that the width of the list item.

    I have no problem with the list in landscape bt from potrait extra mode "".. "". are coming instead of data,

    Is it possible to scroll through the data in the list, (average is the width exceed then automatically the data in the list will scroll,)

    someone can help me. urgnt iam waitng...

    Thanks in advance

    I found the solution which equavalent to scroll.

    I'm overiding method of label in the cell renderer class and applying the marquee event it is great it possible to scroll.

  • Images on the screen in the list update only after scrolling to the rank of the list instead of updating automatically after each image is uploaded (delayed image loading)

    1. I started a lazy image loader to download images in drawListRow and passed the url of the image to download reference.

    2. After downloading the respective bitmap in the lazy image loader, I cancelled the list (called by using a reference to the screen where images are to shoot) using a thread event as follows:

        UiApplication.getUiApplication().invokeLater(new Runnable() {
                public void run() {
                    _list.invalidate();
                }
            });
    

    But my images are updated on the screen until I scroll over the line in the list.  I also tried to use _list.invalidate (index) to invalidate each line once the image is drawn to this particular line, but it does work and does the same thing as _list.invalidate ().

    I want the images to be updated without scrolling, and as soon as they are downloaded. How do I get there?

    Valuable contributions will be highly appreciated.

    UiApplication.getUiApplication () .invokeLater (new Runnable() {public void run() {_list.invalidate ();})            }        });

    use invokeAndWait instead of invokeLater and check if it works or not?

  • Throw the list "cannot access a property or method of an object. null reference" during the scrolling of the white spaces

    Follow these steps:

       import flash.display.Sprite;
    
        import qnx.fuse.ui.listClasses.List;
        import qnx.ui.data.DataProvider;
    
        [SWF(height="1024", width="600", frameRate="30", BackgroundColor="#000000")]
        public class test3 extends Sprite
        {
            public function test3()
            {
                var l:List = new List();
                l.dataProvider = new DataProvider([{label:1},{label:2}]);
                l.setPosition(200,200);
                l.width = 200;
                l.height = 200;
                addChild(l);
            }
        }
    

    And run the application.

    Point the finger just below the last line of the list, and then drag upward or downward.

    You get this:

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at qnx.fuse.ui.listClasses::List/resetCellState()[E:\hudson\workspace\GR2_0_0_AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\listClasses\List.as:2532]
        at qnx.fuse.ui.listClasses::List/deselectCellDown()[E:\hudson\workspace\GR2_0_0_AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\listClasses\List.as:2337]
        at qnx.fuse.ui.listClasses::List/scrollMouseMove()[E:\hudson\workspace\GR2_0_0_AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\listClasses\List.as:2349]
    

    How I not imprison it? Is this a bug of the qnx.fuse.up.listClasses.List component?

    After typing this post, I went back to the SDK download page and noticed there is a new SDK available (as dated February 3, 2012) 2.0.0. I used the previous version dated SDK Date January 16, 2012.

    So I advanced and upgraded to the latest version of the SDK, and this error no longer occurs.

    It must have been a bug.

    So I solved (kind of) my problem... Kudos to me... ha!

  • Tab of the static Menu on the scrolling of the list

    I have 4 legs, and I have a list. The list is scrollable, I want tho... scrolling tabs above to stay and to scroll just through the list?

    How can I fix my code?

    package mypackage;
    
    import java.util.Vector;
    
    import net.rim.device.api.system.EncodedImage;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FocusChangeListener;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.BitmapField;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.component.Status;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    public class TabControl extends MainScreen implements FocusChangeListener {
    
            private LabelField tab1;
    
            private LabelField tab2;
    
            private LabelField tab3;
    
            private LabelField tab4;
    
            private LabelField spacer1;
    
            private LabelField spacer2;
    
            private LabelField spacer3;
    
            private VerticalFieldManager tabArea;
    
            private LabelField tab1Heading;
    
            private BasicEditField tab1Field1;
    
            private BasicEditField tab1Field2;
    
            private LabelField tab2Heading;
    
            private BasicEditField tab2Field1;
    
            private BasicEditField tab2Field2;
    
            private LabelField tab3Heading;
    
            private BasicEditField tab3Field1;
    
            private BasicEditField tab3Field2;
    
            private BasicEditField tab4Field1;
    
            private BasicEditField tab4Field2;
    
            private LabelField tab4Heading;
    
            private VerticalFieldManager tab1Manager;
            private VerticalFieldManager tab2Manager;
            private VerticalFieldManager tab3Manager;
            private VerticalFieldManager tab4Manager;
            private int catId = 0;
            public TabControl(int id) {
                catId = id;
                HorizontalFieldManager hManager = new HorizontalFieldManager();
                tab1 = new LabelField("Top20", LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
                tab2 = new LabelField("Artists", LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
                tab3 = new LabelField("History", LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
                tab4 = new LabelField("Tab 4", LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
                spacer1 = new LabelField(" | ", LabelField.NON_FOCUSABLE);
                spacer2 = new LabelField(" | ", LabelField.NON_FOCUSABLE);
                spacer3 = new LabelField(" | ", LabelField.NON_FOCUSABLE);
    
                tab1.setFocusListener(this);
                tab2.setFocusListener(this);
                tab3.setFocusListener(this);
                tab4.setFocusListener(this);
                hManager.add(tab1);
                hManager.add(spacer1);
                hManager.add(tab2);
                hManager.add(spacer2);
                hManager.add(tab3);
                hManager.add(spacer3);
                hManager.add(tab4);
    
                add(hManager);
                add(new SeparatorField());
                tab1Manager = new VerticalFieldManager();
                tab2Manager = new VerticalFieldManager();
                tab3Manager = new VerticalFieldManager();
                tab4Manager = new VerticalFieldManager();
    
                tabArea = displayTab1();
                add(tabArea);
    
            }
    
            public void focusChanged(Field field, int eventType) {
                if (tabArea != null) {
                    if (eventType == FOCUS_GAINED) {
                        if (field == tab1) {
                            System.out.println("Switch to Tab 1");
                            delete(tabArea);
                            tabArea = displayTab1();
                            add(tabArea);
                        } else if (field == tab2) {
                            System.out.println("Switch to Tab 2");
                            System.out.println("Switch to Tab 1");
                            delete(tabArea);
                            tabArea = displayTab2();
                            add(tabArea);
                        } else if (field == tab3) {
                            System.out.println("Switch to Tab 3");
                            System.out.println("Switch to Tab 1");
                            delete(tabArea);
                            tabArea = displayTab3();
                            add(tabArea);
                        }
                        else if (field == tab4) {
                            System.out.println("Switch to Tab 3");
                            System.out.println("Switch to Tab 1");
                            delete(tabArea);
                            tabArea = displayTab4();
                            add(tabArea);
                        }
                    }
                }
    
            }
    
            public VerticalFieldManager displayTab1() {
    
                Vector v0 = new Vector();
                MAMClient.getTop20(v0, catId);
                SingersListField listField = new SingersListField(v0);
                listField.setSelectedIndex(-1);
                listField.setSize(v0.size());
    
            tab1Manager.deleteAll();
                tab1Manager.add(listField);
                return tab1Manager;
            }
    
            public VerticalFieldManager displayTab2() {
                if (tab2Heading == null) {
                    tab2Heading = new LabelField("Password Recovery");
                    tab2Manager.add(tab2Heading);
                }
                if (tab2Field1 == null) {
                    tab2Field1 = new BasicEditField("Security Question: ", "Mother's Maiden Name?");
                    tab2Manager.add(tab2Field1);
                }
                if (tab2Field2 == null) {
                    tab2Field2 = new BasicEditField("Password: ", "");
                    tab2Manager.add(tab2Field2);
                }
                return tab2Manager;
            }
    
            public VerticalFieldManager displayTab3() {
                if (tab3Heading == null) {
                    tab3Heading = new LabelField("Interests");
                    tab3Manager.add(tab3Heading);
                }
                if (tab3Field1 == null) {
                    tab3Field1 = new BasicEditField("Hobbies: ", "");
                    tab3Manager.add(tab3Field1);
                }
                if (tab3Field2 == null) {
                    tab3Field2 = new BasicEditField("Memberships: ", "");
                    tab3Manager.add(tab3Field2);
                }
                return tab3Manager;
            }
            public VerticalFieldManager displayTab4() {
                if (tab4Heading == null) {
                    tab4Heading = new LabelField("Registration");
                    tab4Manager.add(tab4Heading);
                }
                if (tab4Field1 == null) {
                    tab4Field1 = new BasicEditField("Username: ", "");
                    tab4Manager.add(tab4Field1);
                }
                if (tab4Field2 == null) {
                    tab4Field2 = new BasicEditField("Password: ", "");
                    tab4Manager.add(tab4Field2);
                }
                return tab4Manager;
            }
        }
    

    I solved it now

    Yes, you do the first floating and other horizontalmanager scrolling.

    but in the constructor of your form, you must specify this too
    Super(NO_VERTICAL_SCROLL |) NO_VERTICAL_SCROLLBAR);

Maybe you are looking for

  • How to check mail thunderbird to start automatically?

    My old eudora automatically verified e-mail program and displays new messages as soon as I started the program. How can I get Thunderbird to do it automatically?

  • There is no opthion on the wifi hotspot in my iphone?

    IN my iphone there is no option on wifi hotspot that I do?

  • WRT320n performance issues

    I'm still poor web performance with my WRT320N.  Yesterday, I finally switched back to my old WRT54g.  I suspect that this problem could be linked to the Trend Micro Home defence.  How do you turn off this option?  If each reqeust was routed to them

  • Problem sending to Windows Mail

    When to send the mail in the Outbox W.M. get mssg this file is too large, or some other error.    I have 33 messages in my Outbox. 'Transfer mail', account: 'mail.bellsouth.net', server: 'mail.bellsouth.net', Protocol: SMTP, server response: 250 XMVP

  • What is the fastest processor I can use in my Dell XPS 400 motherboard DXP051

    I currently have the Intel Pentium D 2.8 Ghz processor supplied with my computer in 2005. I bought an Intel Pentium D 3.4 Ghz (see info below) on ebay but I got an error message when I started my computer saying "incompatible processor detected. Is t