image thumbnail

Figure Window Always on Top

version (3.83 KB) by John Anderson
Avoid obscuring figure windows by ensuring they always remain on top.


Updated 14 Dec 2005

View License

Editor's Note: 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 ...

winontop('figure 1');

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

Cite As

John Anderson (2021). Figure Window Always on Top (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: WinOnTop

Community Treasure Hunt

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

Start Hunting!