www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcuser/infoeditdlg.m

    function obj = infoeditdlg( obj )
%INFOEDITDLG  Create modal dialog for editing user information
%
%   OBJ = INFOEDITDLG(OBJ) creates a modal dialog and does not return until
%   it is closed.

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

d = mbcgui.container.Dialog(...
    'Tag','UserInfoEditor',...
    'PersistPosition', 1,...
    'Name','User Information',...
    'Resize','off',...
    'Buttons', 'OK_CANCEL',...
    'Size', [300 144]);

infolyt = createguiobject(obj,'edit',d.Figure);
d.Content = infolyt;

closeMode = d.showDialog();
if strcmp(closeMode,'OK')
   obj = initfromguiobject(obj,infolyt);
end

delete(d);