tomwalters@0: % method of class @parameter tomwalters@0: % bleeck@3: % (c) 2011, University of Southampton bleeck@3: % Maintained by Stefan Bleeck (bleeck@gmail.com) bleeck@3: % download of current version is on the soundsoftware site: bleeck@3: % http://code.soundsoftware.ac.uk/projects/aimmat bleeck@3: % documentation and everything is on http://www.acousticscale.org tomwalters@0: tomwalters@0: function param=sethandle(param,text,hand,inbox,handle_nr) tomwalters@0: % sets the handle of this item. handles_nr is usually 1 but can be 2 in tomwalters@0: % cases when more then one object is on the screen (float with unit, tomwalters@0: % filename...) tomwalters@0: tomwalters@0: cont=param.entries; tomwalters@0: nrent=length(cont); tomwalters@0: tomwalters@0: if nargin<5 tomwalters@0: handle_nr=1; tomwalters@0: end tomwalters@0: tomwalters@0: if nargin<4 tomwalters@0: inbox='all'; tomwalters@0: end tomwalters@0: tomwalters@0: nr=getentrynumberbytext(param,text,inbox); tomwalters@0: if nr>0 tomwalters@0: param.entries{nr}.handle{handle_nr}=hand; tomwalters@0: return tomwalters@0: else tomwalters@0: val='sethandle: error, the entry does not exist'; tomwalters@0: end