Skip to content

Instantly share code, notes, and snippets.

@fjakobs
Created October 15, 2009 07:40
Show Gist options
  • Save fjakobs/210764 to your computer and use it in GitHub Desktop.
Save fjakobs/210764 to your computer and use it in GitHub Desktop.
Mouse Capturing
// Create a button
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("execute", function(e) {
alert("Hello World!");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment