Welcome! Log In Create A New Profile

Advanced

WD12 - Question about a running window

Posted by Gianni Spano 
Gianni Spano
WD12 - Question about a running window
November 13, 2008 01:28PM
Hello to all

I have a little problem.

In a form i have a static control that show me the number of records the application is
checking in a routine.
All run fine, but if i leave for a while this window, opening another application, when i go back to this window, the static field is not refreshed and a "wait" pointer appears, showing only the last number of record examined..

Is there a way to solve this little issue and continue to show the number of records checked?

Hope to have explained well my needed.

Gianni
Geert Debruyne
Re: WD12 - Question about a running window
November 13, 2008 02:15PM
Hello,

maybe you should try winredraw when the window gets the focus.

Another solution (but more complex to implement is using Windows messaging within the application, so the window gets a message every time it should be refreshed.

Jimbo
Re: WD12 - Question about a running window
November 13, 2008 02:46PM
Yes, he could refresh the window or just the static either using a timer or using the 'Got Focus' event of the window. Regards, Guenter
Gianni Spano
Re: WD12 - Question about a running window
November 13, 2008 03:18PM
Hello

"Winredraw()" does not solve the problem, but "MultiTask()" does!!

Anyway, thanks for your suggestions.

Gianni
Peter Holemans
Re: WD12 - Question about a running window
November 13, 2008 04:07PM
And don't forget... There's also MultiTaskRedraw() aside from MultiTask()...

Cheers,
Gianni Spano
Re: WD12 - Question about a running window
November 13, 2008 05:19PM
Hi Peter

Thanks to you too!!

Gianni
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: