Prevent double-clicks in appDesigner
이전 댓글 표시
I have made a program in appdesigner and I want to prevent to end-user from being able to double-click a button (the button starts a data aquisition routine).
I have tried setting the buttons Interruptible property to 'off' and this works well, however I have another button which the user can click to end the data-aquisition routine early (the stop button), so by setting the Start button to not interruptible then the stop button cannot work.
I have tried a work-around whereby the Start button begins as non-interriptible, and then once pressed and the data-aqusition begins the Start button property will change to Interruptible, however I find that although the property is changed the Stop button will not interrupt it.
My other approach was to disable the Start button once it is pressed (and enable it again once the routine has finished) however the GUI does not refresh very quickly and there is significant time (~few tenths of second) for a double click to be performed.
Any advice would be appreciated
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!