RE: [flexcoders] Flex Text Selection Problem...

2008-07-12 Thread Alex Harui
In actionscript, you can't use {} to bind.  You have to use
ChangeWatcher and/or other.mx.binding classes.

 

However, I usually just assign when the result from the server comes in
and skip binding altogether.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Toby Ashley
Sent: Friday, July 11, 2008 5:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Text Selection Problem...

 

Corey,

There are some potential workarounds which Ive seen, all using similar
techniques to the one found here -
http://labs.hellokeita.com/2008/03/13/textfield-selection-color/
<http://labs.hellokeita.com/2008/03/13/textfield-selection-color/> 

It's not ideal by any means and won't work for all situations, but
depending on what you need, it may be of use.

Cheers
toby

On Sat, Jul 12, 2008 at 12:10 AM, Corey Bray <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:


   Thanks Gordon...that will save me lots of time.


Gordon Smith wrote:
>
>
> Unfortunately, FP9 doesn't support setting the text selection color.
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>
>

>
>
> *From:* flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com>

> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com>
] *On Behalf Of *Corey Bray *Sent:*
> Friday, July 11, 2008 2:37 PM *To:* flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> 
> *Subject:* [flexcoders] Flex Text Selection Problem...
>
>
>
> Hey,
>
> I'm new to the list and was hoping I could get a little help with a
> problem in flex that is driving me nuts.
>
> Here's the problem - when you have a TextInput control whose
> background color is black and whose text is white, how do you change
> the color of the selected text so that it's distinguishable from text
> that is not selected? I have tried changing every color-related
> property I could find but was not able to change the color of the
> selection.
>
>   xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> 
> <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> >"
layout="horizontal"
> backgroundColor="#00">  TextInput { color: #FF;
> background-color: #00; backgroundAlpha: 0.0; dropShadowEnabled:
> false; borderThickness: 2; borderStyle: solid; font-size: 18; }
> 
>
> 
>
> 
>
> Corey...
>
>




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
<http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> 

Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
<http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! Groups
Links

   http://groups.yahoo.com/group/flexcoders/
<http://groups.yahoo.com/group/flexcoders/> 


   (Yahoo! ID required)

   mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 



 

 



Re: [flexcoders] Flex Text Selection Problem...

2008-07-12 Thread Toby Ashley
Corey,

There are some potential workarounds which Ive seen, all using similar
techniques to the one found here -
http://labs.hellokeita.com/2008/03/13/textfield-selection-color/

It's not ideal by any means and won't work for all situations, but depending
on what you need, it may be of use.

Cheers
toby

On Sat, Jul 12, 2008 at 12:10 AM, Corey Bray <[EMAIL PROTECTED]> wrote:

>
>Thanks Gordon...that will save me lots of time.
>
> Gordon Smith wrote:
> >
> >
> > Unfortunately, FP9 doesn't support setting the text selection color.
> >
> >
> >
> > Gordon Smith
> >
> > Adobe Flex SDK Team
> >
> >
> >
> > 
> >
> >
> > *From:* flexcoders@yahoogroups.com
> > [mailto:[EMAIL PROTECTED] *On Behalf Of *Corey Bray *Sent:*
> > Friday, July 11, 2008 2:37 PM *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Flex Text Selection Problem...
> >
> >
> >
> > Hey,
> >
> > I'm new to the list and was hoping I could get a little help with a
> > problem in flex that is driving me nuts.
> >
> > Here's the problem - when you have a TextInput control whose
> > background color is black and whose text is white, how do you change
> > the color of the selected text so that it's distinguishable from text
> > that is not selected? I have tried changing every color-related
> > property I could find but was not able to change the color of the
> > selection.
> >
> >   > xmlns:mx="http://www.adobe.com/2006/mxml
> > " layout="horizontal"
> > backgroundColor="#00">  TextInput { color: #FF;
> > background-color: #00; backgroundAlpha: 0.0; dropShadowEnabled:
> > false; borderThickness: 2; borderStyle: solid; font-size: 18; }
> > 
> >
> > 
> >
> > 
> >
> > Corey...
> >
> >
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


Re: [flexcoders] Flex Text Selection Problem...

2008-07-11 Thread Corey Bray

Thanks Gordon...that will save me lots of time.

Gordon Smith wrote:
> 
> 
> Unfortunately, FP9 doesn't support setting the text selection color.
> 
> 
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
> 
> 
> 
> 
> 
> *From:* flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] *On Behalf Of *Corey Bray *Sent:*
> Friday, July 11, 2008 2:37 PM *To:* flexcoders@yahoogroups.com 
> *Subject:* [flexcoders] Flex Text Selection Problem...
> 
> 
> 
> Hey,
> 
> I'm new to the list and was hoping I could get a little help with a 
> problem in flex that is driving me nuts.
> 
> Here's the problem - when you have a TextInput control whose
> background color is black and whose text is white, how do you change
> the color of the selected text so that it's distinguishable from text
> that is not selected? I have tried changing every color-related
> property I could find but was not able to change the color of the
> selection.
> 
>   xmlns:mx="http://www.adobe.com/2006/mxml 
> " layout="horizontal"
> backgroundColor="#00">  TextInput { color: #FF; 
> background-color: #00; backgroundAlpha: 0.0; dropShadowEnabled:
> false; borderThickness: 2; borderStyle: solid; font-size: 18; } 
> 
> 
> 
> 
> 
> 
> Corey...
> 
> 



RE: [flexcoders] Flex Text Selection Problem...

2008-07-11 Thread Gordon Smith
Unfortunately, FP9 doesn't support setting the text selection color.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Corey Bray
Sent: Friday, July 11, 2008 2:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Text Selection Problem...

 

Hey,

I'm new to the list and was hoping I could get a little help with a 
problem in flex that is driving me nuts.

Here's the problem - when you have a TextInput control whose background 
color is black and whose text is white, how do you change the color of 
the selected text so that it's distinguishable from text that is not 
selected? I have tried changing every color-related property I could 
find but was not able to change the color of the selection.


http://www.adobe.com/2006/mxml
 " 
layout="horizontal" backgroundColor="#00">

TextInput
{
color: #FF;
background-color: #00;
backgroundAlpha: 0.0;
dropShadowEnabled: false;
borderThickness: 2;
borderStyle: solid;
font-size: 18;
}






Corey...