www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@javaToolbar/notifyNewSeparator.m

    function notifyNewSeparator(obj, but)
%NOTIFYNEWSEPARATOR Notify toolbar that a separator setting has been altered
%
%  NOTIFYNEWSEPARATOR(OBJ, BUT) is called to notify OBJ that the separator
%  property of the button BUT has been altered.

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


nBtnsRendered = obj.NButtonsToRender;
mbcsuperclassmethod(obj, 'xregGui.javaToolbar', 'notifyNewSeparator', but);

ch = obj.hToolbarInterface.Children;
ind = find(but==ch);
if ~isempty(ind) ...
        && obj.DrawingEnabled ...
        && ind<=nBtnsRendered

    obj.pDrawToRight(ind);
end