Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close application when the main window x is clicked on
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Close application when the main window x is clicked on
Divers
Thread ID:
01684781
Message ID:
01684781
Vues:
57
Hi,
Another follow up to the question about a one-form application.
I put the CLEAR EVENTS in the Unload method of the form. It works when I release the form first.
But if, while the form is open, I click on the x (in the upper right corner; the _screen) the application wont close. I have to do it with the Task Manager.
I added ON SHUTDOWN CLEAR EVENS right before the READ EVENTS line. But it does not do anything.
My question:
1. Can I disable (gray) the X in the upper right corner of the main window (_screen)?
2. What else can I do to make the application close when user clicks on the x?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform