Callback function on window focus?

4 次查看(过去 30 天)
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")?

回答(1 个)

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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by