Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-15920

It should be easier to skin a ButtonBar control's various icon states (upIcon, overIcon, downIcon, disabledIcon, etc)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 4.0 (Release)
    • None
    • mx: Button Bar
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Submitting an ECR since I've seen this question come up a few times and had at least 2 separate people ask if this is possible, and if so, how do you do it.

      Steps to reproduce:
      1. Create a ButtonBar control and try and assign unique icons for the base states (up, down, over).

      Actual Results:
      You can easily set the icon style when using an Array/ViewStack as a data provider. But there doesnt seem to be an "easy" way to set upIcon, overIcon, downIcon separately.

      Expected Results:
      It's possible, but too tricky. It should be easier.

      Workaround (if any):
      (a) use the FCK to create an "uber-button" which defines its own states: up, over, down, disabled, selectedUp, selectedOver, selectedDown, selectedDisabled
      (b) using ActionScript, listen for the creationComplete event from the ButtonBar control, then use <ButtonBar>.getChildAt() to loop over each ButtonBar child button instance and manually set the icon states, or set the styleName property on the ButtonBarButton instance.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: