Re: [flexcoders] ErrorString and borderColor of controls not in sink

2013-06-03 Thread doug g
Have you tried calling either textArea.invalidateProperties() or
textArea.invalidateDisplayList()? Im pretty sure that if you do that right
after you set the error string, it will reset the border color

Doug


On Thu, May 30, 2013 at 12:03 PM, ilikeflex  wrote:

> **
>
>
> Hi
>
> When errorString of the component is any value(ex 'Enter the value') then
> the borderColor of the component changes to 'red'. But when you make the
> errorString="" it does not change the borderColor of the component back for
> the first time.
>
> It change when the control lose focus.
>
> How can we make the border color to original when using errorString="" for
> the first time even the control does not loose focus.
>
> I have attached sample of the problem.
>
> Any pointers..
>
> 
> http://ns.adobe.com/mxml/2009";
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
>
>  change="textarea1_changeHandler(event)"
> />
> 
> 
>
> Thanks
> ilikeflex
>
>  
>


Re: [flexcoders] ErrorString and borderColor of controls not in sink

2013-05-31 Thread Alex Harui
Setting errorString only calls invalidateProperties.  Not sure why.  Did you 
try calling invalidateDisplayList as well?

From: ilikeflex mailto:ilikef...@yahoo.com>>
Reply-To: "flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>" 
mailto:flexcoders@yahoogroups.com>>
Date: Thursday, May 30, 2013 9:03 AM
To: "flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>" 
mailto:flexcoders@yahoogroups.com>>
Subject: [flexcoders] ErrorString and borderColor of controls not in sink



Hi

When errorString of the component is any value(ex 'Enter the value') then the 
borderColor of the component changes to 'red'. But when you make the 
errorString="" it does not change the borderColor of the component back for the 
first time.

It change when the control lose focus.

How can we make the border color to original when using errorString="" for the 
first time even the control does not loose focus.

I have attached sample of the problem.

Any pointers..


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">















Thanks
ilikeflex





[flexcoders] ErrorString and borderColor of controls not in sink

2013-05-30 Thread ilikeflex
Hi

When errorString of the component is any value(ex 'Enter the value') then the 
borderColor of the component changes to 'red'. But when you make the 
errorString="" it does not change the borderColor of the component back for the 
first time.

It change when the control lose focus. 

How can we make the border color to original when using errorString="" for the 
first time even the control does not loose focus.

I have attached sample of the problem.

Any pointers..


http://ns.adobe.com/mxml/2009"; 
   xmlns:s="library://ns.adobe.com/flex/spark" 
   xmlns:mx="library://ns.adobe.com/flex/mx" 
minWidth="955" minHeight="600">















Thanks
ilikeflex