Archive for the 'TextArea' Category

08
May

Determining the number of lines in a TextArea control in Flex

The following example shows how you can get the number of lines in a Flex TextArea control by using the getTextField() method (in the mx_internal namespace) and the numLines property.

Full code after the jump.

Continue reading ‘Determining the number of lines in a TextArea control in Flex’

26
Apr

Setting the disabled text color on a TextArea control in Flex

The following example shows how you can set the text color on an enabled and disabled Flex TextArea control by setting the color and disabledColor styles.

Full code after the jump.

Continue reading ‘Setting the disabled text color on a TextArea control in Flex’

25
Apr

Setting text selection on a TextArea control in Flex

The following example shows how you can set the selected text in a Flex TextArea control by using the setSelection() method.

Full code after the jump.

Continue reading ‘Setting text selection on a TextArea control in Flex’

24
Apr

Condensing HTML white space in the TextArea control in Flex

The following example shows you how you can condense white space around HTML tags using the Flex TextArea control, the htmlText property, and the condenseWhite property.

Full code after the jump.

Continue reading ‘Condensing HTML white space in the TextArea control in Flex’

22
Mar

Applying a cascading style sheet to a TextArea control in Flex

The following example shows how you can dynamically load a CSS file and apply the style sheet to a Flex TextArea control by setting the styleSheet property.

Full code after the jump.

Continue reading ‘Applying a cascading style sheet to a TextArea control in Flex’

08
Mar

Setting the text alignment in a TextArea control in Flex

The following example shows how you can left, center, right, or fully justify a block of text in the Flex TextArea control by setting the textAlign style.

Full code after the jump.

Continue reading ‘Setting the text alignment in a TextArea control in Flex’

07
Mar

Preventing line feeds in a TextArea control in Flex

The following example shows how you can prevent a user from pressing Enter in a Flex TextArea control by listening for the textInput event and checking the TextEvent object’s text property for a newline character (”\n”).

Full code after the jump.

Continue reading ‘Preventing line feeds in a TextArea control in Flex’

21
Nov

Creating a custom scroll tip function on a Flex TextArea control

The following example shows how you can create a custom scroll tip function for a TextArea control in Flex.

Full code after the jump.

Continue reading ‘Creating a custom scroll tip function on a Flex TextArea control’

21
Nov

Displaying scroll tips on a Flex TextArea control

The following example shows how you can display scroll tips on a Flex TextArea control when the user drags the scroll thumb.

Full code after the jump.

Continue reading ‘Displaying scroll tips on a Flex TextArea control’

06
Nov

Disabling live scrolling on a Flex TextArea control

The following example shows how you can toggle live scrolling on a TextArea control in Flex by setting the liveScrolling property.

Full code after the jump.

Continue reading ‘Disabling live scrolling on a Flex TextArea control’

23
Sep

Creating drop shadows on the Flex TextArea control

The following example shows how you can control the drop shadow on a Flex TextArea control using the dropShadowColor, shadowDirection, and shadowDistance styles.

Full code after the jump.

Continue reading ‘Creating drop shadows on the Flex TextArea control’

20
Sep

Limiting the amount of text you can enter into a Flex TextArea control

The following example shows how you can limit the amount of text a user can enter into a TextArea control by using the maxChars property.

Full code after the jump.

Continue reading ‘Limiting the amount of text you can enter into a Flex TextArea control’