Ignore:
Timestamp:
May 14, 2012, 7:03:14 AM (12 years ago)
Author:
sommeria
Message:

bugs corrections and improvements following tutorial presentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msgbox_uvmat.m

    r296 r421  
    3838
    3939% --- Executes just before msgbox_uvmat is made visible.
    40 function msgbox_uvmat_OpeningFcn(hObject, eventdata, handles,title,display,default_answer,Position)
     40function msgbox_uvmat_OpeningFcn(hObject, eventdata, handles,title,display_str,default_answer,Position)
    4141% This function has no output args, see OutputFcn.
    4242
     
    7474        case 'ERROR'
    7575            icontype='error';
     76            if exist('display_str','var')
     77                disp(display_str); %display the error message in the Matlab command window
     78            end
    7679        case 'WARNING'
    7780            icontype='warn';
     
    9295    end
    9396end
    94 if exist('display','var')
    95     set(handles.text1, 'String', display);
     97if exist('display_str','var')
     98    set(handles.text1, 'String', display_str);
    9699end
    97100% if testinputstring
Note: See TracChangeset for help on using the changeset viewer.