Home Tutorial Flex Flex4 Components ToolTipManager in FLex4

 
 

Share on Google+Share on Google+
ToolTipManager in FLex4
Posted on: August 30, 2010 at 12:00 AM
Advertisement
In this example you can see how we can use the tooltip using ToolTipManager.

ToolTipManager in Flex4:

In this example you can see how we can use the tooltip using ToolTipManager. The ToolTipManager provides the basic functionality of tooltip like enabling and disabling tooltip, duration of show and hide tooltip and tooltip effect etc.

Example:

<?xml version="1.0" encoding="utf-8"?>

<s:Application xmlns:fx="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" creationComplete="initApp();">

<fx:Script>

<![CDATA[

import mx.managers.ToolTipManager;

private function initApp():void {

ToolTipManager.enabled = true;

ToolTipManager.showDelay = 200;

}

]]>

</fx:Script>

<s:Panel id="pnl" title="ToolTipManager Example"

width="237" height="162"

chromeColor="#555555"

color="#FFFFFF"

backgroundColor="#000000">

<s:Button label="ToolTipManager"

toolTip="ToolTipManager Enabled" x="19" y="17"/>

</s:Panel>

</s:Application>

Output:

Running Application:

To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.

Download this code

Advertisement

Related Tags for ToolTipManager in FLex4:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: August 30, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com