ToolTipManager in FLex4


 

ToolTipManager in FLex4

In this example you can see how we can use the tooltip using ToolTipManager.

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

Ads