3 Replies Latest reply on Aug 15, 2010 3:43 AM by Jan Van hooydonck

    Tool Tip style not getting affected

    Flex Rock Level 1

      Hi,

           This is the code i have in my style sheet

      ToolTip {
         backgroundColor: #330099;
         color: #ffffff;
      }

       

      I have included in my source file.But its not getting affected in the list box tool tip.

       

      Thanks & Regards,

      Jayagopal P.S

        • 1. Re: Tool Tip style not getting affected
          Flex harUI Adobe Employee

          Does it work for other tooltips?

          • 2. Re: Tool Tip style not getting affected
            Flex Rock Level 1

            No its not getting affected for any tool tips.

            • 3. Re: Tool Tip style not getting affected
              Jan Van hooydonck

              Use it like this, this works:

               

              private function setToolTipStyle():void {

               

               

                   styleManager.getStyleDeclaration("mx.controls.ToolTip").setStyle("fontStyle","bold");    

                   styleManager.getStyleDeclaration("mx.controls.ToolTip").setStyle("fontSize","12");

                   styleManager.getStyleDeclaration("mx.controls.ToolTip").setStyle("fontFamily","Arial");

                   styleManager.getStyleDeclaration("mx.controls.ToolTip").setStyle("color","#ED8805");

                   styleManager.getStyleDeclaration("mx.controls.ToolTip").setStyle("backgroundColor","#FCFC FC");

                   styleManager.getStyleDeclaration("mx.controls.ToolTip").setStyle("borderStyle","solid");

                   styleManager.getStyleDeclaration("mx.controls.ToolTip").setStyle("paddingTop","2");

                   styleManager.getStyleDeclaration("mx.controls.ToolTip").setStyle("paddingBottom","2");

               

              }

               

              Cheers

              JanTheMan