Effacer les filtres
Effacer les filtres

Info

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

Is there a programatic check if a figure is being loaded by Guide?

2 vues (au cours des 30 derniers jours)
Andrew
Andrew le 25 Sep 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi all,
I'm playing around with a GUI where the figure's CreateFcn creates uitabs. Guide "breaks" (2014A) when I try to save the figure because of the uitabs; so I want the CreateFcn to do a "loaded by Guide test". Something like:
if (guide)
% do nothing
else
% create tabs
end
as an alternative to manual modification each time I want to load it with Guide
Cheers,
Andrew

Réponses (1)

Adam
Adam le 25 Sep 2014
Modifié(e) : Adam le 25 Sep 2014
I don't think there is such a function. The best I could suggest is to comment out the functionality while you are playing around in guide or move it to be triggered by a pushbutton rather than the CreateFcn until you have settled your GUI in Guide and then move it back to the CreateFcn afterwards.
You may want to try
instead of uitab which is unsupported functionality. I don't know how the tabs are programmed in that toolbox, but I assume they don't break GUIDE.

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by