In a previous example, “Auto-scrolling a TextArea control in Flex”, we saw how you can auto-scroll a Flex TextArea control when new content is added by setting the verticalScrollPosition property to the value of the maxVerticalScrollPosition property.
The following example shows how you can auto-scroll a Flex DataGrid control using the ArrayCollection object’s collectionChange event, and the verticalScrollPosition and maxVerticalScrollPosition properties
Full code after the jump.
Continue reading ‘Creating an auto-scrolling DataGrid control in Flex’
The following example shows how you can create an auto-repeating Flex Gumbo Soark Button control by setting the Boolean autoRepeat property.
Full code after the jump.
Continue reading ‘Creating an auto-repeating Spark Button control in Flex Gumbo’
The following example shows how you can set the icon color of a disabled Flex CheckBox control by setting the disabledIconColor style.
Full code after the jump.
Continue reading ‘Setting the arrow icon color of a disabled CheckBox control in Flex’
The following example shows how you can style the last button in a Flex ButtonBar control by setting the lastButtonStyleName style.
Full code after the jump.
Continue reading ‘Styling the last button in a ButtonBar control in Flex’
The following example shows how you can progammatically scroll the Flex TextInput control by setting the horizontalScrollPosition property.
Full code after the jump.
Continue reading ‘Setting the horizontal scroll position in the TextInput control in Flex’
The following example shows how you can set the check box fill colors on a Flex CheckBox control by setting the fillColors style.
Full code after the jump.
Continue reading ‘Setting the fill colors on a CheckBox control in Flex’
The following example shows how you can set the text and theme color on a Flex CheckBox control based on whether the control is selected or not.
Full code after the jump.
Continue reading ‘Setting the label color on a CheckBox control in Flex’
The following example shows how you can set the text color on a disabled Flex CheckBox control by setting the disabledColor style.
Full code after the jump.
Continue reading ‘Setting the disabled text color on a CheckBox control in Flex’
The following example shows how you can set the text color of a Flex DataGrid control’s column header text by setting the headerStyleName and color styles.
Full code after the jump.
Continue reading ‘Setting the column header text color on a DataGrid control in Flex’
The following example shows how you can set the header colors on a Flex DataGrid control by setting the headerColors style to an array of two colors to use for the background gradient.
Full code after the jump.
Continue reading ‘Setting the header colors on the DataGrid control in Flex’
The following example shows how you can toggle buttons in a Flex ToggleButtonBar control by setting the Boolean toggleOnClick property.
Full code after the jump.
Continue reading ‘Toggling buttons in a ToggleButtonBar control in Flex’
The following example shows how you can set the margins on a Flex Gumbo FxTextArea control by setting the marginLeft, marginRight, marginTop, and marginBottom styles.
Full code after the jump.
Continue reading ‘Setting margins on a FxTextArea control in Flex Gumbo’
The following example shows you how you can toggle between plain text and text masked as a password by setting the displayAsPassword property on a Flex Gumbo Spark TextInput control.
Full code after the jump.
Continue reading ‘Displaying a Spark TextInput control’s text as a password in Flex Gumbo’
The following example shows how you can export the contents of a Flex Gumbo FxTextArea control by calling the export() method.
Full code after the jump.
Continue reading ‘Exporting the text in a FxTextArea control in Flex Gumbo’