Hi Josef
welcome to the world of Qooxdoo. I'm sure you will be really impressed since
you go deeper.
I never used moving a widget expect of windows widgets but please try this code
to use your subclassed label extension:
var label = new custom.MovableLabel("hello world");
Regards Mustafa Sak
Von meinem iPhone gesendet
Am 27.01.2011 um 10:28 schrieb josefkoller <[email protected]>:
>
> Hello,
>
> I#m new in qooxdoo and I test in the moment some possibilities in the
> playground window.
>
> First: Qooxdoo looks very nice, clear structured and easy to use. But now I
> have a first problem:
>
> What I see is the method movable only attached to window.
>
> But I would like to attach this method for example to a groupbox. I searched
> in the forum and I found this part of code:
>
> qx.Class.define("custom.MovableLabel",
> {
> extend : qx.ui.basic.Label,
> include: [qx.ui.core.MMovable],
>
> construct : function(content)
> {
> this.base(arguments, content);
> this._activateMoveHandle(this);
> }
>
> });
>
>
> So I copied this code to my playground window and add a create line after
> this:
>
> var label1 = new qx.ui.basic.Label.MovableLabel("Simple text label");
>
> or
>
> var label1 = new qx.ui.basic.MovableLabel("Simple text label");
>
> But always I get an error like: TypeError: Objekt erwartet
>
> What's wrong and what is the right way to add the movable method to other
> components like groupbox or label?
>
> Thanks
>
> Josef
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/movable-groupbox-tp5965658p5965658.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel