WinOnTop
WINONTOP allows to trigger figure's "Always On Top" state
% INPUT ARGUMENTS:
# figureHandle - Matlab's figure handle, scalar
# isOnTop - logical scalar or empty array
% USAGE:
* WinOnTop( hfigure, true ); - switch on "always on top"
* WinOnTop( hfigure, false ); - switch off "always on top"
* WinOnTop( hfigure ); - equal to WinOnTop( hfigure,true);
* WinOnTop(); - equal to WinOnTop( gcf, true);
* WasOnTop = WinOnTop(...); - returns boolean value "if figure WAS on top"
* isOnTop = WinOnTop(hfigure,[]) - get "if figure is on top" property
For Matlab windows, created via `hf=uifigure()` use `uifigureOnTop()`, see:
https://www.mathworks.com/matlabcentral/fileexchange/73134-uifigureontop
% LIMITATIONS:
* java enabled
* figure must be visible
* figure's "WindowStyle" should be "normal"
* figureHandle should not be casted to double, if using HG2 (R2014b+)
Cite As
Igor (2022). WinOnTop (https://github.com/i3v/WinOnTop), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Graphics Objects >
Tags
Acknowledgements
Inspired by: Figure Window Always on Top, Set figure window to be always on top., ALWAYSONTOP
Inspired: uifigureOnTop, WIND TURBINE SIMULATOR
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.