Hello Jean-Noel and welcome to qooxdoo!
Your idea is almost correct. ;-) Please note that widgets don not have
a main() method, but you can add code to the constructor of a widget.
To use the MMoveable mixin, you have to call _activateMoveHandle() and
provide the widget on which the mouse events should be attached. I
didn't know this myself and will update our documentation.
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);
}
});
Unfortunately we don't have a built-in solution for resizing only one
dimension. You could set allowGrowX/Y to false before the widget is
resized and reset it afterwards.
Cheers,
Jonathan
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel