Hi, Matt,
(B
(BThank you very much for your help!
(B
(BI read the flex document agein, and I could make it to
(Bchange the styles.
(B
(Bfollowing document
(Bhttp://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00000560.htm
(B
(BMore or less, I could get an expected result. But there is a little bit
(Bfunny semantics.
(B
(BIt could'nt function following statement.
(B StyleManager.styles.ErrorTip.fontSize = 20;
(B
(BBut, it could function following statement.     
(B StyleManager.styles.ErrorTip.setStyle("fontSize",20);
(B
(BBTW, I want to know all of global style names.
(B(for example, ErrorTip, ToolTip ...)
(BWhere can I see them?
(B
(BAnyway, thank you very much!
(B
(BYours sincerely,
(B
(BYokota Satoshi
(B[EMAIL PROTECTED]
(Bhttp://www.yokot.com/
(B
(B
(BMatt Chotin wrote:
(B> You need to set styles on the errorTip.  However adjusting the outer frame
(B> design might be difficult.  Relevant style defaults are:
(B> 
(B>  
(B> 
(B> color: 0xFFFFFF,
(B> 
(B> fontSize: 9,
(B> 
(B> fontWeight: "bold",
(B> 
(B> shadowColor: 0x000000
(B> 
(B> borderColor: 0xCE2929,
(B> 
(B> borderStyle: "errorTipRight",
(B> 
(B> marginBottom: 4,
(B> 
(B> marginLeft: 4,
(B> 
(B> marginRight: 4,
(B> 
(B> marginTop: 4
(B> 
(B>  
(B> 
(B> Matt
(B> 
(B>   _____  
(B> 
(B> From: [email protected] [mailto:[EMAIL PROTECTED] 
(B> Sent: Thursday, April 28, 2005 1:07 AM
(B> To: [email protected]
(B> Subject: [flexcoders] Size up with Validation Message font size
(B> 
(B>  
(B> 
(B> Hello,
(B> 
(B> I have a try to size up with Validation Message font size.
(B> I don't know how to switch font message size from small to large one,
(B> and how to customize message window outer frame design.
(B> If possible, I want to make it like a custom validator renderer.
(B> 
(B> I need FlexCoders's helps.
(B> 
(B> Thank you,
(B> Yours sincerely,
(B> 
(B> Yokota Satoshi
(B> [EMAIL PROTECTED]
(B> http://www.yokot.com/ <http://www.yokot.com/> 
(B> 
(B> 
(B> 
(B> 
(B>   _____  
(B> 
(B> Yahoo! Groups Links
(B> 
(B> *     To visit your group on the web, go to:
(B> http://groups.yahoo.com/group/flexcoders/
(B> <http://groups.yahoo.com/group/flexcoders/> 
(B>   
(B> *     To unsubscribe from this group, send an email to:
(B> [EMAIL PROTECTED]
(B> <mailto:[EMAIL PROTECTED]> 
(B>   
(B> *     Your use of Yahoo! Groups is subject to the Yahoo! Terms
(B> <http://docs.yahoo.com/info/terms/>  of Service. 
(B> 
(B> 
(B
(B
(B
(B 
(BYahoo! Groups Links
(B
(B<*> To visit your group on the web, go to:
(B    http://groups.yahoo.com/group/flexcoders/
(B
(B<*> To unsubscribe from this group, send an email to:
(B    [EMAIL PROTECTED]
(B
(B<*> Your use of Yahoo! Groups is subject to:
(B    http://docs.yahoo.com/info/terms/
(B 
<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; 
initialize="setStyles()"
 xmlns="*" verticalGap="0">

    <mx:Script>
    <![CDATA[
        import mx.styles.StyleManager;

        function setStyles() {
                        //StyleManager.styles.ErrorTip.fontSize =20;
                        StyleManager.styles.ErrorTip.setStyle("fontSize",20);
                        StyleManager.styles.ErrorTip.setStyle("color",0x000000);
                        
StyleManager.styles.ErrorTip.setStyle("borderColor",0xFFFFCC);
                        StyleManager.styles.ErrorTip.setStyle("marginBottom",0);
                        StyleManager.styles.ErrorTip.setStyle("marginLeft",0);
                        StyleManager.styles.ErrorTip.setStyle("marginRight",0);
                        StyleManager.styles.ErrorTip.setStyle("marginTop",0);
                        
                        //StyleManager.styles.ToolTip.fontSize = 20;
                        StyleManager.styles.ToolTip.setStyle("fontSize",20);

                }

    ]]>
    </mx:Script>
    <mx:Model id="sample">
        <number>{number.text}</number>
    </mx:Model>

    <mx:NumberValidator field="sample.number"/>

        <mx:Form>
            <mx:FormItem label="Name" required="true">
                <mx:Text text="Mouse over this text" toolTip="Size up this 
text" />
                <mx:TextInput id="number" width="200"/>
            </mx:FormItem>
        </mx:Form>

</mx:Application>

Reply via email to