Borrar filtros
Borrar filtros

How to Disable Button in Dialog Box

8 visualizaciones (últimos 30 días)
Mark Golberg
Mark Golberg el 9 de Ag. de 2020
Comentada: Arthur Roué el 13 de Ag. de 2020
Hello
btnOpt_1 = 'Collect new data';
btnOpt_2 = 'Use saved data';
answer = questdlg('Please choose data source :' , 'FilterWheel' , btnOpt_1 , btnOpt_2 , btnOpt_2);
I want my btnOpt_1 to be Disabled (grayed-out). How can this be done?
THANK YOU!
  1 comentario
Vasista Adupa
Vasista Adupa el 11 de Ag. de 2020
I have the exact same query. disabling a option in the questdlg choices.

Iniciar sesión para comentar.

Respuesta aceptada

Arthur Roué
Arthur Roué el 11 de Ag. de 2020
You cannot disable a button using questdlg function. The only thing you can do is to remove the option.
If you do want a grayed-out button, build your own GUI, I can help you if you need help on this point, just ask in comment.
  4 comentarios
Mark Golberg
Mark Golberg el 12 de Ag. de 2020
R2015a.
could you send me the code for GUIDE components?
Arthur Roué
Arthur Roué el 13 de Ag. de 2020
If you launch GUIDE (write guide in command window), one of the template is a modal question dialog box.
You can start with this example, and correct the code as you wish.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by