Callback function on window focus?

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 日

0 投票

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?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeInteractive Control and Callbacks についてさらに検索

製品

リリース

R2016a

質問済み:

2019 年 11 月 19 日

コメント済み:

2019 年 11 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by