Ignore:
Timestamp:
Apr 20, 2014, 6:19:08 PM (10 years ago)
Author:
sommeria
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msgbox_uvmat.m

    r733 r746  
    6969testNo=0;
    7070testCancel=0;
     71testOK=1;
    7172testinputstring=0;
    7273icontype='quest';%default question icon (text input asked)
     
    9697            testinputstring=2;
    9798            testCancel=1; %no cancel button
     99        case 'INFO'
     100            icontype='';
     101            testOK=0;
    98102        otherwise
    99103          %  testinputstring=1;
     
    172176set(handles.figure1,'Units','normalized')
    173177set(handles.edit_box,'Units','normalized')
    174 
     178if testOK
    175179set(handles.figure1,'WindowStyle','modal')% Make% Make the GUI modal
     180set(handles.OK,'Visible','on')
    176181% UIWAIT makes msgbox_uvmat wait for user response (see UIRESUME)
    177182uiwait(handles.figure1);
     183else
     184   set(handles.OK,'Visible','off')
     185end
     186
    178187
    179188%------------------------------------------------------------------------
     
    202211    end
    203212    % The figure can be deleted now
     213    if strcmp(get(handles.OK,'Visible'),'on')
    204214    delete(handles.figure1);
     215    else %case of INFO display (non modal)
     216        varargout{1}=hObject;
     217    end
    205218end
    206219
Note: See TracChangeset for help on using the changeset viewer.