octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48186] delete(allchild(fig)) in a "deletefcn"


From: Guillaume
Subject: [Octave-bug-tracker] [bug #48186] delete(allchild(fig)) in a "deletefcn" callback raises error
Date: Fri, 10 Jun 2016 16:31:31 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0

Follow-up Comment #9, bug #48186 (project octave):

Here is what an 'old' version of Matlab returns:


>> F = figure('Units','normalized');
>> U1 = uipanel(F,'Position',[0 0 0.45 1],
'DeleteFcn','allchild(gcbf),delete(allchild(gcbf))')

U1 =

  173.0011

>> U2 = uipanel(F,'Position',[0.55 0 0.45 1])

U2 =

  174.0011

>> U = allchild(F)

U =

  174.0011
  173.0011
  144.0011
  132.0011
  131.0011
   80.0011
   64.0011
   57.0011  
   37.0011  
   18.0011  
    0.0011  
            
>> close(F) 
            
ans =       
            
  173.0011  


(the extra handles correspond to the toolbar and menus)

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48186>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]