>Hi all, one of my programs has the facility to lock the screen after a predefined time of inactivity, then the user have to input his password to unlock the screen and continue working exactly where the program was stop when the screen was locked. Another choice is to close and exit the application. For this to happen I close all the possible activate windows and toolbars by using the command “Clear Windows”. This is OK. The problem comes when the main screen is locked while a messagebox is waiting for a response, then the command “Clear Windows” appears not to have any effect.
>What am I doing wrong? Do I need to create my own ‘Messagebox’? Is there any API I can use?
>
>Please help… Thank you.
Paco,
In VFP 7, there is a new timeout feature of the messagebox function. Otherwise you have to create your own messagebox function using a form. Check out Steven Black's website (
www.stevenblack.com) for his MsgSvc utility. This has that type of functionality and I believe that piece of the INTL toolkit is public domain.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao