Operation of TextField

Hello

I am wanting to write a paragraph of text and display it on screen in my application. I don't know, I read that the TextField creates a modifiable on-screen text box. How would you propose to create this paragraph? I simply would use much LabelFields?

Thank you

Yes, just add it to your manager for scrolling. It might look like this:

TextField copyrightField = new TextField(TextField.FOCUSABLE | TextField.READONLY);
copyrightField.setText(myCopyrightText);
mainVFM.add(copyrightField);

Simple but effective. In this particular case, if your text is too long and that your manager scrolls, the user will be able to scroll through all the regular text with navigationMovements (trackball / trackpad, slide / move on a touch screen).

Tags: BlackBerry Developers

Similar Questions

  • Numbers in the textfield using the Boolean and structure of the case?

    Hello!

    I am very new to these forums and LabVIEW in general. I am currently trying to implement a calculator-ish, but without the operations (+ - * /).

    I have 10 Boolean buttons named 0-9, and with them I want to basically write a sequence of numbers in a textfield. I managed to solve the problem using a structure of the event, but now I would get the same result using a case instead of this structure. The problem is that I can't identify which button was pressed, so I can't make the program go to the proper case (0 to 9). Is there a simple solution to what you guys could help me with? Perhaps a property node that is generic for each button? I do not know

    in any case, I enclose you a simplified version of what I am seeking to achieve, withouh code I do not know how to write of course.

    Thanks for your help in advance!

    / Sebastian

    Here's a way to do it: combine Boolean values in a table, which become an 8-bit number and which thread to a structure to deal with a Boolean radix

  • User input to JSON and mathematical operation

    Hello guys,.

    Now, I am currently building another application, and I want to use JSON as my database. There will be multiple entries (entries user, INTEGER) textfield that will be stored in JSON, so I want to apply a mathematical addition on each entry which is recorded in the JSON (total value) database, and then display it in the user interface. I also want to try this with XML, but I don't know if I could do it with XML.

    The sample application in the documentation (registration with JSON data) is not enforced with user input, but we specify the data. There is also an example of a mathematical operation of database. I still don't know the concept and how to write the code.

    Any help would be appreciated. Thank you.

    Hello
    Mathematical operations can be performed in the application itself.

    (1) create input controls, a button that will trigger the operation. Click, calculate the result, update the result field, then record the entries and result in a DB, JSON or XML file.

    (2) when the page is loaded into onCreationCompleted on the Page read handler registered values (if any) and fill the control with data.

    If you need help, please post the code you have so far and that someone may be power help with specific problems.

  • Labels vs TextFields to display Long text

    I am currently using labels to display all the text in my application, and it can be very slow to load long passages of text.

    The text of loading consists of many operations += (it loads verse by verse of a XML file).  I know that if you use TextFields, you must use .append for better performance.  Am I is slowed down because there is no command adding labels?  Should you opt for using flash.text.TextField rather for better performance?

    I just tested and replaced my two fields of label with TextFields and use .appendText instead of +=.  Improving the performance I received was amazing!  By loading the long text passage (Psalm 119 of the bible for reference), the loading time has fallen more than 10 seconds at about 1-2 seconds.  It consists of about 350 operations += replaced by .appendText.

    So, looks like I found my answer.  Using TextFields and appendText is definitely the way to go.

  • Problem with Textfield autocomplete--> only use the INSTR function

    Hello team dev,

    I use the new "textfield autocomplete" item type APEX and you have a crazy problem with it.

    I have a table with an index on the same column I want to search with AutoComplete field.

    Index:
    CREATE BITMAP INDEX TEST.GEO_DATA_IDX1 ON TEST.GEO_DATA (postcode)
    NOLOGGING TABLESPACE TS_INDEX;
    Select which is automatically generated by APEX 4:
    SELECT   a.*
      FROM   (  SELECT   DISTINCT postcode AS RV
                  FROM   TEST.GEO_DATA
                 WHERE   country_id = :P1_COUNTRY
              ORDER BY   1) a
     WHERE   INSTR ("RV", :p$_search_string) > 0 AND ROWNUM <= :p$_max_rows;
    
    -- plan
    Plan
    SELECT STATEMENT  ALL_ROWSCost: 4,308  Bytes: 45,31  Cardinality: 1,97            
         2 SORT UNIQUE  Cost: 4,307  Bytes: 45,31  Cardinality: 1,97       
              1 TABLE ACCESS FULL TABLE #TABLE# Cost: 4,306  Bytes: 47,311  Cardinality: 2,057  
    The APEX 3, I used the addon of Tyler Muth with my own Select:
    SELECT   DISTINCT
                postcode AS DV,
                postcode AS RV
         FROM   TEST.GEO_DATA
         WHERE   country_id = L_COUNTRY
         AND    postcode like l_search||'%'
         ORDER BY 1
    
    -- Plan
    SELECT STATEMENT  ALL_ROWSCost: 840  Bytes: 152,867  Cardinality: 13,897                                
         8 SORT ORDER BY  Cost: 840  Bytes: 152,867  Cardinality: 13,897                           
              7 HASH UNIQUE  Cost: 838  Bytes: 152,867  Cardinality: 13,897                      
                   6 VIEW VIEW index$_join$_001 Cost: 836  Bytes: 232,111  Cardinality: 21,101                 
                        5 HASH JOIN            
                             2 BITMAP CONVERSION TO ROWIDS  Cost: 31  Bytes: 232,111  Cardinality: 21,101       
                                  1 BITMAP INDEX RANGE SCAN INDEX (BITMAP) #INDEX#
                             4 BITMAP CONVERSION TO ROWIDS  Cost: 45  Bytes: 232,111  Cardinality: 21,101       
                                  3 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) #INDEX#
    Is there a chance to get my INDEX used by the new element of the APEX? I do not. But I still want to ask before I just rebuild. :)

    Best regards

    Tobias

    Hi Tobias,.

    I guess that you are currently using "contains and case sensitivity ' to the attribute of"search ". Have you ever tried out "Exact and case sensitivity? Because that internally uses the LIKE operator as does your original query and the % is at the end, she must allow the use of an index. But it might still work, because ORDER BY can be run at a different time in your original example, but it's worth a try.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Use a current reference to TextField TextField

    Here's what I have.

    I have two text fields and the user can use a button to highlight the text in a field.  I have a listener on each field that holds the titles of the last clicked in the field.

    public void setLastActiveTextField(event:FocusEvent):void {}
    lastTextActiveField = event.currentTarget;
    trace (lastTextActiveField.Name);
    }

    public function editHigh (): void {}
    ignore the description for this operation area, if no box intervened
    If {(lastTextActiveField.name!="ed)"}
    Download selection Info
    var cpos = lastTextActiveField.caretIndex;
    var bpos = lastTextActiveField.selectionBeginIndex;
    var epos = lastTextActiveField.selectionEndIndex;

    trace (BPOS, EPOS);
    Make sure that we have a valid choice
    If (textBegPos! = textEndPos) {}
    Check the format of the text
    var tempTxtFmt = new TextFormat();
    tempTxtFmt = lastTextActiveField.getTextFormat (textBegPos, textEndPos);
    If {(tempTxtFmt.underline is false)
    underscore
    lastTextActiveField.setTextFormat (sentenceUnderlineTextFmt, textBegPos, textEndPos);
    } else {}
    change it back
    lastTextActiveField.setTextFormat (sentenceStndTextFmt, textBegPos, textEndPos);
    }

    move the insertion point
    BPOS = epos;
    internship. Focus = lastTextActiveField;
    lastTextActiveField.setSelection (bpos, epos);
    }
    }
    }

    lastActiveTextField is defined as an object.  When the Highlighter button is hit, he noted the right of the range, but I can't understand how to send the formatting of the textfield real without establishing another control (lastActiveTextField.name, field2)).  In addition, stage.focus won't work because the object is not really on the scene, I guess.  There must be a way to refer to the TextField.  What Miss me?

    It's simple... When a target is passed as a reference is loses its type and becomes something simple and clear.  It refers to the target, but you need to cast it as the type that you need it to be.

    give _lastTextfield a type of TextField

    and when event.target is used to represent its added value in the TextField.

    which will make reference to it as textfield allowing you to use its .setTextFormat methods.

  • Change the dynamic textField label.

    Hello!
    I created an XML some textfield and combobox that works well.
    Now the problem is how can I access the items?
    If I want to change the label or text on exodus TextInput with name = username.

    Part of the code is that looks like this.
    It is in a loop for each.

    -------------------------------------------------
    var fieldLabel:String = heading.@label; (this is XML)
    var obj:FormItem = new FormItem();
    var textField:TextInput = new TextInput();
    textField.name = "col" + i;
    textField.id = fieldLabel;
    obj.addChild (textField);
    userForm.addChild (obj); (userForm is the form that I created)

    -------------------------------------------------

    I tried to write
    col1. Text = "new text";
    but he said that col1 is undefined property.

    How can I do?

    Hello

    but you must know what kind of compenent you will get. You can also play a bit with the East and the instanceof operator.

    for example

    If (tmp.getChildByName ("col1") is TextInput)
    TextInput (tmp.getChildByName ("col1")) .text = value;
    Another yew (tmp.getChildByName ("col1") is button)
    Button (tmp.getChildByName ("col1")) .label = value;

    and so on

    See you soon

    Dietmar

  • CoreTelephony error in trace file as a file for coretelephony tracing operation has failed, perhaps you need more disk space. Details "error opening the file/tmp/ct.shutdown, err = operation not permitted

    I got this error:

    "CoreTelephony Trace file error
    A file for CoreTelephony tracing operation failed, you might run out of disk space. Details "error opening the file/tmp/ct.shutdown, err = operation not permitted"

    I tried to solve it by searching for CoreTelephony errors. Could not resolve yet.
    Software does not, especially of photoshop...

    Any ideas?

    Same thing here, iMac with OS X 10.11.6. All started a couple days ago. Have not found any valid solution online yet, I tried rebooting in recovery mode and check disk, but it seems that everything is ok with the drives and permissions.

  • Disk utility first aid operation was unsuccessful and iMac freezes when it is reloaded

    iMac Intel Core (2010) 320 GB 4 GB of RAM.  Running OS 10.11.6

    Started computer, white screen appeared with the icon of a folder with an exclamation mark in the folder.  Nothing else to do, so restarted iMac, hold down the command and 'r' to open disk utility.

    Ran first aid, recommended "incorrect block are 1172 instead of 601.  File system check or repair a failure.  Operation failed. "" "First aid running not a, if possible save the data on this volume.  Click OK to continue. »

    Discount to zero is successful, but screen is frozen with no access to the hard drive.  I can't open the preferences system due to frost.

    The circle of rainbow of spinning of death continues to run so I am not able to get any other repair mechanism.

    Anyone have any ideas on how to proceed?  The iMac is obviously not able to boot to the hard drive.

    This probably means the HD has failed and must be replaced. How you proceed, is to take the computer to your local Apple authorized provider who can help replace the disk and get you back in business. If you are not aware of any local could be held, please click the following link to start to find one close to you.

    https://locate.Apple.com/country

  • I want to install windows os(not genuine) in the mac, I use mac air beginning 15, 4 GB of ram, 128ssd.     I want to play counter strike (overall offensive) in the windows operating system.     is 4 GB of ram enough or it takes 8 GB of ram.

    in fact, I want to install windows os (not authentic) because I'm fond of counter strike

    so, mac support this game?

    or it takes 8 GB ram to play counter strike?

    operating system windows (not authentic) will cause no effect on mac?

    If I install the windows on mac operating system, I will award 58 GB in the windows operating system and remains to mac, goes no problem in the future, due to the windows operating system?

    ALSO POINT OUT THE ADVANTAGES AND DISADVANTAGES OF INSTALLING WINDOWS ON A MAC.

    operating system Windows (not authentic)

    This means that you ask for assistance on the use of a pirate copy of Windows?

    If you install Windows, you have the advantage of being able to run Windows and the inconvenience of having to deal with all the viruses and stuff for which Windows systems are prone.

    Why not just buy the Mac version? It seems relatively inexpensive: http://store.steampowered.com/app/730/

  • How can I remove messages from POP e-mail from the server in El Capitan?  The option to delete messages after downloading is not an option of the operating system.

    I would like to delete emails from my accounts (Yahoo, Google, etc.) after they are downloaded.  This option is not available in El Capitan as in other operating systems where it is used in Mail-preferences-accounts-Advanced.  I can't uncheck it to accomplish this task.

    I use 10.11 and I don't have this option for accounts pop screenshot - what do you see?

  • the operation could not be completed error 1035 com.apple.mobilephone

    I have phone 7 and a mistake on putting in place the reception of voice mail

    the operation could not be completed error 1035 com.apple.mobilephone

    Same error message, even tried operation. iPhone 6, iOS 10.0.1

  • The operation cannot be completed because you do not have the necessary permissions.

    The operation cannot be completed because you do not have the necessary permissions. This is the message I get when I want to create a new folder. I don't have this problem until recently. 1.

    How should I do?

    2 is that there is a security breach?

    I use sierra but, I had the same problem with el Capitan

    When you try to create a new folder? is it an external device? your office? a NAS?

  • My bank site refused my log in because of 'old' browser, but I don't want to upgrade the next operating system (Yosemite) because he ruined my computer before. How can I upgrade only from Safari?

    My bank site refused my log in because of 'old' browser, but I don't want to upgrade the next operating system (Yosemite) because he ruined my computer before. How can I upgrade only from Safari?

    Safari cannot be updated past 6.2.8 on Mountain Lion. If you want to, switch browsers.

    (144681)

  • What operating system is now available with the new Macs?

    About to buy a new iMac. Need very soon. As ordered by next week. Prefer to El Cap installed (would rather wait Sierra went through the selection process before entering a new operating system to work). Anyone knows which OS is available on the Apple Store now (since the Sierra was not yet released to the public)? And if El Cap is still available - when someone anticipate he will not be available? (I want to configure what I buy and places like MacMall, while large, are not as versatile).

    Without doubt, El Capitan, as the Sierra is not released until September 20.

