Callback function on window focus?

조회 수: 1 (최근 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 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