Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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

Answers (1)

Adam
Adam on 25 Sep 2014
Edited: Adam on 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.

Tags

Community Treasure Hunt

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

Start Hunting!