The following example shows how you can set the text indent on a Spark List control in Flex 4 by creating a custom item renderer using the RichText control and setting the
Continue reading Setting a text indent on the Spark List control in Flex 4
The following example shows how you can detect when the user presses the Enter key in a Spark RichEditableText control in Flex 4 by setting the Boolean
multiLine property to false and listening for the
Continue reading Listening for the Enter key in a Spark RichEditableText control in Flex 4
The following example shows how you can set word wrapping on a Flex 4 Spark TextArea control by setting the
lineBreak style to one of the static constants in the LineBreak class (flashx.textLayout.formats.LineBreak):
- toFit (
LineBreak.TO_FIT): For lines that wrap to fit to the container width.
- explicit (
LineBreak.EXPLICIT): For lines that break only at explicit return/line feeds.
Full code after the jump.
Continue reading Setting word wrapping on the Spark TextArea control in Flex 4