📄 domenubar.m
字号:
function theResult = domenubar(self, varargin)% ps/domenubar -- Toggle the "ps" menubar.% domenubar(self) toggles the menubar on behalf% of self, a "ps" object. % Copyright (C) 1999 Dr. Charles R. Denham, ZYDECO.% All Rights Reserved.% Disclosure without explicit written consent from the% copyright owner does not constitute publication. % Version of 04-Nov-1999 15:32:53.% Updated 04-Nov-1999 15:32:53.if nargout > 0, theResult = []; endif nargin < 1, help(mfilename), return, endtheMenu = gcbo;theFigure = gcbf;switch lower(get(theFigure, 'MenuBar'))case 'figure' set(theFigure, 'MenuBar', 'none') if any(theMenu), set(theMenu, 'Checked', 'off'); endcase 'none' set(theFigure, 'MenuBar', 'figure') if any(theMenu), set(theMenu, 'Checked', 'on'); endendif nargout > 0, theResult = self; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -