How to stop interrupted callback from resuming
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi everyone,
I making a little movie playing utility. I have play forwards, play backwards and pause buttons on a uibuttongroup panel. When I click play forward, the uibuttongroup's SelectionChangeFcn is called. This function then calls "playMovie(1)". If I click play backwards, the SelectionChangeFcn callback calls "playMovie(-1)". (The pause button has the SelectionChangeFcn callback set a global flag to "stop"; the playMovie reads this flag and stops.) If I click "play reverse" while the play forward is running, the movie starts to play in reverse. That's what I want. However, the play forward call resumes where it left off. I want it to not do that :). I've tried various things but to no avail. Any one have any suggestions?
To clarify: I press "play forward" -> movie starts playing forward (call to playMovie(1)). While it's playing forward, I click "play reverse" -> movies starts to play in reverse (call to playMovie(-1)). When the movie stops (i.e. gets to frame 1), it immediately starts playing forward from where it was when i clicked "play reverse". The call to play forward (playMovie(1)), which had to have been interrupted, resumes where it left off. I don't want it to resume. I want it to stop.
Thanks times a million, Bill
댓글 수: 0
답변 (1개)
Walter Roberson
2012년 3월 6일
To stop an interrupted callback from resuming, quit() MATLAB. That is the only answer to the question from your Title.
When or under what circumstances does the play forward call resume where it left off?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!