www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@ActionGroup/ActionGroup.m
function obj = ActionGroup(varargin) %ACTIONGROUP Create a new ActionGroup object % % OBJ = ACTIONGROUP(COMMAND, LABEL, DESCRIPTION, ICONFILE) creates a new % ActionGroup object for the specified COMMAND. If any arguments are omitted % the action will be created with them unset. % % ActionGroups contain a set of associated actions. When added to menus, % ActionGroups will either created a separated set of menus or a submenu, % depending on the value of the MenuType property. If a command is % defined for an ActionGroup, it will be executed when the submenu parent % is opened. The command will not be executable from a toolbar or if the % ActionGroup does not create a submenu group. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin && isa(varargin{1}, 'mbcmultiview.ActionGroup') obj = varargin{1}; varargin(1) = []; else obj = mbcmultiview.ActionGroup; end obj.StatefulAction(varargin{:});