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:26:51 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

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

Thanks. I notice two things: the first one is that the error depends on the
order in which the two uipanels are created. The following returns an error
with Octave:


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


while this runs fine:


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


Matlab behaviour follows in the next comment.

    _______________________________________________________

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]