Popupmenu in the uitable
조회 수: 6 (최근 30일)
이전 댓글 표시
I have a popupmenu in the uitable: set(handles.uitable1, 'ColumnFormat', {{'A' 'R'}) And I want to do, if I choose 'A', than do something, for example, 2+2, else 2-2. How to format function, that it does, what I want?
댓글 수: 0
채택된 답변
Oleg Komarov
2011년 3월 4일
You should use CellEditCallback:
set(handles.uitable1, 'ColumnFormat', {'A' 'R'},'CellEditCallback',@myFun)
function myfun(varargin)
% Check for the value
% Do stuff
end
Oleg
댓글 수: 5
Oleg Komarov
2011년 3월 9일
There's is not such a thing as THE ERROR. Post the complete error msg you get.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!