Which window is "on top"?

4 vues (au cours des 30 derniers jours)
Don
Don le 28 Juil 2025
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?

Réponses (1)

Walter Roberson
Walter Roberson le 28 Juil 2025
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 commentaire
Don
Don le 29 Juil 2025
Déplacé(e) : Walter Roberson le 30 Juil 2025
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!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by