Question list of QNX

Hi all

Not sure how many people use QNX stuff, but I'm having a problem with the component List of QNX. I made a custom list by using this tutorial as a guide (creating a custom cell renderer engine)

Tutorial of QNX list

But I'm getting strange behavior when scrolling of the list to the bottom, it turns out a duplicate of cells below my list, see this screen below (embed the picture doesn't seem to work so there is a direct link)

http://img641.imageshack.us/i/playbooklist.jpg/

Has anyone else had a similar problem? The list is only added once but I use img.cache = CacheImageCellRenderer.cacheObject which I think could be the cause of the problem.

Any idea is appreciated.

Solved the problem, the silly mistakes that I was adding two lists. I'm debugging via the command window I use FDT so that's my excuse to miss my mark.

See you soon.

Tags: BlackBerry Developers

Similar Questions

  • 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).

  • Refreshing a list of qnx

    I display a qnx.ui.listClasses.List. When the user enters a new line in another form I want to refresh the list to display new data. What is the recommended strategy? Thank you

    Add the data to the data provider object.  That he should automatically refresh.

    var mylist.dataProvider.addItem ({label: "new element"});

  • Question list access

    Hello

    I have a question on the application of an external interface access list (I know it sounds a bit silly, but since I use on a deadline, I thought that it was preferable to order my question on this forum). This is for a router on which users can dial-in.

    I have defined an access list that is extended with a permit number.

    In the documentation that I found on the net, I noticed that there seem to be two ways to apply the access list to the interface.

    One way seems to be using the Dialer group command on the interface (and later Dialer list to link the access list for the Dialer group).

    A second way (I think :-), the normal way is to use the ip to the interface group-access command.

    My problem is that I do not understand the difference in implementation. What is the difference? Is there a documentation available on the matter (of course I could just be implemented with the command "ip access-group name in", but I would like to know why this is the right way to do it (or not)).

    Any help would be appreciated.

    Kind regards

    Ronny

    Hello

    The dialer list's composition by the Protocol or by a combination of a control protocol. It is used to grant or deny the composition of certain criteria.

    You probably ip group-access control to allow or deny traffic with certain criteria.

    Hope that helps

    Roger

  • How question list of access room.

    Hello

    What I try to do is:

    (1) Authenticate and connect to the account

    (2) the list of the room (as applicable)

    (3) validate if a certain margin exists against the room list

    So I connect successfully, but the list of the room is always null.

    I checked the documentation, it seems to be straight forward, but I can't get it to work.

    Someone at - it an example of code for this?

    Here is my code:

    public void authenticateSuccess(event:AccountManagerEvent):void
    {
    trace ("ROOM:" + event.list);
    try {}
    {if (IsMaster)}
    acctMgr.createRoom (roomName);
    }
    else {}
    return;
    }
    } catch (error) {}
    e.message = "the room that you are trying to create already exists!"
    throw e;
    }
    }

    Thanks in advance.

    Artour.

    LordAlex Works Inc.

    That doesn't really meet Nigel question (you do this in the Flex client? You can't unless you are the owner of the developer account).

    In addition, it is faster for you to call createRoom and capture/ignore the error instead of check if the room is first (it's always 1 server call vs potentially two calls to the server if the room does not exist)

  • question list drop-down list values

    I have successfully created a repeatable subform that calculates total fields. But to make the repeatable subform more user-friendly and to mark the shape itself, I want to insert a drop-down list in the repeatable subform. But in order to do so and have the calculations will work well the selections in the drop-down list would have to have numerical values (which are not visible or course). For example if it's a shopping list which took point milk, I would a value assigned to milk. So I guess my question is, can I add items to a menu drop-down using only javascript and assign values to these items at the same time, or I have the list print the number of value to a hidden text field in order to to use in a calculation script. Or would I need to make a connection of data from excel? Thank you

    You can have the display text and the value associated with the time using scripts.

    DropDownList1.addItem ("milk," "2.90");

    In the light of the foregoing, the addItem method accepts 2 parameters. First a display text and the second as value.

    If the user selects milk in the drop-down menu, then the "DropDownList1.rawValue" property will give value as "2,90"...

    I hope this helps.

    Thank you

    Srini

  • Question list R32 parts

    All the spare parts for Thinkpad R32 called from the spare parts list - India is not found.

    Hi Mornsgrans,

    Very highly rated. At the same time, I'm looking for an update of the support team on the other driver links you have posted in other threads.

    Thank you dude!

    -Cleo

  • question of sizing qnx.ui.display.Image

    I found something weird on qnx.ui.display.Image setSize. I have an Image object do not show the expanded size that I put in the constructor, but appear in its place in the resolution of the image. But he did show well with expansion of size during the function of mouse event. I really have no idea what's going on... Thanks in advance for the help

    package
    {
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import qnx.ui.display.Image;
    
        [SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]
        public class AIRHelloWorld extends Sprite
        {
            private var image1:Image;
    
            public function AIRHelloWorld()
            {
                image1 = new Image;
                image1.setImage('assets/abc.png'); // image resolution 57 x 57
                image1.setPosition(200, 10);
                image1.setSize(77, 77); // it does NOT display 77 x 77 size, but 57 x 57 instead
                image1.addEventListener(MouseEvent.MOUSE_DOWN, downWindow);
                image1.addEventListener(MouseEvent.MOUSE_UP, upWindow);
                addChild(image1);
    

    Hey,.

    so I have found that when you first declare the image and add it to the parent object fair instructions telling what to do. However, you give instructions to an empty object. That's how rule where a sprite has no dimension of width or height unless you add children. If this applies to this case as well. until the image is loaded to define its width and height does nothing because he has no "children" in the object. Once the image is loaded from the application he finally has dimension and can be changed. So what I recommend is to attach an event listener to listen to when the image is loaded as below:

    var myImage:Image;
    
    (...)
    
    myImage = new Image();
    myImage.addEventListener(Event.COMPLETE, onLoad);
    myImage.setImage("images/ball.png");
    myImage.setPosition(600,300); //dont mind this just random
    addChild(myImage);
    
    (...)
    
    public function onLoad(e:Event):void
    {
        var myImageObject:Image = (e.target as Image);
        myImageObject.setSize(myImageObject.width*2,myImageObject.height*2);
    
    }
    

    We load instantly, but in execution, it's not even load so nothing do for her before loading. so, once its loading you should be able to handle it if you wish. hope that helps! Good luck!

  • Newbie question: list the Configuration of virtual machines and data warehouses

    Hello

    I'm new on using powercli how to list all virtual machines in a certain data center, their memory, Procs and what data warehouses they are on.

    I know you can use get - vm | Select-object name, NumCPU MemoryMB but if I add DatastoreIdList as well, it doesn't seem to work.  What Miss me

    Thank you very much

    Laurence

    That's right, you could do

    Get-VM MyVM | Select Name,@{N="DS";E={[string]::join(',',($_.datastoreidlist|%{(Get-View -Id $_).Name}))}},Description |
        Export-Csv "C:\test.csv" -NoTypeInformation -UseCulture
    

    Just look at whether the separator for CSV is be a comma in your culture, you probably need to adjust the separator in the Join method!

  • New owner questions: lists

    I got my new Droid two days, and I'm still on the slope of the learning curve. One immediate issue concerns the call lists. View calls that I have done is obvious, but the display of missed calls? Thank you.

    A missed call will not appear in the notification bar, but also in the call log list.  In the call log, there will be a red arrow in the shape of "V" showing it was a missed call.  There is not a list of missed calls just as far as I know.  I hope this helps.

  • Question list Popup DW8

    I used DW8 behaviors to create a simple drop-down list by using the behavior of 'list '.  It works fine on my local site but not on my remote server.  Here is a link http://principatoworkshops.com/ the menu item "Recent trips" should be a dropdown menu with a few links.  Can anyone see what I did wrong?

    Thank you

    The mm_menu.js file isn't on your server.

  • qnx adjustable in height list item

    Hello

    Is it possible to have lines in the list of qnx are adjustable in height? I know the list is the rowHeight property, but it applies to all lines.

    Thank you

    Zac

    No, the design of the list is based on elements of the same size. You will need to build something yourself, possibly based on ScrollPane. Think of it as an empty object with the direction of scrolling associated, designed to allow you to build what you describe by rolling the sleeves a bit.

  • Adding items to the QNX list without scrolling

    Is it possible to update the items in a list of qnx without scrolling of the list in article 1?

    I have a list of qnx that retrieves its list items in a stream, and if the list item has been scrolled, beyond every time that I update the dataprovider, it automatically reloads the list with 1 point on the screen.

    HM sounds quite interesting. what I would do is to find something to defines a set of data apart from others and makes every single tweet. There is probably an ID of the API or something. then id have a separate table, keep track of all the IDS in your current list. from there whenever u 'referesh' you can check if you got the identifiers in the new list differ from your current table of ID. If they are separately add each individual tweet of the new incoming list using the addItem() method instead of reset your entire dataprovider. hope that helps some. Good luck!

  • Field question (long) list of the industry and the text

    two questions

    List of industry
    1. I want to create a list of choices cascading by industry (secondary sector) list, but the list of industry isn't in the cascading drop-down list. Is this a limitation of the current list of industry? If it can be done, how?

    Text (Long)
    1. the long text field is displayed as the same size as the text field short. Is there a way to set the display to a bigger size? For example Can I updated the display height 4 to display this field as 4 times the normal size?
    2. at the bottom of the layout, 3 step wizard (Field Layout), there is a section called 'Long text fields. Is it possible to add additional fields to this section? Is it possible to have more of the memo and another field (for example, a larger text field) per page?

    There are some out of the box reports and dashboards that use a list of choice in the industry. If you plan to use a custom instead drop-down list, and this field is going to be the key, I recommend that it is a field lookup indexed.

    Published by: bobb on September 23, 2009 14:02

  • question about the tutorial of the user interface

    Hi all

    I am currently working my way through the UI and inspired tutorial, tried to expand on that. Now, I have a question.

    The image above, this is what I have right now, but for some reason I can't adjust the location of the 'Resistance 1' and input box in any position other than the average. I even explicitly said to be the case elsewhere. I don't know if I'm clear so I have included a picture of how it should look like at the end as well. This is how I imagined it to look like. Obviously this is just a mock up in the paint, so things are not exactly aligned or pretty.

    Here's the code. The body of the UI to initialize comment is where I start trying to adjust the position of the Label and TextInput object.

    package
    {
        //import qnx.ui.core.Container;
        //import mx.rpc.mxml.Concurrency;
    
        //import qnx.ui.buttons.Button;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.text.TextFieldAutoSize;
        import flash.text.TextFormat;
    
        import qnx.ui.buttons.LabelButton;
        import qnx.ui.core.*;
        import qnx.ui.data.DataProvider;
        import qnx.ui.listClasses.List;
        import qnx.ui.text.Label;
        import qnx.ui.text.TextInput;
    
        // The following metadata specifies the size and properties of the canvas that
        // this application should occupy on the BlackBerry PlayBook screen.
        [SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]
        public class ResistorTest extends Sprite
        {
    
            //for the resistor tab
        /*  private var R1:Number;
            private var R2:Number;
            private var R3:Number;
    
            private var sum:Number; 
    
            private var R1TextField:TextInput;
            private var R2TextField:TextInput;
            private var R3TextField:TextInput;
    
            private var total:LabelButton = new LabelButton();
    
            private var ResistorTab:LabelButton = new LabelButton();
            private var CapacitorTab:LabelButton = new LabelButton();
            */
    
            //=====================================container=====================
            private var RightSub:Container;
            private var MidSub:Container;
            private var LeftSub:Container;
    
            private var myMain:Container;
    
            //==========================UI control=======================
            private var TitleLabel1:Label;
            private var TitleLabel2:Label;
            private var TitleLabel3:Label;
    
            private var leftButton:LabelButton;
            private var rightButton:LabelButton;
    
            //constructor here
            public function ResistorTest()
            {
                addEventListener(Event.ADDED_TO_STAGE, handleAddedToStage);
                initializeUI();
    
                //TabMenu();
    
                //Resistors();
    
            }
    
            private function initializeUI():void
            {
    
                //===============================container==========================================
                //main container
                myMain = new Container();
                myMain.debugColor = 0xFFCC00;
                myMain.margins = Vector.([30,30,30,30]); //margins for the left, top, right, and bottom edges
                myMain.flow = ContainerFlow.HORIZONTAL; 
    
                addChild(myMain);
    
                // sub container
                RightSub = new Container();
                RightSub.debugColor = 0xFF3300;
                RightSub.margins = Vector.([10,10,10,10]);
                RightSub.flow = ContainerFlow.VERTICAL;
                RightSub.size = 33;
                RightSub.sizeUnit = SizeUnit.PERCENT;
                RightSub.align = ContainerAlign.MID;
                RightSub.padding = 10;
    
                MidSub = new Container();
                MidSub.debugColor = 0x0033FF;
                MidSub.margins = Vector.([10,10,10,10]);
                MidSub.flow = ContainerFlow.VERTICAL;
                MidSub.size = 33;
                MidSub.sizeUnit = SizeUnit.PERCENT;
                MidSub.align = ContainerAlign.MID;
                MidSub.padding = 10;
    
                LeftSub = new Container();
                LeftSub.debugColor = 0x33FF33;
                LeftSub.margins = Vector.([10,10,10,10]);
                LeftSub.flow = ContainerFlow.VERTICAL;
                LeftSub.size = 34;
                LeftSub.sizeUnit = SizeUnit.PERCENT;
                LeftSub.align = ContainerAlign.MID;
                //LeftSub.containment = Containment.DOCK_BOTTOM;
                LeftSub.padding = 10;
    
                //add sub containers
                myMain.addChild(RightSub);
                myMain.addChild(MidSub);
                myMain.addChild(LeftSub);
                //======================================================================================
    
                //======================initialize the UI titles
    
                //========================initialize for Left Sub Container Title
                var labelFormat:TextFormat = new TextFormat();
                labelFormat = new TextFormat();
                labelFormat.size = 22;
    
                TitleLabel1 = new Label();
                TitleLabel1.format = labelFormat;
                TitleLabel1.text = "Resistors";
                TitleLabel1.size=35;
                TitleLabel1.sizeUnit = SizeUnit.PERCENT;
                TitleLabel1.autoSize = TextFieldAutoSize.LEFT;
    
                RightSub.addChild(TitleLabel1);
    
                //========================initialize for Mid Sub Container Title
                TitleLabel2 = new Label();
                TitleLabel2.format = labelFormat;
                TitleLabel2.text = "Capacitors";
                TitleLabel2.size=35;
                TitleLabel2.sizeUnit = SizeUnit.PERCENT;
                TitleLabel2.autoSize = TextFieldAutoSize.LEFT;
                MidSub.addChild(TitleLabel2);
    
                //========================initialize for Right Sub Container Title
                TitleLabel3 = new Label();
                TitleLabel3.format = labelFormat;
                TitleLabel3.text = "Inductors";
                TitleLabel3.size=35;
                TitleLabel3.sizeUnit = SizeUnit.PERCENT;
                TitleLabel3.autoSize = TextFieldAutoSize.LEFT;
                LeftSub.addChild(TitleLabel3);
    
                //============================ initialzie the UI body, the fields for entry
                //add five resistors.
    
                var fourthLabel:Label = new Label();
                fourthLabel.format = labelFormat;
                fourthLabel.text = "Resistor 1:";
                fourthLabel.x = 10;
                fourthLabel.y = 10;
                fourthLabel.width = fourthLabel.textWidth + 5;
                fourthLabel.height = fourthLabel.textHeight + 5;
    
                var firstInput:TextInput = new TextInput;
                firstInput.width = 80;
    
                RightSub.addChild(fourthLabel);
                RightSub.addChild(firstInput);
    
            }
    
            private function onResize(event:Event):void
            {
                trace("ContainerTest.onResize()");
                myMain.setSize(stage.stageWidth, stage.stageHeight);
            }
    
            private function handleAddedToStage(e:Event):void
            {
                removeEventListener(Event.ADDED_TO_STAGE,handleAddedToStage);
                stage.addEventListener( Event.RESIZE, onResize );
                onResize(new Event(Event.RESIZE));
            }
    
        }
    }
    

    Thank you guys

    The container will automatically adjust x and y for you, keep adding entries and labels, and they will line up. If you want the button to be all down you can add a spacer()

    
    RightSub.addChild(fourthLabel);
    RightSub.addChild(firstInput);
    
    RightSub.addChild(new Spacer());
    
    var btn:LabelButton =  new LabelButton();
    RightSub.addChild(btn);
    

    If you need more control over setting up, you can add the button on the main sprite using x and y

    var btn:LabelButton =  new LabelButton();
    btn.x = 50;
    btn.y = 500;
    addChild(btn);
    

Maybe you are looking for

  • Equium A60 - NO SOUND

    HelloI have the A60, almost a year now and I have no sound whatsoever. Device Manager says everythings fine, the parameters of the driver are ok, nothing in the settings of volume is cut off, when I play a cd through Media player, I can see the equal

  • F10-136: should I try updating graphics card drivers?

    Hi, my name is Sleepless, and I need some advice. I have a Qosmio F10-136, with a double system of punt (XP MCE 2005 to XP Pro 2002) and a NVidea GeForce FX Go5700 graphics card. I tried to watch the updates so that it nvidea.com and discovered that

  • my channel DAQmx property node missing RTD?

    RTD may be available in the menu shown? I do not have a RTD hung right now; could be the problem? However, I don't have a thermistor or thermocouple and these options appear. I'm putting A, B, C, and R0 by program.

  • can you have set for the analog inputs points

    If you install an analog input can you get set points that trigger an alarm or an engine that allows you to enable or disable

  • I get "RUNDLL error loading C\Windows\arelasiwitafabiz.dll." when I start my system.

    Original title: my first RUNDLL error. At startup, there is a small window on my desktop saying RUNDLL error loading C\Windows\arelasiwitafabiz.dll. It disappears if I click OK, but always returns to the start. I downloaded a couple of registry clean