How to determine if the user closed the app window?
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
Kevin Holly
2023년 4월 24일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!