필터 지우기
필터 지우기

I want to have a popup menu as column format on a uitable and the popup list will be feeded by a variable. Is this possible?

조회 수: 1 (최근 30일)
I have a uitbale with 6 columns. I want to have a popup menu as column format at 5th column at the uitable and the popup list will be feeded by a variable. Is this possible?

채택된 답변

Walter Roberson
Walter Roberson 2015년 7월 13일
uitable() cannot read the current content of a variable to determine the popup menu to display. You need to set() the appropriate entry of the uitable ColumnFormat property to the cell array of strings that you want to use for the popup entries each time the variable changes.
popup_column = 7; %for example
col_fmt = get(MyUitable, 'ColumnFormat');
col_fmt{popup_column} = Variable_with_new_entries
set(MyUitable, 'ColumnFormat', col_fmt);
  댓글 수: 4
Walter Roberson
Walter Roberson 2015년 7월 13일
When you specify fewer logical values than there are columns, the remaining columns are assumed to be false (not editable)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by