www.gusucode.com > sigtools 工具箱matlab源码程序 > sigtools/@siggui/@okcanceldlg/dialog_enable_listener.m

    function dialog_enable_listener(this, varargin)
%DIALOG_ENABLE_LISTENER   Listener to 'enable'.

%   Author(s): J. Schickler
%   Copyright 1988-2003 The MathWorks, Inc.

sigcontainer_enable_listener(this, varargin{:});

% Cancel is never disabled.
% Apply is taken care of by isapplied_listener
h = rmfield(this.DialogHandles, 'cancel');

setenableprop(convert2vector(h), this.Enable);

% [EOF]