www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@Table1D/createCopyPasteMenus.m

    function createCopyPasteMenus(obj, hMenu)
%CREATECOPYPASTEMENUS Create copy and paste menus for the table.
%
%   CREATECOPYPASTEMENUS(OBJ, HMENU) creates a copy and paste menu item as
%   children of the provided menu or context menu handle.  These menu items
%   can be used to perform copying and pasting on the table.

%   Copyright 2007 The MathWorks, Inc.


hActions = obj.CopyPasteActions;
hActions.createMenuItem(hMenu);