function fpok_Callback(hObject, eventdata, handles)
clc
fpres=struct('fpmcqt',0,'fpcoyqt',0,'fprgqt',0,'fpblkqt',0,'fpmcbqt',0,'fparidqt',0);
if get(handles.chkfpmc,'Value')
fpmcqt1=handles.fpmcqt.String;
fpres.fpmcqt=str2double(fpmcqt1)
end
if get(handles.chkfpcoy,'Value')
fpcoyqt1=handles.fpcoyqt.String;
fpres.fpcoyqt=str2double(fpcoyqt1)
end
if get(handles.chkfprg,'Value')
fprgqt1=handles.fprgqt.String;
fpres.fprgqt=str2double(fprgqt1)
end
if get(handles.chkfpblk,'Value')
fpblkqt1=handles.fpblkqt.String;
fpres.fpblkqt=str2double(fpblkqt1)
end
if get(handles.chkfpmcb,'Value')
fpmcbqt1=handles.fpmcbqt.String;
fpres.fpmcbqt=str2double(fpmcbqt1)
end
if get(handles.chkfparid,'Value')
fparidqt1=handles.fparidqt.String;
fpres.fparidqt=str2double(fparidqt1)
end
handles.output=fpres;
uiresume(ancestor(hObject, 'figure'))
close()
fp=questdlg('Flatpacks','Select','Yes','No','c');
switch fp
case 'Yes'
fpres=Flatpack;
otherwise
fpres=struct('fpmcqt',0,'fpcoyqt',0,'fprgqt',0,'fpblkqt',0,'fpmcbqt',0,'fparidqt',0);
end
if ~ishandle(Flatpack)
fpmcqt=fpres.fpmcqt;
end