www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@javaToolbar/notifyNewVisible.m
function notifyNewVisible(obj, but) %NOTIFYNEWVISIBLE Notify toolbar that a visible setting has been altered % % NOTIFYNEWVISIBLE(OBJ, BUT) notifies OBJ that the visible property of BUT % has been altered. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. nBtnsRendered = obj.NButtonsToRender; mbcsuperclassmethod(obj, 'xregGui.javaToolbar', 'notifyNewVisible', but); ch = obj.hToolbarInterface.Children; ind = find(but==ch); if ~isempty(ind) ... && obj.DrawingEnabled ... && ind<=nBtnsRendered obj.pDrawToRight(ind); end