Here is a basic example how to do it :

You must extend window class to do it :


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
> 
> ------------------------------------------------------------------------------
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for
> developers. It will provide a great way to learn Windows Azure and what it
> provides. You can attend the event by watching it streamed LIVE online.
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]<mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 
> ------------------------------------------------------------------------------
> Systems Optimization Self Assessment
> Improve efficiency and utilization of IT resources. Drive out cost and 
> improve service delivery. Take 5 minutes to use this Systems Optimization 
> Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://old.nabble.com/qx.ui.window.Window-on-mobile-device-not-moveable-by-touch-tp32962654p33925729.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
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

Reply via email to