www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@uipushtool/pSetEnable.m

    function pSetEnable(obj)
%PSETENABLE Update private enbale flag
%
%  PSETENABLE(OBJ) updates the private boolean enable flag to match the
%  setting of the public Enable property.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


obj.IsEnabled = strcmp(obj.Enable, 'on');