How to set toolTip in Tree view

491 views
Skip to first unread message

reji

unread,
Feb 2, 2008, 8:49:23 AM2/2/08
to Flex India Community
Hai All...
I am created a flex 3 application in that i used a tree
view control. i want to set tooTip for each items.How to do.if any one
know tel me.

Vinod M Jacob

unread,
Feb 4, 2008, 1:13:29 AM2/4/08
to Flex India Community
Hi-

Just try this

<mx:Tree ...dataTipFunction="getItemTip".../>

private function getItemTip(item:Object):String {
var node:XML = XML(item);
return [MESSAGE];

siri

unread,
Mar 24, 2008, 2:19:44 PM3/24/08
to Flex India Community
You also need to set showDataTips="true" for the tree.

-Siri

anil varaha

unread,
May 22, 2012, 5:12:25 AM5/22/12
to flex_...@googlegroups.com
Hi all.

Can any help me how to position the tool tip that is shown in the tree view.

Thanks in advance.

Prathama Sen

unread,
May 23, 2012, 5:45:47 AM5/23/12
to flex_...@googlegroups.com
     public function createToolTip(event:ListEvent):void{
            var item:Object=event.itemRenderer as Object;
            var frmName:Object=item.data.label;
            event.target.toolTip=null;
            event.target.toolTip=frmName;
        }
        public function removeToolTip(event:ListEvent):void{
            if(event.target.toolTip!=null){
                event.target.toolTip=null;
            }
        }

Now call this two function from the tree's itemRollOver and itemRollOut Event.

itemRollOver="createToolTip(event)" itemRollOut="removeToolTip(event)"



--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To view this discussion on the web visit https://groups.google.com/d/msg/flex_india/-/-S4pz_oFBs0J.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

347.png
Reply all
Reply to author
Forward
0 new messages