Hi All

I am trying to use ToolTip and ToolTipManager to implement a popup that comes up when I click an icon. I want the popup to be associated with my object, and it will have additional controls in it. Basically looking for similar behavior as a ToolTip in that I want it to popup above other components and have it's location tied to my object.

The problem is that I don't want to invoke the tooltip on hover but when I want it, and therefore can't intercept the event as the examples show to put in my custom ToolTip. I monkey patched ToolTipManagerImpl to fix a problem with the createToolTip method to get it to use my custom tooltip and managed to get it working with

var savedClass:Class = ToolTipManager.toolTipClass;
ToolTipManager.toolTipClass = MyTip;
var myTip:MyTip = ToolTipManager.createToolTip(s,10,10) as MyTip;
ToolTipManager.toolTipClass = savedClass;

But aside from the negatives of monkey patching this feels wrong.

Can anyone suggest an alternative method to get the same behavior without using ToolTips?

thanks
charles

Reply via email to