How to hide/unhide button group using callbacks in Push button?
조회 수: 14 (최근 30일)
이전 댓글 표시
I am trying to unhide visibility of Button Group ,but I am getting error as "Error using matlab.ui.container.ButtonGroup/set There is no Enable property on the ButtonGroup class." How to unhide it ?
댓글 수: 0
채택된 답변
Image Analyst
2017년 2월 20일
Use the Visible property instead
handles.buttongroup1.Visible = 'off' % or 'on'
댓글 수: 0
추가 답변 (1개)
Jan
2017년 2월 20일
Following the docs of uibuttongroup, you can set the Visibility to 'on' and 'off'. Look at the example:
bg = uibuttongroup('Visible','off', ...
...
bg.Visible = 'on';
Where does the 'Enable' come from? Please show the code, which causes an error, to allow the readers to suggest an improvement.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!