Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Dmitry,
1. Can I disable (gray) the X in the upper right corner of the main window (_screen)?
Just set the Closable property to .F.
2. What else can I do to make the application close when user clicks on the x?
You may check out the QueryUnload event. Here I ask user to confirm if he really wants to exit the application. You can then issue NODEFAULT if he cancels. Also check out the ReleaseType property.
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement