4.9

4.9 | 10 ratings Rate this file 77 downloads (last 30 days) File Size: 7.72 KB File ID: #11546

uitabpanel

by Shiying Zhao

 

26 Jun 2006 (Updated 27 Jun 2006)

No BSD License  

A complete implementation of TabPanel for MATLAB

Download Now | Watch this File

File Information
Description

This is a complete implementation of TabPanel for MATLAB, which offers a consistent look and feel to the builtin MATLAB UI objects.

Two types of tabpanels are implemented. The first type is the usual tabpanel with tabs positioned on left/center/right top/bottom in relation to the visible panel. The second one is the so-called "popup" panels. This type of "tabpanels" is common in Windows and Java but has not been seen its use in MATLAB. I found that it is rather convenient in many occasions.

See the screenshot and "uitabdemo.m" to get started.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Tab panel example, tabpanel, Tab Panel (Yet another one), TabPanel Constructor v2.6.1 (2009)

MATLAB release MATLAB 7 (R14)
Zip File Content  
Other Files uitabdemo.m,
uitabpanel.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (11)
07 Jul 2006 BenoƮt Muth

Outstanding work has been done here. Running the demo and exploring the scripts is enough to judge about the quality of this effort. I am really looking forward to see UITABPANEL implemented as a Matlab class like other objects. Anyway, thank you already!

12 Aug 2006 Mirjam B  
20 Jan 2007 Aaron Sui

Wonderful work! However I find it troublesome working with more that one figures.

28 Jan 2007 Liu Changkun

Excellent! Very GOOD!

06 Jun 2007 paolo castiglione

very good job! I hope newer versions of matlab will implement a tab function.

14 Mar 2008 Franklin Quilumba

It is so great...

16 Oct 2008 Bharathiraja UN

It is working well.
I wish to suggest to modify line320-321 as follows to avoid some issues faced in resizing.
TopBottomTabResizeCbk(htab,[]);
set(htab,'ResizeFcn',@TopBottomTabResizeCbk);

16 Oct 2008 Bharathiraja UN

I am withdrawing my last comment on code modification. Instead, it is better done as follows,
htab = uitabpanel(...
     '...'
    'CreateFcn',@CreateTab,...
    'ResizeFcn',@ResizeTab)
where as ResizeTab is the custom made resize function. Thanks.

09 Mar 2009 Roi  
09 Mar 2009 Jveer

good looking GUI

06 Jul 2009 Saidul Hasnan

If you find errors when trying to add uitabpanel inside another uitabpanel. You might want to replace the following codes:
           
           cmenu = uicontextmenu;
            uimenu(cmenu,'Label','Goto Tab');
            uimenu(cmenu,'Separator','on');

to...

findfigure=0;
testparent=parent;
while ~findfigure
    
        try
            cmenu = uicontextmenu('Parent',testparent);
            uimenu(cmenu,'Label','Goto Tab');
            uimenu(cmenu,'Separator','on');
            findfigure=1;
        catch
            testparent=get(testparent,'parent');
        end
    
end

cheers,
Saidul Hasnan

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Shiying Zhao 22 Oct 2008 08:30:57
example Shiying Zhao 22 Oct 2008 08:30:57
gui Shiying Zhao 22 Oct 2008 08:30:57
tabpanel Shiying Zhao 22 Oct 2008 08:30:57
builtin Shiying Zhao 22 Oct 2008 08:30:57
objects Shiying Zhao 22 Oct 2008 08:30:57
feel Shiying Zhao 22 Oct 2008 08:30:57
look Shiying Zhao 22 Oct 2008 08:30:57
tabpanel Arturo Serrano 12 Feb 2009 06:31:39
builtin Roi 09 Mar 2009 07:53:04
builtin Shaun 30 Jun 2009 09:37:53
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com