Changeset 747 for trunk/src/msgbox_uvmat.m
- Timestamp:
- Apr 22, 2014, 9:44:39 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msgbox_uvmat.m
r746 r747 6 6 % OUTPUT: 7 7 % answer (text string)= 'yes', 'No', 'cancel', or the text string introduced as input 8 % for title='WAITING...', the output is the handle of the figure, to allow deletion by the calling program. 8 9 % 9 10 %INPUT: 10 11 % title: string indicating the type of message box: 11 % title= 'INPUT_TXT',' CONFIMATION' ,'ERROR', 'WARNING', 'INPUT_Y-N','INPUT_MENU'default = 'INPUT_TXT' (the title is displayed in the upper bar of the fig).12 % title= 'INPUT_TXT','INPUT_Y-N','INPUT_MENU','ERROR', 'WARNING','CONFIMATION','WAITING...',default = 'INPUT_TXT' (the title is displayed in the upper bar of the fig). 12 13 % if title='INPUT_TXT', input data is asked in an edit box 13 % if title='CONFIMATION'', 'ERROR', 'WARNING', the figure remains opened until a button 'OK' is pressed 14 % if title='CONFIMATION'', 'ERROR', 'WARNING','RULER' the figure remains opened until a button 'OK' is pressed 15 % title='RULER' is used for display of length and angle from the ruler tool. 14 16 % if title='INPUT_Y-N', an answer Yes/No is requested 15 % display, displayed text 17 % if title='WAITING...' the figure remains open until the program deletes it 18 % display: displayed text 16 19 % default_answer: default answer in the edit box (only used with title='INPUT_TXT') 17 20 … … 88 91 testCancel=1; %no cancel button 89 92 testNo=1; % button No activated 90 case {'RULER'}93 case 'RULER' 91 94 icontype=''; 92 95 testinputstring=1; … … 97 100 testinputstring=2; 98 101 testCancel=1; %no cancel button 99 case ' INFO'102 case 'WAITING...' 100 103 icontype=''; 101 104 testOK=0; … … 213 216 if strcmp(get(handles.OK,'Visible'),'on') 214 217 delete(handles.figure1); 215 else %case of INFOdisplay (non modal)218 else %case of WAITING... display (non modal) 216 219 varargout{1}=hObject; 217 220 end
Note: See TracChangeset
for help on using the changeset viewer.