If you just want to set the styles once when the application starts, using
CSS is best practice; it's fast and it decouples the styles from the code so
that you can more easily edit them. Use setStyle() when you need to
dynamically change them at runtime.

- Gordon

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 30, 2005 11:28 PM
To: [email protected]
Subject: Re: [flexcoders] Size up with Validation Message font size


Hi Gordon,

Thank you very much for your help!!

I could understand to suit styles for applications.

- in global.css
ErrorTip {
        fontSize : 20;
        color : #000000;
        borderColor : #FFFFCC;
}

or

- in mxml
mx.styles.StyleManager.styles.ErrorTip.setStyle("fontSize",20);  
mx.styles.StyleManager.styles.ErrorTip.setStyle("color",0x000000);
mx.styles.StyleManager.styles.ErrorTip.setStyle("borderColor",0xFFFFCC);

BTW, which is better as noted above ?
I think 'css' is better. I have heard the 'setStyle' method is slow.
I can change the styles by using StyleManager when I have to change it,
even though it would be slow.

Yokota Satoshi

[EMAIL PROTECTED]
http://www.yokot.com/ <http://www.yokot.com/>


Gordon Smith wrote:
> Oops.
> 
> var p:String;
> for (p in StyleManager.styles)
> {
>     trace(p);
> }
> 
> - Gordon
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, April 30, 2005 4:21 PM
> To: '[email protected]'
> Subject: RE: [flexcoders] Size up with Validation Message font size
> 
> 
> 
>>I want to know all of global style names.
> 
> 
> var p:String;
> for (p in StyleManager.styles)
> {
>     trace(i)
> }
> 
> - Gordon
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 29, 2005 10:21 AM
> To: [email protected]
> Subject: Re: [flexcoders] Size up with Validation Message font size
> 
> 
> Hi, Matt,
> 
> Thank you very much for your help!
> 
> I read the flex document agein, and I could make it to
> change the styles.
> 
> following document
>
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/ht
> ml/wwhelp.htm?context=Flex_Documentation&file=00000560.htm
> 
> More or less, I could get an expected result. But there is a little bit
> funny semantics.
> 
> It could'nt function following statement.
>  StyleManager.styles.ErrorTip.fontSize = 20;
> 
> But, it could function following statement.   
>  StyleManager.styles.ErrorTip.setStyle("fontSize",20);
> 
> BTW, I want to know all of global style names.
> (for example, ErrorTip, ToolTip ...)
> Where can I see them?
> 
> Anyway, thank you very much!
> 
> Yours sincerely,
> 
> Yokota Satoshi
> [EMAIL PROTECTED]
> http://www.yokot.com/
> 
> 
> Matt Chotin wrote:
> 
>>You need to set styles on the errorTip.  However adjusting the outer frame
>>design might be difficult.  Relevant style defaults are:
>>
>> 
>>
>>color: 0xFFFFFF,
>>
>>fontSize: 9,
>>
>>fontWeight: "bold",
>>
>>shadowColor: 0x000000
>>
>>borderColor: 0xCE2929,
>>
>>borderStyle: "errorTipRight",
>>
>>marginBottom: 4,
>>
>>marginLeft: 4,
>>
>>marginRight: 4,
>>
>>marginTop: 4
>>
>> 
>>
>>Matt
>>
>>  _____  
>>
>>From: [email protected] [mailto:[EMAIL PROTECTED] 
>>Sent: Thursday, April 28, 2005 1:07 AM
>>To: [email protected]
>>Subject: [flexcoders] Size up with Validation Message font size
>>
>> 
>>
>>Hello,
>>
>>I have a try to size up with Validation Message font size.
>>I don't know how to switch font message size from small to large one,
>>and how to customize message window outer frame design.
>>If possible, I want to make it like a custom validator renderer.
>>
>>I need FlexCoders's helps.
>>
>>Thank you,
>>Yours sincerely,
>>
>>Yokota Satoshi
>>[EMAIL PROTECTED]
>>http://www.yokot.com/ <http://www.yokot.com/> 
>>
>>
>>
>>
>>  _____  
>>
>>Yahoo! Groups Links
>>
>>*     To visit your group on the web, go to:
>>http://groups.yahoo.com/group/flexcoders/
>><http://groups.yahoo.com/group/flexcoders/> 
>>  
>>*     To unsubscribe from this group, send an email to:
>>[EMAIL PROTECTED]
>><mailto:[EMAIL PROTECTED]> 
>>  
>>*     Your use of Yahoo! Groups is subject to the Yahoo! Terms
>><http://docs.yahoo.com/info/terms/>  of Service. 
>>
>>
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to