FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Waitrun and CursorWait()
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM

Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 01: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 01:54 PM

Try using WaitRun() to call your external application.

EMG

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 03:26 PM

Enrico,

That's the function I use.

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 03:31 PM

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

EMG

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 04: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Waitrun and CursorWait()

Posted: Mon Aug 06, 2018 05:16 PM

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

EMG

Continue the discussion