Which window is "on top"?

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 个)

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!

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

版本

R2024a

标签

提问:

Don
2025-7-28

Community Treasure Hunt

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

Start Hunting!

Translated by