Posts tagged as:

iconField

The following example shows how you can display icons in an MX MenuBar control in Flex by setting the iconField property.

[click to continue…]

{ 2 comments }

In a previous example, “Displaying icons in a Flex PopUpButton control”, we saw how you could add icons to a PopUpButton control’s nested menu using an Array data provider.

The following example shows you how you can add icons to a pop up menu in a PopUpButton control in Flex by specifying the iconField property in the PopUpButton control’s nested Menu control using an XML data provider.

Full code after the jump.

[click to continue…]

{ 6 comments }

The following example shows how you can specify a custom field to be used for a tool tip in a Flex ButtonBar control by setting the toolTipField property.

Full code after the jump.

[click to continue…]

{ 0 comments }

This request comes to us from a faithful reader who was wondering how you can display a full image when a user clicks on a thumbnail in a HorizontalList control in Flex. My solution was to put the thumbnail image and full image URLs in the data provider and then use bindings to the HorizontalList control’s selectedItem property.

Full code after the jump.

[click to continue…]

{ 71 comments }

The following example shows how you can add icons to the LinkBar control in Flex by setting the iconField property.

Full code after the jump.

[click to continue…]

{ 4 comments }

The following example shows you how you can add items to a pop up menu in a PopUpButton control in Flex by specifying the iconField property in the PopUpButton control’s nested Menu control.

Full code after the jump.

[click to continue…]

{ 5 comments }

The following example shows how you can change the button’s label placement relative to its icon in a ButtonBar control in Flex by using the getChildAt() method and labelPlacement property.

Full code after the jump.

[click to continue…]

{ 3 comments }

The following example shows how you can add icons to the ButtonBar control in Flex.

Full code after the jump.

[click to continue…]

{ 19 comments }

Setting a custom icon field in a Flex Tree control

by Peter deHaan November 15, 2007

The following example shows how you can specify a custom icon field in a Flex Tree control to set an icon on a specific node.
Full code after the jump.

Read the full article →

Displaying icons in a Flex ComboBox control

by Peter deHaan August 18, 2007

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 [...]

Read the full article →

Displaying icons in a Flex List control

by Peter deHaan August 17, 2007

The following example demonstrates how to use embedded images in a List control so that each item in the list displays a little icon based on a certain property in the data provider. You’ll also notice that we set the textIndent style to give the label a bit more padding from the icon. Finally, we [...]

Read the full article →