www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@ButtonUpManager/pFireCallbacks.m
function pFireCallbacks(obj) %PFIRECALLBACKS Execute any store callbcaks % % PFIRECALLBACKS(OBJ) executes all of the callbacks that have been stored % for one-time execution. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. % Extract callback heap before starting the loop. This prevents drawnows % during a callback from recursively flushing the same callbacks. cbs = obj.OneTimeCallbacks; obj.OneTimeCallbacks = []; d = xregGui.uddDispatcher; xregcb = @xregcallback; for n = 1:length(cbs) d.feval(xregcb, cbs{n}, obj, []); end