Am 29.05.2012 17:19, schrieb Deisss:
> Here is a basic example how to do it :
>
> You must extend window class to do it :
No problem, all our Windows have a base class already.
It works perfectly, thank you.
One more question: The tabs of qx.ui.tabview.Page are reacting
very slowly or not at all on touch events (Samsung Galaxy Pad),
did you notice any problems there?
Thanks
Marcel
>
> qx.Class.define("myClass", {
> extend : qx.ui.window.Window,
> construct:function(title){
> this.base(arguments, title);
> this.addListener("touchstart", this._onMoveMouseDown, this);
> this.addListener("touchend", this._onMoveMouseUp, this);
> this.addListener("touchmove", this._onMoveMouseMove, this);
>
> this.getChildControl("minimize-button").addListener("tap",
> this._onMinimizeButtonClick, this);
> this.getChildControl("restore-button").addListener("tap",
> this._onRestoreButtonClick, this);
> this.getChildControl("maximize-button").addListener("tap",
> this._onMaximizeButtonClick, this);
> this.getChildControl("close-button").addListener("tap",
> this._onCloseButtonClick, this);
> }
> });
>
>
> This will do the trick easily, don't forget also to do the same for
> components inside the window. Also i found that if you unactivate (for
> example) maximize button and set the listener, the maximize button will
> still be showed, so remove listener you don't use...
>
>
> Martin Wittemann wrote:
>> Hey,
>> I don't think that we are going to fix that very soon because the desktop
>> widgets are not designed to be used on touch devices. But you could do
>> that yourself by subclassing the window and using the touch events [1]
>> e.g.
>> Regards,
>> Martin
>>
>> [1]
>> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.Widget~touchmove!event
>>
>>
>> Am 12.12.2011 um 19:50 schrieb Marcel Ruff:
>>
>> Hi,
>>
>> I use a lot of qx.ui.window.Window,
>> unfortunately the windows can't be dragged on mobile devices
>> with the finger (Android-Chrome, iOS-Safari).
>>
>> Are there chances to get this implemented?
>>
>> Thanks
>> Marcel
>>
>> ------------------------------------------------------------------------------
>>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel