b@0: function MpushW(hf,typ) b@0: b@0: switch typ b@0: case '2D' b@0: sel=get(hf,'selectiontype'); b@0: switch sel b@0: b@0: case 'normal' b@0: % create a box b@0: dat=get(hf,'userdata'); b@0: pc=get(hf,'currentpoint'); b@0: b@0: %display box b@0: pos=rbbox([pc(1) pc(2) 0 0]); b@0: x1=pos(1); x2=pos(3)+x1; y1=pos(2); y2=pos(4)+y1; b@0: grp=[]; b@0: for noIc=1:length(dat.hIcon) b@0: posIc=get(dat.hIcon(noIc),'position'); b@0: xic=posIc(1); yic=posIc(2); b@0: if ((xic>x1) & (xicy1) & (yic