Re: [flexcoders] Highlighting Label text characters

2009-02-02 Thread Greg Hess
Hi Alex,

My ItemRenderer is actually a VBox with an Image, Label and TextInput
so it is all wired up differently.

Still not sure the best way to do this, but maybe adding truncating
functionality to a TextField/TextArea would be easier...

Cheers,

Greg


On Sat, Jan 31, 2009 at 12:40 AM, Alex Harui aha...@adobe.com wrote:
 A Label as a renderer will be trying to reset its .text from the
 dataprovider data unless you've wired it up differently.



 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Greg Hess
 Sent: Friday, January 30, 2009 12:50 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Highlighting Label text characters



 Well, once I can get the text to highlight in the Label, I will need
 to do the same in the truncated tooltip.

 On Fri, Jan 30, 2009 at 3:46 PM, Tracy Spratt tspr...@lariatinc.com wrote:
 What will happen if the matched characters are in the truncated part?



 Tracy Spratt
 Lariat Services

 Flex development bandwidth available

 

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Greg Hess
 Sent: Friday, January 30, 2009 2:52 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Highlighting Label text characters



 Hi All,

 I am displaying search results in a DataGrid and I have a custom
 ItemRenderer for the Name column and I need to highlight the text in
 the Label that matched the search query. I have seen support for this
 in TextArea and TextField.setSelection(..) and also done with HTML
 text however I need the truncating feature of the Label.

 I tried extending Label and providing a highlight( text:String )
 function that calls down to the Label internal
 TextField.setSelection(..) but it is not working...not sure why...

 Does anyone know how I can achieve this?

 Any help much appreciated,

 Greg



 


RE: [flexcoders] Highlighting Label text characters

2009-01-30 Thread Tracy Spratt
What will happen if the matched characters are in the truncated part?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Hess
Sent: Friday, January 30, 2009 2:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Highlighting Label text characters

 

Hi All,

I am displaying search results in a DataGrid and I have a custom
ItemRenderer for the Name column and I need to highlight the text in
the Label that matched the search query. I have seen support for this
in TextArea and TextField.setSelection(..) and also done with HTML
text however I need the truncating feature of the Label.

I tried extending Label and providing a highlight( text:String )
function that calls down to the Label internal
TextField.setSelection(..) but it is not working...not sure why...

Does anyone know how I can achieve this?

Any help much appreciated,

Greg

 



Re: [flexcoders] Highlighting Label text characters

2009-01-30 Thread Greg Hess
Well, once I can get the text to highlight in the Label, I will need
to do the same in the truncated tooltip.



On Fri, Jan 30, 2009 at 3:46 PM, Tracy Spratt tspr...@lariatinc.com wrote:
 What will happen if the matched characters are in the truncated part?



 Tracy Spratt
 Lariat Services

 Flex development bandwidth available

 

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Greg Hess
 Sent: Friday, January 30, 2009 2:52 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Highlighting Label text characters



 Hi All,

 I am displaying search results in a DataGrid and I have a custom
 ItemRenderer for the Name column and I need to highlight the text in
 the Label that matched the search query. I have seen support for this
 in TextArea and TextField.setSelection(..) and also done with HTML
 text however I need the truncating feature of the Label.

 I tried extending Label and providing a highlight( text:String )
 function that calls down to the Label internal
 TextField.setSelection(..) but it is not working...not sure why...

 Does anyone know how I can achieve this?

 Any help much appreciated,

 Greg

 


RE: [flexcoders] Highlighting Label text characters

2009-01-30 Thread Tracy Spratt
Interesting problem.  I think I might add truncate functionality to a
text-based itemRenderer rather than add highlighting to Label.  I
haven't done either, so take that into account.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Hess
Sent: Friday, January 30, 2009 3:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Highlighting Label text characters

 

Well, once I can get the text to highlight in the Label, I will need
to do the same in the truncated tooltip.

On Fri, Jan 30, 2009 at 3:46 PM, Tracy Spratt tspr...@lariatinc.com
mailto:tspratt%40lariatinc.com  wrote:
 What will happen if the matched characters are in the truncated part?



 Tracy Spratt
 Lariat Services

 Flex development bandwidth available

 

 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Greg Hess
 Sent: Friday, January 30, 2009 2:52 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Highlighting Label text characters



 Hi All,

 I am displaying search results in a DataGrid and I have a custom
 ItemRenderer for the Name column and I need to highlight the text in
 the Label that matched the search query. I have seen support for this
 in TextArea and TextField.setSelection(..) and also done with HTML
 text however I need the truncating feature of the Label.

 I tried extending Label and providing a highlight( text:String )
 function that calls down to the Label internal
 TextField.setSelection(..) but it is not working...not sure why...

 Does anyone know how I can achieve this?

 Any help much appreciated,

 Greg

 

 



RE: [flexcoders] Highlighting Label text characters

2009-01-30 Thread Alex Harui
A Label as a renderer will be trying to reset its .text from the dataprovider 
data unless you've wired it up differently.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Greg Hess
Sent: Friday, January 30, 2009 12:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Highlighting Label text characters


Well, once I can get the text to highlight in the Label, I will need
to do the same in the truncated tooltip.

On Fri, Jan 30, 2009 at 3:46 PM, Tracy Spratt 
tspr...@lariatinc.commailto:tspratt%40lariatinc.com wrote:
 What will happen if the matched characters are in the truncated part?



 Tracy Spratt
 Lariat Services

 Flex development bandwidth available

 

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On
 Behalf Of Greg Hess
 Sent: Friday, January 30, 2009 2:52 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Highlighting Label text characters



 Hi All,

 I am displaying search results in a DataGrid and I have a custom
 ItemRenderer for the Name column and I need to highlight the text in
 the Label that matched the search query. I have seen support for this
 in TextArea and TextField.setSelection(..) and also done with HTML
 text however I need the truncating feature of the Label.

 I tried extending Label and providing a highlight( text:String )
 function that calls down to the Label internal
 TextField.setSelection(..) but it is not working...not sure why...

 Does anyone know how I can achieve this?

 Any help much appreciated,

 Greg