Hi Nithya,
 
It's not there by default, but you can do it by keeping one character per
line in a Label or TextArea or TextInput. You can write a simple
VerticalLabel component that would do it for you. For example:
 
Look code below or find attached files.


Hope that helps

-abdul



1) ##VerticalTextTest.mxmL##
 
<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application width="800" height="600"
xmlns:mx="http://www.macromedia.com/2003/mxml"; xmlns:local="*">
    <local:VerticalLabel fontSize="15" text="Hey"/>
</mx:Application>

 
 
 
2) ##VerticalLabel.mxml##
 
<mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml";>
    <mx:Script>
        <![CDATA[
            
            import mx.controls.Label;
            import mx.controls.TextInput;
            import mx.controls.Text;
            
            var text:String;
            var textField;
            
            function createChildren():Void
            {
                var n = text.length;
                textField = createChild(Label,"textField");
                textField.styleName = this;
                
                for(var i=0;i<n;i++)
                {
                    textField.text+= text.charAt(i) + "\r";
                }
                
            }
         
            
        ]]>
    </mx:Script>
</mx:VBox>
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 2:34 PM
To: flexcoders
Subject: [flexcoders] Vertical Text- is it possible?


Hai!
      I want the text to be aligned vertically like:
S
H
O
P
P
I
N
G
 
Is it possible with flex? If yes, how?
 
regards,
nithya

________________________________

Yahoo! Messenger
<http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m>  - Communicate instantly..."Ping" your friends today! Download Messenger
Now
<http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m/download/index.html>  

________________________________

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]
<mailto:[EMAIL PROTECTED]> 
          
*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 






 
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/
 

Attachment: verticalTextTest.mxml
Description: Binary data

Attachment: VerticalTextComponent.mxml
Description: Binary data

Reply via email to