⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 enable.m

📁 任意边界结构正交曲线网格生成程序
💻 M
字号:
function theResult = enable(self)% ps/enable -- Enable "ps" callbacks.%  enable(self) enables all the callbacks associated%   with self, a "ps" object, except that the "CreateFcn"%   and "DeleteFcn" are enabled only for figures.  The%   actions are directed to "psevent", using the actual%   callback names, as in "psevent ButtonDownFcn". % 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 27-Oct-1999 23:30:10.% Updated    09-Dec-1999 02:42:24.if nargout > 0, theResult = []; endif nargin < 1, help(mfilename), return, endtheHandle = handle(self);h = findobj(theHandle);for k = 1:length(h)	theType = get(h(k), 'Type');	theEvents = {};	switch theType	case 'figure'		theEvents = [theEvents ...			{'WindowButtonDownFcn', 'ResizeFcn', ...			'CreateFcn', 'CloseRequestFcn'} ...			];	case {'axes', 'line', 'patch', 'surface', 'text', 'light'}		theEvents = [theEvents {'ButtonDownFcn'}];	case 'uicontrol'		theEvents = [theEvents {'ButtonDownFcn', 'Callback'}];	case 'uimenu'		if ~any(get(h(k), 'Children'))			theEvents = [theEvents {'Callback'}];		end	otherwise	end	for i = 1:length(theEvents)		set(h(k), theEvents{i}, ['psevent ' theEvents{i}])	endendif nargout > 0, theResult = self; end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -