Hi Simon,
ok, I have added a new example to CVS which shows the usage after
minimizing: Window_5. Also I have modified QxWindow to handle this
minimize mode correctly. This was not tested out previously. Now it is
really easy. Just a myWindow.restore();
Thank you for your large report. The things were a bit easier.
Regards,
Sebastian
Simon Bull schrieb:
Hi Sebastian,
I am using the renderer branch (checked out 15th December 2005) and using the
QxWindow minimise/maximise/restore functionality.
There isn't an example which demonstrates exactly how a minimised QxWindow
should be restored, but neither window.show() or window.restore() appear to work
completely. The problem is that if I click the minimise button of a QxWindow
and then restore it, the window reappears as expected, but it is no longer
moveable.
Window.show() doesn't "restore" the window because minimising the window changes
it into QxWindow.MODE_MINIMIZED.
window.show(); then window.setMode(null); doesn't do the trick either, and
neither did window.restore() - turns out that setMode(null) calls _restore(), so
its not surprising that neither worked.
Looking into the QxWindow impl I see QxWindow._oncaptionmousedown() does this:
if (e.isNotLeftButton() || !this.getMoveable() || this.getMode() != null) {
return;
};
Because the check for this.getMode() returns "minimized" after the minimise
button has been clicked, the window is no longer moveable. Removing the getMode
check fixes the not-moveable-problem, but I am sure it was put there for a good
reason so I'm relutant to go with this workaround.
Also, in the QxWindow._restore() method the "toggle button" code fragment
assumes that a restore button exists:
// toggle button
if (this.getShowMaximize())
{
var cb = this._captionBar;
var v = cb.indexOf(this._restoreButton);
cb.remove(this._restoreButton);
cb.addAt(this._maximizeButton, v);
};
There will not be a restore button if the window was not previously maximised,
which is the case when I am trying to restore a previously minimised window. If
simple check on the value of v would fix this one :)
Can you please advise how I should correctly restore a minimised window?
Thanks,
Simon
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel