Waitrun and CursorWait()

Waitrun and CursorWait()

Postby Marc Vanzegbroeck » Mon Aug 06, 2018 1:17 pm

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
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Waitrun and CursorWait()

Postby Enrico Maria Giordano » Mon Aug 06, 2018 1:54 pm

Try using WaitRun() to call your external application.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8517
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Waitrun and CursorWait()

Postby Marc Vanzegbroeck » Mon Aug 06, 2018 3:26 pm

Enrico,

That's the function I use.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Waitrun and CursorWait()

Postby Enrico Maria Giordano » Mon Aug 06, 2018 3:31 pm

Is there any call to SysRefresh() in your program or in the program you are calling using WaitRun()?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8517
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Waitrun and CursorWait()

Postby Marc Vanzegbroeck » Mon Aug 06, 2018 4:34 pm

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
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Waitrun and CursorWait()

Postby Enrico Maria Giordano » Mon Aug 06, 2018 5:16 pm

No, a SysRefresh() (or what is its Java equivalent) is what probably changes the cursor back to normal.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8517
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Jimmy and 63 guests