www.gusucode.com > mbclayouts 工具箱 matlab 源码程序 > mbclayouts/@xregsplitlayout/mousetracker.m
function mousetracker(obj,event) % mousetracker % % Pointer changer for splitlayout % % Copyright 2000-2016 The MathWorks, Inc. and Ford Global Technologies, Inc. fig = get(obj.xregcontainer,'Parent'); ud = obj.datastore.info; ID = obj.pointerID.info; pr = xregGui.PointerRepository; if event==1 if ud.orientation ptr = 'uddrag'; else ptr = 'lrdrag'; end obj.pointerID.info = pr.stackSetPointer(fig,ptr); if ID>=0 % ?? This normally means we are already "in" the region. Try to remove the old pointer pr.stackRemovePointer(fig,ID); end elseif event==-1 if ID>=0 pr.stackRemovePointer(fig,ID); obj.pointerID.info = -1; end end