Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Thomas Laubscher
Thomas Laubscher le 8 Déc 2023
Clôturé : Thomas Laubscher le 12 Déc 2023
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 commentaire
Thomas Laubscher
Thomas Laubscher le 12 Déc 2023
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.

Réponses (0)

Cette question est clôturée.

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by