How to determine if the user closed the app window?
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rich006
el 24 de Abr. de 2023
Respondida: Kevin Holly
el 24 de Abr. de 2023
I have a script that calls an App Designer mlapp as an interface for a user to enter information. How can I get my main script to determine if the user has closed the window (using the X in the title bar)?
0 comentarios
Respuesta aceptada
Kevin Holly
el 24 de Abr. de 2023
When you run the app in your main script, you could assign a variable to its handle.
app = YourApp;
You can check if it is deleted with:
isvalid(app)
You could also add a Close Request Function to your app.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!