Daniel,

this is a browser issue. You cannot update a style and running a CPU 
intensive method after it. The result is that the browser will update 
the display after the execution of this method. A common workaround is 
to execute the (processor intensive) method in a timeout e.g. 
qx.client.Timer.once(...)

Sebastian


Daniel Haferkorn schrieb:
> Hello,
> In my application I have a few events that could take some time to be 
> executed. during that time the user should not be allowed to click on 
> any widgets and receive a visual feedback.
> For this I planned to place a transparent LayoutManager in front of 
> every other object:
> blockPlane = new qx.ui.layout.CanvasLayout();
> blockPlane.addToDocument();
> 
> I then change the cursor style to the wait cursor for that layout:
> blockPlane.setStyleProperty("cursor", "wait");
> 
> and set the layout to a minimized size:
> blockPlane.set({ width:0, height:0 });
> 
> 
> A typical event listener looks like this:
> someButton.addEventListener( "execute", function intenseEvent(e) {
>       blockPlane.set({ width:3000, height:3000 }); // maximize the plane
>       //some methods and algorithms that take a long time to complete
>       blockPlane.set({ width:0, height:0 });  // minimize the plane again
> });
> 
> The problem is, when I set the width and height values manually, the 
> plane behaves as it should, the cursor changes to the wait cursor and 
> the widgets are no longer usable. But if the event is executed within 
> the application, nothing of this happens. I already tried to call 
> qx.ui.core.Widget.flushGlobalQueues(); after maximizing the plane, but 
> this also doesn't help.
> Am I doing something wrong?
> 
> Regards,
> Daniel Haferkorn
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to