sliderPanel

버전 1.12.0.1 (6.02 KB) 작성자: Brett Shoelson
A new UICONTROL object with a slider as a child of a uipanel, with auto-linked edit box and labels.
다운로드 수: 7.6K
업데이트 날짜: 2016/9/1

라이선스 보기

편집자 메모: This file was a File Exchange Pick of the Week

An indispensible uicontrol: linked slider, text, and labels all self-contained in a panel.
FUNCTION:
sliderHandle,panelHandle,editHandle] = sliderPanel(parent, PanelPVs, SliderPVs, EditPVs, LabelPVs, numFormat)

Creates a slider in a separate uipanel, with an associated interactive EditBox, and left and right labels showing the minimum and maximum values of the slider, respectively.

Moving the slider automatically updates the textbox, and vice versa. Both slider movement and text edits will trigger (non-recursively) the callback of the slider.

The EditBox automatically disallows the entry of non-numeric values, or of values outside of [min,max]. Attempts to enter disallowed values will be ignored.

Two syntaxes are supported. One gives FULL control over all elements of the sliderPanel, and a second provides easier access to a subset of the functionality.

UPDATE: Right-clicking the slider now resets the sliderPanel to its default (creation) value.

인용 양식

Brett Shoelson (2024). sliderPanel (https://www.mathworks.com/matlabcentral/fileexchange/13845-sliderpanel), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Updated license

1.12.0.0

Right-clicking now resets the slider to its default (creation) value.

1.9.0.0

Right-clicking the slider now resets the sliderPanel to its default (creation) value.

1.4.0.0

Now automatically includes right-click reset to default (initial) value!

1.3.0.0

Updated M file and license text file copyright to The MathWorks, Inc.

1.2.0.0

added copyright

1.0.0.0

This is a bug fix; in adding simplified syntax, I broke support for structs. Also, no 'Parent' arg now needed in simplified syntax.