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 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 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’
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 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 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’
The following example shows how you can create a variable row height item renderer on a Flex ComboBox control by setting the variableRowHeight property on the ComboBox control’s dropdown property.
Full code after the jump.
Continue reading ‘Creating a variable row height item renderer on a ComboBox control in Flex’
In a previous example, “Displaying scroll tips on a ComboBox control in Flex”, we saw you can toggle scroll tips on a Flex ComboBox control’s dropdown menu by setting the showScrollTips and dropdown properties.
The following example shows you how you can format the scroll tip on a Flex ComboBox control by setting the scrollTipFunction property on the ComboBox control’s dropdown property.
Full code after the jump.
Continue reading ‘Formatting scroll tips on a ComboBox control in Flex’
The following example shows how you can toggle scroll tips on a Flex ComboBox control’s dropdown menu by setting the showScrollTips property on the ComboBox control’s dropdown property.
Full code after the jump.
Continue reading ‘Displaying scroll tips on a ComboBox control in Flex’
I did a post the other day on “Displaying icons in a Flex List control”, and figured since the ComboBox control uses the List control internally for the dropdown menu, making the ComboBox control display icons also should be pretty trivial. Well, after about 2 minutes of analyzing the documentation, it turns out it is pretty simple. The trick was to set the iconField property on the ComboBox instance’s dropdown property, which is a reference to the combo box’s internal List control.
Full code after the jump.
Continue reading ‘Displaying icons in a Flex ComboBox control’