In an earlier example, “Positioning an icon within a button using the Button.labelPlacement property”, we saw how you can set a Flex Button control’s label placement using the labelPlacement property.
The following example shows how you can detect when the labelPlacement property has changed using the labelPlacementChanged event.
Full code after the jump.
Continue reading ‘Detecting when the label placement changes on a Button control in Flex’
The following example shows how you can set the label placement on a series of RadioButton controls in a Flex RadioButtonGroup by setting the labelPlacement property.
Full code after the jump.
Continue reading ‘Setting the label placement on a RadioButtonGroup in Flex’
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’
The following example shows how you can control the amount of text indenting on a progress bar label.
Full code after the jump.
Continue reading ‘Setting a Flex ProgressBar control’s text indent’
The following example shows how you can change the track height of a ProgressBar control in Flex.
Full code after the jump.
Continue reading ‘Changing the track height of a Flex ProgressBar control’
The following example shows how you can use the Button class’s textAlign style and labelPlacement property to control the text layout in a Button control.
Full code after the jump.
Continue reading ‘Changing a Button control’s text alignment and label placement’
While probably not very useful to most, this is a quick post on changing the CheckBox control’s labelPlacement property to control where the text appears in relation to the check box.
Full code after the jump.
Continue reading ‘Changing a CheckBox control’s label placement’
Probably not too surprising to anybody, but you can easily control the location of an icon within a Button control by setting the button’s labelPlacement property.
Full code after the jump.
Continue reading ‘Positioning an icon within a button using the Button.labelPlacement property’
Here was a neat trick I learnt today. You can set a ProgressBar control’s labelPlacement property to “center” and have it appear within the progress bar itseslf. Pretty handy!
And just because that alone wasn’t really an interesting entry, I created a second progress bar which uses “polled” mode to determine how much of an FLV has loaded (it monitors the bytesLoaded and bytesTotal properties of the UI object specified in the source parameter, which in this case is the VideoDisplay control). Finally I tweaked the label property to add the units (kilobytes) and set the conversion property to 1024 to convert from bytes to kilobytes. Whew!
Full code after the jump.
Continue reading ‘Setting the ProgressBar control’s labelPlacement, mode, and conversion properties’