If you know the tab name and how you want it to be split, you can programmatically insert a newline to force the label to display in 2 lines.

 

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">

 

<mx:Script>

function manage(){

            view1.label = "Display" + "\n" +  " Content";

}

</mx:Script>

 

<mx:TabNavigator creationComplete="manage();" width="50%" tabHeight="100">

            <mx:VBox id="view1"/>

</mx:TabNavigator>

 

</mx:Application>

 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nithya karthik
Sent: Wednesday, May 25, 2005 3:12 AM
To: flexcoders
Subject: [flexcoders] Tabnavigator tab name issue

 

hai,

       I have a tab navigator with 4 canvases inside. the label for each canvas is very lenghty and i want it to be displayed in two lines.

say the label is "Display Content" ,I want it to be displayed as:

 

Display 

Content 

 

How should i be doing this?


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now



Yahoo! Groups Links

Reply via email to