How to make invisible popupmenu?

조회 수: 2 (최근 30일)
mete polat
mete polat 2015년 12월 23일
댓글: mete polat 2015년 12월 23일
i have 4 popupmenu and when i select a value from first one, according to choise except one of them will be visible and the others will be invisible. For example, from first popupmenu i select popupmenu2, then i want just popupmenu2 will be visible and the others will be invisible. Thank you.

채택된 답변

Walter Roberson
Walter Roberson 2015년 12월 23일
function YourGUI_popup1_callback(hObject, event, handles)
choice = get(hObject, 'Value');
popups = [handles.popup2, handles.popup3, handles.popup4];
set(popups, 'Visible', 'off');
set(popups(choice), 'Visible', 'on');
  댓글 수: 3
Walter Roberson
Walter Roberson 2015년 12월 23일
Your String for your popup1 should be a cell array of three entries, the first being the wording for activating popup2, the second for activating popup3, the third for activating popup4. Based upon your explanation I can tell you have an extra first entry before those. If I am correct then you need to indicate what you want to happen when the first entry of popup1 is chosen.
mete polat
mete polat 2015년 12월 23일
Thank you Walter Roberson it s working anymore.

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

추가 답변 (0개)

카테고리

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