www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtools/@cgbrowser/doSwitchList.m

    function doSwitchList(h)
%DOSWITCHLIST Turn listview on/off
%
%  DOSWITCHLIST(GCB) updates the list configuration to match the setting of
%  the ListOn property of the browser.

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


if h.GUIExists
    if h.ListOn
        crdnum = 2;
    else
        crdnum = 1;
    end
    set(h.Hand.Figure.ListCard,'currentcard',crdnum);
end