Simple tab panel

버전 1.0.0.0 (4.98 KB) 작성자: Panagiotis Moulos
A simple way to create tab panels using GUIDE
다운로드 수: 9.1K
업데이트 날짜: 2007/6/11

라이선스 보기

This script provides a template on how to create simple tab panels within a GUI. Each tab panel should be a different panel with different components and can be easily created with GUIDE. By using GUIDE, you can create as many different panels as you want and layout them in a comfortable way for building. When the script initiates, it places them one behind the other and handles their visibilities accordingly.

The main idea behind simpletab is that you can create the tab labels by creating an equal number of static text uicontrols and layout them properly over an empty panel of proper defined size (see simpletab.fig in GUIDE). You can use then their positions to create axes objects (so that an edge line can be displayed around tabs without having to define the 'CData' property) and then create text objects (which are also more customizable than static text uicontrols) inside them. The control and highlighting of different tabs is performed through properly defined object callbacks (see code). The initial static text uicontrols are invisible in the final window. They are only used inside GUIDE for positioning purposes only.

Make sure that the panel which is used for the proper placement of the static text uicontrols is the bigger one as the others will acquire its position. Ideally, the other panels should not be designed to be very different from the first one in terms of their dimensions because normally, in a multitab window all tabs should have the same size and the desired uicontrols should be fitted into them.

인용 양식

Panagiotis Moulos (2024). Simple tab panel (https://www.mathworks.com/matlabcentral/fileexchange/15193-simple-tab-panel), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R14SP3
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Migrate GUIDE Apps에 대해 자세히 알아보기
도움

도움 받은 파일: a new way to tab for GUIDE

도움 준 파일: Simple Optimized GUI Tabs

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Fixed a bug remaining from the testing version: changed 'testTab' to 'simpletab' in the code.