b@0: function MmoveW(hf) b@0: b@0: dat=get(hf,'userdata'); b@0: b@0: if dat.drag b@0: cobj=get(gcf,'currentobject'); b@0: if strcmp(get(cobj,'tag'),'sonicon') b@0: cpos=get(gcf,'currentpoint'); b@0: posObj=get(cobj,'position'); b@0: dxx=dat.dxx; b@0: cp=cpos(1); b@0: if (cp1-dxx) b@0: cp=1-dxx; b@0: end b@0: posObj(1)=cp-posObj(3)/2; b@0: set(cobj,'position',posObj); b@0: end b@0: end