Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Closing forms
Message
From
31/07/1998 18:40:11
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
To
31/07/1998 16:32:32
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00123111
Message ID:
00123227
Views:
16
>>Yes, I think that putting a timer that closes a window on every 30 minutes of inactivity, using MouseMove, MouseDown and KeyPress to reset the timer, will be ok. But what about a modal form ? Suppose that I have 3 non-modal forms opened and I call a modal form from one of them. What would happen ?
>>
>>Regards,
>
>I am not really sure, but the forms collection should be able to close the modal forms in order.
>
>BOB


I think modal forms can cause a problem. I have a quit routine that closes all open windows but then the users found a problem when a modal lookup window was active. This window got closed okay, but the window that called it didn't. What I traced it to was the fact that the calling program was in the middle of execution in a method, and it won't close until that method has finished, but the global close method has no way to wait for the calling forms method to finish executing before trying to close it. Messy. I don't think there is a good solution to this, other than making 'phony' modal windows. The thing is, the modal form was a selection list and I had to wait for the user to make a selection before carrying on.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform