How to hide/unhide button group using callbacks in Push button?

조회 수: 14 (최근 30일)
Pravin Kokane
Pravin Kokane 2017년 2월 20일
댓글: Pravin Kokane 2017년 2월 20일
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 ?

채택된 답변

Image Analyst
Image Analyst 2017년 2월 20일
Use the Visible property instead
handles.buttongroup1.Visible = 'off' % or 'on'

추가 답변 (1개)

Jan
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.
  댓글 수: 1
Pravin Kokane
Pravin Kokane 2017년 2월 20일
Jan Thank You. Actually I was getting confused between enable and visibility, anyways thanks a lot.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by