Get the component from which a ContextMenu is opened

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

Could you share the code where you're assigning the context menu to the buttons?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 5월 3일

댓글:

2020년 5월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by