Slider arrow button remains pressed
이전 댓글 표시
I have a Slider and its callback calls a function which needs some time (less than a second) to execute and which aim is to do some calulations and imshow on gca. BusyAction set to Cancel and Interruptible to off. When I move the slider everything is Ok. When I try to click one of its arrows then the arrow remains pressed and the slider keeps moving until it reaches one end. Till now I have tried within the callback; pause, drawnow, uiwait, enble/disable the slider and many more but nothing...when I remove the call to the other function everything is normal. Any idea....?
답변 (2개)
Fabio166
2016년 11월 24일
0 개 추천
Same problem here with R2015b. I've seen that if you remove the callback and then you re-assign the callback everything works. Any other idea?
Fabio166
2016년 11월 24일
0 개 추천
A pause(0.1) seems to solve the issue (as suggested for similar issues in other posts and reported in undocumentedmatlab website).
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!