Hi,
My Tree Table renderer extends UIComponent.
I cannot catch the Tooltip event by using
component.addEventListener(ToolTipEvent.TOOL_TIP_CREATE,tooltipDetailCreate);

why?

this is part of the data my renderer override:
(myComponent is a class that extends UIComponent)
public function set data(value:Object):void
{
                        
    if(value != null)
    {
        _data = value; 
        this.removeAllChildren();                                       
         invalidateProperties();
         dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));           ...
        ...
        
myComponent.addEventListener(ToolTipEvent.TOOL_TIP_CREATE,tooltipDetailCreate); 
        
        var innerCellDisplay:DisplayObject = myComponent as DisplayObject;
        this.addChild(innerCellDisplay);                                        
                                                
    }
}

// create the tooltip
private function tooltipDetailCreate(event:ToolTipEvent):void { 
      var tt:PanelToolTip  = new PanelToolTip();
      var innerImage:Object = event.currentTarget;
      var myString:String = "";
     myString = myString + "width:"  + "\n";   
                         myString = myString + "width:"  + "\n";                
     tt.width  = 190; 
     tt.height = 100;                        
     tt.bodyText = myString;
        tt.titleText = "Title - " ; 
        event.toolTip = tt; 
}               

Please advise

Jo


Reply via email to