Get the component from which a ContextMenu is opened

1 visualización (últimos 30 días)
FILIPPO BARILLI
FILIPPO BARILLI el 3 de Mayo de 2020
Comentada: Adam Danz el 5 de Mayo de 2020
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 comentario
Adam Danz
Adam Danz el 5 de Mayo de 2020
Could you share the code where you're assigning the context menu to the buttons?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by