Another idea : I put in the center of a pane (where the table will be)
an animated gif with waiting animation.
then, asynchronously, just after the request that bring data back, I
swap the table and the image.
In that case, and I think always, it is very important to let the data
came back in the background (asynchronously) so the application do not
gave the impression to be frozen.
You could add both : the cursor and that. If the data are manipulated
in the background, then the cursor should changed it appearance
correctly.
On 25 Oct 2008, at 18:27, Derrell Lipman wrote:
On Sat, Oct 25, 2008 at 10:48 AM, Klaus-F. Kaal <[EMAIL PROTECTED]
> wrote:
Hi,
I am loading quite a few lines of data into my table asynchonously.
This takes some time. I need to make the user away of the busy state
of the application. I changed the Cursor to busy, but that only
works after I try to click on the object.
Is there any other widget or sniplet available for this?
What you're trying to do is fine. I suspect that you're just not
allowing time for the cursor to change before beginning your update
work. The browser only changes the cursor appearance when it
regains control, so you need to give the browser control explicitly
after setting your cursor but before beginning your table update.
Set your cursor then call the function that updates your table via a
timer:
application.getRoot().setGlobalCursor("progress");
qx.event.Timer.once(
function(e)
{
// update table here
},
this,
20);
I've found that in some cases, I need a timeout of 20 milliseconds
as shown here, and sometimes, a time out of 0 just to release
control to the browser to set the cursor is adequate. The
difference is indistinguishable to the human eye (mine, at least),
so I now just tend to use 20ms all the time for this purpose.
Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere in
the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel