Get the edit field for which a context menu was opened
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a MATLAB UI that I am using the App Designer to use. On the UI, I have multiple Edit Fields, all of which I want to have the same Context Menu. However, when the Context Menu option is selected, I need to know which Edit Field was selected. How do I get which field was right clicked on?
I have tried just using the event source, but that returns the Context Menu object, not the Edit Field that was clicked on
% Menu selected function: AddChannelMenu
function AddChannelMenuSelected(app, event)
field_num = str2double(event.Source.Tag);
add_channel(app,field_num);
end
4 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!