Popupmenu in the uitable
3 次查看(过去 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!