Avoid/Block a msgBox?

7 visualizzazioni (ultimi 30 giorni)
JuanesA89
JuanesA89 il 9 Gen 2014
Commentato: Sean de Wolski il 9 Gen 2014
Hi, I'm using a .p file in my project and it displays an annoying warning in a msgbox and I need to block it or catch it?
Does anyone know how to do it?
Thanks

Risposte (1)

Sean de Wolski
Sean de Wolski il 9 Gen 2014
close(gcf)
?
  2 Commenti
JuanesA89
JuanesA89 il 9 Gen 2014
Hello, thanks for your help. Actually, I can't close like that because the .p file waits for me to hit ACCEPT before continue and exit the function.
Maybe my problem its not possible to solve. I was hoping something like:
try
run_p_file
catch
end
Sean de Wolski
Sean de Wolski il 9 Gen 2014
So they have a uiwait() around the message box that forces it to hold.
I don't know of any way around this other than contacting the author and asking them for a new version.

Accedi per commentare.

Categorie

Scopri di più su Structures in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by