Ignore:
Timestamp:
Dec 19, 2010, 10:11:04 PM (13 years ago)
Author:
sommeria
Message:

many bug repairs and corrections for mouse action
create_grid: option for black marjkers for grid detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msgbox_uvmat.m

    r121 r156  
    5151icontype='quest';%default question icon (text input asked)
    5252if exist('title','var')
    53       set(hObject, 'Name', title);
    54       if isequal (title,'CONFIRMATION')
    55          icontype='';
    56          testCancel=0; %no cancel button
    57       elseif isequal (title,'ERROR')
    58          icontype='error';
    59          testCancel=0; %no cancel button
    60       elseif isequal (title,'WARNING')
    61          icontype='warn';
    62          testCancel=0; %no cancel button
    63       elseif isequal (title,'INPUT_Y-N')
    64          icontype='quest';
    65          testNo=1; % button No activated
    66       else
    67           testinputstring=1;
    68       end
     53    set(hObject, 'Name', title);
     54    switch title
     55        case {'CONFIRMATION'}
     56            icontype='';
     57            testCancel=0; %no cancel button
     58        case 'ERROR'
     59            icontype='error';
     60            testCancel=0; %no cancel button
     61        case 'WARNING'
     62            icontype='warn';
     63            testCancel=0; %no cancel button
     64        case 'INPUT_Y-N'
     65            icontype='quest';
     66            testNo=1; % button No activated
     67        case {'RULER'}
     68            icontype='';
     69            testCancel=0; %no cancel button
     70            testinputstring=1;
     71        otherwise
     72            testinputstring=1;
     73    end
    6974end
    7075if exist('display','var')
Note: See TracChangeset for help on using the changeset viewer.