Tag Archive for 'getchildat()'

06
Oct

Setting the label placement on a TabBar control in Flex

In a previous example, “Styling individual tabs in a TabBar control”, we saw how you could style individual tabs in a Flex TabBar control by calling the getChildAt() method on the tab bar, and then calling setStyle() on the returned Tab reference.

The following example shows how you can loop over the tabs in a Flex TabBar control and set each tab’s labelPlacement property.

Full code after the jump.

Continue reading ‘Setting the label placement on a TabBar control in Flex’

10
Jan

Disabling individual buttons on a Flex ButtonBar control

The following example shows how you can disable individual buttons on a ButtonBar control in Flex by using the getChildAt() method and enabled property on the returned button instance.

Full code after the jump.

Continue reading ‘Disabling individual buttons on a Flex ButtonBar control’

08
Jan

Changing the label placement for a Flex ButtonBar control

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.

Continue reading ‘Changing the label placement for a Flex ButtonBar control’

19
Nov

Styling individual tabs in a TabBar control

The following example shows how you can style individual tabs in a Flex TabBar control by calling the getChildAt() method on the tab bar, and then calling setStyle() on the returned Tab reference.

A big thanks to Joan for helping me figure it out.

Full code after the jump.

Continue reading ‘Styling individual tabs in a TabBar control’