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