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: function param=getdefaultbutton(param) tomwalters@0: % returns the parameter that was set as the default button tomwalters@0: tomwalters@0: ents=param.entries; tomwalters@0: tomwalters@0: for i=1:length(ents) tomwalters@0: if strcmp(ents{i}.type,'button') tomwalters@0: if ents{i}.isdefaultbutton==1 tomwalters@0: param=ents{i}; tomwalters@0: return tomwalters@0: end tomwalters@0: end tomwalters@0: end tomwalters@0: tomwalters@0: param=[];