Hello,
I'm using a Canvas to do some WebGL, so I'd like to be able to change the
icon based on the command being used. Unfortunately, when I setCursor on
the canvas object (even as a test), it does not change.
Any ideas?
//Create the outside container
var container = new qx.ui.container.Composite(new
qx.ui.layout.VBox());
//Let it grow real big
container.setAllowStretchX(true);
//Create a horizontal pane
var pane = new qx.ui.splitpane.Pane("horizontal", {width: "100%"});
this.__pane = pane;
// Create container with fixed dimensions for the left:
var container1 = new qx.ui.container.Composite(new
qx.ui.layout.Grow).set({
width : 200,
decorator : "main"
});
var container2 = new qx.ui.container.Composite(new
qx.ui.layout.Canvas()).set({
padding : 0,
decorator : "main"
});
//Create a canvas object that consumes all of the right pane. This is
our rendering space for WebGL (hopefully)
//If using IE, throw a 'WTF'
if (qx.core.Variant.isSet("qx.client", "mshtml"))
{
var rendercanvas = new qx.ui.container.Composite(new
qx.ui.layout.HBox());
rendercanvas.add(new qx.ui.basic.Label("Canvas is not support in
Internet Explorer!").set({
rich : true,
alignX : "center",
alignY : "middle"
}));
}
else
{
var rendercanvas = new qx.ui.embed.Canvas().set({
});
}
//Set the id of the canvas so we can grab it with GLGE
rendercanvas.getContentElement().setAttribute("id", "rendercanvas");
//Test
rendercanvas.setCursor("wait");
// Add the canvas to the container
container2.add(rendercanvas, {edge: 0, flex: 1});
// Add the first container to the pane. Flex = 0 means that this child
should not grow
pane.add(container1, 0);
// Add the second container. Flex = 1 means that this child should
consume all available space.
pane.add(container2, 1);
//Add the panes to the main container
container.add(pane, {edge: 0, flex: 1, height: "100%"});
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Canvas-element-does-not-seem-to-support-setCursor-tp5887926p5887926.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel