Simple text with automatic scrolling Widget?

Hello!

I'm a newbie in the world of Dev BB10 and try to write a little app with a simple text Console for test purposes.

The text of the Console is an area of text inside a ScrollView and a button to add text to the console (s. below).

My problem: How can I reach that the console scrolls automatically at the end of the console after each addition of text?

Thank you!

import bb.cascades 1.2

Page {
    Container {
        id: root

        function doIt(value) {
            log(value)
        }

        ScrollView
        {
            id: myScrollView
            Container
            {
                TextArea {
                    id: tempOutput
                    text: "OK"
                    minHeight: 640
                    maxHeight: 640
                }
            }
        }

        Button {
            text: "DoIt"
            onClicked: {
                root.doIt("Hello, world!");
            }
        }

        function log(value) {
            tempOutput.setText(tempOutput.text + "\n" + value);
        }
    }
}

OK, I found a better solution here: https://github.com/blackberry/Cascades-Community-Samples/blob/master/NfcToolLite/assets/Logger.qml

Tags: BlackBerry Developers

Similar Questions

  • How to create a draggable text with a scroll bar box?

    I am trying to create a dynamic text box which can be moved around the screen using AS3.  The problem is that I need a scroll bar on the text because of the amount of text box.  I can create the text box and set the scrollbar component and turns everything into a movieclip.  However, when I do the draggable movieclip, he scrollbar becomes unusable.  If I do just the area of movable text inside the movieclip, then the scroll bar works, but not draggable and I get an error "Error #1069: property not found stopDrag on flash.text.TextField and there is no default value.»

    How to create a draggable text box that has a scroll bar attached?

    :

    Transcript_mc.fontBar.addEventListener (MouseEvent.MOUSE_DOWN, downF);

    Transcript_mc.fontBar.addEventListener (MouseEvent.MOUSE_UP, upF);

    function downF(e:MouseEvent):void {}

    Transcript_mc.StartDrag ();

    }

    function upF(e:MouseEvent):void {}

    Transcript_mc.stopDrag ();

    }

  • When I try to highlight text on any page why it automatically scrolls to the top? Very frustrating problem just occurred, was not there before.

    Curiously, an error just for me that was not there until tonight (I have nothing new installed on my firefox). When I try to highlight text on any page why it automatically scrolls to the top? Very frustrating problem, no matter whether on gmail on an email, facebook or a web page regular when I try to select my browser text is now scroll upward on its own literally as soon as I'm going to highlight, that means I end up selecting everything on the page when it scrolls upward. Can anyone shed some light on how I can solve this problem suddenly?

    Thank you

    I am pleased to learn that you have been able to solve your problem of Firefox.

    I reported this problem to the addon developer, in the hope that they will be able to patch the issue soon.

    Please use the Mozilla Support Forums. We hope that you will continue to sail with us.

  • I create a new reactive site using a large part of the content of an earlier version of the trouble with the scrolling text in the gallery.

    My question is the gallery which is part of the Master Page, will not move with the scroll bar on site, he's sitting in one place, causing the header back and the text which is to extend the image below.  Here is a link to the test site (you do shorter window so that you get the scroll bars).

    http://nwphotographix.com/hayesdesigns/

    I'm pretty sure is something simple that just got away from me, any help would be greatly appreicated.

    Thank you

    John

    It seems that your gallery is pinned to the browser window. This probably isn't what you want.

    When you select your gallery and look in the Control Strip, I suspect that this shows pinned at the top of the browser window, as follows:

    You probably want to pin to the center of the page, like so:

  • a simple form with the "submit" button: can it look better?

    Hi all

    I did not imagine that a simple form (with Textfields and ChoiceFields) could do a lot of problems:

    I would like to ask a few basic questions about it. First the code (Simplified):

       GridFieldManager formfm;    
    
            EditField surname = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_DEFAULT);
        EditField email = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_EMAIL);
    
        public FormFieldManager(){
    
            formfm = new GridFieldManager(2,0);
    
            formfm.add(new LabelField("who: ", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
            String[] choicewho = new String[] { "Mr", "Mrs", "Miss" };
            ObjectChoiceField who = new ObjectChoiceField("", choicewho, 0, Field.FIELD_LEFT |Field.FIELD_VCENTER);
    
            formfm.add(who);
    
        formfm.add(new LabelField("Surname :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(surname);
    
        formfm.add(new LabelField("E-Mail :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(email);
    
        ButtonField sendButton = new ButtonField("Send", Field.FIELD_HCENTER|ButtonField.CONSUME_CLICK);
        formfm.add(sendButton);
        FieldChangeListener listenerSendButton = new FieldChangeListener() {
        public void fieldChanged(Field field, int context) {
    
        try {
            String data = "send=true&surname=" +surname.getText();
            data += "&email=" + email.getText();      httpPost("http://bla/sendData.php", data);
        } catch (IOException e1) {
            e1.printStackTrace();
        }
        formfm.deleteAll();
        formfm.add(new LabelField("Grazie!"));
        }
      };
      sendButton.setChangeListener(listenerSendButton);
    

    now my questions:

    (1) don't miss something (style) for the EditFields? At the present time, it is possible to change them, but the behavior (9700 Simulator) is strange: it is 'difficult' to get from one field to the other and everything moves sometimes when editing...

    How do you define a standard form that seems 'normal' and can be completed as expected in other applications? (Swifts nothing, it is possible to access the next field with the expected key / trackpad (I have no touch screen)) and so on?

    The EditFields do not even have a border, but I guess that's the standard case on BlackBerry.

    (2) the ObjectChoiceField is also very ugly... It's too big... Is it not possible to reduce the size without much effort? (I couldn't everride it correctly). (I also tried with radio buttons, but unfortunately I can't add a RadioButtonGroup to my LayoutManager, strange)

    (3) it is perhaps a stupid question: I can't get the text selected from the ObjectChoiceField (to send it can in data).

    AM EditField, it's simple:

    editfield.getText()
    

    But how is it with my ChoiceField?

    I found getSelectedIndex() but it provides a value int not text...

    Thanks in advance for any suggestions!

    silizia

    1. you have defined fields as follows:

    EditField family name = new EditField ("vorname:", "-", 20, EditField.FILTER_DEFAULT);

    The 20 means 20 characters, so it's all the field allows you to enter.

    2. Yes, the mail filter is pretty useless.  Use the EmailAddressEditField instead

    3. you can play with the scroll, but the best thing to do is to set the focus on the first field that you want people to pull together - usually the upper part of the form.

  • Click title menu & see the target automatically scrolling down.

    Hello

    I hope well.

    Now, I want to do something else in muse, you tell me how when I click on any position then the page to automatically scroll down and show the target.

    How his talk to me.

    Thank you

    Akash.

    Hi Akash,

    You can do this by using the widget of composition. Adobe Muse help | Working with widgets of Composition

    Kind regards

    Akshay

  • slideshow of the entire width of the images and text with switch small points

    Hi!, I'm going crazy trying to do something I think should be really easy and simple:

    a full-width or full-screen composition or a slideshow of images and text with little switch points instead of thumbnails.

    I guess everyone nows what I'm talking about... because all of a sudden he's everywhere!


    Something like this QooQee model: http://www.qooqee.com/templates/sense/sense-qooqee-slideshow.html

    I tried the compositions, but they cannot be expanded full-width...

    then I tried to slide shows, but they do not have triggers... they have thumbnails...
    I tried to fill points picture slideshow thumbnails too (I know that is not the best way to do this, but...). He did not, the filling will not appear unless I low opacity... Why is this?

    I also noticed that the example of sense QooQee is something complicated... text is displayed as 'on-off', but images do their entry by a transition melted... are you looking for they combining 2 widgets for this?

    Any help is appreciated! : )

    Hello

    What you're trying to achieve is possible in the Muse by using the Fullscreen Slideshow option.

    I created a video showing how it can be done. Please download it using this link:- http://adobe.ly/1mp5X84

    Please let me know if this worked for you.

    Kind regards

    Rohit Nair

  • Problem with auto-scroll.

    (Sorry for my bad English, it is not my native language)
    Hello, it's been several months I have a problem with Firefox auto-scroll
    Keep the pressure on the mouse wheel can slide in all directions of the web page, very useful for long pages as well as for pictures very high resolution.

    Stop for several version (from 40.0.0 I think but not sure), scrolling stops and / or is extremely slow and jerky, so that the page is not fully loaded. It's even more painful if we wait for a strong image on a slow website loading.

    I tested Firefox Safe mode and it doesn't change anything.
    Turning off graphics acceleration nor solves this defect.
    Test a new blank profile...
    Remove and reinstall Firefox...
    Namely, I have no problems automatic scroll on Internet Explorer or Chrome.

    As I visit the photo galleries large high resolution, is often sucks having to wait finishes loading before you drag on the page with the wheel in a hurry.
    I then let your knowledge to help determine the source of this defect.

    PS Windows 7 x 64 with ATI HD7870 2 GB

    OK, problem solved with version 45.0.

  • [Solved] Active tab automatically scrolls to the right of the tab bar

    Firefox 34.0.5

    Using the option [don't load tabs until selected], when I click on a tab that needs to be loaded, the tab is automatically scrolls to the far right of the tab bar, as you can see in this screenshot.
    http://PUU.sh/eAhdx/296a80d319.PNG

    Is there a way I can disable this behavior?

    [Solved] There was a conflict with an extension that appears to have been resolved.

    Could you clarify - which is what you see:

    • The tab you are activating moves to the bottom of the tab bar to the right
    • The tab you are activating kept his place even in the sequence, but Firefox is scrolled to the left on the tab bar if you end up seeing more tabs to the left of the you active and few of them to the right

    (I didn't notice either of those myself, but I try to understand what is happening).

  • I need a box of favorites with a scroll arrow.

    Hello

    I need a bookmark setup like I had in IE. A side panel with a scroll arrow if possible.
    I am running Windows 7 on a new computer with cable.
    Any help will be appreciated.
    

    Thank you

    Jim Franchetto

    Is there a bookmarks bar. The fastest way to view it is to press Ctrl + b (this it also closes). Note that if your cursor is in a text editor, Ctrl-b may be intercepted "BOLD" text instead of open the sidebar.

    It works the way you want it to run?

  • Sequence step results in the report in Simple text format

    I use Teststand 2012 and that you have installed the plugin from model simple text report.

    My main test sequence called a number of subsequences that contain the test steps and contain also several subsequences. A number of the subsequences is only stocks. My test result file contains all the results of measures of test as expected, but it also contains a line of output for each call of sequences - makes it difficult to see the results that count. I would only record the test steps.

    Looking at the code SimpleTextReport.dll in CVI I see it is stepping into the results and updated list in the form of each line (I changed some of the formatting). Is this the right place to filter the levels of appeal of sequence or can I stop the call sequence steps to be added to the list of results?

    You can put it in the sequential model. Just use ProcessModelPostResultListEntry with the same code. If it's in the template, you won't need it in other files. In addition, he is probably already stuff in the model. You'll have to code around it. This is how they do it on the fly.

  • Executable error Excel VI simple text

    I have just upgraded to Windows 7 today and that you have installed Labview 2009 on the machine. Some of the VI, I must support using the vi simple text Excel. When I go to test my changes, my VI States that the Excel sub vi simple text is not executable. I am at a loss. This who could I have missed in the installation?

    Hi BadAzzS10,

    The assumption that it had to do with Excell 2010 is correct. The 2009 edition of the report generation toolkit is only compatible with the versions of MS Office 2007.

    Here is an article in the knowledge base that passes on the compatibility of the reporting tool.

    Report Generation Toolkit compatibility with Microsoft Office and LabVIEW

    If you have two options.

    -You can upgrade to LabVIEW 2010 toolkit and reporting 2010 (gen 2010 report does not work with LabVIEW 2009)

    or

    -Install MS Office 2007 on your computer.

    It is possible to have two versions of MS Office on the same machine so that you won't lose MS 2010 by doing this, however the steps that Microsoft gives an overview on their website.

    How to run multiple versions of Office on one computer

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

  • On some files, such as Documents, when I open the file it automatically scrolls to the bottom of the page.

    I have problems with the scroll bar. On some files, such as Documents, when I open the file it automatically scrolls to the bottom of the page. I can scroll upward, but as soon as I let go of the mouse button it drops to the bottom of the page. On some windows so it both vertically and transversely sometimes scrolls upwards and downwards is OK but he pages all the way to the right. Also in IE, I can't click on the scroll bar and drag it, I have to the top or down of arrows or the wheel.

    Thank you; Brand:

    I found the problem. It was the mouse.

    I do not understand why it worked on some programs and others do not, but I guess until I found a solution, it is not matter. Brand:

  • Access denied, need permission to record a simple text file

    I recently installed Windows 7 Ultimate Build 7600.  This pc is a pc private home with no one else having access or all other user accounts.

    Even something as simple as change, then by recording a Notepad text file is not suitable.

    Things, I tried to solve this problem:

    1 taking possession; It shows that I am the owner
    2 set the permissions for the 'total control '; shows all the boxes ticked in permissions
    3 set my profile only on this pc to be called w/admin Admin privileges
    4 - Set the slider all the way up to minimum level UAC
    5 used "control of userpassword2" to disable login by username
    6 tried to set sharing to other users; was not allowed to do this.

    I was able to save/edit this text file, while in Mode without failure.  However, when I login to my account the singular admin, I am not allowed to save a plain text file.

    I read extensively on this issue as well as snobs "admin" who think that I should not have full control of the files/folders that I have control over.  It's my pc, and if I accidentally ruin, then so be it.

    UAC is an understandable feature for Rookie pc users.  However, the option should be there for pc users experienced changes on their personal computers without harassment by Redwood.

    Rant aside, does anyone have a real solution to a simple text file can be edited and saved without going into Safe Mode and connecting to the main account?

    Thank you.

    Hello

    If you log in using the hidden Windows administrator account, you should have no trouble.
    1, log in using your normal account
    2, open the command line by right-clicking on the icon and run as admin.
    3, type "net user administrator / Active: Yes" and press enter
    4, log off your user account and when the login screen appears you should now see a new admin logon.
    5, once connected to this account, you should be OK to change your files.
    6, before closing this admin account back to the cmd prompt and
    Type "net user administrator / active: No.»
    7, sign out, then work I hope.
    Good luck
    Mike

Maybe you are looking for

  • Firefox.exe APPCRASH associated ntdll.dll, even after clean install

    Hello, I have problems with Firefox crashes immediately after clicking on its icon. Firefox version is 41.0.2.5765, Windows exception code c0000005 (000497e8) the defective module ntdll.dll, version 6.3.9600.18007. Safe mode, the profile manager cras

  • What is the Service Station?

    Hello Which is really the driver of Station Service? -check the updates of drivers or others? Thank you

  • GigE lost frames/buffers

    I'm losing Gige Frames/pads in a system that acquires way synchronous analog readings and images over long periods. Computer: Nuvo 1300af 620, (Quad i7 processor clocked at 2.66 GHz, 5 ports POE GigE x, 3 GB of RAM, 256 GB SSD), Windows XP embedded,

  • Where is my icon to taskbar for Volume?

    Silly question, but... in the past, there was an icon in the taskbar on my tablet pc where I could adjust the volume on various things like the Speaker Volume, wave, SW Synth, CD player and Monitor entry and I could put a checkbox in a silent box for

  • How to install a XP windows genuine copy?

    I have windows genuine copy installed XP, I want to format my C drive and install the healthy copy of mind once again, how do?