8 Replies Latest reply on Sep 10, 2010 8:37 AM by learner_doug

    Larger tooltip text size?

    learner_doug Level 1

      How can I make my tooltip text larger?  This is how I implement my tooltips.  I didn't see anyway to use CSS for it in an <fx:Style> method, or as a property of my ToolTip object (myTip). 

       

      <![CDATA[

      import mx.controls.ToolTip;

      import mx.core.IUIComponent;

      import mx.managers.ToolTipManager;

       

       

      public var myTip:ToolTip;

       

      private function createBigTip(event:Event):void

      {

      var s:String = "-Order enters COMIT"

      myTip = ToolTipManager.createToolTip(s, 150, 150, null, IUIComponent(event.currentTarget)) as ToolTip;

      myTip.setStyle("backgroundColor",0x0e21a4);

      myTip.setStyle("color",0xFFFFFF);

      myTip.width=250;

      myTip.height=70;

      }

       

      private function destroyBigTip():void

      {

      ToolTipManager.destroyToolTip(myTip);

      }

       

      ]]>

      </fx:Script>

       

      <!--  ToolTip implemented -->

      <s:TextArea styleName="owTextArea" x="0" y="10" width="163" height="24" text="1. Queue"

       

      useHandCursor="true" buttonMode="true" editable="false" mouseChildren="false"

       

      rollOver="createBigTip(event)" rollOut="destroyBigTip()"/>

       

      ____________

      Thanks.