Just so you know _rotation isn't suppoted, so we're in the ether realms 
here.  If I were you, I'd extend button, and do a _rotation on the init for 
just the label so things like width and height are relevant.

----- Original Message ----- 
From: "Graham, Jason" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, January 31, 2006 4:48 PM
Subject: RE: [flexcoders] Vertical Text on a button


The problem is I want the button to be a specific size after I rotate
it.

For example.

I want a long button that's width = 20 and height = 100% with vertical
text.

If I initially create the button with a width of 20 and height of 100%
and do the rotate the button is now horizontal and half off the screen.

If I create the button initially with width of 100% and height of 20 and
do the rotate the results get even stranger.



-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of JesterXL
Sent: Tuesday, January 31, 2006 2:00 PM
To: [email protected]
Subject: Re: [flexcoders] Vertical Text on a button

yourButton.setStyle("embedFonts", true);
yourButton.setStyle("fontFamily", "Verdana");

And ensure whatever font you are embedding is the font it's using, like
Verdana for example.  Then:

yourButton._rotation = 90;

----- Original Message ----- 
From: "jgraham_us" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, January 31, 2006 2:56 PM
Subject: [flexcoders] Vertical Text on a button


I have found examples on doing vertical text on a Label but I would
like to put vertical text on a button.

Is there an example of doing this?

The label just takes a String.





--
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








--
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










--
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








--
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/
 



Reply via email to