addmenu
    Jens Simon 
    j.s.strom at hslmg.de
       
    Thu Oct 21 00:07:58 CEST 2010
    
    
  
Samuel GOUGEON <Samuel.Gougeon at ...> writes:
 
>... Maybe setting "break" directly in the callback would also work.
> 
> Regards
> Samuel
No, that doesn't work.
I'm very happy with this code now
-------------------------------------------
  M1 = uimenu("parent",0,"label","ENDLOOP","callback","act=''EL'';");
  M2 = uimenu("parent",0,"label","ABORT",..
              "callback","act=''AB'';delmenu(''ENDLOOP'');delmenu(''ABORT'');");
  act=[];
  for i=1:400, disp(i), sleep(100), 
    if act=='EL', break, elseif act=='AB',abort, end, 
  end
  disp('after the loop')
  delmenu("ENDLOOP"),delmenu("ABORT")
--------------------------------------------
Kind regards
Jens
    
    
More information about the users
mailing list