In a previous example, “Changing the background color of an error tip in Flex”, we saw how you could change the background color of a Flex error tip by setting the borderColor style on the .errorTip CSS selector.
The following example shows how you can style the Flex .errorTip style dynamically using ActionScript using the static StyleManager.getStyleDeclaration() and setStyle() methods.
Full code after the jump.
Continue reading ‘Dynamically styling error tips in Flex’
The following example shows how you can set a custom border color on a Flex DateChooser control by setting the borderColor style.
Full code after the jump.
Continue reading ‘Setting a custom border color on a DateChooser control in Flex’
The following example shows how you can set the border color and border thickness on a Flex ComboBox control’s dropdown menu by setting the borderColor, borderThickness, and dropdownStyleName styles.
Full code after the jump.
Continue reading ‘Setting the dropdown menu border thickness and border color on a ComboBox control in Flex’
The following example shows how you can toggle which sides of a Flex TextInput control display the borderSides and borderStyle styles.
Full code after the jump.
Continue reading ‘Displaying a border on specific sides of a TextInput control in Flex’
The following example shows how you can set the border color on a Flex DateField control by setting the borderColor style using MXML, CSS, and ActionScript.
Full code after the jump.
Continue reading ‘Setting the border color on a DateField control in Flex’
The following example shows how you can set the border color on a Flex ComboBox control by setting the (drumroll) borderColor style.
Full code after the jump.
Continue reading ‘Setting a border color on the ComboBox control in Flex’
The following example shows how you can set the border color on a Flex NumericStepper control by setting the borderColor style.
Full code after the jump.
Continue reading ‘Setting the border color on a NumericStepper control in Flex’
The following example shows how you can change the background color of a Flex error tip by setting the borderColor style on the .errorTip CSS selector.
Full code after the jump.
Continue reading ‘Changing the background color of an error tip in Flex’
The following example shows how you can set the border color on a Flex ProgressBar control by setting the borderColor style.
Full code after the jump.
Continue reading ‘Setting the border color on a ProgressBar control in Flex’
The following example shows how you can customize the background alpha and background color of a Flex Alert control by setting the backgroundAlpha, backgroundColor, borderAlpha, and borderColor styles.
Full code after the jump.
Continue reading ‘Customizing the background alpha and background color of the Alert control in Flex’
The following example shows how you can change the CheckBox control’s checkmark icon color and the border color by setting the control’s iconColor and borderColor styles repectively.
Full code after the jump.
Continue reading ‘Changing a CheckBox control’s icon color and border color’
The following example shows how you can change the Button control’s borderColor and themeColor properties to one of the special Flex “halo” colors (”haloBlue”, “haloGreen”, “haloOrange” or “haloSilver”). Note that you can also use any other named or hex color as well, such as “red” or 0xFF0000.
Full code after the jump.
Continue reading ‘Setting a Flex Button control’s border color and theme color’