Hi Ofir,
I ran into basically the same scenario... well there are minor differences, I'm using a Flex mx.controls.List and there's a renderer set on it, the renderer is an extension of checkbox, I wanted to have tighter control over the tool-tips so I can choose to display ancillary information as opposed to the full-text (and only when truncated). I tried poking around with some things based on looking at the ToolTipManager source but using the internal register method wasn't working out, ultimately I did basically what you said and that seems to be working without issue. So wondering whats the issue with using your own event handlers, you can still use the built in ToolTipManager methods for showing/hiding so it appears relatively clean. Code below is from the renderer itself:
private var myToolTip:IToolTip;
public function FilterItemRenderer() {
addEventListener(MouseEvent.MOUSE_OVER, mouseOver_handler);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut_handler);
}
private function mouseOver_handler(event:MouseEvent):void
{
//In my case using the data elements of the DP to carry the info for tooltips
if(data.hasOwnProperty("toolTip") && data.toolTip)
myToolTip = ToolTipManager.createToolTip(data.toolTip, event.stageX+5, event.stageY-5)
}
private function mouseOut_handler(event:MouseEvent):void
{
if(myToolTip)
ToolTipManager.destroyToolTip(myToolTip);
myToolTip=null;
}
override public function get toolTip():String
{
return null;
}
So I guess my answer is no I don't see any way to do this outside of what you suggested, but once again could you clarify what the issue with this is?
Thanks and good luck,
Shaun