ButtonGroup Objects

버전 1.0.0.0 (5.66 KB) 작성자: Matthew Whitaker
Container objects to manage radio or toggle buttons with functionality of the GUI Layout Toolbox
다운로드 수: 1.3K
업데이트 날짜: 2011/6/21

라이선스 보기

The ButtonGroup controls require the GUI Layout Toolbox by Ben Tordoff and David
Sampson available at:
http://www.mathworks.com/matlabcentral/fileexchange/27758-gui-layout-toolbox
The controls in this submissionshould be placed in the +uiextras folder in the GUI Layout Toolbox or in another folder called +uiextras that resides under a folder on your path. It is recommended to run rehash path after doing this.

EXample:
function buttonGroupExample
f = figure;
vb = uiextras.VBox('Parent',f,'Units','Normalized');
bgH = uiextras.HButtonGroup('Parent',vb,'Buttons',{'1','2','3'},'Spacing',50,'Padding',10,'SelectedChild',1,'SelectionChangeFcn',@onSelectionChange);
hb = uiextras.HBox('Parent',vb);
bgV = uiextras.VButtonGroup('Parent',hb,'ButtonStyle','toggle','Buttons',('123')','Spacing',20,'Padding',10,'SelectedChild',3,'SelectionChangeFcn',@onSelectionChange);
p = uiextras.Panel('Parent',hb);
set(hb,'Sizes',[100,-1]);
lblDisplay = uicontrol('Parent',p,'FontSize',16,'Style','text');
onSelectionChange([],[]);
function onSelectionChange(src,evt)
disp(evt);
set(lblDisplay,'String',int2str([bgH.SelectedChild,bgV.SelectedChild]));
end %onSelectionChange
end %buttonGroupExample

인용 양식

Matthew Whitaker (2024). ButtonGroup Objects (https://www.mathworks.com/matlabcentral/fileexchange/31902-buttongroup-objects), MATLAB Central File Exchange. 검색됨 .

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

받음: GUI Layout Toolbox

Community Treasure Hunt

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

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