here it is ('this' in the next code is a widget that extends a HBox widget):

      this._help = new
qx.ui.basic.Image("qx/icon/Oxygen/16/actions/help-contents.png");
      this.add(this._help);

      var myTT = new qx.ui.tooltip.ToolTip('the <b>initial html</b> code');
      myTT.setRich( true );
      myTT.setShowTimeout( 200 );
      this._help.setToolTip(myTT);

      var newhelp=true;
      this._help.addListener("mouseover", function (e) {
        if(newhelp)
        {
          newhelp=false;
          var req = new qx.io.remote.Request("/help.txt");
          req.addListener("completed", function (e) {
            var content=e.getContent();
            myTT.setLabel(content);
          });
          req.send();
        }

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to