Which window is "on top"?

4 ビュー (過去 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 Center および File ExchangeIntroduction 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