Get the component from which a ContextMenu is opened
1 回表示 (過去 30 日間)
古いコメントを表示
I created a button in App Designer to export some information. If i click the button the export will be xlsx; if a right-click the button a context menu is opened to export in different formart or to export a template.
I would like to know from which button the context menu is opened because from that button I can understand which value must be exported.
I see that event.Source.Parent refers to the overall figure and not the button.
Is it possible to achieve this with or without link programmatically the context menu to the button?
1 件のコメント
Adam Danz
2020 年 5 月 5 日
Could you share the code where you're assigning the context menu to the buttons?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!