Will GUIDE support tab panels in the release version of R2014b?

 Accepted Answer

Doug Hull
Doug Hull on 16 Oct 2014

1 Comment

True, but the question was are they supported in guide, which they aren't (yet)

Sign in to comment.

More Answers (3)

Robert Cumming
Robert Cumming on 2 Oct 2014
I guess the answer to this will become known once R2014b is released - in the meantime you could look at this gui framework gui framework development which has its own version of guide which supports tabs (it should work for all versions of Matlab from R2008a onwards).
A demo version of the code can be downloaded from the downloads page
Sean de Wolski
Sean de Wolski on 3 Oct 2014
No, GUIDE does not support uitabs or uitabgroups in R2014b.

8 Comments

Will Reeves
Will Reeves on 15 Oct 2014
Edited: Will Reeves on 15 Oct 2014
why not? :-)
Or more specifically, is it possible to programmatically create a gui with a tab group and panels, convert it to a figure file and then edit the remaining control layout in guide?
It might be possible, but it's going to be ugly and require a whole lot more kludge than just writing the whole thing programmatically (either with nested functions or classes).
Nested functions are okay, but as your GUI gets larger it gets more difficult to manage.
You can build a GUI using normal functions, you just need to manage how the functions talk to each other. For example store all the uicontrols in the parent figure appdata and manage using setappdata and getappdata.
Then any callback needs access to the figure handle to get access to all the uicontrols.
Ugghh, I disagree. Nested functions are much cleaner than appdata.
Classes are the best of all but require the obvious OOP learning curve.
Robert Cumming
Robert Cumming on 16 Oct 2014
Edited: Robert Cumming on 16 Oct 2014
I agree classes are best.
Each to their own regarding nested functions, but as the GUI gets bigger, in my experience and opinion, they become harder to manage (and debug due to static variable). Its much easier in the long term to split it out into small functions.
For example I've been involved in a function based GUI which was around 100,000 lines of code. Impractical to do with nested functions.
Don't get me wrong, for small compact GUIs nested is often a good solution and I have used it as well. Its important to think about the future development of the GUI when you start.
For 100k lines of code, in my opinion, there should be multiple classes doing this. Debugging either nested functions or appdata on this scale is impractical. Also note, I'm all for having multiple small functions. Some of those can have their own nesting as necessary.
I couldn't agree more, but that code i was quoting started life in r2006b if I recall. So classes weren't a viable option.

Sign in to comment.

Charles
Charles on 29 May 2015
I posted a workaround that is not too overwhelming in terms of programming: In MathWorks Answers
See if that works for you.

Categories

Find more on App Building in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!