www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgnormnode/cancopy.m

    function ret=cancopy(nd)
% CANCOPY  Indicate whether node can copy data
%
%  OUT=CANCOPY(NODE)
%  The return value is non-zero if one of the nodes
%  currently on display is in a state from which data
%  can be copied.

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


cgb=cgbrowser;
d=cgb.getViewData(guid(nd));
tp = d.Handles.TablePane;

pane = tp(1);
ret=pane.canCopy;
if ~ret & length(tp)>1
    pane = tp(2);
    ret=pane.canCopy;
end