setGlobalCursor directly apply the new cursor. No need to flush anything 
in the case. The problem is the browser - not qooxdoo. When you want to 
be sure, that the cursor is correctly applied, you must execute the 
processor intensive task (not the setGlobalCursor) with a timeout 
directly after setup the cursor e.g.

doc.setGlobalCursor("wait");
window.setTimeout(doSomeStuff, 0);

Hope this helps.

Cheers,
Sebastian


Alex D. schrieb:
> Thx for help Jim, but... it doesn't work anyway. Neither flush(true) nor 
> flush(or setGlobalCursor) in setTimeout. And i just looked in the source 
> code - flushGlobalQueues() routine doesn't expect any parameters.
> 
> Regards,
> alex.d
>> setTimeout(function(){qx.ui.core.ClientDocument.getInstance().setGlobalCursor("wait");},0);
>>
>> should work also....
>>
>> Jim Hunter wrote:
>>> I just saw your previous post about flushGlobalQueues and I have 
>>> found in recent build, this call does nothing unless you pass in true 
>>> as the parameter (like my example below). I was not seeing any 
>>> difference between using the flush command and not using it until I 
>>> added the true parameter, now it seems to work fine.
>>>
>>> Jim
>>>
>>> On 10/16/06, *Alex D.* <[EMAIL PROTECTED] 
>>> <mailto:[EMAIL PROTECTED]>> wrote:
>>>
>>>
>>>>     I've tried it's already ;-)(was the first i did) - it doesn't work.
>>>>
>>>>>     Right after you change the cursor, issue the following command:
>>>>>
>>>>>     qx.ui.core.Widget.flushGlobalQueues(true);
>>>>>
>>>>>     This should do the trick.
>>>>>
>>>>>     Jim
>>>>>
>>>>>     On 10/16/06, * Alex D.* <[EMAIL PROTECTED]
>>>>>     <mailto:[EMAIL PROTECTED]>> wrote:
>>>>>
>>>>>         Hi folks,
>>>>>
>>>>>         sorry for the traffic but i have another issue that doesn't
>>>>>         work: i have a button that do some filtering(CPU
>>>>>         intensive). So in the meantime i would like to set global
>>>>>         cursor to "wait":
>>>>>         ==================snip===================
>>>>>         button.addEventListener("execute", function(e){
>>>>>            
>>>>>         qx.ui.core.ClientDocument.getInstance().setGlobalCursor("wait");
>>>>>             //do the filtering
>>>>>            
>>>>>         
>>>>> qx.ui.core.ClientDocument.getInstance().setGlobalCursor("default");
>>>>>         }, this);
>>>>>
>>>>>         ==================snap===================
>>>>>         Looks simple and doesn't work. If i do not set cursor to
>>>>>         "default" at the end of routine, then i can see that the
>>>>>         cursor *is set *to "wait" at the moment the filtering is
>>>>>         over. Is there any possibility to force the cursor to
>>>>>         change it's appearance?
>>>>>
>>>>>         Best Regards,
>>>>>         alex.d
>>>>>
>>>>>         
>>>>> -------------------------------------------------------------------------
>>>>>         Using Tomcat but need to do more? Need to support web
>>>>>         services, security?
>>>>>         Get stuff done quickly with pre-integrated technology to
>>>>>         make your job easier
>>>>>         Download IBM WebSphere Application Server v.1.0.1 based on
>>>>>         Apache Geronimo
>>>>>         
>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>>>         
>>>>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>>>>>
>>>>>         _______________________________________________
>>>>>         qooxdoo-devel mailing list
>>>>>         [email protected]
>>>>>         <mailto:[email protected]>
>>>>>         https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>>         <https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel>
>>>>>
>>>>>
>>>>>
>>>>     
>>>> ------------------------------------------------------------------------
>>>>
>>>>     
>>>> -------------------------------------------------------------------------
>>>>     Using Tomcat but need to do more? Need to support web services, 
>>>> security?
>>>>     Get stuff done quickly with pre-integrated technology to make your job 
>>>> easier
>>>>
>>>>     Download IBM WebSphere Application Server v.1.0.1 based on Apache 
>>>> Geronimo
>>>>
>>>>     
>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 
>>>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>>>>     
>>>> ------------------------------------------------------------------------
>>>>
>>>>     _______________________________________________
>>>>     qooxdoo-devel mailing list
>>>>     [email protected]
>>>>      <mailto:[email protected]>
>>>>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>       
>>>
>>>     
>>> -------------------------------------------------------------------------
>>>     Using Tomcat but need to do more? Need to support web services,
>>>     security?
>>>     Get stuff done quickly with pre-integrated technology to make
>>>     your job easier
>>>     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>>     Geronimo
>>>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>     
>>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>>>
>>>     _______________________________________________
>>>     qooxdoo-devel mailing list
>>>     [email protected]
>>>     <mailto:[email protected]>
>>>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>     <https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services, security?
>>> Get stuff done quickly with pre-integrated technology to make your job 
>>> easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>   
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>   
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to