The following example shows how you can set different fonts for different items in a Flex ComboBox control’s dropdown menu by using a custom item renderer.
Full code after the jump.
Continue reading ‘Displaying different fonts in a dropdown menu on a ComboBox control in Flex’
The following example shows how you can set the label color on a disabled Flex ComboBox control by setting the disabledColor style.
Full code after the jump.
Continue reading ‘Setting the label color on a disabled ComboBox 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 disable keyboard navigation in a Flex ComboBox control by extending the ComboBox class and overriding the protected keyDownHandler() method.
Full code after the jump.
Continue reading ‘Disabling keyboard navigation on the ComboBox control in Flex’
The following example shows how you can set a background color for a selected item in a disabled Flex ComboBox control by setting the selectionDisabledColor style.
Full code after the jump.
Continue reading ‘Setting a selection disabled color on a ComboBox control’s dropdown menu in Flex’
The following example shows how you can change the text roll over color for a Flex ComboBox control by setting the textRollOverColor style.
Full code after the jump.
Continue reading ‘Setting the text roll over color on a ComboBox control in Flex’
The following example shows how you can specify a custom icon function on a Flex ComboBox control by setting the iconFunction property on the ComboBox control’s dropdown menu.
Full code after the jump.
Continue reading ‘Specifying a custom icon function on a ComboBox control in Flex’
In a previous example, “Setting the item background roll over color on a ComboBox control in Flex”, we saw how you could change the item background roll over color for a ComboBox control by setting the rollOverColor style.
The following example shows how you can change the selected item background color for a Flex ComboBox control by setting the selectionColor style.
Full code after the jump.
Continue reading ‘Setting the selected item background color on a ComboBox control in Flex’
The following example shows how you can change the item background roll over color for a Flex ComboBox control by setting the rollOverColor style.
Full code after the jump.
Continue reading ‘Setting the item background roll over color on a ComboBox control in Flex’
The following example shows how you can prevent users from changing the value in a Flex ComboBox control by setting the dropdown menu’s selectable property.
Full code after the jump.
Continue reading ‘Preventing users from changing the ComboBox control in Flex’
The following example shows how you can toggle the drop shadow on the Flex ComboBox control by setting the dropShadowEnabled style on the ComboBox control’s dropdown menu.
Full code after the jump.
Continue reading ‘Toggling the drop shadow on the ComboBox control in Flex’
The following example shows how you can toggle the item roll over hightlighting on a Flex ComboBox control’s dropdown menu by setting the useRollOver style using ActionScript or CSS.
Full code after the jump.
Continue reading ‘Toggling item roll over highlighting on a ComboBox control in Flex’
The following example shows how you can use an embedded font with the Flex ComboBox control by setting the fontFamily style and dropdownStyleName style.
Full code after the jump.
Continue reading ‘Using embedded fonts with the ComboBox control in Flex’
The following example shows how you can enable or disable live scrolling on a Flex ComboBox control’s dropdown menu by setting the liveScrolling property on the ComboBox control’s dropdown property.
Full code after the jump.
Continue reading ‘Toggling live scrolling on a ComboBox control’s dropdown menu in Flex’
In a previous example, “Setting the icon color on a ComboBox control in Flex”, we saw how you could set the icon (arrow) color on a Flex ComboBox control by setting the iconColor style.
The following example shows how you can set the icon color of the arrow icons in the Flex ComboBox control’s dropdown menu only without changing the icon color of the ComboBox arrow itself by setting the iconColor style on the ComboBox control’s dropdown property.
Full code after the jump.
Continue reading ‘Setting the icon color on a ComboBox control’s dropdown menu in Flex’