Popupmenu in the uitable
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Oleg Komarov
le 4 Mar 2011
You should use CellEditCallback:
set(handles.uitable1, 'ColumnFormat', {'A' 'R'},'CellEditCallback',@myFun)
function myfun(varargin)
% Check for the value
% Do stuff
end
Oleg
5 commentaires
Oleg Komarov
le 9 Mar 2011
There's is not such a thing as THE ERROR. Post the complete error msg you get.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!