Documentation of getradiobutton
Index of all files: short | long | this subdirectory only: short | long
Function Synopsis
str=getradiobutton(param,panel)
Help text
method of class @parameter (c) 2011, University of Southampton Maintained by Stefan Bleeck (bleeck@gmail.com) download of current version is on the soundsoftware site: http://code.soundsoftware.ac.uk/projects/aimmat documentation and everything is on http://www.acousticscale.org
Cross-Reference Information
| This function calls | This function is called by |
|---|---|
Listing of function getradiobutton
function str=getradiobutton(param,panel)
cont=param.entries;
nrent=length(cont);
for i=1:nrent
type=cont{i}.type;
if strcmp(type,'radiobutton')
if strcmp(cont{i}.panel,panel)
handleb=parameter/gethandle.html">gethandle(param,cont{i}.text,cont{i}.panel,1);
if ~isequal(handleb,0) && ishandle(handleb) % yes, there is a screen representation
val=get(handleb,'value');
if val==1
text=cont{i}.text;
panel=cont{i}.panel;
if strcmp(text,'other...')
handle2=parameter/gethandle.html">gethandle(param,text,panel,2);
str=get(handle2,'string');
else
str=text;
end
return
end
else
if cont{i}.value==1
str=cont{i}.text;
if strcmp(str,'other...')
str=cont{i}.userdata;
end
return
end
end
end
end
end
% if still here then non identical fit
% search for fragment
for i=1:nrent
type=cont{i}.type;
if strcmp(type,'radiobutton')
if ~isempty(strfind(cont{i}.panel,panel))
handleb=parameter/gethandle.html">gethandle(param,cont{i}.text,cont{i}.panel,1);
if ishandle(handleb) % yes, there is a screen representation
val=get(handleb,'value');
if val==1
text=cont{i}.text;
panel=cont{i}.panel;
if strcmp(text,'other...')
handle2=parameter/gethandle.html">gethandle(param,text,panel,2);
str=get(handle2,'string');
else
str=text;
end
return
end
else
if cont{i}.value==1
str=cont{i}.text;
if strcmp(str,'other...')
str=cont{i}.userdata;
end
return
end
end
end
end
end
str='error, the entry does not exist';
Produced by mtree2html by Hartmut Pohlheim