hi Flexcoders,
does anybody know how I can make a text
selectable in a Spark <s:RichText-Component?
I know I could use the <s:TextArea instead:
<s:TextArea width="400" height="100">
  <s:text>This is a multiline, editable Spark TextArea control. If you need
a non-editable multiline control, use the Text control.</s:text>
</s:TextArea>

... but we don't want to have any scrollbars for the
text. In our projects we always use selectable texts.
If the <s:RichText-component does not provide this
functionality, we would never use this component.
Here is the very simple Flex 4 - code I am dealing with:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
 xmlns:fx="http://ns.adobe.com/mxml/2009";
 xmlns:mx="library://ns.adobe.com/flex/halo"
 xmlns:s="library://ns.adobe.com/flex/spark"
 width="100%" height="100%"
 >

 <s:Graphic>
  <s:RichText x="0" y="0"
  width="75"
  fontFamily="Times"
  fontSize="15"
  >
  <s:text>Hello World</s:text>
  </s:RichText>
 </s:Graphic>

</s:Application>
Regards,
masu

Reply via email to