Solved

Vertical ScrollBar on RichTextArea

Posted on 2013-01-10
2
1,092 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
ID: 38763514
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
ID: 38763789
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
This article was originally published on Monitis Blog, you can check it  here .   Some years back, I worked as the CTO.  During my tenure, I had a head of IT support reporting to me.  He did his job quite well and had a commendable sense of duty…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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