Hi neethu.
Use custom label component instead of Label..
Example:
package components
{
import flash.display.DisplayObject;
import flash.text.TextFieldAutoSize;
import mx.controls.Label;
import mx.core.UITextField;
/**
* The MultiLineLabel is a control that supports multiline property
and is extended
* from mx.controls.Label
* @author flexitechy
*
*/
public class MultiLineLabel extends Label
{
//--------------------------------------------------------------------------------------
// Methods
//--------------------------------------------------------------------------------------
/**
* @public
* This override method is used to set the multilne property.
* Method Name : createChildren
**/
override protected function createChildren():void
{
// Create a UITextField to display the label.
if (!textField)
{
textField=new UITextField();
textField.styleName=this;
addChild(DisplayObject(textField));
}
super.createChildren();
textField.multiline=true;
textField.wordWrap=true;
textField.autoSize=TextFieldAutoSize.LEFT;
}
}
}
On Apr 22, 4:08 pm, neethu n <[email protected]> wrote:
> Hi All,
> My problem is to show label with id 'abc' in multiple lines in the same grid
> item.
>
> <mx:Grid x="317" y="202" width="539">
> <mx:GridRow width="100%" height="100%">
> <mx:GridItem width="50%" height="100%">
> <mx:Label id="abc" text="If the text is too big to fit in
> the grid item then it should be displayed in greater then line else normally
> " />
> </mx:GridItem>
> <mx:GridItem width="50%" height="100%">
> <mx:Label id="ok" text="nothing " />
> </mx:GridItem>
> </mx:GridRow>
> </mx:Grid>
>
> Any one pleease help me.
>
> On Tue, Apr 20, 2010 at 10:18 PM,
> <[email protected]<flex_india%[email protected]>
>
>
>
>
>
> > wrote:
> > Today's Topic Summary
>
> > Group:http://groups.google.com/group/flex_india/topics
>
> > - [flex_india:29596] Testing flex across
> > platforms<#1281c1f1d098ac82_group_thread_0>[2 Updates]
> > - [flex_india:29605] percent width into pixels
> > dynamically<#1281c1f1d098ac82_group_thread_1>[1 Update]
> > - [flex_india:29605] zoom facility in
> > charts<#1281c1f1d098ac82_group_thread_2>[1 Update]
> > - [flex_india:29598] increasing font
> > size<#1281c1f1d098ac82_group_thread_3>[2 Updates]
> > - [flex_india:29603] calling different mxml components from main.mxml
> > components <#1281c1f1d098ac82_group_thread_4> [1 Update]
> > - [flex_india:29602] advance datagrid data
> > collection<#1281c1f1d098ac82_group_thread_5>[1 Update]
> > - [flex_india:29599] How to implement picker
> > control?<#1281c1f1d098ac82_group_thread_6>[2 Updates]
> > - [flex_india:29589] toolTip help <#1281c1f1d098ac82_group_thread_7> [2
> > Updates]
> > - [flex_india:29590] Flash sound
> > equalizer<#1281c1f1d098ac82_group_thread_8>[4 Updates]
> > - [flex_india:29595] Implement text input in
> > combobox<#1281c1f1d098ac82_group_thread_9>[1 Update]
> > - [flex_india:29594] Resource Bundle for
> > XML<#1281c1f1d098ac82_group_thread_10>[1 Update]
> > - [flex_india:29592] Flex, PHP,
> > MySql<#1281c1f1d098ac82_group_thread_11>[1 Update]
>
> > Topic: [flex_india:29596] Testing flex across
> > platforms<http://groups.google.com/group/flex_india/t/ca6420c2cda5e5bb>
>
> > Scott Loarie <[email protected]> Apr 19 11:43AM -0700
> > ^<#1281c1f1d098ac82_digest_top>
>
> > I have the flash4 eclipse plugin running on my Windows machine. I'd
> > like to integrate the flex client side code that I'm building locally
> > with my remote server running on a a virtual linux machine. It
> > includes databases etc that would be difficult to set up locally in
> > Windows. All the tutorials I've seen implementing remote objects use
> > localhost for both the client and server and won't work when I point
> > the flex application to the remote server's IP and deploy the flex app
> > locally for development.
>
> > What the best practice for developing and testing my application?
> > Would you recommend I 1) set up a gui on my linux remote server and
> > upload eclipse there, 2) try to reproduce the backend/data store on my
> > windows machine for testing, or 3) is there a way to get remote
> > objects from a remote server during testing/development?
>
> > Thanks
>
> > Scottt
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Mohan Chandra <[email protected]> Apr 20 03:57AM -0700
> > ^<#1281c1f1d098ac82_digest_top>
>
> > What is mean by "won't work when I point the flex application to the
> > remote server's IP and deploy the flex app
> > locally for development" ?
> > What error are you getting?
>
> > Regards,
> > Mohan
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29605] percent width into pixels
> > dynamically<http://groups.google.com/group/flex_india/t/6a45b83e991d0150>
>
> > DME Admin <[email protected]> Apr 20 02:52PM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > In my app i am having a tab navigator which has two tabs with canvas
> > containers as its contents namely Active Reports and Reports/Expense
> > Details. Based on the canvas width i am doing certain UI manipulations.
> > when
> > i access the availableExpensesCanvas
> > width(availableExpenseCanvas.width) in
> > action script it is showing it as zero. Able to get the value when i
> > access
> > it as availableExpenseCanvas.percentwidth. The issue it is directly
> > showing
> > it as percentage value. I.e it will show 100 when is set width as 100%
> > in
> > mxml.
>
> > how to convert percent width into pixels dynamically?
> > <
> > http://askmeflash.com/qdetail/589/convert-percent-width-into-pixels-d...
>
> > *code snippets*
>
> > <mx:TabNavigator id="tn" borderStyle="solid" tabHeight="25"
> > width="100%"
> > height="100%" creationPolicy="all" change="initializeAvail()">
> > <mx:VBox label="Active Reports" toolTip="Active expense reports
> > display"
>
> > <mx:Canvas id="reportsListCanvas" width="100%" height="100%" >
> > <containers:ActiveExpenseReportsForm id="activeExpenseReportsForm"/>
> > </mx:Canvas>
> > </mx:VBox>
>
> > <mx:HBox label="Report/Expense Details" width="100%" height="100%"
> > horizontalGap="0" verticalGap="0"
> > toolTip="Available expenses display" >
>
> > <mx:Canvas id="availableExpensesCanvas" width="100%" height="100%"
>
> > <containers:AvailableExpenseForm id="availableExpensesForm"/>
> > </mx:Canvas>
>
> > </mx:HBox>
>
> > <mx:TabNavigator id="tn" borderStyle="solid" tabHeight="25"
> > width="100%" height="100%" creationPolicy="all"
> > change="initializeAvail()">
> > <mx:VBox label="Active Reports" toolTip="Active expense reports
> > display">
> > <mx:Canvas id="reportsListCanvas" width="100%" height="100%" >
> > <containers:ActiveExpenseReportsForm id="activeExpenseReportsForm"/>
> > </mx:Canvas>
> > </mx:VBox>
>
> > <mx:HBox label="Report/Expense Details" width="100%" height="100%"
> > horizontalGap="0" verticalGap="0"
> > toolTip="Available expenses display" >
>
> > <mx:Canvas id="availableExpensesCanvas" width="100%" height="100%" >
> > <containers:AvailableExpenseForm id="availableExpensesForm"/>
> > </mx:Canvas>
>
> > </mx:HBox>
>
> > thanks
> > dme
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29605] zoom facility in
> > charts<http://groups.google.com/group/flex_india/t/b42881a1dee1cce5>
>
> > yogesh patel <[email protected]> Apr 20 06:15PM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > Hi,
> > How to create zoom facility in charts like this:
>
> > http://mcxactmini.mcxindia.com/MCXOnlineCommodities.aspx
>
> > --
> > Thanks & Regards,
> > Yogesh Patel
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29598] increasing font
> > size<http://groups.google.com/group/flex_india/t/d7b2ee7d14e50631>
>
> > Alekhya Krishna <[email protected]> Apr 20 11:12AM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > Hi to All,
>
> > I have a combo box , in that comb box having some font sizes,
> > like(10x,12x,14x.....), when i select the font size, the datagrid font
> > size will be increased.
> > please provide the solution.
>
> > Thanks & Regards,
> > K.V.Ramakrishna,
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Shalu Popli Jain <[email protected]> Apr 20 08:18PM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > on change event of ComboBox, change the font size on DataGrid using
> > setStyle:
>
> > <mx:ComboBox dataProvider="{fontSizeValue}"
> > change="changeHandler(event)"/>
> > *
>
> > private* *function* changeHandler(event:Event):*void
> > *
>
> > {
>
> > adg.setStyle(*"fontSize"*, ComboBox(event.currentTarget).selectedItem)
>
> > }
> > On Tue, Apr 20, 2010 at 11:12 AM, Alekhya Krishna <
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29603] calling different mxml components from
> > main.mxml
> > components<http://groups.google.com/group/flex_india/t/99e308685f8e8844>
>
> > Alekhya Krishna <[email protected]> Apr 20 07:19PM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > Hi,
>
> > View stack is the best.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29602] advance datagrid data
> > collection<http://groups.google.com/group/flex_india/t/46be9491b5f3576e>
>
> > HISSAM <[email protected]> Apr 20 05:18AM -0700
> > ^<#1281c1f1d098ac82_digest_top>
>
> > Hi,
>
> > As per the data-provider provided to the advancedatagrid control, the
> > data is displayed according to the data arranged in the collection if
> > we don't apply any sorting on the column[ref from live docs]. I'm
> > using a grouping/tree on one column but the data rows are not
> > displayed the way they are arranged in the provider(array/array
> > collection).
>
> > Has any one faced such kinda issue?
> > Has any one one solved this problem?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29599] How to implement picker
> > control?<http://groups.google.com/group/flex_india/t/6081960b7aa3fcf>
>
> > biplab <[email protected]> Apr 19 10:10PM -0700
> > ^<#1281c1f1d098ac82_digest_top>
>
> > I want to implement the picker control in my project.But I cann't find
> > it in the Flex builder. Plz help me to implement the picker control.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > GAGAN anand <[email protected]> Apr 20 01:42PM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > Hi,
>
> > I think ColorPicker control is available in FlexBuilder. If you still
> > don't
> > find then reinstall Flex.
>
> > Regards
> > Gagan Deep
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29589] toolTip
> > help<http://groups.google.com/group/flex_india/t/235391b82f58438f>
>
> > Shalu Popli Jain <[email protected]> Apr 19 10:31PM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > you can use a custom Tooltip renderer, with advance datagrid using
> > hierarchical data provider.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Malek S <[email protected]> Apr 20 09:03AM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > hi
> > can u please paste sample code
>
> > On Mon, Apr 19, 2010 at 10:31 PM, Shalu Popli Jain <
> > [email protected]
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29590] Flash sound
> > equalizer<http://groups.google.com/group/flex_india/t/6f3485a9e42a005d>
>
> > Arindam Mojumder <[email protected]> Apr 19 08:44PM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > can you send me some example code or file or links?
>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex_india?hl=en.
>
> > --
> > -----------------------------------------------------------------------
> > With best regards
> > Arindam Mojumder
> > -----------------------------------------------------------------------
> > Flickr:-http://www.flickr.com/photos/arindam-mojumder/sets/
> > Facebook:-http://www.facebook.com/Arinda.Mojumder
> > Twitter:-http://twitter.com/arindam_arindam
> > Google Blog:-http://scripto-mania.blogspot.com/
> > Wordpress-blog:-http://nilbristi.wordpress.com/
> > -----------------------------------------------------------------------
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > [email protected] Apr 19 02:34PM -0400
> > ^<#1281c1f1d098ac82_digest_top>
>
> > I'd like to see a working sample too!
>
> > On Mon, Apr 19, 2010 at 11:14 AM, Arindam Mojumder <
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Abdul Qabiz <[email protected]> Apr 20 05:57AM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > Andre Michelle has done lot work in this area. And you can create
> > filters to modify sound output.
>
> > A quick Google search gives thread:
>
> > http://stackoverflow.com/questions/1099103/create-a-flash-equalizer-m...
>
> > >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex_india?hl=en.
>
> > --
> > Sent from my mobile device
>
> > -abdul
> > ---------------------------------------
> > http://abdulqabiz.com/blog/
> > ---------------------------------------
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Shreyas <[email protected]> Apr 20 03:48AM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > I haven't implemented anything like this. If I had to, I would have
> > done it
> > that way by using those objects.
>
> > Regards,
> > Shreyas
>
> > --
> > Regards,
> > Shreyas
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29595] Implement text input in
> > combobox<http://groups.google.com/group/flex_india/t/56ef3810c672a5e3>
>
> > Renu <[email protected]> Apr 20 07:44AM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > use item renders.
>
> > --
> > Thanks and Regards,
> > Renu
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29594] Resource Bundle for
> > XML<http://groups.google.com/group/flex_india/t/a15ce8a57eab8af4>
>
> > Abdul Qabiz <[email protected]> Apr 20 05:57AM +0530
> > ^<#1281c1f1d098ac82_digest_top>
>
> > What problem are you facing? Do you right setup for directories for
> > localized assets?
>
> > Please elaborate.
>
> > >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex_india?hl=en.
>
> > --
> > Sent from my mobile device
>
> > -abdul
> > ---------------------------------------
> > http://abdulqabiz.com/blog/
> > ---------------------------------------
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > Topic: [flex_india:29592] Flex, PHP,
> > MySql<http://groups.google.com/group/flex_india/t/84010a4a65ee495a>
>
> > [email protected] Apr 19 06:26PM -0400
> > ^<#1281c1f1d098ac82_digest_top>
>
> > Hello India,
> > I need a sample application that shows how Flex connects to a MySql
> > database
> > through PHP.
> > I also need the actual Database.
> > Can any one email a solution I can change to fit my needs?
>
> > Thanks
> > Edwin
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> >
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/flex_india?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/flex_india?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group
> athttp://groups.google.com/group/flex_india?hl=en.- Hide quoted text -
>
> - Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.