[Project_owners] Attribute "tooltip" set to "_child"

eric.jung at yahoo.com eric.jung at yahoo.com
Wed Jul 26 17:08:06 EDT 2006

Why can't you do (dynamically, of course):

<image ...>
  <vbox><label .../></vbox>

This is what I do in PasswordMaker and this is also what FoxClocks does. You really can't use a nested <tooltip/> element?

----- Original Message ----
From: Didier Ernotte <didier at ernotte.com>
To: Mozdev Project Owners <project_owners at mozdev.org>
Sent: Wednesday, July 26, 2006 4:16:53 PM
Subject: [Project_owners] Attribute "tooltip" set to "_child" 


I have to create dynamicaly an image, display it, and provide a multi-line tooltip. I can't use the tooltiptext attribute because of the multi line, so I have to use the tooltip attribute. I don't want to create a tooltip , set a dynamic id, and then set that id to the tooltip attribute of the image. I have read that the tooltip attribute could be set to the "_child" value. In that case, the first tooltip object in the child tree will be used as the tooltip.
My code is

        image.setAttribute("tooltip", "_child");
        var tooltip1 = document.createElement("tooltip");
        var vbox1 = document.createElement("vbox");
        var description1 =  document.createElement("label");
        description1.setAttribute("value", "Hello world");
but when the mouse is over the image, there is no tooltip...
Am I missing something ?

Project_owners mailing list
Project_owners at mozdev.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20060726/616c13bd/attachment.htm

More information about the Project_owners mailing list