www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@mmModelSetupView/pPostSetPosition.m

    function val = pPostSetPosition(obj, val)
%PPOSTSETPOSITION Respond to position being set
%
%  PPOSTSETPOSITION(OBJ, EVT) is called after the object's position
%  property has been set.

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


cellpos = obj.hGrid.getPositions(obj.Position);

set([obj.hTolerance1; ...
    obj.hTolerance2; ...
    obj.hTable; ...
    ], {'Position'}, cellpos([3 5 9]));

obj.hToleranceLabel.Position = cellpos{1};
obj.hTableLabel.Position = cellpos{7};