Callback function on window focus?

4 ビュー (過去 30 日間)
Giuseppe Antonio
Giuseppe Antonio 2019 年 11 月 19 日
コメント済み: Ajay Kumar 2019 年 11 月 19 日
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 Center および File ExchangeInteractive 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