Set figure window to be always on top.

Changes the always-on-top window state.
ダウンロード: 4.5K
更新 2007/2/27

ライセンスの表示

SETALWAYSONTOP(HFIG,TRUE) will make Matlab figure with handle HFIG to be on top of other windows in the OS even though it might not be in focus.

SETALWAYSONTOP(HFIG,FALSE) will put figure back to normal window state.

SETALWAYSONTOP(HFIG) is the same as SETALWAYSONTOP(HFIG,TRUE).

Second boolean argument TRUE/FALSE can also be exchanged to numerical 1/0.

Restrictions:
HFIG must have property value: Visible = on.
HFIG must have property value: WindowStyle = normal.
Swing components must be available in the current Matlab session.

Example:
hFig = figure;
setAlwaysOnTop(hFig,true); % figure is now on top of other windows

引用

Per-Anders Ekstrom (2024). Set figure window to be always on top. (https://www.mathworks.com/matlabcentral/fileexchange/14103-set-figure-window-to-be-always-on-top), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2006a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersInteractive Control and Callbacks についてさらに検索
謝辞

ヒントを与えたファイル: WinOnTop

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0