Is there any way that we can style individual buttons in ButtonBar in Flex
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This may be a little late but here goes an answer that may help others.
In a button bar you can use 3 styles: style for the first button (property: firstButtonStyleName), the last button (property: lastButtonStyleName) and the other buttons (property: buttonStyleName).
For each property, you would simple have to create a corresponding style as if you were styling a single button.
It would give you sth like this…
style.css:
With this, I get for each button the following style: borders in #e6e6e6 color, a gradient from #ffffff to #b8b8b9 when the button is in normal state, a reverted gradient when the user rolls over the button.
And this does the trick 🙂