On 01/04/2012 02:46 AM, Marc Puts wrote:
> As for selecting a shape by clicking on it, I think that requires a tiny bit
> of qooxdoo magic that I'll post tomorrow, when I'm back at my development
> pc.
>
And here's the promised example of how to get back the shape that you
clicked on:
var element1 = new svg.shape.Circle;
var element2 = new svg.shape.Rect;
var mouseDownHandler = function(ev) {
var shape =
qx.core.ObjectRegistry.fromHashCode(ev.getCurrentTarget().$$element);
//shape is now set to element1 or element2
}
element1.addListener("mousedown", mouseDownHandler, this);
element2.addListener("mousedown", mouseDownHandler, this);
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel