I need to show htmlText in custom tooltip created by TooltipManager.
Below is the code.
myToolTip = ToolTipManager.createToolTip(text, pt.x, pt.y, "errorTipAbove") as ToolTip;
myToolTip.setStyle("borderColor", "#FAF8CC");
myToolTip.setStyle("color", "black");
myToolTip.setStyle("fontSize","9");
I have tried the following thing.
http://flexscript.wordpress.com/2008/08/19/flex-html-tooltip-component/
But that works if we set htmlText to a tooltip eg: button.
Please help.
Just look inside the code of ToolTipManagerImpl and you’ll get your answer. Here’s how
createToolTipfunction creates toolTip:So your answer is:
Create your own utility class with your own implementation of createToolTip function. Copy all the code from Adobe’s implementation and change
using component from the page you mentioned.
PS: You need to copy
sizeTipfunction as well.