CmdWinTool

버전 1.3.0.0 (9.03 KB) 작성자: Jan
Programmatic control of the command window
다운로드 수: 1.7K
업데이트 날짜: 2015/12/20

라이선스 보기

Programmatic control of the the command window
On a netbook with a tiny monitor, the toolbar and the statusbar of Matlab's
command window occupy valuable space. The function CmdWinTool uses
undocumented Java methods to hide these UI elements.
But the interface allows much more:
Reply = CmdWinTool(Command, Data)
INPUT:
Command as string:
lean, fat: Hide or show toolbar and statusbar
title: Set and get the window title
statusText: String in the statusbar at the bottom
toFront, toBack: Window before of behind other windows.
hide, show: Hide or show the window
JPosition: Set/get position relative to virtual screen, java conventions
Position: Set/get position relative to monitor (*), Matlab conventions
maximize, minimize, restore: guess...
xmax, ymax: maximize horizontally/vertically only (*)
toScreen: Move completely to nearest monitor (*)
getHWnd: Get OS handle of the window (Windows only?)
setFocus: Gain keyboard focus (*)
getText: Get text written to window.
top: Set AlwaysOnTop property
font: Set and get font name and size
background, foreground: Set and get font and background color
isBusy: TRUE if a program is running
The commands marked with (*) run under Windows only and need WindowAPI:
http://www.mathworks.com/matlabcentral/fileexchange/31437
The other commands should run under MacOS and Linux also.
Tested: Matlab 6.5, 2008b, 2009a, 2011b, 2015b, WinXP, Win7, multi-monitors
Run uTest_CmdWinTool to check compatibility on your platform.
I'd appreciate bugreports and suggestions for improvements.
This function is inspired by Yair Altman's excellent investigations in the
secrets of Matlab. See http://www.undocumentedmatlab.com

인용 양식

Jan (2024). CmdWinTool (https://www.mathworks.com/matlabcentral/fileexchange/32005-cmdwintool), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Migrate GUIDE Apps에 대해 자세히 알아보기
도움

받음: WindowAPI

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

Supports Matlab 2015b now.

1.2.0.0

Minor change in teh documentation
Check busy status of Matlab, reply status text

1.1.0.0

Additional features: Font, ForeGround, BackGround.
Set and Get methods are joined: The current value is replied, if an output is used.

1.0.0.0