Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

2 Ansichten (letzte 30 Tage)
Andrew
Andrew am 25 Sep. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 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

Antworten (1)

Adam
Adam am 25 Sep. 2014
Bearbeitet: Adam am 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.

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by