MATLAB Answers

Get the component from which a ContextMenu is opened

5 views (last 30 days)
FILIPPO BARILLI
FILIPPO BARILLI on 3 May 2020
Commented: Adam Danz on 5 May 2020 at 15:20
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 Comment

Adam Danz
Adam Danz on 5 May 2020 at 15:20
Could you share the code where you're assigning the context menu to the buttons?

Sign in to comment.

Answers (0)

Sign in to answer this question.


Translated by