Changeset 1157 for trunk/src/msgbox_uvmat.m
- Timestamp:
- Jul 11, 2024, 4:13:03 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msgbox_uvmat.m
r1127 r1157 10 10 % title: string indicating the type of message box (the title is displayed in the upper bar of the fig): 11 11 % ='INPUT_TXT'(default), input data is asked in an edit box 12 % = 'INPUT_MENU', input data must be selected from a menu choice 12 13 % ='CONFIMATION'', 'ERROR', 'WARNING','RULER' the figure remains opened until a button 'OK' is pressed 13 14 % ='RULER' is used for display of length and angle from the ruler tool. … … 16 17 % ='WAITING...' the figure remains open until the program deletes it 17 18 % display: displayed text 18 % default_answer: default answer in the edit box (only used with title='INPUT_TXT' )19 % default_answer: default answer in the edit box (only used with title='INPUT_TXT' or 'INPUT_MENU') 19 20 20 21 %======================================================================= … … 69 70 set(handles.figure1,'Units','pixels') 70 71 FigPos=[100 150 500 50];%default position 72 if strcmp(title,'INPUT_MENU') 73 FigPos=[100 150 500 200];%default position 74 end 71 75 if exist('Position','var') && numel(Position)>=2 72 76 FigPos(1)=Position(1); … … 164 168 set(handles.edit_box, 'Visible', 'on'); 165 169 set(handles.edit_box,'String', default_answer) 170 set(handles.edit_box,'Max',2);% allows for multiple selection 166 171 else 167 172 set(handles.text1, 'Position', [0.15 0.3 0.85 0.7]);
Note: See TracChangeset
for help on using the changeset viewer.