CLICKUICONTROL

버전 1.1.0.1 (3.83 KB) 작성자: Jiro Doke
Emulates clicking on a UIcontrol object.
다운로드 수: 2.9K
업데이트 날짜: 2016/9/1

라이선스 보기

CLICKUICONTROL(H) behaves as if clicking on a UIControl object. The object can be one of the following: pushbutton, checkbox, radiobutton, togglebutton, slider, listbox, popupmenu. The Value property of the object will be appropriately set, and the object's Callback is called (ButtonDownFcn will be called if the object's Enable property is set to OFF or INACTIVE). It will work with callbacks defined as strings or function handles. The UICONTROL will not be brought to focus.
CLICKUICONTROL(H, 'focus') brings focus to the object. This is useful for bringing focus to an EDIT box. Default is 'nofocus'.

CLICKUICONTROL(H, OPT) or CLICKUICONTROL(H, 'focus', OPT). Some objects accept a additional argument OPT. Acceptable arguments are dependent on the style of UIControl object.

SLIDER:
'-' : Click on the decreasing arrow.
'+' : Click on the increasing arrow.
'--' : Click on the decreasing slider trough.
'++' : Click on the increasing slider trough.
'.' : Click without change of value.

LISTBOX:
'top' : Select the top-most element.
'end' : Select the last element.
'+' : Select the next element.
'-' : Select the previous element.
'.' : Select the current element.
N : Select the N-th element.
Can also be an array if multi
selection is permitted.

POPUPMENU:
'top' : Select the top-most element.
'end' : Select the last element.
'+' : Select the next element.
'-' : Select the previous element.
'.' : Select the current element.
N : Select the N-th element.

인용 양식

Jiro Doke (2024). CLICKUICONTROL (https://www.mathworks.com/matlabcentral/fileexchange/8926-clickuicontrol), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Updated license

1.1.0.0

Fix bug so that it works with UICONTROLs in panels. Also added ability to set focus. Updated license.

1.0.0.0