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

    function setRedraw(obj,flg)
%SETREDRAW Set the redrawing of the toolbar on or off.
%
%  SETREDRAW(OBJ, flag) where flag = true/false sets the toolbar to redraw
%  (flag=true) or not (flag=false).  This is useful during toolbar creation
%  when many buttons are sequentially added to the toolbar

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


obj.hRenderer.DrawingEnabled = flg;