TextArea FontSize not updated of all the texts

Hey guys,.

I'm trying to set the size of the font of some of the text box after the user selects the size of the text they want. However, this is changing only the last line of the text box (and all the new lines after than those who entered) instead of the whole text. These TextAreas hold chat messages and are not editable. Here is what I tried first:

public void setFontSize(size:Number):void
{

chatLog.setStyle ("fontSize", size);

}

and then I tried this:

public void setFontSize(size:Number):void
{

If (chatLog.text.length > 0) {}

var allText:TextRange = new TextRange (conversation, false, 0, chatLog.text.length - 1);

allText.fontSize = size;

}

chatLog.setStyle ("fontSize", size);

}

None of them seemed to change the size of the font of all but the last line. The example that I found online and on the adobe website have both shown it works. I use the htmlText property to set the text. Any ideas?

Thank you

Philippe

OK, took a quick glance.  Interal of the TextArea TextField handling HTML is certainly full of features, I think that you have reached another of them.  It takes all your tags by specifying the size.

If I were you, read back the html code and replace font tags, or (and maybe it's a better solution for the cat anyway) regenerate the HTML based on an external log of stored channels.  You can find out later that, after a long chat session which, as the number of lines in a TextArea, gets really big (1000), it starts to pig, so you can virtualize this text is actually in the TextArea and handful of scrolling in a different way.

Alex Harui

Flex SDK Developer

Adobe Systems Inc..

Blog: http://blogs.adobe.com/aharui

Tags: Flex

Similar Questions

  • can not update at all the

    computer crashed and I need to reformat my whole PC and now it's not let me make updates at all can anyone help me please :(

    http://taurarian.MVPs.org/WU_XP/0x80240036_0x8024400A.html

    You must be at Service Pack 3 level before you can use Windows updates.

    To determine which service pack is currently installed on your computer, follow these steps:

    1. Click Startand then click run.
    2. Copy and paste, or type the following command, and then click OK:

    winver

    A dialog box displays the version of Windows and the service pack that is currently installed on your computer.

    See also: http://support.microsoft.com/kb/2497281
    You may be unable to access the site Web Windows Update in Windows XP, Windows 2000 or Windows Server 2003

    If you haven't already done so, you will need to install the SP2 and SP3 (SP1 note no longer exists).

    How to obtain the latest Windows XP service pack
    http://support.Microsoft.com/kb/322389

    SP2 - http://www.microsoft.com/en-us/download/details.aspx?id=28
    (for single PCs too)

    For Windows XP Service Pack 2 installation procedure
    http://support.Microsoft.com/kb/875364

    Steps to take before you install Windows XP Service Pack 3
    http://support.Microsoft.com/kb/950717

    It is stated in "How to obtain the latest service pack XP" is.

    If you have problems obtaining the service pack from Windows Update, you can download the package of standalone update from the Download Center. This page will say that this installation package is intended for it professionals and developers. However, you can download this file safely. The following file is available for download from the Microsoft Download Center:

    Download the Windows XP Service Pack 3 package now

  • For Windows XP (KB2719985) security update will not be installed. The text "a problem on your computer is preventing the updates being downloaded or installed" is reported

    For Windows XP (KB2719985) security update will not be installed. The text "a problem on your computer is preventing the updates being downloaded or installed" is reported. Fix - it crashes too much with the line "invalid command line" when I try to run it.

    Hello

    1. this problem occurs only with this particular update?

    2 did you change on your computer before this problem?

    You can follow the suggestions and check out them.

    Method 1

    You can reset the Windows Update components.

    How to reset the Windows Update components?
    http://support.Microsoft.com/kb/971058

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following windows Help article.

    How to back up and restore the registry in Windows XP

    http://support.Microsoft.com/kb/322756

    Method 2

    You can read the article.

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following windows Help article.

    How to back up and restore the registry in Windows XP

    http://support.Microsoft.com/kb/322756

    Method 3

    Step 1:

    Place the computer in a clean boot state.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: After you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.

    a. click Startand then click run.

    b. type msconfigand click OK.
    The System Configuration utility dialog box appears.

    c. click on the general tab, click Normal Startup - load all device drivers and servicesand then click OK.

    When you are prompted, click restart to restart the computer.


    Step 2:

    Download and install the update from the link.

    Update security for Windows XP (KB2719985)

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=30282

    See also:

    Solve common installation issues in Windows Update, Microsoft Update and Windows Server Update Services

    http://support.Microsoft.com/kb/906602

  • Highlight all the text in Textarea

    Hi guys

    I have several text boxes in a VBox called documentContainer. Now, what I want to do, is when a user presses the button 'a', the text all textareas is selected. I managed to make it work partially because it will select all the text in the current text box, but it will not select the text in the other textareas. Code below:

    if(event.keyCode == 65) {
         for(var i:uint=0; i<documentContainer.numChildren; i++) {
               var taTextSelection:TextArea = documentContainer.getChildAt(i) as TextArea;
               taTextSelection.setSelection(0, taTextSelection.length);
         }
    }
    

    I think that's how it's done:

    var myString:String = "test string";
    System.setClipboard (myString);

    You will not be able to read the Clipboard once defined in Flex though. You can in the AIR. Here's another one I found on a blog:



    http://www.Adobe.com/2006/mxml '.
    Layout = "vertical".
    verticalAlign = "middle".
    backgroundColor = "white" >


            Import mx.controls.Alert;

    private void button_click (): void {}
    System.setClipboard (richTextEditor.text);
    Alert.Show ("Done");
    }
    ]]>
       


           
    label = "copy the text to the Clipboard.
    toolTip = "Click here to copy the contents of the RichTextEditor control to the operating system Clipboard."
    Click = "Button_Click (); "/ >
       


    Text = "The quick brown fox jumped over the lazy dog."
    Width = '100% '.
    Height = "100%" / >

  • All the text displays too large, Ctrl + 0 does not

    Enabled Firefox this afternoon to find all the text made too big by about 30%. Icons in the bookmarks bar and the tabs are too big, as well. If I press on Ctrl + - twice, then it seems normal, but Ctrl + 0 returned any abnormally high. Gmail in particular seems wrong no matter what I put the zoom, as if the user interface is too large, but the text is too small.

    I don't know what is happening. Several reboots of Firefox has not helped. Disabling each addon and plugin did not help.

    Can you use Ctrl ++ (zoom full page) to increase the size on Gmail? I'm sure that at least a few sites you will need to do this, depending on the size of pixel of your screen.

  • Why my virus program esetnod 32 guard tell me that my system is not updated after you install the update of all the nessary?

    Why my virus program esetnod 32 guard tell me that my system is not updated after you install the update of all the nessary?

    I have download all necessary Windows 7 updates, but they are not installed. Can anyone help?

    Kind regards

    Mitch

    Hi Mitchell,

    Please uninstall and reinstall the ESET program and check if it solves the problem:

    Uninstall or change a program

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    For further assistance:

    ESET knowledge base

    http://KB.eset.com/esetkb/index?page=home&locale=en_US&option=None

    Please post us with the result.

  • Text entry box does not show all the text

    I'm creating a simple exercise where I want the user to copy text from the course, paste into word and report back what the number of words.  I thought that perhaps the text entry box would be the best way to go, since if you click the text (the default), you can copy it.  However after I place the paragraph of the text in the box and resize in the editor, until all of the text shows, it does not show all the text during playback is previewd or published.  It only shows the last words of the last row in the upper part of the box.

    Is there something that I am missing?  Or, is there a more easy/better way to do what I need?

    Thank you

    Hi all

    If it Captivate 4, there may be no need of a widget to do this. I'm guessing that you haven't tried allowing the scroll bar for the text of the entry (TEB) box?

    When I just plop a TEB on a blade, I get this in edit mode:

    During playback, it looks like this:

    But if I change the TEB properties and select the Show scrollbar option:

    I get this in the output:

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • How to select all the text, all layers including locked or not visible, using VBScript?

    I'm looking for the more elegant syntax through a document and select all the text frames.

    You cannot select objects in... locked or hidden layers, so you will need to unlock/show layer and do what you need to do with the text, while the layer is visible/unlocked.

    to get all the loop text through the text in the object of the document, you will get all the text elements. If you loop through text in a layer object, you won't get the text located within groups.

  • How to stop all the text/HTML/menu of the browser to appear as numbered seats?

    A few weeks ago ALL the text in my firefox browser began to appear as numbered places. It's all of the HTML on the page, javascript popups, text fields of menus... everything. It didn't happen after I made a bet to day or anthing, it just happened partially through the day when I opened the browser window. I tried to do an update when I was invited, which didn't help, and I tried completely uninstall and then reinstall the latest version.

    Try some prefs to toggle Boolean gfx.font_rendering on the topic: configuration page to disable some features.

    Filter: gfx

    Some to try:

    • Set gfx.direct2d.disabled to true to disable Direct2D
    • GFX.font_rendering.directwrite.use_gdi_table_loading set to false

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed also show "BOLD" (user set).
    • Preferences can be reset to the default value using the context menu if they are set of users
    • Preferences can be changed via the context menu: Edit (string or integer) or toggle (Boolean)

    Try turning off hardware acceleration.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.
  • My errased sticker product key and I can't read all the text to reactivate my windows visa. What should I do now?

    My errased sticker product key and I can't read all the text to reactivate my windows visa. What should I do now?

    Hello

    You mean the sticker on the case of the Vista operating system pre-installed from Dell, HP, Acer, Toshiba, etc.) ?

    If you do, you can contact your computer manufacturer and ask them to send you a set of recovery disks.

    They should do this for a small fee.

    To reinstall Vista using their recovery disk/s, you start from the 1st recovery disk they provide and follow the manufacturer's instructions to reinstall:

    You need to change the Boot order to make the DVD/CD drive 1st in the boot order:

    How to change the Boot order in BIOS:

    http://pcsupport.about.com/od/fixtheproblem/SS/bootorderchange.htm

    "How to replace Microsoft software or hardware, order service packs and replace product manuals.

    http://support.Microsoft.com/kb/326246

    And if you have never received a recovery disk when you bought your computer, there should be a recovery Partition on the hard drive to reinstall Vista on how you purchased your computer.

    The recovery process can be started by pressing a particular combination of the key or keys at startup. (Power on / start)

    Maybe it's F10, F11, Alt + F10, etc., depending on the manufacturer.

    Ask them to the proper key sequence.

    And if you do not score a manufacturer of recovery on your hard drive, you should be able to make your own recovery from her disks to reinstall the operating system.

    Go to programs > name of the manufacturer of your computer > then their system or recovery tools software topics for them, depending on how it is formulated.

    If you can't find any reference to it, contact the manufacturer for advice on how to make these recovery disks.

    The methods above resettlement generally do not require allows you to provide a product key during Installation, the recovery process uses the Installation product key factory to activate automatically during the resettlement process.

    See you soon.

  • How to select all the text with QNX TextInput

    With QNX TextInput, is there a way to select all the text? Spark TextInput a selectAll() method to select all text, but I do not see a similar method in QNX TextInput. No idea how you can choose all the texts with QNX TextInput. Thank you.

    Hey French,.

    Thanks for the clarification! I think I can help you. Here is a code example to show my explanation. In the code below when a user clicks the LabelButton object it will assign the focus to your TextInput object and then select all the text in this object. The only downside is that it will not bring the keyboard. so far, we are not successfully by invoking the keyboard without the user clicking on the TextInput. in any case in the code below, we use TextInput property the textField object as a reference to the TextField object internal. from there, we use the setSelection() method to select the text inside the object from the start to the end position pos. Here's the same code:

    package
    {
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.FocusEvent;
        import flash.events.MouseEvent;
    
        import qnx.ui.buttons.LabelButton;
        import qnx.ui.text.TextInput;
    
        [SWF(width="1024",height="600",backgroundColor="#CCCCCC",frameRate="30")]
        public class TextInputTest extends Sprite
        {
    
            private var myInput:TextInput;
    
            public function TextInputTest()
            {
                super();
    
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                myInput = new TextInput();
                myInput.setSize(300,50);
    
                addChild(myInput);          
    
                var newBtn:LabelButton = new LabelButton();
                newBtn.label = "Click Me";
                newBtn.setPosition(325, 0);
    
                newBtn.addEventListener(MouseEvent.CLICK, selectMyText);
    
                addChild(newBtn);
    
            }
            private function selectMyText(e:MouseEvent):void
            {
                stage.focus = myInput;
                myInput.textField.setSelection(0, myInput.textField.length);
            }
        }
    }
    

    hope it's what you want. Good luck!

  • As of Windows XP support ends in 2014, will I still be able to get anti virus updates and all the months of security beyond 2014 patches

    As of Windows XP support ends in 2014, will I still be able to get anti virus updates and all the months of security beyond 2014 for Windows XP patches?

    As of Windows XP support ends in 2014, will I still be able to get anti virus updates and all the months of security beyond 2014 for Windows XP patches?

    From April 2014, no security/more operating system patches released at Microsoft (for the most part) for Windows XP.  It's a BONE death in the eyes of its creator.
     
    Your anti-virus software may or may not be supported - which depends on its own end of life such as decided by its supplier, and even if it is a Microsoft product, is not directly related to the lifecycle of Windows XP (you can say that as Windows XP came with no native antivirus/antimalware features.)

  • external hard drive remains unknown and microsoft updates fail all the time.

    Original title:

    drive external hard usb not recognized windows 7 ult in devices like unknwon d Manager

    External case hard IDE usb 2

    Windows 7 ultimate
    in Manger vice of with yellow mark
    not in my computer
    cannot re trying to get my old file format
    not in disk management
    2 microsoft updates fail all the time
    analysis tool I tried and it would not install

    You have two numbers;

    (1) not recognized external - usually drivers are not needed, they are integrated in win7

    (2) windows update fails

    You need to solve (2) before watching (1)

    Disconect all external devices, visit your site from PC manufacturers, or the manufacturer of the motherboard if a generic desktop computer and ensure that all drivers have been updated.

    This in a first time, and the report once that windows update has been resolved

  • Button to navigate to another page does not not work properly all the time.

    Hello

    I'm just starting to explore the ADF, I use Jdeveloper 12.1.3.0.0 and integrated weblogic server that comes with the IDE.

    I just created a simple application with a welcome page called Main.jsf and then 2 task bounded, streams called SearchStudentsFlow and Studenloansflow, each workflow has a jsf page. The home page has a single button that sends me to the first task flow, SearchStudentsFlow and I can see is the page in that workflow, AwardsSearch.jsf. Also in the AwardsSearch.jsf page I have a button that takes back me to the home page.

    The first problem I have is that when I run the application starting at the home page button in the works of the great homepage the first time, the button send me to the AwardsSearch.jsf , but once I decide to go back to the homepage and then click on the button to go to the first task flow the button does nothing. This happens whenever I decide to return to the home page of any page in my project.

    Also, I copied the entire previous project into a new project and I decided to use the ADF security infrastructure in this new project to create a log in page create users and give them different roles and levels of access.

    I created some users who have access to all pages and all the streams, but when I run the application starts the login page and I login successfully and go to the home page, the button on the home page does not work.


    I don't know why the button sometimes works, but not of others and also I do not know why when I use the login page, the button doesn't work. I don't know if these 2 problems are related or not.


    This is my code in the homepage:

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="Main.jsf" id="d1" binding="#{backingBeanScope.backing_Main.d1}">
            <af:form id="f1" binding="#{backingBeanScope.backing_Main.f1}">
                <af:panelGridLayout id="pgl1" binding="#{backingBeanScope.backing_Main.pgl1}">
                    <af:gridRow marginTop="5px" height="20%" id="gr1" binding="#{backingBeanScope.backing_Main.gr1}">
                        <af:gridCell marginStart="5px" width="34%" marginEnd="5px" id="gc1"
                                     binding="#{backingBeanScope.backing_Main.gc1}">
                            <af:image source="/images/NU_Logo_purple.jpg" shortDesc="Northwester University" id="i1"
                                      binding="#{backingBeanScope.backing_Main.i1}"
                                      inlineStyle="width:293px; height:197px;"/>
                        </af:gridCell>
                        <af:gridCell id="gc3" binding="#{backingBeanScope.backing_Main.gc3}" width="33%"/>
                        <af:gridCell id="gc4" binding="#{backingBeanScope.backing_Main.gc4}" width="33%"/>
                    </af:gridRow>
                    <af:gridRow id="gr3" binding="#{backingBeanScope.backing_Main.gr3}" height="10%">
                        <af:gridCell id="gc5" binding="#{backingBeanScope.backing_Main.gc5}"/>
                        <af:gridCell id="gc6" binding="#{backingBeanScope.backing_Main.gc6}">
                            <af:button text="Search Awards" id="b1" binding="#{backingBeanScope.backing_Main.b1}"
                                       action="goSearchAwards"/>
                        </af:gridCell>
                        <af:gridCell id="gc7" binding="#{backingBeanScope.backing_Main.gc7}"/>
                    </af:gridRow>
                    <af:gridRow marginTop="5px" height="70%" marginBottom="5px" id="gr2"
                                binding="#{backingBeanScope.backing_Main.gr2}">
                        <af:gridCell marginStart="5px" width="100%" marginEnd="5px" id="gc2"
                                     binding="#{backingBeanScope.backing_Main.gc2}"/>
                    </af:gridRow>
                </af:panelGridLayout>
            </af:form>
        </af:document>
        <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Main-->
    </f:view>
    

    And this is my code in the adfc-config. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="Main">
        <page>/Main.jsf</page>
      </view>
      <task-flow-call id="SearchStudentsFlow">
        <task-flow-reference>
          <document>/WEB-INF/SearchStudentsFlow.xml</document>
          <id>SearchStudentsFlow</id>
        </task-flow-reference>
      </task-flow-call>
      <control-flow-rule id="__3">
        <from-activity-id>Main</from-activity-id>
        <control-flow-case id="__5">
          <from-outcome>goSearchAwards</from-outcome>
          <to-activity-id>SearchStudentsFlow</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
      <managed-bean id="__4">
        <managed-bean-name>backing_AwardsSearch</managed-bean-name>
        <managed-bean-class>view.backing.AwardsSearch</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1AwardsSearch.jsf-->
      </managed-bean>
      <managed-bean id="__2">
        <managed-bean-name>backing_Main</managed-bean-name>
        <managed-bean-class>view.backing.Main</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1Main.jsf-->
      </managed-bean>
    </adfc-config>
    

    No idea why the button does not work correctly all the time?

    Thanks in advance

    Play well!

    Now, we understand the problem and can help you solve it.

    The problem is that you dropped the home page in the flow of student loan and place you thinking that you must return to the point of departure, the unlimited workflow. Actually, you don't the sheet flow loan student but simply see the homepage as part of the loan flow. The navigation rules remain those defined in the flow of student loan. Now, when you click on a button to jump to the stream of research, the target is undefined zed you simply stay on the same page, the home page.

    To make your work use case, you set a return action in the flow of student loan that return to the caller, the flow of research which, in turn, will return to his name the workflow without terminals that hold the homepage. Remove the homepage of flow of charge to students. The case of navigation allows to navigate between the button and the new return action.

    In the adf of flow research a wild-card rule that accesses the return operation sends the return flow to the home page. You must remove the sailing time pointing to research prices for the return operation because it can use the same rule of navigation of wild-card then. Then, you add a Bach student load flow navigation rule to the scholarship search page. This navigation is used for the return actionto_searchStudents.

    Timo

  • A better way to get all the text style ranges in a table

    I am trying to get all the text varies from the style of my document into one. I'm scripting in JavaScript, which I'm not very familiar with, so maybe that's the problem.

    This is what, in my view, should work:

    app.activeDocument.stories.everyItem().textStyleRanges
    

    The above doesn't give me a text string, not an array of objects of text style than I expected. If I were using Applescript I would ask just for the beaches of text style object reference, but it is not a property that I found in the javascript object model.

    So I resorted to what is slower, but gives me what I want:

    var allStyleRanges = new Array();
    for (var g = 0; g < myStories.length; g++) {
      var storyStyleRanges = (myStories[g].textStyleRanges);
      for (var s = 0; s < storyStyleRanges.length; s++) {
      allStyleRanges.push(storyStyleRanges[s]);
      };
    };
    

    Does anyone have a better way?

    Lev,

    May it as your requirment...

    alert(app.activeDocument.stories.everyItem().textStyleRanges.everyItem().getElements())
    

    Concerning

    Siraj

Maybe you are looking for