I'm beginning to think that there is no way to do this in qooxdoo: create a widget add a listener to that widget for an event, e.g. "mouseup" somehow trigger that listener programmatically instead of physically clicking the widget with the mouse
var button1 = new qx.ui.form.Button("First Button", "icon/22/apps/internet-web-browser.png"); // Document is the application root var doc = this.getRoot(); // Add button to document at fixed coordinates doc.add(button1, { left : 100, top : 50 }); // Add an event listener button1.addListener("mouseup", function(e) { alert("Hello World!"); }); alert('foo'); var e = new qx.event.type.Mouse(); button1.dispatchEvent(e); I would expect that with some variation of code like this, the button1 listener function would be invoked. Has anyone out there succeeded in invoking an event handler programmatically? Ken
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel