How to disable a button later in the program on gui

51 visualizaciones (últimos 30 días)
Zayne
Zayne el 8 de Sept. de 2011
Comentada: Zoya Saevna el 3 de Jul. de 2021
I want to disable the roll button of a dice,after the player of my snakes and ladders program,has landed on 100......what function can I use to disable the button???

Respuesta aceptada

Paulo Silva
Paulo Silva el 8 de Sept. de 2011
%assuming you are using GUIDE and the button is called pushbutton1
set(handles.pushbutton1,'Enable','off')
After the code that rolls the dice finishes re-enable the button
%assuming you are using GUIDE and the button is called pushbutton1
set(handles.pushbutton1,'Enable','on')

Más respuestas (0)

Categorías

Más información sobre Dialog Boxes en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by