Waitrun and CursorWait()

Post Reply
Marc Vanzegbroeck
Posts: 1163
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Waitrun and CursorWait()

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

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Waitrun and CursorWait()

Post by Enrico Maria Giordano »

Try using WaitRun() to call your external application.

EMG
Marc Vanzegbroeck
Posts: 1163
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Waitrun and CursorWait()

Post by Marc Vanzegbroeck »

Enrico,

That's the function I use.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Waitrun and CursorWait()

Post by Enrico Maria Giordano »

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

EMG
Marc Vanzegbroeck
Posts: 1163
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Waitrun and CursorWait()

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

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Waitrun and CursorWait()

Post by Enrico Maria Giordano »

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

EMG
Post Reply