Callback function on window focus?

2 visualizaciones (últimos 30 días)
Giuseppe Antonio
Giuseppe Antonio el 19 de Nov. de 2019
Comentada: Ajay Kumar el 19 de Nov. de 2019
I created a figure with
f = figure
Is it possible to make something happen (callback) when the window containing my figure is selected ("on Focus")?

Respuestas (1)

Ajay Kumar
Ajay Kumar el 19 de Nov. de 2019
f = figure;
drawnow
figure(f);
  2 comentarios
Giuseppe Antonio
Giuseppe Antonio el 19 de Nov. de 2019
I'm not asking how to give focus to the window but how to recognize that the user selected the window (i.e. detect window focus) and set a callback.
Ajay Kumar
Ajay Kumar el 19 de Nov. de 2019
what do you want to write in the callback? if the figure is selected?

Iniciar sesión para comentar.

Categorías

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

Productos


Versión

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by