The inserts a CR into the label string, but the Button doesn't display the second line. I think the problem is that a Button's internal TextField doesn't have its multiline property set, and the measurement of the label width and height is done assuming only a single line of text.
- Gordon -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Thursday, August 25, 2005 11:38 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] the \n doesn't work in XML On 8/25/05, Nithya R <[EMAIL PROTECTED]> wrote: > i am trying to use xml for displaying the button label.... is there any > possible way of displaying it in two lines only using XML? > > i tried using as told by gordon but it didnt work.... please help... <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Button label="This label is too too long..." /> </mx:Application> works for insering a newline. Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/