Changeset 746 for trunk/src/msgbox_uvmat.m
- Timestamp:
- Apr 20, 2014, 6:19:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msgbox_uvmat.m
r733 r746 69 69 testNo=0; 70 70 testCancel=0; 71 testOK=1; 71 72 testinputstring=0; 72 73 icontype='quest';%default question icon (text input asked) … … 96 97 testinputstring=2; 97 98 testCancel=1; %no cancel button 99 case 'INFO' 100 icontype=''; 101 testOK=0; 98 102 otherwise 99 103 % testinputstring=1; … … 172 176 set(handles.figure1,'Units','normalized') 173 177 set(handles.edit_box,'Units','normalized') 174 178 if testOK 175 179 set(handles.figure1,'WindowStyle','modal')% Make% Make the GUI modal 180 set(handles.OK,'Visible','on') 176 181 % UIWAIT makes msgbox_uvmat wait for user response (see UIRESUME) 177 182 uiwait(handles.figure1); 183 else 184 set(handles.OK,'Visible','off') 185 end 186 178 187 179 188 %------------------------------------------------------------------------ … … 202 211 end 203 212 % The figure can be deleted now 213 if strcmp(get(handles.OK,'Visible'),'on') 204 214 delete(handles.figure1); 215 else %case of INFO display (non modal) 216 varargout{1}=hObject; 217 end 205 218 end 206 219
Note: See TracChangeset
for help on using the changeset viewer.