Vertical folding tabs are applied with autoscroll GUI template.
IMPORTANT:
If adding this code to new gui project place this lines of code to opening function
% %This 2 lines of code set all tabs positions
% %and open 1st tab panel
% tab_order=1;
% arrange_all_tabs(tab_order,hObject, eventdata, handles)
Rest of code starting with: "VERTICAL FOLDING TABS START HERE" and ending with
"VERTICAL FOLDING TABS ENDS HERE" you can place anywhere on script.
ALL MENUS AND PANELS HAVE WIDTH OF A FIRST MENU (menu1)
HEIGHTS OF MENUS AND PANELS YOU SET IN GUIDE EDIT MODE.
Tags that you should use is for menus: menu1, menu2, menu3, menu4, menu5, menu6, menu7, menu8.
for panels: panel1, panel2,panel3, panel4, panel5, panel6, panel7, panel8.
You can add additional tabs or remove some tabs easily with some code
modification (see code)
Marino Bajcic (2021). Vertical Folding Tabs (https://www.mathworks.com/matlabcentral/fileexchange/34934-vertical-folding-tabs), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.