detect or change is a scrollview or listview content

Hi all

Is it possible to change the content of scrollview y? To get to the top of the scrollview dynamically.

In the same kind of idea, how to detect if the listview scrolling to it content maximum? in order to download more articles for example.

I can not find any function or property in the documentation, if anyone knows...

Thank you.

I think you can use ScrollView viewableAreaChanged signal in this case.

Tags: BlackBerry Developers

Similar Questions

  • Problem with detection of changes in a loop

    Hey,.

    I have a NOR-9423 module in a cDAQ chassis (not to mention that of other modules), and it is used for the detection of change for a binary input. That's a little busy, coming from an engine step by step via a digital i/o. I want to enqueu a certain task when the busy bit goes from low to high and another task when it goes from high to low.

    The problem is that my VI everything stops and waits for detection, as the error did not go through.

    If I put a - 1 for the timeout, then of course everything block also, since reading that VI waits indefinitely change.

    So basically, all I have to do is detect a change of edge and put an appropriate task in the queue.

    Any help, thanks...

    You must move the "beginning of entry trigger" and the associated logic (enqueue) in a separate loop. This will allow the logic to run its own while you wait for a trigger to start upper.

  • Detection of changes in PCI-6509 missing first data entry

    Hello

    I have two 6509 cards in separate computers, connected to each other. I use six lines, with one channel for each line, to send signals between the two boxes.

    I used the driver NOR-DAQmx 8.0.2 on SUSE Linux, coded in C.

    Starting by examples of digital I/o that I did a card pass in four lines and the other card received the signal, using the detection of change on the falling edge only, with the lines reversed.

    To send a signal it took the value 1 on this line, using digital lines of writing and then set it to 0 using the same function.

    If I send 4 signals, apartment of 100 ms, 1 on each line. The recipient will detect all four edges of falls, but the function of reading digital lines (in the recall of events highlights registed) returns zero for the first detection. I read only one sample of each line. Once that happens all seems fine.

    I read that more than a sample for the first digital reading for function call?

    What I have to do my signal longer, for the moment it comes to 150us? I can do this with an expectation in the code. I can afford it to streatch for about 1 ms, but it's always with this kind of treatment.

    Is there some call the initialization to get the driver to initialize the internal memory or something? (Maybe it's my wrt slow code, but I don't see how, there is almost nothing.)

    Thank you

    I think we arrived at the conclusion that this card cannot detect as close as 450ns interruptions. The API does not quickly that detect enough them between the interruption and the call to read data lines.

    It seems that we should have brought a card counting rather than a map of interruption.

  • Detection of changing DAQmx online PFI (unbuffered)?

    Hello!

    I'm developing a detection of change on a line of digital input to a software event trigger.  I use the PCIe 6321 DAQ board.

    It works well with an IO line buffered (i.e. any line of port0, see extract of code). However, as I need the lines buffered for other tasks, I would use one of the lines, PFI (port 1 or 2).

    Now, if I use for instance port1/line2, I get error-201062: "selected lines do not support buffering operations. Ensure that lines are supported buffering operations are used in the task. If you use the calendar to change detection, the task should be replaced by without buffer to support these lines. »

    So, is there a way to make the detection of change on a line without buffer?

    I have searched the web for help and resources, but did not find anything useful.

    I would be happy to advice or suggestions.

    Best regards

    Sebastian

    No, only non - PFI port 0 lines will support the detection of changes in hardware.  Otherwise, you're stuck with the search on ports software 1 or 2, with a limited time resolution and no guarantee to catch all the changes.

    -Kevin P

  • Detection of change DAQmx - cancel the event error logging

    I am trying to use DAQmx for detection on some digital lines of changes. I think I installed everything in this article, but I always get error 'Error 1 has occurred to unregister events in the detection of change in Test - Error.vi Unregister'. When I change the structure to register for another event, not involving DAQmx but using the same structure, I get this error.

    I need this implementation on a code that runs for a very long time and according to the above article:

    "Use the Unregister function for events and function to destroy the user events to release the associated events and the reference of user event. LabVIEW unregisters all events and destroyed the existing user automatically events when the top-level VI end of execution. However, to conserve memory resources, National Instruments recommends that you unsubscribe and destroy the user events explicitly, especially in an application that is running for a long period of time. »

    Here are some screenshots of my comic, but also the .vi. Note that the detection of real change does not work well, it's just after I click on 'stop' I get the error generated by the "unregister to events.vi.

    Note When you transfer the .vi, I saw the issues described on this thread and had to change the name of the file...

    crossrulz wrote:

    You must cancel the registration of the event before deleting the task DAQmx.

    Delete the task implicitly cancels registration of events.  If you disable the task, rather than simply cancel, the event is already cancelled and you don't need two nodes.

    Or quite simply, the event is part of the job.  no tasks, no event and LabVIEW cleans the records for the non-existent event.  Other events that are not 'owned' by similar of e/s Sessions must use the unregister (as of the events of user)

  • Flex - the difficulty to detect status change since the 2.0 update

    Hello everyone. I've been detecting orientation changes in my application without problem throughout until the 2.0 update, now, the events are not firing. Any ideas why the changr in orientation is not detected? I am less concerned by resizing.

    this.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATING, resize);             this.stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, change);
    
    ...
    public function resize(e:SoftKeyboardEvent):void{
                    trace("activating"); // does not trace
                    if(currentState == "landscape"){
                        mainTextField.setActualSize(1024, 350);
                        tagwrapper.visible=true;
                    }
                    if(currentState == "portrait"){
                        mainTextField.needsSoftKeyboard = false;
                        accordV.visible=false;
                        tagwrapper.visible=false;
                    }
                }
    
    protected function change(event:StageOrientationEvent):void {
                    if(navigator.stage.orientation == "portrait"){
                        trace("portrait"); // does not get traced
                        mainTextField.needsSoftKeyboard = false;
                        IMFConnection.imfConnection.hideInput();
                        mainTextField.setActualSize(mainTextField.width, 1024);
                        tagwrapper.visible=false; //remains visible
                        accordV.visible=false; //remains visible
                    }else{
                        IMFConnection.imfConnection.showInput();
                    }
                }
    

    I also had a feature that has been resizing components on SofftKeyboard.Activate so I think that blocking the call to the StageOrientationEvent. In any case I did take all the stuff I need to do too much in the StageOrientationEvent and he settled in the SoftKeyboardEvent function.

    public function resize(e:SoftKeyboardEvent):void{
                    trace("activating");
                    if(currentState == "landscape"){
                        mainTextField.setActualSize(1024, 350);
                        accordV.visible=true;
                        tagwrapper.visible=true;
                        togglewrapper.visible=true;
                    }
                    if(currentState == "portrait"){
                        IMFConnection.imfConnection.hideInput();
                        mainTextField.needsSoftKeyboard = false;
                        accordV.visible=false;
                        tagwrapper.visible=false;
                        togglewrapper.visible=false;
                    }
                }
    
  • Reinvest a presentation Manager and detect any changes in size

    Hello

    I am trying to create a user interface that mixes elements I draw myself with native widgets and I do this by substituting the painting and drawing to an image in the background before drawing the fields themselves.

    To position the fields, I created my own Manager and position fields in absolute position based on my own component positions. For the base case works very well...

    When I type in a field, it grows, I do not detect this growth so I can not ebb the user interface. How can I detect a change to the default size of the field? I followed the field muddy/Sales status but that doesn't seem to help here is a picture of my test case, white in the middle is a native field and find it me difficult to follow its growth in real time:

    When I start the native UI scroll fields remain in place, I tried calling invalidateLayout, but it throws an exception? How to trigger the IU blackberry to call sublayout again?

    That's what I mean fields are now on top of my drawn text box:

    Thank you

    Shai.

    Yes, I noticed that you implement LWUIT. Two big thumbs up!

    First of all - don't spend just a new Manager (...) as a parameter in your full screen (I hope you meant that when you wrote FullCanvas).  Create a handler that is personalized with its own sublayout() and do the work there. In this way, you will be able to instantiate this Manager custom rather than writing the same code over and over again.

    Second - substitute object it inside the Manager, not the screen.  Not necessary, but once again - for the best control.

    Third - It's weird that sublayout of your Manager is not called automatically, but you can force it anyway:

    // in your MyClass:
    protected void sublayout(int width, int height) {
      layoutDelegate(width, height);
    }
    

    Have not tested but it should work.  This way, you should be able to rearrange and re - position your fields in the same manager that has all the knowledge, he needs.

    One problem remains, though - how are you going to partially show these fields when they slide to the edge of the screen?  I hope that you can set negative positions for them. Documentation for the manager class specifies all IllegalArgumentException on negative x and y in setPositionChild, so you might be lucky .

  • Change the image, click the Listview item

    Hi all

    I want to change the image of the listview element. When I touch on the element of the list the image is modified and after leave the key event the modified image remains same. Please solve my problem.

    Thank you & best regards

    Sanjit

    remove the other part of the setHighlight function. This means that when you leave the touch, the other party will not perform.

    Press on as if that solves your problem.

  • How can I change the layout of a listview of Interior programically qml

    Hello

    Is it possible to change the layout of a listview inside qml., i programically; e in both ways between the layout: StackListLayout for the layout: GridListLayout...

    I've never really tried, but given the way the QML syntax usually works I would try something like this:

    Page {
       attachedObjects: [
          DockListLayout {
             id: dock
          },
          GridListLayout {
             id: grid
          }
       ]
       ListView {
          id: list
          layout: dock
       }
       function toDock() {
          list.layout = dock;
       }
       function toGrid() {
          list.layout = grid;
       }
    }
    

    As I said I have not actually tried this, but this is where I would start to experiment.

  • To detect a change in a Variable?

    Hi all

    I can detect a change in variable (a string of data)?

    I do an AS2 SWF (level 7 Player) with navigation of the combobox control.

    I have a page name variable that I change from outside the SWF with the Director and Authorware using (I think) FlashVars.

    The variable (internally) is set by default when SWF is initialized.

    Authorized external variable values are always one of the combobox data field values.

    The combobox default variable is not always the index 0 (zero) position. Or the order of the data or the other.

    The variable can be modified internally in combobox nav used to independent navigation of the external variable. -It works

    When the nav var shared changes of the external source, the ComboBox must change for the variable game data to combobox corresponding. That's what I'm trying to do.

    I can change the drop-down list Configuration programmatically (index), but failed to recognize him as a change event. Or tell him by programming

    The combobox control can be selected by the data variable, or is the only option to use the index (loop index values to match the variable data field)?

    And update the selection combobox (and therefore the nav page) by triggering a change by programming event?

    Detect the var itself without the OnEnterFrame turn change is my goal - if it even works in the version I use (flash palyer 7).

    Thank you

    Jim

    You can use watch(). I have not used for some time, so you will need to check the documentation.

  • How do I change text in photo portfolio image content?

    How do I change text in photo portfolio image content?

    If you go to the gallery in the admin... Select an image - you will see a field appears to put/change this text.

  • detection of changing text string values

    Hi, I have a text string, the string length is more than 10,000.

    Whenever the value of this string changes, I need to detect and know the index.

    I can loop through the channel and compare if the channel is short. The best ways to do this?

    Thank you.

    Hi IIx,

    The ChnFind expression can only reference global variables of DIAdem.  Then you have to be your "Str2" variable GlobalDim() or simply use one of the existing temporary T1, T2... variable.  Also, you want to refer to all of the channel in the expression, not only one of the values of the string.  The motivation to use ChnFind is so looking through the canal enters the call function and not with primitive VBScript.

    T1 = "Group1/channel 1".
    T2 = 'test '.
    startIndex = 200
    Indexfind = ChnFind ("Ch (T1) T2 =", startIndex ")

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • How to detect the change of focus between applications

    LV2013, Win7

    I have a long operation that so I have to.  Let's call it a "scan".

    I start to a particular folder on the disc and look for files within this framework and in those folders, etc.  I am looking for a particular file (*.lvlibp).  When I find one, I need to open it, look for particular screw it contains and check them for executability (broken) and fix the ConnPane, etc.  I put all the elements of qualifications in a menu (in the menu bar) as the submenus and submenus, etc..

    I do the scan in a separate thread, is not as if I'm blocking anything either, but it takes away CPU time that I would rather not use.

    If I do the scan only once, then the user can go to the Explorer, move a file in place, or rename a folder and come back and I miss the changes.

    Right now, I do whenever the single window happens (the one to which applies the menu).  But this means that round in my application of switching windows causes the scanner again, when there is no chance of a new file that appears.

    I would like to do this scan only when it is necessary, that I define as when I come back from another program (WIndows Explorer for example) this single window in my LabVIEW application.    I am ready to accept the fact that Scripts Windows or remote operations may sneak a file in there.  I don't mean to be bulletproof, just accommodating the more common scenarios.

    I don't want to make a kind of vote - the entire application is event-driven, and I want to keep it like that.

    So, how can I do this?

    If I look at the ACTIVATION VI event, it looks like it happens for ALL VI have activated.  I can attach a name-comparison and detect when the right window is coming forward, but again, simply because this window comes forward does not mean that I need to analyze.

    If I look at the event of ACTIVATION of the APP, it seems to be NEVER called. Even in an EXE file, the event seems never to occur.

    If I had an event to DISABLE the APP, I could set a flag when it happened, and the next time that the right window comes up, I could check the indicator and scan if necessary.

    But I did none of this case.

    Any ideas on how to do this?

    I think what I'll do is just watch the LAST MOD TIME of the parent folder.

    When I do a scan, I hide the LMT of the parent.

    Then, whenever the WINDOW is enabled, I'll check the LMT to the case against my hiding place.

    If it is different, then I scan again.

    Check the LMT takes about 50 uSec on my system, a relatively small price to pay.  And I do it when the window comes up to the top, so I will not notice every little detail of what you do, and I don't have to dig into .NET and assemblies and versions and unnecessary and other error messages.

  • How to detect any change of a StepType field by sequence?

    Hi all

    Suppose I have this: a simple StepType 'TEST' with one added the custom field 'Source' from the String type.

    When you use the StepType in a sequence and change the value of "Source" (since the Variables Panel).

    the name of the sequence is immediately marked with a ' *'. That is wat we want :-)

    But if I change the value of "Source" code (c#), I see that my "Source" value is changed (in the Variables Panel), but not the sequence has detected this.

    Maybe it's StepType-flag that I have to pay or from code, execution of a trigger or so?

    Thanks in advance?

    Franky

    I speak for me, but FYI:

    because as I update my sequence of code (c#), I have the current stage as an object and

    so I know if all the fields are changed.

    With the help of this excerpt will mark my sequencefile as "changed":

    step. Sequence.SequenceFile.AsPropertyObjectFile (). IncChangeCount();

  • Detection of changing DIO PCI-6035E

    CVI 8.1

    PCI-6035E

    Ex: ReadDigChan - ChangeDetectionEvent.c

    When I try either configure a DAQmx task in this application example or MAX

    I get this error:

    Error: Requested value is not supported for this property.

    Property: SampTimingType

    You asked: change Detection

    You can select: on request

    I am creating an application in which a task DAQmx monitors

    a single bit of DIO via an asynchronous callback function.

    Any ideas?

    -Chet

    Chet,

    Please post on the Forums of NOR. I was able to look into the problem you encounter and this is because the E series devices do not support ownership of change detection. If you simply try to monitor a bit, you will need to use polling to determine when the forest has changed and then perform an action, once you determine that the ILO has changed. Let me know if you have any other questions.

Maybe you are looking for