www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@EtchedViewContainer/EtchedViewContainer.m
function obj = EtchedViewContainer(varargin) %ETCHEDVIEWCONTAINER Constructor for EtchedViewContainer object % % OBJ = ETCHEDVIEWCONTAINER (PROP, VALUE, ...) constructs a new % EtchedViewContainer object. % Copyright 2005-2011 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin && isa(varargin{1}, 'mbcmultiview.EtchedViewContainer ') obj = varargin{1}; varargin(1) = []; else obj = mbcmultiview.EtchedViewContainer ; end obj.ViewContainer(varargin{:}); obj.addPropertyListeners('ShowTitle', {@i_toggletitle, obj.PanelHandle}); function i_toggletitle(~, evt, hPanel) obj = evt.AffectedObject; if evt.NewValue set(hPanel, 'Title', obj.View.gettitle); else set(hPanel, 'Title', ''); end