Solved

Vertical ScrollBar on RichTextArea

Posted on 2013-01-10
2
1,074 Views
Last Modified: 2013-01-10
Greetings.

Can someone please assist with showing me how to put a vertical scroll bar on a rich text area. I'm using flash builder 4.6.

Thanks

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

text.mxml file
------------------

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                 xmlns:s="library://ns.adobe.com/flex/spark"
                                 xmlns:mx="library://ns.adobe.com/flex/mx">
      <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>
      <fx:Script>
            
            <![CDATA[
                  import spark.utils.TextFlowUtil;
                  
                  XML.ignoreWhitespace = false;
            ]]>
                  
      </fx:Script>
      <fx:Declarations>
            <fx:XML id="text1" source="text1.xml" />
      </fx:Declarations>
      
      <s:RichText id="richTxt" width="338" height="167" horizontalCenter="0"
                        textFlow="{TextFlowUtil.importFromXML(text1)}"
                        verticalCenter="-8"/>

</s:WindowedApplication>

---------------
0
Comment
Question by:zerog
2 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
Comment Utility
I am doing something like this to add the scroller...

CyanBlue
<s:Scroller id="scroller" width="100%" height="100%" minViewportInset="1" focusEnabled="false"
			skinClass="com.company.skins.ScrollBarSkin">
	<s:Group clipAndEnableScrolling="true">
		<s:RichText width="97%" paddingBottom="15"
					textAlign="left" fontFamily="SOMEFONT" fontSize="24" color="#000000" text="" textFlow="{textFlowData}" />
	</s:Group>
</s:Scroller>

Open in new window

0
 

Author Closing Comment

by:zerog
Comment Utility
Great stuff, works perfectly. Thanks
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Clickable link on fields from mysql 7 330
Flex automation testing 8 687
Adobe Error Message - kenlly.dll 7 666
doubt future Flex 4 407
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now