Callback function on window focus?

4 vues (au cours des 30 derniers jours)
Giuseppe Antonio
Giuseppe Antonio le 19 Nov 2019
Commenté : Ajay Kumar le 19 Nov 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")?

Réponses (1)

Ajay Kumar
Ajay Kumar le 19 Nov 2019
f = figure;
drawnow
figure(f);
  2 commentaires
Giuseppe Antonio
Giuseppe Antonio le 19 Nov 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 le 19 Nov 2019
what do you want to write in the callback? if the figure is selected?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Produits


Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by