Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

mx Button with icon and no skin gets wrong focus rectangle

Engaged ,
Feb 02, 2017 Feb 02, 2017

Hi,

I have a button and I need it to display only label and icon so I set skin="{null}" to remove everything except label and icon. Problem is when I use TAB on keyboard - my button gets focus rectangle only around the icon. And I need it to have focus rect around whole button (label + icon).

Is there any simple workaround this?

my button example:

<mx:Button label="Cancel" overIcon="{arrow1}" outIcon="{arrow2}" skin="{null}"/>

TOPICS
ActionScript
275
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Feb 02, 2017 Feb 02, 2017

I've found a workaround.

I've made new skin in flash. The new skin is only made with transparent roudned border. So when I apply new skin on button the focus manager finds this skin and sets focus around whole button not just the icon. And since skin is transparent it doesn't disturb the visual effect I needed.

Translate
Engaged ,
Feb 02, 2017 Feb 02, 2017
LATEST

I've found a workaround.

I've made new skin in flash. The new skin is only made with transparent roudned border. So when I apply new skin on button the focus manager finds this skin and sets focus around whole button not just the icon. And since skin is transparent it doesn't disturb the visual effect I needed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines