Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clicking x (close) on App window
Message
From
19/03/1999 11:34:55
 
 
To
19/03/1999 11:29:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00199757
Message ID:
00199777
Views:
13
>>>When I ckick on the close button [x] on a form, it fires the form's queryunload event. What sequence of events is triggered by clicking on the close button of the main FoxPro application window (specifically when one or more forms is open).
>>>
>>>Bob
>>
>>The best thing to do here is not guessing but adding ON SHUTDOWN routine where you will define the event sequence (in simplified case you can put there the same code as you have under Toolbar(Menu)/Exit option).
>
>Thanks Ed
>
>I have heard, though, that the on shutdown runs as, or acts like a separate windows thread, and can actually shut down Foxpro while code is activly running is in form. As a result, I,m a little scared of it and would like to know what options are available. That is, what happens if there is no "on shutdown" set up.
>
>Bob

I mean that ON SHUTDOWN firstly fires CLEAR EVENTS simulating normal exit and then other things, e.g. messagebox("Good Bye :-)").
The mere fact, that you can prevent closing by using nothing except only messagebox() and return in ON SHUTDOWN, indicates that it's not multi-threading.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform