www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@PointerRepository/stackSetPointer.m
function ID=stackSetPointer(pr,fH,ptr) %STACKSETPOINTER Set pointer and remember undo stack % % ID = STACKSETPOINTER(PR, H, ptr) sets the pointer ptr in the figure % that contains H. The current pointer information is added to the top of % the pointer stack for the figure. ptr may be either a figure pointer % string or one of the custom pointers known by PointerRepository. ID is % an identification number which can be used to remove this operation % cleanly from the stack of pointers at a future time. % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin<3 error(message('mbc:xregGui:PointerRepository:TooFewInputs1')); end S = pr.pGetStackFor(fH); ID = S.addToTop(pr.pGetPointer(ptr));