Figure Window Always on Top

Avoid obscuring figure windows by ensuring they always remain on top.

Ahora está siguiendo esta publicación

Nota del editor: This file was a File Exchange Pick of the Week

My first attempt at a mex file making a simple call to the "SetWindowPos" function in the user32 library. This allows users to keep MATLAB figures on top, floating above all other windows even when focus is not on the target window.

Example ...

figure(1);
winontop('figure 1');

Tested on MATLAB Version 7.0.4.365 (R14) Service Pack 2 running under Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 2)

Citar como

John Anderson (2026). Figure Window Always on Top (https://es.mathworks.com/matlabcentral/fileexchange/8642-figure-window-always-on-top), MATLAB Central File Exchange. Recuperado .

Agradecimientos

Inspiración para: WinOnTop

Categorías

Más información sobre Graphics Objects en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0

A couple of improvements have been made thanks to Ryan J Ollos. You are now able to toggle the winontop state and the position of the window is left unchanged during operation (rather annoying feature of previous version)