Page 1 of 1

Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 1:17 pm
by Marc Vanzegbroeck
Hi,

From my program, I call an external program to do some calculations.
Because that can take a while, I first call CursorWait() to show the user that the program is busy, but I have notice that the cursor return directly to normal when calling the program.
Is there a way to show the waitcursor?

Thanks

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 1:54 pm
by Enrico Maria Giordano
Try using WaitRun() to call your external application.

EMG

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 3:26 pm
by Marc Vanzegbroeck
Enrico,

That's the function I use.

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 3:31 pm
by Enrico Maria Giordano
Is there any call to SysRefresh() in your program or in the program you are calling using WaitRun()?

EMG

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 4:34 pm
by Marc Vanzegbroeck
Before calling the external program, I do some calculations myself in the program, and then is the cursor the waitcursor,
but from the moment it call the external (java) program, it return normal.
I have tried by putting a sysrefresh() before the call, without succes

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 5:16 pm
by Enrico Maria Giordano
No, a SysRefresh() (or what is its Java equivalent) is what probably changes the cursor back to normal.

EMG