www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@MultiViewPanel/pUpdateActions.m
function pUpdateActions(obj) %PUPDATEACTIONS Update action statuses % % PUPDATEACTIONS(OBJ) updates the enable status of the component's % actions. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. % Disable actions when the component is invisible boolEn = strcmpi(obj.Visible, 'on'); sA = obj.Actions; if boolEn if length(obj.ViewGroup.ViewContainers)>1 sA.CloseView.Enabled = true; else sA.CloseView.Enabled = false; end A = [sA.SplitViewV; sA.SplitViewH; sA.ChangeView; sA.SplitToView]; set(A, 'enabled', true); else A = [sA.CloseView; sA.SplitViewV; sA.SplitViewH; sA.ChangeView; sA.SplitToView]; set(A, 'enabled', false); end obj.pViewSelected;