Is there a way, for a Button’s “label” field, to display text over several lines? Or else to automatically “wrap” the text in several lines instead of cutting part of it?
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 isn’t possible with the standard mx:Button – you can either create your own custom component to extend Button or look for others that have already created what you need.
For example the flexlib library contains a CanvasButton which would help:
http://flexlib.googlecode.com/svn/trunk/docs/flexlib/controls/CanvasButton.html
Or if you prefer to do it yourself and create your own custom component this blog post will show you how:
http://www.forestandthetrees.com/2008/03/11/flex-multiline-button/