Is it possible to call a push button callback in GUI_1 from a push button in GUI_2?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Joshua Parcell
el 17 de Mayo de 2016
Respondida: Walter Roberson
el 17 de Mayo de 2016
Is it possible to call a push button callback in GUI_1 from a push button in GUI_2?
0 comentarios
Respuesta aceptada
Walter Roberson
el 17 de Mayo de 2016
Yes. The hard part is getting its handle, as there are different "handles" structures for each GUI. If it has a unique name, you can use findall('Tag', 'TheAppropriateTag') to get its handle.
Once you have its handle, you need to fake the callback. See http://www.mathworks.com/matlabcentral/answers/275495-press-button-automatically-click#answer_215068 for more information.
But easier than all of this is to have the callback in GUI_1 call a function which has its own .m file, and then when you want the push button in GUI_2 to invoke the action, have GUI_2 call that same routine.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!