• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1149
  • Last Modified:

Vertical ScrollBar on RichTextArea

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
zerog
Asked:
zerog
1 Solution
 
CyanBlueCommented:
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
 
zerogAuthor Commented:
Great stuff, works perfectly. Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now