필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

enable/disable of state button under program control doesn't work

조회 수: 1 (최근 30일)
Thomas Laubscher
Thomas Laubscher 2023년 12월 8일
마감: Thomas Laubscher 2023년 12월 12일
I have a state button called MyButton in mlapp which is enabled
Then I have a program line:
app.myButton.Enable = false;
Executing this line doesn't disable the button.
Setting a breakpoint and executing the same line from the Matlab Command Window also has no effect and also doesn't report any error.
The enable Field remains at 'on'
app.myButton.Enable = 'off''; from the command line
also doesn't work, the field Enable remains at 'on' and no error is reported
This behaviour is erratic, i.e. I have another state button where disabling works
I didn't observe this problem with standard buttons
  댓글 수: 1
Thomas Laubscher
Thomas Laubscher 2023년 12월 12일
It looks as if there was still a thread running which updated the knobs appearance even after halting at a breakpoint. Therefore consider this problem solved.

답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by