Which window is "on top"?

조회 수: 5 (최근 30일)
Don
Don 2025년 7월 28일
이동: Walter Roberson 2025년 7월 30일
I have a program what actively interacts with the user. In one part of my software, I want to know if a specific window is "on top". How do I find that out?

답변 (1개)

Walter Roberson
Walter Roberson 2025년 7월 28일
get(groot,'CurrentFigure')
However, I do not know at the moment whether CurrentFigure includes figures whose handle visibility is set off; handle visibility off is the default for uifigure()
  댓글 수: 1
Don
Don 2025년 7월 29일
이동: Walter Roberson 2025년 7월 30일
Seems to work for me. The issue was that one of my windows was not produced by the figure() commend. CurrentFigure correctly finds which window is "on top" despite that. Thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by