Command for closing message boxes

12 visualizaciones (últimos 30 días)
Micgiver Speck
Micgiver Speck el 6 de Jun. de 2012
Hey does anyone know how to close the message boxes via a command instead on having to click ok.
Cheers Michi

Respuestas (1)

Walter Roberson
Walter Roberson el 6 de Jun. de 2012
Which message boxes?
If you are referring to (for example) inputdlg() then it forms a modal dialog and waits to be closed; the only way that you could have something start itself executing in order to command the closing of the dialog box would be if you used a timer().
If, though, you use msgbox() then by default it does not create a modal dialog, You can use delete() on the handle returned by msgbox() in order to remove the msgbox() dialog.

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by