Maybe you are looking for

  • Possibilities of upgrade for my HP Pavilion 15-b142dx

    Thus, according to the specifications of my laptop, I can update my APU of A6 - 4455 accelerated m AMD processor clocked at 2.6 Ghz. But when I try to look for the part, its nowhere to be found. Even AMD does not provide them. IM distraught. I wonder

  • Zune replaces Windows Media Player?

    I see Zune related with Microsoft and I was wondering if Microsoft replaces Windows Media with Zune player?

  • Update from Windows 7 home pre. to Windows 7 Pro.

    I have anytime upgrade Windows 7 Home Pre. 64-bit for Windows 7 Pro. 64 bit. All turned on works fine but when I go into the properties of the computer, more festures with the new edition of Windows 7. I enter the key of the new Pro upgrade. 7 upgrad

  • Microsoft Arc Touch radio stopped working

    Microsoft Arc Mouse transceiver does not work; Windows says that "peripheral USB malfunctioned." The mouse can not enter! The lights of the mouse still light up, but the transmitter/receiver simply doesn't work. Was working fine a few days ago, but n

  • Reports do not post after you have defined the field of authentication

    Helloto solve a different problem (see 1570267.1) I had to put the field of authentication in my Web profile (empty previously), after which the reports do not report in the report repository. The message log looks like this:The XML returned by the w