www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conbase/guiEditor.m
function [obj, ok] = guiEditor(obj, varargin) %GUIEDITOR Open a dialog for editing constraint settings % % [OBJ, OK] = GUIEDITOR(OBJ) displays a blocking dialog that allows the % user to edit the parameters of the constraint. % % GUIEDITOR(OBJ, 'Parent', HFIG) specifies a parent figure to center the % dialog on. % % See also: CONBASE/GUICONSTRAINTCHOOSER. % Copyright 2005-2015 The MathWorks, Inc. and Ford Global Technologies, Inc. hDialog = mbcgui.dialog.StandardDialog(obj, ... 'PageInfoFunction', @generateEditorPages, ... 'DisplaySinglePageAsTab', false, ... 'Title', 'Edit Constraint', ... varargin{:}); ok = hDialog.show; if ok obj = hDialog.Object; end delete(hDialog);