setDesktopVisibilit​y

版本 1.0.0.0 (1.8 KB) 作者: Yair Altman
displays or hides the Matlab desktop window
2.7K 次下载
更新时间 2007/9/12

无许可证

Syntax:
currentState = setDesktopVisibility(newState)

Description:
setDesktopVisibility(newState) sets the Matlab desktop window visibility state. Valid values for newState are true, false, 'on' & 'off' (case insensitive).

Note: when the desktop visibility is false/'off' (i.e. hidden), the command window is not accessible for user input. Therefore, this function is very useful for GUI-based applications but not for regular interactive (command-window) use.

state = setDesktopVisibility returns the current visibility state of the desktop window (prior to any modification). The returned state is either true/false (Matlab 7) or 'on'/'off' (Matlab 6).

A minor modification of this function will enable any interested user to enable/disable (rather than show/hide) the desktop.

Examples:
curState = setDesktopVisibility;
oldState = setDesktopVisibility('off'); % hide desktop window
oldState = setDesktopVisibility(result>0);
oldState = setDesktopVisibility(true); % restore visibility

Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

Warning:
This code relies on undocumented and unsupported Matlab functionality. It works on Matlab 6+, but use at your own risk!

引用格式

Yair Altman (2024). setDesktopVisibility (https://www.mathworks.com/matlabcentral/fileexchange/16330-setdesktopvisibility), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R12
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0