F > FStyleFormat.textSelected |
![]() ![]() ![]() |
FStyleFormat.textSelected
Availability
Flash Player 6.
Usage
myStyleFormat
.textSelected
Description
Property; an RGB color value specifying the color of selected text in components assigned to the style format. This property works with the FStyleFormat.selection property to display selected list items, and you should coordinate the colors to make the text easy to read. For example, the global style format assigns a blue color value to the selection
property used to display the selection bar in the ListBox and ComboBox components, and assigns a white color value to the textSelected
property; this color combination allows the user to view selected text easily. The color value must be in the format 0xRRGGBB.
You must use FStyleFormat.applyChanges
when updating properties with a new value.
Example
The following code assigns a value of 0xffffff
to the textSelected
property for formStyleFormat
, producing white text when the component is selected.
formStyleFormat.textSelected = 0xffffff;
See also
FStyleFormat.selection
, FStyleFormat.textDisabled
![]() ![]() ![]() |