www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@MultiViewPanel/selectView.m
function selectView(obj, hVC) %SELECTVIEW Select a view % % SELECTVIEW(OBJ, HVIEW) selects a view. HVIEW is a handle to either a % View or a ViewContainer. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if hVC.isa('mbcmultiview.View') hAllVC = obj.ViewGroup.ViewContainers; hAllView = get(hAllVC, {'View'}); hAllView = [hAllView{:}]; hVC = obj.ViewGroup.ViewContainers(hAllView==hVC); end obj.ViewGroup.selectView(hVC);