Tree每一项的tooltip不显示,求助

pywepe 2011-10-01 08:19:01
连dataTipFunction函数都没调用

<mx:TabNavigator width="100%" height="100%" id="tabContainer">
<s:NavigatorContent label="好友列表" width="100%" height="100%" id="rosterList" >
<mx:Tree x="0" y="0" width="100%" height="100%" id="rosterTree"
labelField="@label" showRoot="false"
itemRenderer="com.ys.webchat.ui.RosterItemRenderer"
iconFunction="getIcon"
itemDoubleClick="rosterTree_itemDoubleClickHandler(event)"
doubleClickEnabled="true"
creationComplete="rosterTree_creationCompleteHandler(event)"
showDataTips="true"
dataTipFunction="rosterTree_dataTipFunction"
>
</mx:Tree>
</s:NavigatorContent>
</mx:TabNavigator>

protected function rosterTree_dataTipFunction(item:Object):String{
trace("fk");
return "fuck";
}

当光标移动到树的结点上果,rosterTree_dataTipFunction根本就没调用

这是什么问题,网上都说是这么添加tooltip的啊,这怎么不行呢?
谢谢


...全文
44 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

4,328

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计 Flex
社区管理员
  • Flex
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