Tab in TLF !!!

Hi
I am trying to implement a sample of TLF with feature of Tab for paragraph like word document. If user click in paragraph and press 'Tab' then it should work like same as we experience in Word.
Can any one guide me ?
Bharat Patel

By default TLF ignores the Tab key and it's used to navigate focus.  This can be changed by creating a custom Configuration and passing it into the TextConverter or the TextFlow constructor.  See the flashx.textLayout.elements.Configuration class.  Note that once a TextFlow is constructed its Configuration cannot be changed.
There is a defaultConfiguration that is used when no Configuration is specified.  So the simplest way to have all your TextFlows insert a tab on the tab key is to add this line to the startup before any TextFlows are created.
TextFlow.defaultConfiguration.manageTabKey = true;
Note that if you are using TLF wrapped by Flex or FlashCS5 then you'll have to work through the components and APIs they provide.
Hope that helps,
Richard

Similar Messages

  • [svn:fx-trunk] 12909: Pre-FP10.1, set default tab stops in TLF.

    Revision: 12909
    Revision: 12909
    Author:   [email protected]
    Date:     2009-12-14 10:33:13 -0800 (Mon, 14 Dec 2009)
    Log Message:
    Pre-FP10.1, set default tab stops in TLF.  Without this, if there is a tab and TLF is measuring width, the tab will measure as the rest of the remaining width up to 10000.
    QE notes:
    Doc notes:
    Bugs: SDK-24589
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration: yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24589
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as

    SpryAccordion.css
    You have an error that is killing the rest of your code shown below in red.  Remove it.
    .AccordionPanelContent {
        margin: 0px;
        padding: 2px; /**suggest using 12px or more**/
        background-image: url(../infobkgd.png);
        background-attachment: fixed;
        background-repeat: repeat;
        font-family: Verdana, Geneva, sans-serif;
        font-size: 12px;  /**suggest using 16px or more**/
        color: #FFF;
        overflow: hidden;
        height: 40
    [x;
        height: 100%;
    Nancy O.

  • [svn:fx-trunk] 10001: Fix for TextGraphicNode and RichTextNode delegated content property.

    Revision: 10001
    Author:   [email protected]
    Date:     2009-09-03 13:03:50 -0700 (Thu, 03 Sep 2009)
    Log Message:
    Fix for TextGraphicNode and RichTextNode delegated content property.  We used to pick up cdata from before and after the content tags and consider them content, this was wrong and the new line and tabs threw TLF for a loop.
    This change will need to be communicated to and integrated with, CoreTech.
    QE notes: None
    Doc notes:  None
    Bugs: SDK-22851
    Reviewer: Paul
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22851
    Modified Paths:
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/RichTextNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/TextGraphicNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXG_v1_0_Handler.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXG_v2_0_Handler.java
    Added Paths:
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/ContentPropertyNode.j ava

  • Does TLF support tabbing to LinkElements?

    We currently use Flex 3.2 but are in the process of moving up to Flex 4.1.  In the Flex 3.2 SDK we took advantage of the 'htmlText' property and its ability to do links.  But, users could not tab to the links and screenreaders could not read the links.  Therefore we were questioned about 508 compliance.  We raised the issue to Adobe but haven't heard anything back.  Has anything changed in Flex 4.1 (or 4.5) with regards to this issue? Has the Flash Text Engine or TLF somehow fixed this issue?  I'm also wondering if anyone has any ideas about how to make the links in the 'htmlText' property 508 complaint.
    Thanks for your time!

    There is no change to Flex 4.1 or 4.5. We are working on a way to address this. It may be possible to use the FocusManager interface to override tabIndex values when the keyboard focus is inside a TLF object. That way, the cursor would move in the same way you would expect of a browser.
    It is important to note, however, that TLF and htmlText is not intended to be equivalent to a browser pane. It's a feature that simplifies designing rich text layouts. If you want a fully functional HTML pane, then what you need is a browser iframe. Building a browser out of TLF may technically be possible, but it's a lot more work than you're likely to want to undertake.

  • Word wrapping: Tab behavior in TLF editor

    Hi,
    I have created an editor using TLF which has word-wrapping enabled. The editor also takes in the Tab key and places it at prober position. In case you insert Tab at the beginning of the line except for the first line then the TAB is inserted in the previous line and it does not get wrapped.
    Is there any way in which I can acheive word wrapping for Tabs? I have observed similar behavior for SPACE as well.
    Why is such a behavior in the both the cases?

    We are using the TLF bundled with Flex 4.1.0.16076, latest production release.   You can verify the problem here in this demo:
    http://labs.adobe.com/technologies/textlayout/demos/
    Type two lines, make sure they wrap.  At the beginning of the second line press the tab key multiple times.  The tabs will stack up on the end of the first line.
    If this is fixed in a newer version of TLF, is it safe to use with flex 4.1?
    Thanks,
    Ryan

  • Problem with tabs in xml text

    I have a problem with my XML setup here
    i use Tab key to aligh up info in the xml text for aligned
    display in the program
    hoever i tested on several computers and get different
    resolts.
    how can i fix this.
    Please view the linked Image
    http://img129.imageshack.us/img129/8394/flashtextproblemti4.jpg
    this is what happenes even thow all run xp and all run same
    latest flash version.
    Anyone got an ideer how i can solve this.
    BTW the font is verdana.
    This is my actionscript ....
    // Function to parse an address
    f_parseAddress = function () {
    // Set the text
    _root.stageholder.textfield.htmlText =
    this.firstChild.firstChild.firstChild.nodeValue;
    // Create the XML object
    XML_address = new XML();
    // Set up the XML object
    XML_address.ignoreWhite = true;
    // Add the handlers
    XML_address.onLoad = f_parseAddress;
    // Load the XML file
    XML_address.load("./Data/xml/kontakt.xml");
    This is my XML file
    <?xml version="1.0" encoding="iso-8859-1"?>
    <text>
    <address>
    <![CDATA[
    <font size="20">Company name</font>
    Company name
    address
    address
    Dir. tlf. + xx xx xx xx xx
    + xx xx xx xx xx
    Mobil + xx xx xx xx xx
    + xx xx xx xx xx
    web: <a href="
    http://www.xxxxxxxxxxxxx.xx"><b>www.xxxxxxxxxxxxx.xx</b></a>
    E-mail: <a
    href="mailto:[email protected]"><b>[email protected]</b></a>
    ]]>
    </address>
    </text>
    If anyone got a solution on how i can get my text to allign
    corect
    i would like to hear about it
    Best reguards
    Mis

    alrighty then try this xml structure.
    Note: formatting information like b, or linkage tags should
    not be part of the xml.
    The XML format is a universal format for data, if you fill it
    with style information this is not good practive (in general, there
    are of course scenarios where it makes sense, also since (x)html IS
    also XML).
    In your case you want to put the information about multiple
    companies in a xml file, but you let the flash decide how to
    display format this information.
    so if you use the sugested XMl structure you will have full
    control of the layout within flash, because you can grab every
    piece of information from the xml and place it jsut where you want
    in flash and format it within flash.
    Of course this process is more coding work than your previous
    attempt, but it pays of when you have a lot of data to process and
    when you want to have full control of the final layout.
    But maybe its overkill for your application (I don't know how
    many companies will be stored in your xml and how complex the rest
    of the app is).

  • Tab going to a new line when end of line is reached

    In most text editors, when you hold the tab key down, the cursor goes from tab stop to tab stop across the line. When end of the line is reached, the cursor goes to the next line, again goes from tab stop to tab stop on the new line, and so on. You end up with multiple lines.
    In TLF, with tabStops set, holding the tab key down, the cursor goes from tab stop to tab stop across the line. But when the cursor reaches the end of the line, it doesn't go to the next line. The cursor stays at the end of the line while more tab characters are inserted into the text flow. There is always only one line.
    Is there a way for TLF to have the tab key go to the next line when the cursor reaches the end of the line?
    Thanks for the info.
    Will

    Thank you very much for the update.
    We also discovered that, any line which has the previous line ending in a tab, any leading tabs will not show. For example (all in the same <p>):
    Line one ...<tab/>
    <tab/>Line two
    The leading tab on line two will not display. If the previous line does not end with <tab/>, then the leading tab on the following line shows. Is this related?
    Also, will the fix come in a 2.x update? Any time frame?
    Thanks again for the info.
    Will

  • Tab Key Usage

    Tab stops are included in TLF but while editing text if the
    tab key is pressed it executes the default Flex action of switching
    to the next component. I tried searching for a attribute so I could
    use the tab key in the way a normal text editor does but I couldn't
    find anything. Are we expected to have to capture the tab key input
    and insert the tab value ourselves?

    Hi,
    The default behavior when there are no tab stops before the end of the line is to create a new line exactly as you describe.  Please verify that you've specified tab stops.
    This is even simpler than the above.
    textFlow.tabStops="tabStops="s100 s200"
    will create tabs at 100 and 200 pixels.
    Regards,
    Richard

  • Nested Span in TLF!

    Hi folks...
    There is problem here:
    I have something like this in my RichEditableText's textFlow:
    str = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'>"+"<div><tab/>" +
          "<span fontFamily='tahoma' fontSize='12' color='0xc08057'>text specific word text</span></div>"+
          "</TextFlow>";
    RichEditableText.textFlow=TextConverter.importToFlow(str, TextConverter.TEXT_LAYOUT_FORMAT);
    I want to use replace() func, just like this:
    var myPattern:RegExp = new RegExp(TextInput.text,"gi")
    str = str.replace(myPattern,"<span backgroundColor='#c17e56' color='#dec59d'>"+TextInput.text+"</span>");                    
    RichEditableText.textFlow= TextConverter.importToFlow(str, TextConverter.TEXT_LAYOUT_FORMAT);
    But after doing this, my specific word that I had been written in my TextInput, would'nt be appear inside of my text. I think because of another <span> in the main text. the result is something like this:
    <span fontFamily='tahoma' fontSize='12' color='0xc08057'>
         text <span backgroundColor='#c17e56' color='#dec59d'>specific word</span> text
    </span>
    how can I fix this?!

    The problem is that a TLF span doesn't map to an HTML span which does support nesting.  What's needed is
    a new element - "SubParagraphGroupElement" that can have text, tlf type spans and other SubParagraphGroups as children.
    One awful hack would be to turn all the outer span's into tcy's which will have no effect unless you are doing vertical text.  That gives you exactly one level of nesting - probably worse than useless.  Anyhow it would look like this:
       <p>
       <tcy fontFamily='tahoma' fontSize='12' color='0xc08057'>
            text <span backgroundColor='#c17e56' color='#dec59d'>specific word</span> text
       </tcy>
       </p>
    The more people that agitate for a SubParagraphGroupElement the better.  It's a hard sell and keeps falling off the plans.
    Richard

  • Validation of TLF-Markup with DTD?

    Hi everyone,
    we're using TLF to display structured text on the client side with Flex. The text comes from a database where it is stored in our own XML-Markup, transformed on the server side (java server) to TLF-Markup and then sent to the client.
    Is there any possibility to make sure that the transformation on the server into TLF-XML results in a valid syntax so that the RichText component can display it? Something like a DTD for the TLF-Markup?
    Thanks in advance!

    Object Hierarchy
    Parent ->
    Child
    TextFlow
    div
    p
    a
    tcy
    span
    img
    br
    tab
    list
    li
    g
    TextFlow
    no
    no
    no
    no
    no
    no
    no
    no
    no
    no
    no
    no
    div
    yes
    yes
    no
    no
    no
    no
    no
    no
    no
    yes
    yes
    no
    p
    yes
    yes
    no
    no
    no
    no
    no
    no
    no
    yes
    yes
    no
    a
    no
    no
    yes
    no
    yes
    no
    no
    no
    no
    no
    no
    yes
    tcy
    no
    no
    yes
    yes
    no
    no
    no
    no
    no
    no
    no
    yes
    span
    no
    no
    yes
    yes
    yes
    no
    no
    no
    no
    no
    no
    yes
    img
    no
    no
    yes
    yes
    yes
    no
    no
    no
    no
    no
    no
    yes
    br
    no
    no
    yes
    yes
    yes
    no
    no
    no
    no
    no
    no
    yes
    tab
    no
    no
    yes
    yes
    yes
    no
    no
    no
    no
    no
    no
    yes
    list
    yes
    yes
    no
    no
    no
    no
    no
    no
    no
    yes
    yes
    no
    li
    no
    no
    no
    no
    no
    no
    no
    no
    no
    yes
    no
    no
    g
    no
    no
    yes
    yes
    yes
    no
    no
    no
    no
    no
    no
    yes
    For formats, it's more comlicated.  You can ask some specific formats.

  • Image Processor Tab Missing in New Adobe Bridge CC 2014

    In the new Bridge CC you used to have a TAB under tools called Photoshop which you could run the script Image Processor for easily processing jpegs. What has happened to this and is their maybe a new way of processing jpegs to lo-res that I dont know about from tiff or jpeg or does my bridge have a problem?
    I have attached a image grab from my bridge that shows that the tab is not there. I know that you can access image processor directly from Photoshop, but they used to always be linked.

    No, it is still in Bridge CC.
    Did you uninstall Photoshop CC after installing Photoshop CC 2014? If so, that may have removed some of the Bridge integration scripts by mistake. Re-installing Photoshop CC 2014 should replace the scripts.
    and it should give the image processor tab back

  • Logical Level in Content Tab

    Hi,
    What is the use of Logical Level under Content Tab in Logical Table Source?
    Need more information, docs related to this
    Thanks,
    Satheesh

    Hi
    This logical level is useful for level bases metrics.It shows the levels in your hierarchy.We can give the level in this and in the report it shows the data for that level only.
    See this lnk, http://gerardnico.com/wiki/dat/obiee/measure_level_based
    Thanks
    Don

  • Images for tabs are not getting displayed in the page

    Hi,
    I have given images for tabs on a page. when iam applying images from the local disk, it is showing the images in edit mode. But when I view the page, it is not showing any images.
    Where should i copy the images I use in my pages. I ahev copied all the images in the images directory of portal30 in server.
    Please help.
    Murthy

    Hi,
    Please check the httpd.conf file in your server for /images alias. The /images alias will point to a directory. Copy your
    image files in that directory.
    Thanks,
    Sharmila

  • How do I use Panorama / Tab Groups with the keyboard?

    Yes I know that CTRL-SHIFT-E opens the panorama window, and then I can use the mouse to organize my tabs into groups.
    But how do I do this with the keyboard?
    I've [http://lifehacker.com/#!5719596/switch-between-tab-groups-in-firefox-with-a-keyboard-shortcut read] [http://ubuntuforums.org/showthread.php?t=1705714 that] Ctrl-`should move me through tab groups. That doesn't work for me on my Danish keyboard. (Where the ' and ` chars are weird. But is how they are on a valid standard Danish keyboard) I've tried changing the keyboard to USA and then moving through tab groups works fine.
    In short: Pretend I don't have a mouse. How do I use Panorama / Tab Groups?

    Sorry. These are both known bugs:
    [https://bugzilla.mozilla.org/show_bug.cgi?id=587010 Bug 587010] - Add keyboard UI for manipulated groups and tabs in Tab Candy
    and
    [https://bugzilla.mozilla.org/show_bug.cgi?id=626594 Bug 626594] - shortcut for switching tab groups is badly accessible on many non-US keyboard layouts

  • My downloaded text sounds do not show up under the sounds tab in settings after installing 8.1.1. can someone help me please?

    i downloaded a couple text tones and since installing 8.1.1, they will not show up under the sounds tab. in fact, they do not show up in my recent purchases on itunes, but when i go to buy them again, it says that i have already bought this tone. I just want to use the tones i paid for as the tones on my phone. not asking much.... thanks for the help. i hope someone can help me get the tones working. thank you.

    This was happening to me too but only for some of my songs. I have a mac so I dunno about PCs, but for most of my ringtones I had to create an ACC version in itunes to make them short enough then turn that into a m4r and those all worked fine. But if the song was already short enough and I didn't create an ACC version and just turned the original into a m4r, then it wouldn't appear in my itunes.
    so if you're on a mac:
    1. go to get info, options, pick when you want the song to start and end.
         Has to be pretty short to work, 30 second or less is good
         if it's already short enough that's fine
    2. right click and click 'create ACC version'
         a copy with the length you put in will appear, drag that into a folder or whatever and just type in m4r where m4a would be
         still make an ACC version even if it's the right length
    Hopefully this helps someone else.

Maybe you are looking for

  • 64 Bit OS Drivers

    Does anyone know if the SATA drivers offered for download will work (properly) with the 64 bit versions of XP and Win 2k3 server? I want to go ahead and at least put the 64 bit XP (Extended Systems) on there, but I don't want to waste my time if it w

  • My repaired itouch doesn't play sounds

    Today, I just got a repair for my itouch that had a ******** screen touch that didn't respond. I never got a new one for the repair. It looked "new" but it waa actually something that has been fixed from a crappy one. Great, now it doesn't play a ***

  • Sales return BAPI error

    Hi all, I have been given with a task like creating function module for sales return  For that i am using standard BAPI  BAPI_SALESORDER_CREATEFROMDAT1 .To this BAPI i am passing all necessary inputs with doc_type as RE.When i execute this Function m

  • I need to reinstall Acrobat standard XI. I have my serial number, but don't know where to download

    Computer crashed. I need to reinstall Acrobat standard XI. I have my serial number, but don't know where to go to get the download. I have no disks. Help!

  • Universal power pack for Mac air, Mac pro and ipad

    Have an 10 hour flight comming up    Would like to purchase universal power pack for Mac air Mac pro and ipad