uifigureOnTop

版本 1.0.1 (2.8 KB) 作者: Igor
Allows to trigger uifigure's "Always On Top" state in Matlab
201.0 次下载
更新时间 2019/10/27

UIFIGUREONTOP allows to trigger uifigure's "Always On Top" state

% INPUT ARGUMENTS:

* uifig - Matlab uifigure handle, scalar
* isOnTop - logical scalar or empty array

% USAGE:

* uifigureOnTop(uifigure, true); - switch on "always on top"
* uifigureOnTop(uifigure, false); - switch off "always on top"
* uifigureOnTop(uifigure); - equal to uifigureOnTop( uifigure,true);
* WasOnTop = uifigureOnTop(...); - returns boolean value "if figure WAS on top"
* isOnTop = uifigureOnTop(uifigure,[]) - get "if figure is on top" property

For Matlab windows, created via `hf=figure()` use `WinOnTop()`, see:
https://www.mathworks.com/matlabcentral/fileexchange/42252-winontop

% LIMITATIONS:

* java enabled
* figure must be visible
* figure's "WindowStyle" should be "normal"
* figureHandle should not be casted to double, if using HG2 (R2014b+)

Based on https://undocumentedmatlab.com/blog/customizing-uifigures-part-1

引用格式

Igor (2024). uifigureOnTop (https://github.com/i3v/uifigureOnTop), GitHub. 检索时间: .

MATLAB 版本兼容性
创建方式 R2019a
与 R2017b 及更高版本兼容
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Develop uifigure-Based Apps 的更多信息
致谢

参考作品: WinOnTop

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.1

Added pic.

1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库